* { box-sizing: border-box; }
/*
  浏览器缩放修复（硬性）：
  - 禁止 #root transform:scale（会把浏览器放大「吃掉」）
  - --mj-rem 必须固定 px，禁止绑 1vw（放大时 vw 变小，rem 反缩，只有聊天等固定 px 在变大）
  - --app-scale 固定为 1，仅兼容旧公式 100vh/var(--app-scale)
*/
:root {
  --app-scale: 1;
  /* 与正式版 html rem=16px 对齐（顶栏≈43.4 / 导航≈75.4）；禁止改回 12.5/14 */
  --mj-rem: 16px;
  --mj-row: calc(2.285714 * var(--mj-rem));
}
html, body {
  margin: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #eef3f6;
  color: #273943;
  font-size: var(--mj-rem);
}
#root {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  transform: none;
}
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }
.admin-toast { position: fixed; z-index: 50; top: 80px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; }
.admin-modal-mask { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; background: rgba(20,40,50,.35); }
.admin-modal { width: min(760px, calc(100vw - 40px)); max-height: 84vh; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid #b9cbd4; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.admin-modal > header { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #31515c; background: linear-gradient(#e7f8ff, #d4edf5); border-bottom: 1px solid #c7d8df; }
.admin-modal h3 { margin: 0; font-size: 17px; }
.admin-modal header button { background: transparent; color: #31515c; }
.admin-modal > div { max-height: calc(84vh - 100px); overflow-y: auto; }
.admin-modal footer { padding: 12px 14px; display: flex; justify-content: flex-end; border-top: 1px solid #e1e8ec; }
.modal-cancel {
  min-height: 34px;
  padding: 0 18px;
  margin-right: 12px;
  border-radius: 5px;
  color: #fff;
  background: #bfc3c8;
}
.score-op-form {
  padding: 16px 18px 8px;
}
.score-op-user {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d8e4ea;
}
.score-op-user span {
  font-size: 16px;
  font-weight: 700;
  color: #243a44;
}
.score-op-user em {
  font-style: normal;
  color: #71828c;
  font-size: 13px;
}
.score-quick-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.score-quick-btn {
  min-height: 34px;
  border-radius: 5px;
  border: 1px solid #c9d8df;
  background: #f5fafc;
  color: #31515c;
  font-weight: 600;
}
.score-quick-btn:hover {
  border-color: #0798bd;
  color: #0798bd;
}
.score-quick-btn.active {
  border-color: #0798bd;
  background: #e6f7fc;
  color: #067a99;
  box-shadow: inset 0 0 0 1px rgba(7, 152, 189, .2);
}
.score-op-form label input[type="number"] {
  width: 100%;
}
.feedback-modal {
  width: 1210px;
  max-height: 1088px;
}
.feedback-modal > header {
  height: 58px;
  font-size: 18px;
}
.feedback-modal > div {
  max-height: 900px;
}
.feedback-modal footer {
  height: 86px;
  padding: 0 22px;
  align-items: center;
  border-top: 0;
}
.feedback-modal footer button {
  min-width: 96px;
  height: 46px;
  justify-content: center;
  font-size: 20px;
}
.feedback-modal-body {
  min-height: 836px;
  padding: 0 18px 22px;
  color: #53636c;
  font-size: 22px;
}
.feedback-tabs {
  height: 72px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #d9e2e7;
}
.feedback-tabs button {
  width: 172px;
  height: 64px;
  color: #87929a;
  border: 1px solid #d9e2e7;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
}
.feedback-tabs button.active {
  color: #008fbd;
}
.feedback-modal-body label {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.feedback-modal-body label span b {
  color: #f0444d;
  font-weight: 400;
}
.feedback-modal-body input {
  height: 72px;
  padding: 0 18px;
  border: 1px solid #d4dce2;
  border-radius: 6px;
  color: #596a72;
  background: #fbfdfe;
  font-size: 22px;
}
.feedback-modal-body textarea {
  height: 290px;
  padding: 22px 18px;
  resize: none;
  border: 1px solid #d4dce2;
  border-radius: 6px;
  color: #596a72;
  background: #fbfdfe;
  font: inherit;
}
.feedback-upload-row {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.feedback-upload {
  width: 162px;
  height: 162px;
  display: grid;
  place-items: center;
  border: 1px dashed #d4dce2;
  border-radius: 5px;
  color: #6b7781;
  background: #fff;
  font-size: 28px;
}
.feedback-history-empty {
  min-height: 746px;
  display: grid;
  place-items: center;
}
.feedback-history-empty .mj-empty {
  min-height: 320px;
}
.safe-password-modal {
  width: 810px;
}
.safe-password-body {
  padding: 30px 18px 34px;
  display: grid;
  gap: 26px;
}
.safe-password-body label {
  display: grid;
  grid-template-columns: 26px 170px 1fr;
  align-items: center;
  color: #52626a;
  font-size: 22px;
}
.safe-password-body label b {
  color: #ff4b4b;
  font-weight: 400;
}
.safe-password-body label span {
  height: 58px;
  display: grid;
  place-items: center;
  background: #e6f4f8;
  border: 1px solid #d2e3ea;
}
.safe-password-body input,
.two-factor-body input {
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d2dce2;
  border-radius: 4px;
  color: #5b6870;
  background: #fbfdfe;
  font-size: 20px;
}
.safe-password-modal footer,
.two-factor-modal footer {
  height: 72px;
  align-items: center;
}
.two-factor-modal {
  width: 1660px;
}
.two-factor-body {
  padding: 36px 18px 22px;
  color: #53636c;
  font-size: 24px;
}
.two-factor-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: start;
  margin-bottom: 20px;
}
.two-factor-row > span {
  text-align: right;
  padding-right: 28px;
}
.two-factor-body p {
  margin: 0;
  line-height: 40px;
}
.two-factor-body b {
  color: #ff1010;
  font-weight: 900;
}
.two-factor-body em {
  color: #2c8fff;
  font-style: normal;
  font-weight: 900;
}
.qr-row img {
  width: 360px;
  height: 360px;
  display: block;
  object-fit: contain;
}
.qr-row small {
  display: block;
  margin-top: 8px;
  color: #66747c;
  font-size: 20px;
}
.two-factor-body label {
  height: 96px;
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  border-top: 1px solid #e2e8ec;
}
.two-factor-body label span {
  text-align: right;
  padding-right: 28px;
}
.admin-login {
  height: 100vh;
  min-height: 680px;
  display: grid;
  grid-template-columns: 32.25% 1fr;
  overflow: hidden;
  background: #fff;
  color: #4f5960;
}
.login-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #12acd1, #018bb3);
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 52.5%;
  height: 31.5%;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.login-art::after {
  content: "";
  position: absolute;
  left: 1.6%;
  top: 15.8%;
  width: 188px;
  height: 112px;
  opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.72) 2px, transparent 2px);
  background-size: 14px 14px;
}
.login-dot {
  position: absolute;
  border-radius: 50%;
  border: 36px solid rgba(255,255,255,.12);
}
.login-dot.one {
  left: 58px;
  top: 176px;
  width: 95px;
  height: 95px;
}
.login-dot.two {
  right: 38px;
  top: 138px;
  width: 116px;
  height: 62px;
  border-radius: 0;
  border: 0;
  opacity: .62;
  background-image: radial-gradient(rgba(255,255,255,.76) 2px, transparent 2px);
  background-size: 14px 14px;
}
.login-logo {
  position: absolute;
  left: 50%;
  top: 30.1%;
  width: 168px;
  transform: translateX(-50%);
}
.login-illustration {
  position: absolute;
  left: 15%;
  top: 43.4%;
  width: 470px;
  height: 286px;
  transform: none;
}
.login-illustration::before {
  content: "";
  position: absolute;
  left: 5%;
  top: 30%;
  width: 94%;
  height: 68%;
  border-radius: 7px;
  background: rgba(255,255,255,.18);
}
.login-illustration i {
  position: absolute;
  left: 25%;
  top: 0;
  width: 25%;
  height: 31%;
  border-radius: 8px;
  background: #42c4e4;
  box-shadow: 0 10px 22px rgba(0,0,0,.1);
}
.paper.top {
  position: absolute;
  left: 0;
  top: 10.5%;
  width: 86%;
  height: 72%;
  border-radius: 7px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 28px rgba(0,0,0,.08);
}
.paper.right {
  position: absolute;
  right: 6.5%;
  top: 31%;
  width: 35%;
  height: 18%;
  border-radius: 3px;
  background: rgba(255,255,255,.94);
}
.paper.badge {
  position: absolute;
  left: 35.5%;
  top: 55%;
  width: 13%;
  height: 21%;
  border-radius: 50%;
  background: #62e6dc;
}
.login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px clamp(54px, 6vw, 112px) 70px;
  background: #fff;
}
.login-theme {
  position: absolute;
  right: 55px;
  top: 137px;
  width: 34px;
  height: 34px;
  color: #4d5666;
  background: transparent;
  font-size: 28px;
  line-height: 34px;
}
.login-theme:active {
  transform: scale(.94);
}
.login-form {
  position: relative;
  width: 558px;
  margin-top: -3px;
}
.login-form h1 {
  margin: 0 0 27px;
  color: #232f36;
  text-align: center;
  font-size: 28px;
  line-height: 38px;
  font-weight: 400;
}
.login-assist {
  position: static;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 14px;
}
.login-assist button {
  height: 40px;
  min-width: 120px;
  padding: 0 22px;
  border: 2px solid #078fbd;
  border-radius: 20px;
  color: #078fbd;
  background: #fff;
  font-size: 18px;
}
.login-assist button.active {
  color: #fff;
  background: #078fbd;
}
.login-form label {
  display: block;
  margin-bottom: 28px;
}
.login-form label span {
  display: block;
  margin-bottom: 10px;
  color: #4d5963;
  font-size: 16px;
  line-height: 22px;
}
.login-form label b {
  color: #ef4d4d;
  font-weight: 400;
  margin-right: 5px;
}
.login-form input {
  width: 100%;
  height: 47px;
  padding: 0 12px;
  border: 1px solid #d7dce5;
  border-radius: 4px;
  outline: none;
  color: #18232a;
  background: #eaf1fc;
  font-size: 16px;
}
.login-form label:nth-of-type(1) input,
.login-form label:nth-of-type(2) input {
  color: #1b2730;
  border-color: #d7dce5;
  background: #eaf1fc;
}
.login-code-field input {
  background: #fff;
}
.login-submit {
  width: 100%;
  height: 51px;
  margin-top: 8px;
  border-radius: 6px;
  color: #fff;
  background: #078fbd;
  font-size: 18px;
  font-weight: 500;
}
.login-panel footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  color: #8d8d8d;
  text-align: center;
  font-size: 16px;
}
.login-theme-dark .login-panel {
  background: #1f2830;
}
.login-theme-dark .login-form h1 {
  color: #aeb5bb;
}
.login-theme-dark .login-form label span {
  color: #8b949c;
}
.login-theme-dark .login-form input {
  color: #e8eef4;
  border-color: #4a5660;
  background: transparent;
}
.login-theme-dark .login-form label:nth-of-type(1) input,
.login-theme-dark .login-form label:nth-of-type(2) input {
  color: #1b2730;
  border-color: #cdd8e3;
  background: #eaf1fc;
}
.login-theme-dark .login-code-field input {
  color: #e8eef4;
  border-color: #4a5660;
  background: transparent;
}
.login-theme-dark .login-theme {
  color: #d5dce1;
}
.admin-shell { min-height: 100vh; }
.admin-top { height: 38px; display: grid; grid-template-columns: 118px minmax(560px, 1fr) auto auto auto auto auto auto auto; gap: 10px; align-items: center; padding: 0 10px; color: #fff; background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%); border-bottom: 1px solid #1a9fd8; font-size: 13px; }
.admin-top strong { display: flex; align-items: center; min-width: 96px; }
.admin-top strong img { width: 82px; height: 32px; object-fit: contain; }
.marquee { min-width: 0; overflow: hidden; white-space: nowrap; color: #ffff00; font-weight: 700; }
.marquee { display: flex; align-items: center; gap: 14px; }
.marquee svg { flex: 0 0 auto; color: #ffd456; }
.marquee span {
  min-width: max-content;
  animation: admin-marquee 18s linear infinite;
}
@keyframes admin-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.admin-top button { height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); font-size: 13px; }
.admin-account-wrap {
  position: relative;
}
.admin-account-menu {
  position: absolute;
  top: 58px;
  right: 0;
  z-index: 90;
  width: 190px;
  padding: 8px 0;
  border: 1px solid #d5e2e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.admin-account-menu button {
  width: 100%;
  height: 42px;
  justify-content: flex-start;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  color: #52626a;
  background: #fff;
  font-size: 15px;
}
.admin-account-menu button:hover {
  color: #008fbd;
  background: #edf8fb;
}
.admin-nav { height: 66px; display: flex; align-items: stretch; gap: 0; padding-left: 16px; background: #fff; border-bottom: 1px solid #d6dde1; overflow-x: auto; box-shadow: 0 2px 9px rgba(0,0,0,.08); }
.admin-nav button { min-width: 92px; padding: 5px 7px; position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; color: #1f3038; background: #fff; border: 1px solid transparent; font-size: 13px; font-weight: 700; }
.admin-nav button.active { background: #dff3f6; border-color: #111; color: #008bbb; }
.nav-icon-wrap { width: 30px; height: 30px; position: relative; display: grid; place-items: center; }
.nav-icon { width: 29px; height: 29px; object-fit: contain; }
.nav-badge { position: absolute; top: -8px; right: -20px; max-width: 39px; max-height: 18px; object-fit: contain; }
.admin-body { padding: 10px 16px; }
.admin-shell:not(.active-home) .admin-body { padding: 14px 16px 28px; }
.audit-float {
  position: fixed;
  right: 0;
  top: 55px;
  z-index: 30;
  width: 78px;
  height: 52px;
  border-radius: 26px 0 0 26px;
  color: #fff;
  background: linear-gradient(180deg, #ff9a32, #ff6a1e);
  box-shadow: 0 5px 16px rgba(255,104,20,.35);
  font-weight: 900;
}
.home-console {
  height: calc(100vh - 132px);
  min-height: 760px;
  display: grid;
  grid-template-columns: 31% 34% minmax(620px, 1fr);
  gap: 8px;
  overflow-x: auto;
}
.game-control-card,
.live-chat-card,
.data-console-card {
  min-width: 0;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #d8e3e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.game-control-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.home-tabs {
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px 8px;
  gap: 0;
}
.home-tabs button {
  min-width: 92px;
  height: 38px;
  color: #8a949b;
  background: #eef1f6;
  font-size: 17px;
  font-weight: 700;
}
.home-tabs button:first-child { border-radius: 20px 0 0 20px; }
.home-tabs button:last-child { border-radius: 0 20px 20px 0; }
.home-tabs button.active {
  color: #fff;
  background: #0695bb;
}
.game-switch-list {
  padding: 4px 24px 0;
  overflow-y: auto;
}
.game-switch-list article {
  min-height: 86px;
  display: grid;
  grid-template-columns: 56px 1fr 72px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #526978;
}
.game-switch-list article.selected,
.game-switch-list article:hover { background: #edf1f6; }
.game-switch-list img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
}
.game-switch-list strong {
  display: block;
  margin-bottom: 4px;
  color: #526577;
  font-size: 18px;
  font-weight: 900;
}
.game-switch-list span {
  display: block;
  color: #67788b;
  font-size: 16px;
}
.toggle-pill {
  width: 58px;
  height: 32px;
  padding: 3px;
  border-radius: 18px;
  background: #c9cacc;
  transition: background .15s ease;
}
.toggle-pill i {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.toggle-pill.on { background: #0798bd; }
.toggle-pill.on i { transform: translateX(26px); }
.game-control-card footer {
  height: 92px;
  padding: 16px 24px;
  border-top: 1px solid #edf2f5;
  background: rgba(255,255,255,.96);
}
.game-control-card footer b {
  display: block;
  margin-bottom: 12px;
  color: #314955;
  font-size: 20px;
}
.game-control-card footer span { color: #008fbd; }
.game-control-card footer small {
  color: #687c88;
  font-size: 15px;
}
.live-chat-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 116px;
  overflow: hidden;
}
.chat-empty {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e3edf1;
}
.game-data-float {
  position: absolute;
  right: -42px;
  top: 47%;
  width: 98px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 18px;
  border-radius: 28px 0 0 28px;
  color: #fff;
  background: #0194bd;
  box-shadow: 0 4px 12px rgba(0,120,160,.28);
  font-size: 30px;
  font-weight: 800;
}
.game-data-float span {
  font-size: 16px;
  line-height: 18px;
  text-align: left;
}
.help-circle,
.down-circle {
  position: absolute;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  background: #0194bd;
  border: 4px solid #d8f1f8;
}
.help-circle { bottom: 90px; }
.down-circle {
  bottom: 36px;
  color: #9aa5ab;
  background: #fff;
  border-color: #eef3f5;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.chat-compose {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
}
.chat-compose textarea {
  width: 100%;
  height: 52px;
  padding: 10px 12px;
  resize: none;
  border: 1px solid #d8e2e7;
  border-radius: 4px;
  color: #54656e;
  outline: none;
  background: #f7fbfd;
}
.chat-compose button {
  width: 68px;
  height: 40px;
  border-radius: 20px;
  color: #fff;
  background: #0396bd;
  font-size: 18px;
  font-weight: 800;
}
.data-console-card {
  padding: 16px 12px 0;
  overflow: hidden;
}
.home-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.metric-card {
  min-height: 80px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.metric-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  background: #5f80ff;
}
.metric-dot.orange { background: #ffc167; }
.metric-dot.cyan { background: #65d5e6; }
.metric-dot.green { background: #55d483; }
.metric-dot.red { background: #ff464d; }
.metric-dot.rose { background: #f5606b; }
.metric-dot.purple { background: #9168f7; }
.metric-dot.pink { background: #eb53d5; }
.metric-dot.dark { background: #7f8a92; }
.metric-card span { color: #6a7b86; font-size: 15px; }
.metric-card b {
  display: block;
  margin-top: 6px;
  color: #101a20;
  font-size: 20px;
}
.game-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.game-data-table th {
  height: 42px;
  background: #e8f3f6;
  color: #52636d;
  font-weight: 800;
}
.game-data-table td {
  height: 43px;
  color: #8b8f92;
  text-align: center;
  border-bottom: 1px solid #eef3f5;
}
.game-data-table tbody tr:nth-child(even) { background: #f6f8f9; }
.page { min-height: calc(100vh - 150px); }
.page h2 { margin: 0 0 14px; font-size: 22px; color: #2e4f5b; }
.admin-shell:not(.active-home) .page h2 {
  height: 36px;
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  color: #284954;
  font-size: 21px;
  font-weight: 900;
}
.dashboard-banner { display: block; width: min(920px, 100%); height: auto; margin: 0 0 14px; border-radius: 5px; border: 1px solid #d3e2e8; background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-card { min-height: 92px; padding: 16px; border-radius: 6px; background: #fff; border: 1px solid #d8e2e7; box-shadow: 0 2px 5px rgba(0,0,0,.04); }
.stat-card span { color: #71838d; }
.stat-card b { display: block; margin-top: 12px; color: #0b89c3; font-size: 28px; }
.panel { margin-bottom: 12px; background: #fff; border: 1px solid #cbdce3; border-radius: 4px; overflow: hidden; }
.panel header { min-height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; background: #dff5fb; border-bottom: 1px solid #cbdce3; }
.panel h3 { margin: 0; font-size: 15px; color: #31515c; }
.panel table { width: 100%; border-collapse: collapse; }
.panel th, .panel td { padding: 10px 9px; border-bottom: 1px solid #e5eef2; text-align: center; white-space: nowrap; }
.panel th { background: #f1f8fa; color: #344e5a; font-weight: 900; }
.panel tbody tr:nth-child(even) { background: #fafcfd; }
.panel tbody tr:hover { background: #eef8fb; }
.panel button, .blue, .green, .red { min-height: 32px; padding: 0 12px; margin-right: 6px; border-radius: 4px; color: #fff; display: inline-flex; align-items: center; gap: 5px; background: #0b8bc7; }
.danger { min-height: 32px; padding: 0 14px; border-radius: 4px; color: #fff; background: #e95a61; font-weight: 700; }
.green { background: #22a956 !important; }
.red { background: #d94d5d !important; }
.form-grid { padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px 20px; }
.form-grid label { display: grid; gap: 6px; color: #526b75; }
.form-grid input, .form-grid select, .inline input { height: 36px; padding: 0 10px; border: 1px solid #ccd8df; border-radius: 4px; outline: none; background: #fff; }
.user-page { display: grid; grid-template-columns: 154px 1fr; gap: 10px; }
.side-tabs { min-height: 770px; padding: 28px 12px; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.side-tabs button {
  width: 100%;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 17px;
  color: #8b969c;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.09);
}
.side-tabs button.active { color: #fff; background: linear-gradient(90deg, #016fc0, #0fc7cd); box-shadow: 0 5px 14px rgba(0,143,198,.34); }
.user-main { min-width: 0; padding: 20px; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.subtabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.toolbar-line input, .toolbar-line select { width: 168px; height: 34px; padding: 0 10px; border: 1px solid #d8e3e8; border-radius: 4px; outline: none; background: #f7fbfd; color: #52646d; }
.toolbar-line select { width: 172px; }
.toolbar-line > button { min-height: 34px; padding: 0 18px; border-radius: 4px; color: #fff; background: #008bbb; }
.subtabs button { height: 34px; padding: 0 14px; border-radius: 4px; background: #008bbb; color: #fff; border: 1px solid #008bbb; font-weight: 800; }
.subtabs button.active { color: #fff; background: #008bbb; }
.switch-line { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: #334b54; }
.switch-line input { width: 52px; height: 26px; accent-color: #0797c6; }
.inline { display: flex; align-items: center; gap: 8px; color: #526b75; }
.inline input { width: 100px; }
.modal-form { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.tag { display: inline-block; min-width: 48px; padding: 4px 8px; border-radius: 4px; text-align: center; color: #fff; font-size: 13px; }
.green-tag { background: #20a75a; }
.blue-tag { background: #198ec7; }
.mini-avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 5px; color: #fff; background: #6b7c88; font-weight: 900; }
.online-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #3cc96b; }
.monitor-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.active-system .form-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
.active-system .panel,
.active-wallet .panel,
.active-apply .panel,
.active-reports .panel,
.active-activity .panel,
.active-monitor .panel,
.active-odds .panel,
.active-disk .panel,
.active-open .panel,
.active-kaijiang163 .panel,
.active-entertainment .panel,
.active-pretty .panel {
  box-shadow: 0 1px 4px rgba(34,70,86,.04);
}
.active-wallet .panel header,
.active-apply .panel header,
.active-activity .panel header,
.active-open .panel header,
.active-odds .panel header {
  background: #d9f2f8;
}
.active-reports .stats-grid,
.active-disk .stats-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}
.active-reports .stat-card,
.active-disk .stat-card,
.active-monitor .stat-card {
  min-height: 86px;
  border-color: #d4e4eb;
}
.active-kaijiang163 .web-feature,
.active-pretty .pretty-layout {
  min-height: 172px;
}
.tiny-input { width: 74px; height: 30px; padding: 0 8px; border: 1px solid #ccd8df; border-radius: 4px; outline: none; }
.odds-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.odds-fields label { display: inline-flex; align-items: center; gap: 4px; color: #526b75; font-size: 13px; }
.empty { min-height: 160px; display: grid; place-items: center; color: #7d8d95; }
.web-game-grid { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.web-game-grid button { min-height: 142px; padding: 14px 10px; border-radius: 6px; border: 1px solid #d6e1e7; background: #f9fcfd; display: grid; justify-items: center; align-content: center; gap: 6px; color: #31515c; }
.web-game-grid button:hover { border-color: #71bddd; box-shadow: 0 5px 14px rgba(20,110,150,.12); }
.web-game-grid img { width: 76px; height: 76px; object-fit: contain; }
.web-game-grid strong { font-size: 15px; }
.web-game-grid span { color: #7b8d96; font-size: 13px; }
.web-feature { padding: 22px; display: flex; gap: 18px; align-items: center; }
.web-feature > img { width: 72px; height: 72px; object-fit: contain; }
.web-feature h3 { margin: 0 0 8px; color: #2e4f5b; font-size: 20px; }
.web-feature p { margin: 0 0 14px; color: #60747c; }
.promo-grid { padding: 16px; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr); gap: 14px; align-items: center; }
.promo-grid img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 6px; border: 1px solid #d6e1e7; background: #f7fbfd; }
.pretty-layout { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; padding: 14px; }
.pretty-layout > img { width: 82px; height: 82px; object-fit: contain; margin: 10px auto; }

/* Reference-style rebuild for the three admin pages called out in QA. */
.active-home .admin-body {
  padding: 10px 20px 14px;
  overflow-x: auto;
}
.home-console {
  width: max(100%, 1680px);
  height: calc(100vh - 118px);
  min-height: 640px;
  grid-template-columns: 360px 440px minmax(720px, 1fr);
  gap: 8px;
  overflow: visible;
}
.game-control-card,
.live-chat-card,
.data-console-card {
  border-color: #d8e4ea;
  border-radius: 5px;
  box-shadow: 0 2px 9px rgba(35,70,85,.08);
}
.home-tabs {
  height: 58px;
  padding: 13px 44px 8px;
}
.home-tabs button {
  min-width: 86px;
  height: 36px;
  font-size: 16px;
}
.home-tabs button:first-child { border-radius: 18px 0 0 18px; }
.home-tabs button:last-child { border-radius: 0 18px 18px 0; }
.game-switch-list {
  padding: 8px 18px 0;
}
.game-switch-list article {
  min-height: 76px;
  grid-template-columns: 50px 1fr 58px;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 8px;
}
.game-switch-list img,
.service-dot {
  width: 48px;
  height: 48px;
}
.service-dot {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #11c7e0, #0589c3);
  font-size: 20px;
  font-weight: 900;
}
.game-switch-list strong {
  font-size: 17px;
  line-height: 22px;
}
.game-switch-list span {
  font-size: 14px;
}
.toggle-pill {
  width: 52px;
  height: 28px;
  border-radius: 16px;
}
.toggle-pill i {
  width: 22px;
  height: 22px;
}
.toggle-pill.on i {
  transform: translateX(24px);
}
.game-control-card footer {
  height: 84px;
  padding: 15px 18px;
}
.game-control-card footer b {
  margin-bottom: 12px;
  font-size: 18px;
}
.game-control-card footer small {
  font-size: 14px;
}
.live-chat-card {
  grid-template-rows: 1fr 96px;
}
.chat-compose {
  grid-template-columns: 1fr 78px;
  gap: 12px;
  padding: 16px;
}
.chat-compose textarea {
  height: 64px;
  font-size: 14px;
}
.chat-compose button {
  width: 70px;
  height: 40px;
  font-size: 16px;
}
.game-data-float {
  right: -38px;
  top: 46%;
  width: 84px;
  height: 50px;
  font-size: 24px;
}
.service-chat-placeholder {
  position: absolute;
  top: 42%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  color: #91a0a8;
}
.service-chat-placeholder strong {
  color: #596d78;
  font-size: 18px;
}
.data-console-card {
  padding: 14px 14px 0;
}
.home-metrics {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.metric-card {
  min-height: 72px;
  grid-template-columns: 36px 1fr;
  padding: 12px;
}
.metric-dot {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}
.metric-card span {
  font-size: 14px;
  line-height: 18px;
}
.metric-card b {
  font-size: 19px;
}
.game-data-table {
  font-size: 14px;
}
.game-data-table th {
  height: 40px;
}
.game-data-table td {
  height: 42px;
}

.reference-layout {
  display: grid;
  gap: 16px;
}
.reference-side {
  min-height: calc(100vh - 174px);
  padding: 38px 18px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(32,70,86,.08);
}
.reference-side button {
  width: 100%;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 24px;
  color: #8b969c;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0,0,0,.09);
  font-size: 17px;
  font-weight: 800;
}
.reference-side button.active {
  color: #fff;
  background: linear-gradient(90deg, #016fc0, #0fc7cd);
  box-shadow: 0 7px 18px rgba(0,143,198,.32);
}
.wallet-layout {
  grid-template-columns: 280px minmax(1700px, 1fr) 510px;
  align-items: stretch;
  min-width: 2540px;
  gap: 22px;
}
.wallet-wide-layout {
  grid-template-columns: 280px minmax(2200px, 1fr);
}
.wallet-main-card {
  min-height: calc(100vh - 250px);
  padding: 38px 30px 26px;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}
.wallet-toolbar {
  height: 70px;
  display: flex;
  align-items: flex-start;
}
.wallet-add {
  min-width: 190px;
  height: 58px;
  justify-content: center;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: #fff;
  background: #078dbc;
  font-size: 24px;
  font-weight: 500;
}
.wallet-tip {
  height: 68px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding-left: 34px;
  color: #41515a;
  border: 1px solid #b6f1a6;
  border-radius: 7px;
  background: #fbfff8;
  font-size: 24px;
}
.wallet-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d4e3ea;
  font-size: 23px;
}
.wallet-table th {
  height: 68px;
  color: #344e5a;
  background: #dfedf2;
  border-right: 1px solid #d4e3ea;
  font-weight: 900;
}
.wallet-table td {
  height: 68px;
  text-align: center;
  border-right: 1px solid #e6eef2;
  border-bottom: 1px solid #e6eef2;
}
.wallet-table button {
  min-width: 66px;
  height: 34px;
  border-radius: 4px;
  color: #fff;
  background: #078dbc;
}
.wallet-empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  color: #85929a;
  font-size: 18px;
}
.wallet-reference-page > h2 {
  display: none;
}
.wallet-help {
  max-height: calc(100vh - 174px);
  overflow: hidden;
  border: 1px solid #d4e3ea;
  background: #fff;
}
.wallet-help h4 {
  margin: 18px 22px 10px;
  color: #008fbd;
  font-size: 24px;
}
.wallet-help p {
  margin: 0 22px 8px;
  color: #33424a;
  font-size: 22px;
  line-height: 34px;
}
.wallet-help button {
  display: block;
  margin: 40px auto 0;
  color: #0794bd;
  background: transparent;
  font-size: 24px;
  font-weight: 800;
}
.wallet-help h3 {
  height: 58px;
  margin: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #048ab6;
  background: #dff2f7;
  font-size: 22px;
}
.system-layout {
  grid-template-columns: 206px minmax(1380px, 1fr);
  min-width: 1600px;
}
.system-main-card {
  min-height: calc(100vh - 174px);
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(32,70,86,.08);
}
.system-tabs {
  height: 58px;
  display: flex;
  align-items: flex-end;
  gap: 38px;
  padding: 0 28px;
  border-bottom: 1px solid #d6e2e8;
  position: relative;
}
.system-tabs button:not(.save-settings) {
  height: 58px;
  padding: 0 26px;
  color: #66757d;
  background: transparent;
  border-bottom: 4px solid transparent;
  font-size: 20px;
}
.system-tabs button.active {
  color: #0095c1;
  border-bottom-color: #0095c1;
}
.save-settings {
  position: absolute;
  right: 24px;
  top: 12px;
  height: 34px;
  padding: 0 18px;
  border-radius: 4px;
  color: #fff;
  background: #078dbc;
  font-weight: 800;
}
.setting-matrix {
  height: calc(100vh - 232px);
  min-height: 690px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 38px 22px 20px;
  gap: 14px;
}
.setting-matrix > div {
  border-top: 1px solid #d9e2e7;
  border-left: 1px solid #d9e2e7;
}
.setting-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 220px;
  align-items: center;
  border-right: 1px solid #d9e2e7;
  border-bottom: 1px solid #d9e2e7;
  color: #3f4f58;
}
.setting-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 18px;
}
.setting-row > span svg {
  color: #26a4cf;
}
.setting-row input,
.setting-row select,
.setting-row textarea {
  width: calc(100% - 16px);
  min-height: 36px;
  margin: 0 8px;
  padding: 0 12px;
  border: 1px solid #d1dce2;
  border-radius: 5px;
  color: #8a969c;
  background: #f7fafb;
  outline: none;
  font-size: 17px;
}
.setting-row textarea {
  height: 122px;
  padding: 10px 12px;
  resize: none;
}
.setting-row:has(textarea) {
  min-height: 140px;
}
.avatar-upload {
  display: flex;
  justify-content: center;
  padding: 8px;
}
.avatar-upload-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: #0d91b5;
  background: transparent;
  cursor: pointer;
}
.avatar-upload-button:disabled {
  cursor: wait;
  opacity: .65;
}
.avatar-upload img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  opacity: .68;
}
.avatar-upload-button img {
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
}
.avatar-file-input {
  display: none;
}
.time-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-right: 8px;
}
.time-pair input {
  width: 100%;
  margin: 0;
}
.mj-switch {
  width: 76px;
  height: 34px;
  margin-left: auto;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 2px 4px;
  border-radius: 18px;
  color: #fff;
  background: #c8cacc;
  font-size: 14px;
  font-weight: 800;
}
.mj-switch span {
  width: 38px;
  text-align: center;
}
.mj-switch i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.mj-switch.on {
  flex-direction: row-reverse;
  background: #0797c0;
}
.offline-channel {
  padding: 22px;
}

/* Full admin reference shell pass: smaller scale and matching list/table pages. */
.admin-top {
  height: 40px;
  grid-template-columns: 128px minmax(360px, 1fr) auto auto auto auto auto auto auto;
  font-size: 14px;
}
.admin-top strong img { width: 88px; height: 34px; }
.admin-nav {
  height: 70px;
  padding-left: 26px;
}
.admin-nav button {
  min-width: 92px;
  padding: 5px 6px;
  font-size: 14px;
}
.nav-icon-wrap { width: 32px; height: 32px; }
.nav-icon { width: 30px; height: 30px; }
.audit-float { top: 54px; width: 72px; height: 48px; }
.active-home .admin-body { padding: 12px 18px 16px; overflow-x: auto; }
.home-console {
  width: 100%;
  min-width: 1420px;
  height: calc(100vh - 124px);
  min-height: 690px;
  grid-template-columns: 390px 470px minmax(520px, 1fr);
}
.home-tabs { height: 66px; padding: 16px 54px 8px; }
.home-tabs button { min-width: 96px; height: 42px; font-size: 20px; }
.game-switch-list { padding: 8px 28px 0; }
.game-switch-list article { min-height: 88px; grid-template-columns: 58px 1fr 68px; padding: 10px 16px; }
.game-switch-list img, .service-dot { width: 56px; height: 56px; }
.game-switch-list strong { font-size: 20px; line-height: 26px; }
.game-switch-list span { font-size: 17px; }
.toggle-pill { width: 62px; height: 34px; }
.toggle-pill i { width: 28px; height: 28px; }
.toggle-pill.on i { transform: translateX(28px); }
.game-control-card footer { height: 106px; padding: 18px 22px; }
.game-control-card footer b { margin-bottom: 14px; font-size: 20px; }
.game-control-card footer small { font-size: 15px; }
.live-chat-card { grid-template-rows: 1fr 108px; }
.chat-compose { grid-template-columns: 1fr 82px; padding: 16px; }
.chat-compose textarea { height: 72px; font-size: 16px; }
.chat-compose button { width: 76px; height: 46px; font-size: 18px; }
.home-metrics { grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; }
.metric-card { min-height: 76px; grid-template-columns: 38px 1fr; padding: 12px; }
.metric-dot { width: 36px; height: 36px; }
.metric-card span { font-size: 15px; line-height: 19px; }
.metric-card b { font-size: 22px; }
.game-data-table { font-size: 15px; }
.game-data-table th { height: 44px; }
.game-data-table td { height: 44px; }

.admin-reference-page .reference-layout,
.wallet-reference-page .reference-layout,
.system-reference-page .reference-layout {
  gap: 14px;
}
.two-col-layout {
  grid-template-columns: 206px minmax(1120px, 1fr);
  min-width: 1340px;
}
.reference-main {
  min-height: calc(100vh - 154px);
  padding: 22px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(32,70,86,.08);
}
.reference-side {
  min-height: calc(100vh - 154px);
  padding: 34px 16px;
}
.reference-side button {
  height: 40px;
  margin-bottom: 18px;
  font-size: 16px;
}
.game-side-scroll {
  overflow-y: auto;
}
.admin-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.admin-filter-bar input,
.admin-filter-bar select {
  width: 166px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d6e0e6;
  border-radius: 5px;
  color: #87939b;
  background: #f8fbfc;
  outline: none;
}
.admin-filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d4e57;
  font-size: 15px;
}
.admin-filter-bar button,
.date-quick-bar button,
.reference-table button,
.quota-actions button {
  min-height: 38px;
  padding: 0 22px;
  border-radius: 5px;
  color: #fff;
  background: #078dbc;
  font-weight: 800;
}
.admin-filter-bar .spacer { flex: 1 1 auto; }
.date-quick-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.date-quick-bar button {
  background: #37ad45;
}
.date-quick-bar label,
.report-check {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344952;
  font-size: 16px;
}
.date-quick-bar input,
.report-check input {
  width: 24px;
  height: 24px;
  accent-color: #078dbc;
}
.required-mark {
  color: #e74c52;
  font-weight: 800;
}
.return-report-tabs {
  margin-bottom: 18px;
}
.report-pcRebate .admin-filter-bar {
  gap: 10px;
}
.report-pcRebate .admin-filter-bar input {
  width: 270px;
}
.report-pcRebate .admin-filter-bar input:first-child {
  width: 265px;
}
.report-pcRebate .admin-filter-bar input:nth-of-type(5),
.report-pcRebate .admin-filter-bar input:nth-of-type(6) {
  width: 265px;
}
.report-pcRebate .reference-table th:first-child,
.report-pcRebate .reference-table td:first-child {
  width: 58px;
}
.report-unsettled .admin-filter-bar .spacer {
  flex: 1 1 auto;
}
.report-user .admin-filter-bar input,
.report-user .admin-filter-bar select {
  width: 244px;
}
.report-user .admin-filter-bar input:first-child {
  width: 270px;
}
.report-user .admin-filter-bar input:nth-of-type(2) {
  width: 246px;
}
.reference-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dce8ed;
  table-layout: auto;
}
.reference-table th {
  height: 50px;
  padding: 0 12px;
  color: #2d3f48;
  background: #e5f2f6;
  border: 1px solid #dce8ed;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}
.reference-table td {
  height: 48px;
  padding: 8px 10px;
  color: #344952;
  border: 1px solid #e5edf1;
  text-align: center;
  white-space: nowrap;
}
.reference-table tbody tr:nth-child(even) { background: #f7fafb; }
.reference-table .green,
.reference-table .red { margin-right: 6px; }
.mj-empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #6d7c84;
  font-size: 17px;
}
.mj-empty img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  opacity: .18;
}
.reference-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
}
.reference-footer .mj-pager { margin-left: auto; }
.mj-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #41535d;
}
.mj-pager select,
.mj-pager input,
.mj-pager button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d9e1e7;
  border-radius: 6px;
  color: #71808a;
  background: #f8fbfc;
}
.mj-pager input { width: 78px; text-align: center; }
.notice-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #ffdf95;
  border-radius: 5px;
  color: #605447;
  background: #fffaf0;
}
.reference-tabs {
  height: 50px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #d9e3e8;
}
.reference-tabs button {
  height: 48px;
  padding: 0 24px;
  color: #63727a;
  background: #f8fbfc;
  border: 1px solid #d9e3e8;
  border-bottom: 0;
  font-size: 18px;
}
.reference-tabs button.active {
  color: #0794bd;
  background: #fff;
}
.activity-main {
  padding-top: 30px;
}
.activity-main .reference-tabs {
  height: 68px;
  align-items: flex-end;
}
.activity-main .reference-tabs button {
  min-width: 244px;
  height: 64px;
  padding: 0 34px;
  font-size: 26px;
  font-weight: 500;
}
.activity-main .wallet-toolbar {
  height: 64px;
  align-items: flex-start;
}
.activity-main .wallet-add {
  height: 58px;
  min-width: 190px;
  justify-content: center;
  padding: 0 30px;
  border-radius: 7px;
  font-size: 24px;
  font-weight: 500;
}
.activity-main .banner-toolbar {
  height: 70px;
}
.activity-main .wallet-tip {
  height: 68px;
  margin-bottom: 16px;
  padding-left: 34px;
  border-radius: 7px;
  font-size: 24px;
}
.activity-table {
  table-layout: fixed;
}
.activity-table th {
  height: 68px;
  font-weight: 600;
}
.activity-table td {
  height: 188px;
  font-size: 24px;
  white-space: normal;
}
.promo-table th:nth-child(1),
.promo-table td:nth-child(1) { width: 92px; }
.promo-table th:nth-child(2),
.promo-table td:nth-child(2) { width: 360px; }
.promo-table th:nth-child(3),
.promo-table td:nth-child(3) { width: 760px; }
.promo-table th:nth-child(4),
.promo-table td:nth-child(4) { width: 760px; }
.promo-table th:nth-child(5),
.promo-table td:nth-child(5) { width: 360px; }
.promo-table th:nth-child(6),
.promo-table td:nth-child(6) { width: 270px; }
.promo-record-page {
  padding-top: 38px;
}
.promo-record-page .admin-filter-bar input,
.promo-record-page .admin-filter-bar select {
  width: 244px;
}
.promo-record-page .admin-filter-bar input:first-child,
.promo-record-page .admin-filter-bar input:nth-of-type(2) {
  width: 266px;
}
.promo-record-table th:first-child,
.promo-record-table td:first-child {
  width: 58px;
}
.promo-record-table th {
  min-width: 128px;
}
.promo-record-table td {
  height: 270px;
}
.banner-table th:nth-child(1),
.banner-table td:nth-child(1) { width: 110px; }
.banner-table th:nth-child(2),
.banner-table td:nth-child(2) { width: 640px; }
.banner-table th:nth-child(3),
.banner-table td:nth-child(3) { width: 640px; }
.banner-table th:nth-child(4),
.banner-table td:nth-child(4) { width: 640px; }
.banner-table th:nth-child(5),
.banner-table td:nth-child(5) { width: 640px; }
.activity-banner {
  width: 548px;
  height: 152px;
  object-fit: fill;
  background: #fff;
  border-radius: 12px;
}
.carousel-banner {
  width: 518px;
  height: 176px;
}
.promo-banner {
  width: 551px;
  height: 201px;
}
.official-mark {
  color: #ff2323;
}
.activity-main .reference-table .blue,
.activity-main .reference-table .red,
.activity-main .reference-table .green {
  min-width: 74px;
  min-height: 58px;
  justify-content: center;
  margin-right: 0;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 24px;
  font-weight: 500;
}
.activity-main .reference-table .red {
  background: #f05252 !important;
}
.activity-main .reference-table button:disabled {
  color: #bfc7cc;
  background: #f4f7f9 !important;
  border: 1px solid #dce5ea;
  cursor: not-allowed;
}
.activity-main .reference-table button + button {
  margin-left: 10px;
}
.invite-tabs {
  margin-bottom: 38px;
}
.invite-record-table th:first-child,
.invite-record-table td:first-child {
  width: 58px;
}
.invite-record-table th {
  min-width: 145px;
}
.invite-record-table th:nth-child(2),
.invite-record-table td:nth-child(2) {
  width: 88px;
  min-width: 88px;
}
.invite-manage-form {
  padding: 26px 0 0 16px;
  color: #344952;
  font-size: 24px;
}
.invite-manage-form label {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.invite-manage-form label > span {
  width: 260px;
  text-align: right;
}
.invite-manage-form input[type="text"],
.invite-manage-form label > input:not([type]) {
  width: 520px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  color: #8a969d;
  background: #f8fbfc;
  font-size: 23px;
}
.invite-manage-form input[type="radio"] {
  width: 30px;
  height: 30px;
  accent-color: #078dbc;
}
.invite-manage-form em {
  font-style: normal;
}
.invite-manage-form .image-row {
  min-height: 270px;
}
.invite-manage-form .image-row img {
  width: 728px;
  height: 263px;
  object-fit: fill;
  border-radius: 12px;
}
.invite-manage-form .upload-row {
  align-items: flex-start;
  padding-top: 20px;
}
.invite-manage-form .upload-row button {
  width: 166px;
  height: 166px;
  display: grid;
  place-items: center;
  color: #3f4d55;
  border: 1px dashed #d2dde4;
  border-radius: 0;
  background: #fff;
}
.invite-manage-form > strong {
  display: block;
  margin: 22px 0 22px 16px;
  font-weight: 500;
}
.invite-rule-table input {
  width: 305px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  color: #8a969d;
  background: #f8fbfc;
  font-size: 23px;
}
.invite-rule-table td {
  height: 78px;
}
.invite-form-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 38px;
}
.invite-form-actions button {
  min-width: 166px;
  height: 58px;
  color: #fff;
  border-radius: 7px;
  background: #078dbc;
  font-size: 23px;
}
.signin-manage-form {
  padding: 16px 0 0 16px;
  color: #344952;
  font-size: 24px;
}
.signin-manage-form label {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.signin-manage-form label > span {
  width: 235px;
  text-align: right;
}
.signin-manage-form label > input:not([type]) {
  width: 520px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  color: #8a969d;
  background: #f8fbfc;
  font-size: 23px;
}
.signin-manage-form input[type="radio"] {
  width: 30px;
  height: 30px;
  accent-color: #078dbc;
}
.signin-manage-form em {
  font-style: normal;
}
.signin-manage-form .upload-row {
  align-items: flex-start;
  padding-top: 20px;
}
.signin-manage-form .upload-row button {
  width: 166px;
  height: 166px;
  display: grid;
  place-items: center;
  color: #3f4d55;
  border: 1px dashed #d2dde4;
  border-radius: 0;
  background: #fff;
}
.signin-manage-form .image-row {
  min-height: 270px;
}
.signin-manage-form .image-row img {
  width: 728px;
  height: 263px;
  object-fit: fill;
  border-radius: 12px;
}
.signin-manage-form > strong {
  display: block;
  margin: 22px 0 22px 16px;
  font-weight: 500;
}
.signin-rule-table td {
  height: 86px;
}
.signin-rule-table td span {
  margin-right: 20px;
}
.signin-rule-table input {
  width: 305px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  color: #8a969d;
  background: #f8fbfc;
  font-size: 23px;
}
.signin-save {
  padding-top: 8px;
}
.red-tabs {
  margin-bottom: 26px;
}
.red-report-card {
  margin: 0 20px 0 20px;
  padding: 38px 32px 22px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(32,70,86,.09);
}
.red-report-table th {
  min-width: 150px;
}
.red-report-table th:first-child {
  min-width: 390px;
}
.red-send-form {
  padding: 22px 0 0 16px;
  color: #344952;
  font-size: 24px;
}
.red-send-form label {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.red-send-form label > span {
  width: 210px;
  text-align: right;
}
.red-send-form input,
.red-send-form select {
  width: 520px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  color: #8a969d;
  background: #f8fbfc;
  font-size: 23px;
}
.reference-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #9aa5aa;
}
.monitor-main { overflow-x: auto; }
.monitor-summary {
  width: 100%;
  min-width: 2600px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 18px;
  border: 1px solid #d9e3e8;
  border-radius: 4px;
  color: #3d4d55;
  font-size: 23px;
}
.monitor-summary i {
  flex: 1 1 auto;
}
.monitor-summary button {
  min-height: 42px;
  padding: 0 18px;
  color: #3d4d55;
  border: 1px solid #d9e3e8;
  border-radius: 7px;
  background: #fff;
  font-size: 21px;
}
.monitor-summary select {
  width: 126px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #d9e3e8;
  border-radius: 7px;
  color: #8a949a;
  background: #f7fafb;
  font-size: 21px;
}
.monitor-grid-board {
  width: 100%;
  min-width: 2600px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin-top: 18px;
  border-top: 1px solid #dce6eb;
  border-left: 1px solid #dce6eb;
}
.monitor-grid-board.time-board {
  min-width: 2540px;
}
.monitor-grid-board.race-board {
  min-width: 2720px;
}
.monitor-col {
  flex: 0 0 296px;
  width: 296px;
  border-right: 1px solid #dce6eb;
}
.monitor-col.small {
  flex-basis: 280px;
  width: 280px;
}
.monitor-col.race-col {
  flex-basis: 215px;
  width: 215px;
}
.monitor-col.race-sum-col {
  flex-basis: 228px;
  width: 228px;
  max-height: 1082px;
  overflow-y: auto;
}
.monitor-col h3 {
  height: 62px;
  margin: 0;
  display: grid;
  place-items: center;
  background: #f6f8f9;
  border-bottom: 1px solid #dce6eb;
  font-size: 24px;
}
.monitor-col label {
  height: 54px;
  display: grid;
  grid-template-columns: 70px 170px;
  align-items: center;
  padding: 5px 12px;
  border-bottom: 1px solid #e8eef2;
  gap: 6px;
}
.monitor-col.race-col label {
  grid-template-columns: 66px 104px;
  justify-content: center;
}
.monitor-col.race-sum-col label {
  grid-template-columns: 80px 94px;
}
.monitor-col.small label {
  grid-template-columns: 94px 158px;
}
.monitor-col label > span:not(.result-ball) {
  overflow: hidden;
  text-align: right;
  white-space: nowrap;
  color: #344952;
  font-size: 22px;
}
.monitor-col input {
  height: 42px;
  width: 100%;
  min-width: 0;
  border: 1px solid #d5dde2;
  border-radius: 7px;
  text-align: center;
  color: #666;
  background: #fff;
  font-size: 22px;
}
.result-ball {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  border: 5px solid #f5be20;
  border-radius: 50%;
  color: #222;
  background: #fff;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.result-ball.c1 { border-color: #f6bd18; }
.result-ball.c2 { border-color: #2c83e6; }
.result-ball.c3 { border-color: #e23327; }
.result-ball.c4 { border-color: #cc3ac4; }
.result-ball.c5 { border-color: #ff8b19; }
.result-ball.c6 { border-color: #29aa54; }
.result-ball.c7 { border-color: #9d2118; }
.result-ball.c8 { border-color: #48484d; }
.result-ball.c9 { border-color: #12a6d3; }
.result-ball.c0 { border-color: #aee246; }
.rank-box {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.rank-box.r1 { color: #3a3a3a; background: #ffea00; }
.rank-box.r2 { background: #0a94e8; }
.rank-box.r3 { background: #424242; }
.rank-box.r4 { background: #ff7900; }
.rank-box.r5 { color: #278b95; background: #67eef2; }
.rank-box.r6 { background: #4425f2; }
.rank-box.r7 { background: #bfc4ca; }
.rank-box.r8 { background: #fa250f; }
.rank-box.r9 { background: #760f09; }
.rank-box.r10 { background: #10ba25; font-size: 20px; }
.quota-actions {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.quota-table input,
.quota-table .tiny-input {
  width: 118px;
  height: 34px;
  border: 1px solid #d6dee3;
  border-radius: 6px;
  text-align: center;
  color: #88949b;
  background: #f7fafb;
}
.quota-table span { margin-left: 8px; color: #9ba3a8; }
.disk-layout {
  display: grid;
  grid-template-columns: 640px minmax(2050px, 1fr);
  gap: 20px;
  min-width: 2700px;
}
.disk-side {
  min-height: calc(100vh - 250px);
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: none;
}
.disk-side > label,
.disk-side > p,
.disk-side > .radio-line {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  border-bottom: 1px solid #e6edf1;
  color: #344952;
  font-size: 24px;
}
.disk-side input {
  height: 58px;
  min-width: 120px;
  border: 1px solid #d6dee3;
  border-radius: 7px;
  text-align: center;
  color: #9aa3a8;
  background: #f7fafb;
  font-size: 23px;
}
.disk-side > label:first-child input {
  width: 300px;
  min-width: 300px;
}
.disk-side > label:first-child button {
  min-width: 86px;
  height: 58px;
  padding: 0 20px;
  border-radius: 7px;
  color: #fff;
  background: #078dbc;
  font-size: 23px;
}
.disk-side small {
  display: block;
  padding: 18px 20px;
  color: #f04343;
  border-bottom: 10px solid #eef2f4;
  font-size: 20px;
  line-height: 30px;
}
.disk-side .radio-line {
  gap: 18px;
}
.disk-side .radio-line label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.disk-side .radio-line input[type="radio"] {
  width: 28px;
  min-width: 28px;
  height: 28px;
  accent-color: #078dbc;
}
.disk-side .radio-line > input {
  width: 72px;
  min-width: 72px;
  height: 58px;
}
.disk-side h3 {
  height: 100px;
  margin: 0;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #e6edf1;
  color: #344952;
  font-size: 24px;
  font-weight: 500;
}
.disk-game {
  height: 92px;
  display: grid;
  grid-template-columns: 120px 155px 145px 150px;
  align-items: center;
  justify-content: center;
  padding: 0 38px;
  border-bottom: 1px solid #e6edf1;
  color: #344952;
  font-size: 24px;
  text-align: center;
}
.disk-game-head {
  height: 70px;
  background: #fff;
  font-weight: 500;
}
.disk-game .toggle-pill {
  margin: 0 auto;
}
.disk-game em {
  color: #89949b;
  font-style: normal;
}
.green-text { color: #18a83a; }
.red-text { color: #ff2b2b; }
.open-table .result-ball {
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.system-subpage {
  padding: 22px;
}
.system-subpage .reference-table {
  margin-top: 0;
}
.system-layout {
  grid-template-columns: 206px minmax(1080px, 1fr);
  min-width: 1300px;
}
.setting-matrix {
  min-height: 620px;
}
.setting-row {
  grid-template-columns: minmax(170px, 1fr) 190px;
}
.setting-row > span { font-size: 16px; }
.setting-row input, .setting-row select, .setting-row textarea { font-size: 15px; }

.wide-inline-input {
  width: 360px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d6dee3;
  border-radius: 5px;
  color: #52646d;
  background: #f8fbfc;
}
.small-banner {
  width: 180px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}
.entertainment-table img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.rule-editor {
  width: 100%;
  min-height: 260px;
  padding: 16px;
  border: 1px solid #d9e3e8;
  border-radius: 5px;
  color: #40545e;
  line-height: 1.8;
  resize: vertical;
}

/* Direct 1:1 calibration against the provided 3024px-wide screenshots. */
.active-home .admin-body {
  padding: 14px 28px 16px;
  overflow-x: auto;
}
.home-console {
  width: 100%;
  min-width: 1960px;
  height: calc(100vh - 134px);
  min-height: 760px;
  grid-template-columns: 465px 520px minmax(980px, 1fr);
  gap: 12px;
}
.home-tabs {
  height: 78px;
  padding: 24px 68px 10px;
}
.home-tabs button {
  min-width: 110px;
  height: 46px;
  font-size: 20px;
}
.game-switch-list {
  padding: 8px 12px 0;
}
.game-switch-list article {
  min-height: 98px;
  grid-template-columns: 64px 1fr 78px;
  gap: 18px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.game-switch-list img,
.service-dot {
  width: 62px;
  height: 62px;
}
.game-switch-list strong {
  font-size: 20px;
  line-height: 26px;
}
.game-switch-list span {
  font-size: 17px;
}
.toggle-pill {
  width: 68px;
  height: 36px;
}
.toggle-pill i {
  width: 30px;
  height: 30px;
}
.toggle-pill.on i {
  transform: translateX(32px);
}
.game-control-card footer {
  height: 126px;
  padding: 24px;
}
.game-control-card footer b {
  font-size: 21px;
}
.game-control-card footer small {
  font-size: 16px;
}
.live-chat-card {
  grid-template-rows: 1fr 122px;
}
.chat-compose {
  grid-template-columns: 1fr 92px;
  padding: 18px;
}
.chat-compose textarea {
  height: 82px;
  font-size: 17px;
}
.chat-compose button {
  width: 86px;
  height: 50px;
  font-size: 18px;
}
.home-metrics {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  padding: 18px 18px 16px;
}
.metric-card {
  min-height: 92px;
  grid-template-columns: 48px 1fr;
  padding: 14px;
}
.metric-dot {
  width: 42px;
  height: 42px;
}
.metric-card span {
  font-size: 16px;
  line-height: 20px;
}
.metric-card b {
  font-size: 24px;
}
.game-data-table {
  width: calc(100% - 36px);
  margin: 0 18px;
  font-size: 16px;
}
.game-data-table th {
  height: 54px;
}
.game-data-table td {
  height: 54px;
}

body { overflow: hidden; }
.admin-shell { min-width: 1320px; min-height: 100vh; }
.admin-login { min-height: 100vh; }
.admin-modal-mask { width: 100vw; height: 100vh; }
.admin-toast { transform: translateX(-50%); }
.admin-shell.active-home .home-console {
  height: calc(100vh - 142px);
  min-height: calc(100vh - 142px);
}
.admin-shell.active-home .live-chat-card,
.admin-shell.active-home .chat-empty {
  overflow: visible;
}
.admin-shell.active-home .game-control-card,
.admin-shell.active-home .live-chat-card,
.admin-shell.active-home .data-console-card {
  height: 100%;
}
.home-console.data-closed {
  grid-template-columns: 465px 520px;
  min-width: 1010px;
}
.home-console.data-closed .data-console-card {
  display: none;
}
.admin-shell.active-home .game-data-float {
  right: -82px;
  top: 47%;
  width: 132px;
  height: 66px;
  z-index: 8;
  gap: 7px;
  padding: 0 12px 0 20px;
  justify-content: flex-start;
}
.admin-shell.active-home .game-data-float em {
  font-style: normal;
  font-size: 36px;
  line-height: 1;
}
.admin-shell.active-home .game-data-float span {
  display: block;
  width: 56px;
  font-size: 18px;
  line-height: 20px;
  white-space: normal;
}
.admin-shell.active-home .home-console.data-closed .game-data-float {
  right: -98px;
}
.metric-dot {
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.metric-dot img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.metric-dot.blue { background: #1494c5; }
.metric-dot.orange { background: #ffc166; }
.metric-dot.cyan { background: #5bcddd; }
.metric-dot.green { background: #27ad5d; }
.metric-dot.red { background: #db4b5d; }
.metric-dot.rose { background: #f85e69; }
.metric-dot.purple { background: #8a63ee; }
.metric-dot.pink { background: #df4bd1; }
.metric-dot.dark { background: #89949a; }

/* Screenshot pages: exact desktop shell density from the 3024x1730 captures. */
.admin-top {
  height: 78px;
  grid-template-columns: 206px minmax(560px, 1fr) auto auto auto auto auto auto auto;
  gap: 20px;
  padding: 0 44px 0 42px;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%);
  border-bottom: 1px solid #1a9fd8;
  border-radius: 0 0 22px 22px;
  font-size: 23px;
}
.admin-top strong img { width: 166px; height: 60px; }
.marquee {
  justify-content: center;
  gap: 18px;
  color: #fff200;
  font-size: 24px;
}
.admin-top span:nth-of-type(3) {
  color: #fff200;
  font-weight: 800;
}
.admin-top button {
  height: 52px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 22px;
}
.admin-top button:nth-of-type(1) { background: #18c7e1; }
.admin-top button:nth-of-type(2) { background: #08bd24; }
.admin-top button:nth-of-type(3),
.admin-top button:nth-of-type(4) {
  width: 54px;
  padding: 0;
  justify-content: center;
  background: transparent;
  border: 0;
}
.admin-nav {
  height: 136px;
  padding-left: 42px;
  border-bottom: 0;
  box-shadow: none;
}
.admin-nav button {
  min-width: 142px;
  padding: 18px 8px 13px;
  gap: 8px;
  font-size: 24px;
}
.admin-nav button.active {
  background: #d9f4fb;
  border-color: transparent;
}
.nav-icon-wrap { width: 50px; height: 48px; }
.nav-icon { width: 46px; height: 46px; }
.nav-badge {
  top: -9px;
  right: -32px;
  max-width: 55px;
  max-height: 24px;
}
.audit-float {
  top: 158px;
  width: 142px;
  height: 78px;
  border-radius: 40px 0 0 40px;
  font-size: 24px;
}
.admin-body {
  padding: 18px 36px 22px;
  background: #eef1f3;
}
.admin-shell:not(.active-home) .admin-body {
  padding: 18px 36px 22px;
}
.two-col-layout {
  grid-template-columns: 280px minmax(2400px, 1fr);
  min-width: 2700px;
  gap: 26px;
}
.reference-main {
  min-height: calc(100vh - 250px);
  padding: 38px 30px 26px;
  border-radius: 9px;
  box-shadow: none;
}
.reference-side {
  min-height: calc(100vh - 250px);
  padding: 52px 14px 22px;
  border-radius: 10px;
  box-shadow: none;
  overflow-y: auto;
}
.reference-side button {
  height: 58px;
  margin-bottom: 30px;
  border-radius: 30px;
  color: #929ba0;
  font-size: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.reference-side button.active {
  background: linear-gradient(90deg, #017bc2, #0ec5cc);
}
.admin-filter-bar {
  gap: 16px 22px;
  margin-bottom: 18px;
}
.admin-filter-bar input,
.admin-filter-bar select {
  width: 268px;
  height: 58px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 24px;
}
.admin-filter-bar button,
.date-quick-bar button,
.reference-table button,
.quota-actions button {
  min-height: 58px;
  padding: 0 34px;
  border-radius: 7px;
  font-size: 23px;
}
.date-quick-bar {
  gap: 20px;
  margin-bottom: 16px;
}
.date-quick-bar button {
  min-width: 116px;
  background: #35aa45;
}
.reference-table {
  font-size: 23px;
}
.reference-table th {
  height: 68px;
  padding: 0 20px;
  background: #e4f2f6;
  font-size: 23px;
}
.reference-table td {
  height: 68px;
  padding: 10px 18px;
}
.mj-empty {
  min-height: 620px;
  gap: 12px;
  font-size: 24px;
}
.mj-empty img {
  width: 110px;
  height: 110px;
}
.reference-footer {
  min-height: 118px;
  padding-top: 26px;
  font-size: 24px;
}
.notice-pill {
  min-height: 62px;
  padding: 0 20px;
  font-size: 23px;
}
.mj-pager {
  gap: 18px;
  font-size: 23px;
}
.mj-pager select,
.mj-pager input,
.mj-pager button {
  height: 58px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 22px;
}
.quota-actions {
  height: 74px;
  gap: 24px;
  margin-bottom: 24px;
}
.quota-table input,
.quota-table .tiny-input {
  width: 170px;
  height: 46px;
  border-radius: 8px;
  font-size: 23px;
}
.quota-table span {
  margin-left: 10px;
}
.quota-limit-head {
  min-width: 380px;
}
.quota-limit-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #273943;
}
.quota-limit-head label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.quota-limit-head label input {
  width: 174px;
  height: 48px;
}
.quota-limit-head em {
  color: #8e969b;
  font-style: normal;
}
.user-reference-main {
  padding-top: 34px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
}
.robot-tabs {
  height: 68px;
  align-items: stretch;
  margin-bottom: 0;
}
.robot-tabs button {
  min-width: 190px;
  height: 68px;
  border-radius: 0;
  font-size: 24px;
}
.robot-tabs button.active {
  color: #078dbc;
  background: #fff;
}
.user-reference-main .admin-filter-bar {
  min-height: 128px;
  padding: 38px 34px 22px;
  margin: 0;
  border: 1px solid #d9e3e8;
  border-bottom: 0;
}
.user-agent-tabs {
  margin-bottom: 22px;
}
.user-agent-tabs button {
  min-width: 190px;
}
.user-agent-table th:first-child,
.user-agent-table td:first-child {
  width: 110px;
}
.sub-account-toolbar {
  min-height: 86px;
  margin-bottom: 0;
}
.sub-account-table th,
.sub-account-table td {
  width: 25%;
}
.user-reference-main .mj-switch {
  margin: 0;
}
.robot-table th {
  height: 66px;
}
.robot-table td {
  height: 66px;
}
.robot-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
}
.robot-table button {
  margin-right: 12px;
  padding: 0 20px;
}
.user-reference-main .reference-footer {
  justify-content: flex-end;
  border: 1px solid #dce8ed;
  border-top: 0;
  padding-right: 32px;
}
.user-reference-main .reference-footer .mj-pager {
  margin-left: 0;
}
.user-reference-main .reference-footer > .blue {
  min-height: 58px;
  padding: 0 30px;
  border-radius: 7px;
  color: #fff;
  background: #078dbc;
  font-size: 22px;
  font-weight: 800;
}
.user-list-table th {
  white-space: nowrap;
}
.toolbar-line .toolbar-spacer {
  flex: 1 1 auto;
}
.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #344952;
}
.switch-line input {
  appearance: none;
  width: 82px;
  height: 40px;
  position: relative;
  border: 0;
  border-radius: 22px;
  background: #d9dde0;
  cursor: pointer;
}
.switch-line input::after {
  content: "";
  width: 34px;
  height: 34px;
  position: absolute;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: left .15s ease;
}
.switch-line input:checked {
  background: #078dbc;
}
.switch-line input:checked::after {
  left: 44px;
}
.manual-label {
  font-size: 23px;
  color: #344952;
}
.toolbar-line .manual-select {
  width: 126px;
}
.system-layout {
  grid-template-columns: 280px minmax(2400px, 1fr);
  min-width: 2700px;
  gap: 26px;
}
.system-reference-page > h2 {
  display: none;
}
.system-main-card {
  min-height: calc(100vh - 250px);
  border-radius: 9px;
  box-shadow: none;
}
.system-tabs {
  height: 82px;
  gap: 62px;
  padding: 0 36px;
}
.system-tabs button:not(.save-settings) {
  height: 82px;
  padding: 0 34px;
  font-size: 30px;
  border-bottom-width: 5px;
}
.save-settings {
  display: none;
}
.system-subpage {
  padding: 26px 30px;
}
.system-subpage .wallet-toolbar {
  height: 66px;
}
.system-subpage .wallet-add {
  min-width: 164px;
  height: 58px;
  justify-content: center;
  border-radius: 7px;
  font-size: 24px;
  font-weight: 500;
}
.system-subpage .wallet-tip {
  height: 68px;
  margin-bottom: 16px;
  padding-left: 34px;
  border-radius: 7px;
  font-size: 24px;
}
.system-subpage .mj-empty {
  min-height: 280px;
}
.entertainment-setting-page {
  padding-top: 32px;
}
.entertainment-setting-page .wallet-tip {
  margin-bottom: 36px;
}
.entertainment-setting-table {
  table-layout: fixed;
}
.entertainment-setting-table th:first-child,
.entertainment-setting-table td:first-child {
  width: 280px;
}
.entertainment-setting-table th {
  height: 120px;
}
.entertainment-setting-table td {
  height: 78px;
}
.entertainment-setting-table .mj-switch {
  margin: 0 auto;
}
.reference-table .mj-switch {
  min-height: 0;
  padding: 2px 4px;
  color: #fff;
  background: #ddd !important;
  border-radius: 22px;
  font-weight: 800;
}
.reference-table .mj-switch.on {
  background: #0797c0 !important;
}
.game-setting-page {
  padding: 12px 14px;
}
.game-setting-table {
  table-layout: fixed;
  color: #272828;
  font-size: 14px;
}
.game-setting-table th,
.game-setting-table td {
  height: auto;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}
.game-setting-table input {
  width: 90%;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #d9dadc;
  border-radius: 4px;
  color: #878c94;
  background: #f4f7f8;
  outline: none;
  text-align: center;
  font-size: 14px;
}
.game-setting-table .mj-switch {
  margin: 0 auto;
}
.game-setting-table .plan-button {
  min-width: 64px;
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  color: #fff;
  background: #c9cdd1;
  font-size: 13px;
  font-weight: 400;
}
.system-bottom-actions {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 26px;
}
.system-bottom-actions .notice-pill {
  margin-right: auto;
  min-height: 42px;
  font-size: 22px;
}
.system-bottom-actions button {
  min-width: 150px;
  height: 58px;
  color: #fff;
  border-radius: 7px;
  background: #078dbc;
  font-size: 23px;
}
.entertainment-sort-page {
  padding: 12px 0 0;
}
.entertainment-sort-page .wallet-tip {
  margin-bottom: 12px;
}
.entertainment-sort-table {
  width: 262px;
  border-collapse: collapse;
  border: 1px solid #e1e1e5;
  color: #272828;
  font-size: 14px;
}
.entertainment-sort-table th,
.entertainment-sort-table .title td {
  height: 37px;
  border: 1px solid #e1e1e5;
  background: #e5f1f5;
  font-weight: 400;
  text-align: center;
}
.entertainment-sort-table td {
  height: 43px;
  border: 1px solid #e1e1e5;
  text-align: center;
}
.entertainment-sort-table th:first-child,
.entertainment-sort-table td:first-child {
  width: 91px;
}
.entertainment-sort-page .sort-save {
  min-width: 91px;
  height: 32px;
  margin: 18px 0 0;
  color: #fff;
  border-radius: 4px;
  background: #0087b4;
  font-size: 14px;
}
.entertainment-rebate-page {
  padding: 22px 20px 26px;
}
.entertainment-rebate-page .wallet-tip {
  height: 68px;
  margin-bottom: 18px;
  color: #33464f;
  border-color: #8cea70;
  background: #f8fff4;
}
.rebate-all-row {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #344952;
  font-size: 24px;
}
.rebate-all-row input {
  width: 270px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  color: #8a969d;
  background: #f8fbfc;
  font-size: 23px;
}
.rebate-all-row em {
  font-style: normal;
}
.ent-rebate-save {
  min-width: 116px;
  height: 58px;
  margin: 42px 0 0 450px;
  color: #fff;
  border-radius: 7px;
  background: #078dbc;
  font-size: 23px;
}
.rebate-setting-page {
  padding: 24px 30px 26px;
}
.rebate-setting-head {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 72px;
  color: #344952;
  font-size: 24px;
}
.rebate-setting-head select {
  width: 306px;
  height: 54px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: #078dbc;
  font-size: 23px;
}
.rebate-setting-head > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rebate-setting-head .mj-switch {
  margin-left: -54px;
}
.rebate-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 84px;
  padding: 42px 12px 18px;
  color: #344952;
  font-size: 24px;
}
.rebate-plan-grid label {
  display: flex;
  align-items: center;
  gap: 18px;
}
.rebate-plan-grid input[type="checkbox"] {
  width: 1em;
  height: 1em;
  min-width: 1em;
  min-height: 1em;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #0087b4;
}
.rebate-plan-grid input:not([type]) {
  width: 166px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  color: #8a969d;
  background: #f8fbfc;
  font-size: 23px;
}
.rebate-plan-grid em {
  font-style: normal;
}
.rebate-save {
  min-width: 166px;
  height: 58px;
  display: block;
  margin: 42px auto 0;
  color: #fff;
  border-radius: 7px;
  background: #078dbc;
  font-size: 23px;
}
.rebate-setting-note {
  margin-top: 54px;
  min-width: 640px;
  font-size: 22px;
}
.close-message-page {
  padding: 12px 14px;
}
.close-game-tabs {
  height: auto;
  display: flex;
  align-items: flex-end;
  overflow: auto;
}
.close-game-tabs button {
  height: 32px;
  min-width: auto;
  padding: 0 14px;
  color: #515a6e;
  border: 1px solid #dcdee2;
  border-bottom: 0;
  background: #f7fafc;
  font-size: 14px;
}
.close-game-tabs button.active {
  color: #fff;
  background: #0087b4;
}
.close-message-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}
.close-message-table td {
  height: auto;
  min-height: 0;
  padding: 8px;
  border: 1px solid #e1e1e5;
  color: #272828;
  vertical-align: middle;
}
.close-message-table textarea {
  width: 100%;
  height: 94px;
  padding: 6px;
  resize: none;
  border: 1px solid #d9dadc;
  border-radius: 4px;
  color: #222;
  background: #f4f7f8;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}
.close-delay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.close-delay input {
  width: 64px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #d9dadc;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}
.close-message-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}
.close-message-footer button {
  min-width: 91px;
  height: 32px;
  color: #fff;
  border-radius: 4px;
  background: #0087b4;
  font-size: 14px;
}
.setting-matrix {
  height: calc(100vh - 332px);
  min-height: 1180px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 52px 30px 26px;
}
.setting-row {
  min-height: 64px;
  grid-template-columns: minmax(260px, 1fr) 414px;
}
.setting-row > span {
  gap: 12px;
  padding: 0 22px;
  font-size: 24px;
}
.setting-row > span svg {
  width: 22px;
  height: 22px;
}
.setting-row input,
.setting-row select,
.setting-row textarea {
  width: calc(100% - 18px);
  min-height: 50px;
  margin: 0 9px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 24px;
}
.setting-row textarea {
  height: 196px;
}
.setting-row:has(textarea) {
  min-height: 210px;
}
.avatar-upload img {
  width: 86px;
  height: 86px;
}
.time-pair {
  gap: 8px;
  padding-right: 9px;
}
.mj-switch {
  width: 112px;
  height: 42px;
  margin-right: 26px;
  border-radius: 22px;
  font-size: 20px;
}
.mj-switch span {
  width: 62px;
}
.mj-switch i {
  width: 34px;
  height: 34px;
}
.admin-top .admin-account-wrap > button {
  width: auto;
  padding: 0 18px;
  color: #fff;
  background: transparent;
  border: 0;
}
.admin-top .admin-account-menu button {
  display: flex;
  height: 42px;
  color: #52626a;
  background: #fff;
  border: 0;
  font-size: 15px;
}
.admin-top .admin-account-menu button:hover {
  color: #008fbd;
  background: #edf8fb;
}
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-top { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .admin-top-right > span,
  .admin-top-right > button:nth-of-type(-n+2) { display: none; }
  .promo-grid { grid-template-columns: 1fr; }
}

/* Final desktop density lock: production uses the already-shrunk 90% reference size. */
.admin-top {
  height: 42px !important;
  grid-template-columns: 112px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 0 12px !important;
  border-radius: 0 0 12px 12px !important;
  font-size: 14px !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-bottom: 1px solid #1a9fd8 !important;
}
.admin-top strong img {
  width: 88px !important;
  height: 36px !important;
}
.top-message-zone {
  min-width: 0 !important;
  width: 100% !important;
}
.marquee {
  justify-content: flex-start !important;
  width: 100% !important;
  height: 30px !important;
  padding: 0 18px !important;
  gap: 12px !important;
  border-radius: 16px !important;
  background: rgba(0, 90, 160, .22) !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
}
.marquee span {
  min-width: max-content !important;
}
.admin-top-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: max-content !important;
}
.admin-top-right > span {
  font-size: 13px !important;
  white-space: nowrap !important;
}
.top-expire {
  color: #fff200 !important;
  font-weight: 800 !important;
}
.admin-top-right button {
  height: 32px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
}
.admin-top-right > button:nth-of-type(3) {
  width: 34px !important;
}
.admin-nav {
  height: 74px !important;
  padding-left: 18px !important;
  box-shadow: 0 2px 9px rgba(0,0,0,.08) !important;
}
.admin-nav button {
  min-width: 98px !important;
  padding: 7px 8px !important;
  gap: 2px !important;
  font-size: 14px !important;
}
.nav-icon-wrap {
  width: 34px !important;
  height: 34px !important;
}
.nav-icon {
  width: 32px !important;
  height: 32px !important;
}
.nav-badge {
  right: -20px !important;
  max-width: 39px !important;
  max-height: 18px !important;
}
.audit-float {
  top: 96px !important;
  width: 92px !important;
  height: 54px !important;
  border-radius: 28px 0 0 28px !important;
  font-size: 17px !important;
}
.admin-body,
.admin-shell:not(.active-home) .admin-body {
  padding: 12px 18px 18px !important;
}
.active-home .admin-body {
  padding: 10px 20px 14px !important;
}
.home-console {
  width: max(100%, 1680px) !important;
  min-width: 0 !important;
  height: calc(100vh - 126px) !important;
  min-height: 640px !important;
  grid-template-columns: 360px 440px minmax(720px, 1fr) !important;
  gap: 8px !important;
}
.home-tabs {
  height: 58px !important;
  padding: 13px 44px 8px !important;
}
.home-tabs button {
  min-width: 86px !important;
  height: 36px !important;
  font-size: 16px !important;
}
.game-switch-list {
  padding: 8px 18px 0 !important;
}
.game-switch-list article {
  min-height: 76px !important;
  grid-template-columns: 50px 1fr 58px !important;
  gap: 12px !important;
  padding: 9px 12px !important;
  margin-bottom: 8px !important;
}
.game-switch-list img,
.service-dot {
  width: 48px !important;
  height: 48px !important;
}
.game-switch-list strong {
  font-size: 17px !important;
  line-height: 22px !important;
}
.game-switch-list span {
  font-size: 14px !important;
}
.toggle-pill {
  width: 52px !important;
  height: 28px !important;
}
.toggle-pill i {
  width: 22px !important;
  height: 22px !important;
}
.toggle-pill.on i {
  transform: translateX(24px) !important;
}
.game-control-card footer {
  height: 84px !important;
  padding: 15px 18px !important;
}
.game-control-card footer b {
  font-size: 18px !important;
}
.game-control-card footer small {
  font-size: 14px !important;
}
.live-chat-card {
  grid-template-rows: 1fr 96px !important;
}
.chat-compose {
  grid-template-columns: 1fr 78px !important;
  padding: 16px !important;
}
.chat-compose textarea {
  height: 64px !important;
  font-size: 14px !important;
}
.chat-compose button {
  width: 70px !important;
  height: 40px !important;
  font-size: 16px !important;
}
.game-data-float {
  right: -54px !important;
  width: 112px !important;
  height: 54px !important;
  gap: 6px !important;
  padding-left: 18px !important;
  font-size: 24px !important;
}
.game-data-float span {
  min-width: 34px !important;
  font-size: 15px !important;
  line-height: 17px !important;
  white-space: normal !important;
}
.data-console-card {
  padding: 14px 14px 0 !important;
}
.home-metrics {
  grid-template-columns: repeat(5, minmax(130px, 1fr)) !important;
  gap: 10px !important;
  padding: 14px 10px 12px !important;
  margin-bottom: 16px !important;
}
.metric-card {
  min-height: 72px !important;
  grid-template-columns: 36px 1fr !important;
  padding: 12px !important;
}
.metric-dot {
  width: 34px !important;
  height: 34px !important;
  border-radius: 7px !important;
}
.metric-card span {
  font-size: 14px !important;
  line-height: 18px !important;
}
.metric-card b {
  font-size: 19px !important;
}
.game-data-table {
  font-size: 14px !important;
}
.game-data-table th {
  height: 40px !important;
}
.game-data-table td {
  height: 42px !important;
}

/* Final inner-page density lock: keep every admin page at the same compact 90% visual scale. */
.admin-shell:not(.active-home) .page {
  min-height: calc(100vh - 128px) !important;
}
.admin-shell:not(.active-home) .page h2 {
  height: 32px !important;
  margin: 0 0 10px !important;
  font-size: 20px !important;
  line-height: 32px !important;
}
.reference-layout,
.two-col-layout,
.wallet-layout,
.wallet-wide-layout,
.system-layout {
  width: max(100%, 1560px) !important;
  min-width: 0 !important;
  gap: 14px !important;
}
.two-col-layout,
.wallet-layout,
.system-layout {
  grid-template-columns: 190px minmax(0, 1fr) !important;
}
.wallet-wide-layout {
  grid-template-columns: 190px minmax(0, 1fr) !important;
}
.reference-main,
.system-main-card {
  min-height: calc(100vh - 150px) !important;
  padding: 18px 18px 16px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(32,70,86,.06) !important;
}
.system-main-card {
  padding: 0 !important;
  overflow: hidden !important;
}
.reference-side {
  min-height: calc(100vh - 150px) !important;
  padding: 26px 10px 14px !important;
  border-radius: 7px !important;
}
.reference-side button {
  height: 42px !important;
  min-height: 42px !important;
  margin-bottom: 16px !important;
  border-radius: 22px !important;
  font-size: 17px !important;
  line-height: 42px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.08) !important;
}
.reference-tabs,
.robot-tabs,
.return-report-tabs,
.log-report-tabs,
.red-tabs,
.invite-tabs,
.close-game-tabs {
  min-height: 44px !important;
  height: auto !important;
  margin-bottom: 12px !important;
}
.reference-tabs button,
.robot-tabs button,
.return-report-tabs button,
.log-report-tabs button,
.red-tabs button,
.invite-tabs button,
.close-game-tabs button {
  min-width: 112px !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
}
.system-tabs {
  height: 58px !important;
  gap: 46px !important;
  padding: 0 28px !important;
}
.system-tabs button:not(.save-settings) {
  height: 58px !important;
  padding: 0 24px !important;
  border-bottom-width: 4px !important;
  font-size: 22px !important;
}
.system-subpage,
.game-setting-page,
.entertainment-setting-page,
.entertainment-sort-page,
.entertainment-rebate-page,
.rebate-setting-page,
.close-message-page {
  padding: 18px 20px 16px !important;
}
.setting-matrix {
  height: calc(100vh - 210px) !important;
  min-height: 650px !important;
  gap: 12px !important;
  padding: 28px 22px 18px !important;
}
.setting-row {
  min-height: 46px !important;
  grid-template-columns: minmax(180px, 1fr) 260px !important;
}
.setting-row > span {
  gap: 8px !important;
  padding: 0 16px !important;
  font-size: 17px !important;
}
.setting-row > span svg {
  width: 17px !important;
  height: 17px !important;
}
.setting-row input,
.setting-row select,
.setting-row textarea {
  width: calc(100% - 16px) !important;
  min-height: 36px !important;
  margin: 0 8px !important;
  padding: 0 12px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
}
.setting-row textarea {
  height: 112px !important;
  padding-top: 8px !important;
}
.setting-row:has(textarea) {
  min-height: 128px !important;
}
.avatar-upload img {
  width: 62px !important;
  height: 62px !important;
}
.admin-filter-bar,
.toolbar-line,
.date-quick-bar,
.quota-actions,
.sub-account-toolbar,
.wallet-toolbar {
  min-height: 42px !important;
  gap: 10px 12px !important;
  margin-bottom: 12px !important;
}
.admin-filter-bar input,
.admin-filter-bar select,
.toolbar-line input,
.toolbar-line select,
.date-quick-bar input,
.date-quick-bar select,
.wide-inline-input,
.tiny-input {
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
}
.admin-filter-bar input,
.admin-filter-bar select {
  width: 190px !important;
}
.admin-filter-bar button,
.toolbar-line > button,
.date-quick-bar button,
.reference-table button,
.quota-actions button,
.wallet-add,
.blue,
.green,
.red,
.danger {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
}
.reference-table {
  font-size: 16px !important;
}
.reference-table th {
  height: 44px !important;
  padding: 0 12px !important;
  font-size: 16px !important;
}
.reference-table td {
  height: 44px !important;
  padding: 7px 10px !important;
  font-size: 16px !important;
}
.reference-table input,
.reference-table select {
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 5px !important;
  font-size: 15px !important;
}
.reference-footer {
  min-height: 58px !important;
  padding-top: 12px !important;
  font-size: 16px !important;
}
.notice-pill {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 5px !important;
  font-size: 15px !important;
}
.mj-pager {
  gap: 10px !important;
  font-size: 15px !important;
}
.mj-pager select,
.mj-pager input,
.mj-pager button {
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 5px !important;
  font-size: 15px !important;
}
.mj-empty {
  min-height: 260px !important;
  gap: 8px !important;
  font-size: 16px !important;
}
.mj-empty img {
  width: 72px !important;
  height: 72px !important;
}
.mj-switch,
.reference-table .mj-switch {
  width: 70px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 2px 4px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
}
.mj-switch span {
  width: 38px !important;
}
.mj-switch i {
  width: 24px !important;
  height: 24px !important;
}
.mj-switch.on i {
  transform: translateX(36px) !important;
}
.switch-line {
  gap: 8px !important;
  font-size: 16px !important;
}
.switch-line input {
  width: 52px !important;
  height: 26px !important;
}
.switch-line input::after {
  width: 22px !important;
  height: 22px !important;
  top: 2px !important;
  left: 3px !important;
}
.switch-line input:checked::after {
  left: 27px !important;
}
.manual-label {
  font-size: 16px !important;
}
.wallet-tip,
.system-subpage .wallet-tip {
  height: 42px !important;
  min-height: 42px !important;
  margin-bottom: 12px !important;
  padding-left: 16px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
}
.wallet-help h3 {
  height: 42px !important;
  font-size: 16px !important;
}
.wallet-help h4 {
  margin: 12px 16px 8px !important;
  font-size: 17px !important;
}
.wallet-help p {
  margin: 0 16px 8px !important;
  font-size: 15px !important;
  line-height: 24px !important;
}
.rebate-setting-head,
.rebate-all-row {
  height: 46px !important;
  gap: 24px !important;
  font-size: 16px !important;
}
.rebate-setting-head select,
.rebate-all-row input,
.rebate-plan-grid input:not([type]) {
  height: 38px !important;
  font-size: 16px !important;
}
.rebate-plan-grid {
  gap: 24px 36px !important;
  padding: 24px 8px 12px !important;
  font-size: 16px !important;
}
.rebate-save,
.ent-rebate-save,
.entertainment-sort-page .sort-save,
.system-bottom-actions button,
.close-message-footer button {
  min-width: 110px !important;
  height: 38px !important;
  margin-top: 18px !important;
  font-size: 16px !important;
}
.game-setting-table,
.entertainment-setting-table,
.entertainment-sort-table,
.close-message-table {
  font-size: 16px !important;
}
.game-setting-table th,
.entertainment-setting-table th,
.entertainment-sort-table th {
  height: 52px !important;
  font-size: 16px !important;
}
.game-setting-table td,
.entertainment-setting-table td,
.entertainment-sort-table td {
  height: 46px !important;
  padding: 7px 10px !important;
  font-size: 16px !important;
}
.game-setting-table input,
.quota-table input,
.quota-table .tiny-input {
  height: 34px !important;
  font-size: 15px !important;
}
.close-message-table td {
  height: 160px !important;
  padding: 14px !important;
  font-size: 16px !important;
}
.close-message-table textarea {
  height: 128px !important;
  padding: 10px !important;
  font-size: 15px !important;
  line-height: 24px !important;
}
.system-bottom-actions,
.close-message-footer {
  min-height: 56px !important;
  gap: 16px !important;
  padding-top: 14px !important;
}

/* Whole app visual scale requested for every screen. */
.admin-login {
  height: calc(100vh / var(--app-scale)) !important;
}
.admin-shell {
  min-height: calc(100vh / var(--app-scale)) !important;
}
.admin-body {
  min-height: calc((100vh / var(--app-scale)) - 116px) !important;
}
.admin-shell.active-home .admin-body {
  min-height: calc((100vh / var(--app-scale)) - 116px) !important;
}
.home-console,
.admin-shell.active-home .home-console {
  height: calc((100vh / var(--app-scale)) - 126px) !important;
  min-height: calc((100vh / var(--app-scale)) - 126px) !important;
}
.admin-shell:not(.active-home) .page {
  min-height: calc((100vh / var(--app-scale)) - 128px) !important;
}
.reference-main,
.system-main-card,
.reference-side {
  min-height: calc((100vh / var(--app-scale)) - 150px) !important;
}
.setting-matrix {
  height: calc((100vh / var(--app-scale)) - 210px) !important;
  min-height: calc((100vh / var(--app-scale)) - 210px) !important;
}

/* Fixes after the full-app 80% transform: overlays must still center in the real viewport. */
.admin-modal-mask {
  width: calc(100vw / var(--app-scale)) !important;
  height: calc(100vh / var(--app-scale)) !important;
  inset: 0 auto auto 0 !important;
}
.admin-toast {
  left: calc(50vw / var(--app-scale)) !important;
}
.admin-account-menu {
  width: 168px !important;
  right: 0 !important;
  color: #263942 !important;
  font-family: Arial, "Microsoft YaHei", sans-serif !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.admin-account-menu button {
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: left !important;
  color: #263942 !important;
}

.service-channel-group {
  border-radius: 8px;
}

.service-channel-group.selected {
  background: #f2fbfd;
}

.service-channel-group > article {
  margin: 0;
}

.service-room-list {
  display: grid;
  gap: 7px;
  margin: -2px 14px 12px 70px;
  padding: 8px 0 0 12px;
  border-left: 2px solid #d5edf4;
}

.service-room-list button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 7px 30px 7px 10px;
  border: 1px solid #d8e5eb;
  border-radius: 6px;
  background: #fff;
  color: #52646e;
  text-align: left;
}

.service-room-list button.active {
  border-color: #0798bd;
  background: #e8f8fc;
  box-shadow: inset 0 0 0 1px rgba(7, 152, 189, .15);
}

.service-room-list b,
.service-room-list span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-room-list b {
  margin-bottom: 4px;
  color: #243a44;
  font-size: 15px;
}
.service-room-list .vip-priority-tag,
.service-room-list .vip-level-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
  line-height: 16px;
}
.service-room-list .vip-priority-tag {
  color: #8a5a00;
  background: #ffe7a8;
}
.service-room-list .vip-level-tag {
  color: #0b6e8a;
  background: #d9f3fa;
}

.service-room-list span {
  color: #71828c;
  font-size: 13px;
}

.service-room-list em {
  position: absolute;
  right: 7px;
  top: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  background: #f04747;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-style: normal;
}

.service-room-list p {
  margin: 0;
  color: #70818a;
  font-size: 14px;
}

/* Home chat is now a real stream shared with H5/App. */
.chat-stream {
  padding: 16px 18px 70px !important;
  overflow-y: auto !important;
}
.admin-chat-message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  color: #41535d;
}
.admin-chat-message.from-admin {
  grid-template-columns: minmax(0, 1fr) 36px;
}
.admin-chat-message.from-admin .chat-avatar {
  grid-column: 2;
}
.admin-chat-message.from-admin > div {
  grid-row: 1;
  text-align: right;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0798bd;
  font-weight: 800;
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.admin-chat-message header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  color: #60717b;
  font-size: 13px;
}
.admin-chat-message.from-admin header {
  justify-content: flex-end;
}
.admin-chat-message time {
  color: #9aa7ad;
  font-size: 12px;
}
.admin-chat-message p {
  display: inline-block;
  max-width: min(520px, 82%);
  margin: 0;
  padding: 9px 12px;
  border-radius: 6px;
  background: #eef6f9;
  color: #2f424b;
  line-height: 20px;
  text-align: left;
  word-break: break-word;
}
.admin-chat-html {
  display: inline-block;
  max-width: min(520px, 82%);
  margin: 0;
  padding: 9px 12px;
  border-radius: 6px;
  background: #eef6f9;
  color: #2f424b;
  line-height: 20px;
  text-align: left;
  word-break: break-word;
  white-space: normal;
}
.admin-chat-message.from-admin p {
  background: #0798bd;
  color: #fff;
}
.admin-chat-message.from-admin .admin-chat-html {
  background: #0798bd;
  color: #fff;
}
.admin-chat-html .chat-at,
.info-content .chat-at {
  color: #2b7cff !important;
  font-weight: 600;
}
.admin-chat-html .fn-bet-card {
  margin-top: 8px;
  min-width: 220px;
  max-width: 320px;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #e6e6e6;
  color: #4b4b4b;
}
.admin-chat-html .fn-bet-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 10px;
  background: linear-gradient(90deg, #35c2c3, #0795b7);
  color: #fff;
  font-size: 14px;
}
.admin-chat-html .fn-bet-follow {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 4px 9px;
  background: #fff;
  color: #168da8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.admin-chat-html .fn-bet-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 7px 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.admin-chat-html .fn-bet-ft {
  padding: 8px 10px;
  color: #5a6b73;
  font-size: 13px;
}
.admin-chat-html .fn-bet-ft strong { color: #d32632; }

/* 封盘核对卡片：群主气泡是白字青底，卡片必须自带深色字，否则只剩「注单详情」可见 */
.admin-chat-html .fn-seal-card,
.admin-chat-message.from-admin .admin-chat-html .fn-seal-card {
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  background: #fff !important;
  border: 1px solid #dfe7ee !important;
  color: #333 !important;
  width: 100% !important;
  max-width: 320px !important;
  min-width: 220px !important;
  box-sizing: border-box !important;
  text-align: left !important;
}
.admin-chat-html .fn-seal-hd,
.admin-chat-message.from-admin .admin-chat-html .fn-seal-hd {
  padding: 7px 8px !important;
  background: #2f86e0 !important;
  background-image: linear-gradient(90deg, #2b7adb 0%, #3aa6e8 52%, #4fc0f0 100%) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  line-height: 1.35 !important;
}
.admin-chat-html .fn-seal-hd-game,
.admin-chat-html .fn-seal-hd-term {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  color: #fff !important;
}
.admin-chat-html .fn-seal-bd {
  padding: 4px 0 6px !important;
  background: #fff !important;
  color: #333 !important;
  box-sizing: border-box !important;
}
.admin-chat-html .fn-seal-sep {
  display: block !important;
  margin: 8px 10px !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-top: 1px solid #c5d0dc !important;
  background: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.admin-chat-html .fn-seal-gap { height: 4px !important; }
.admin-chat-html .fn-seal-line {
  padding: 2px 8px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #333 !important;
  text-align: left !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}
.admin-chat-html .fn-seal-line.fn-seal-warn {
  color: #e53935 !important;
  font-weight: 700 !important;
  text-align: center !important;
}
.admin-chat-html .fn-seal-line.fn-seal-closed {
  text-align: center !important;
  font-weight: 700 !important;
  color: #333 !important;
}
.admin-chat-html .fn-seal-check-wrap {
  padding: 2px 0 !important;
  color: #333 !important;
  font-size: 13px !important;
}
.admin-chat-html .fn-seal-check-wrap > div:not(.fn-seal-list) {
  padding: 2px 8px !important;
  color: #333 !important;
}
.admin-chat-html .fn-seal-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #333 !important;
  border-bottom: 1px dashed #e8e8e8 !important;
  box-sizing: border-box !important;
}
.admin-chat-html .fn-seal-row > span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #333 !important;
  font-size: 12px !important;
}
.admin-chat-html .fn-seal-row b {
  color: #222 !important;
  font-weight: 600 !important;
}
.admin-chat-html .fn-seal-detail {
  flex: 0 0 auto !important;
  color: #2b7cff !important;
  text-decoration: none !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.admin-chat-html .fn-seal-empty {
  padding: 6px 8px !important;
  color: #888 !important;
  font-size: 12px !important;
  text-align: center !important;
}

.admin-chat-image-button {
  display: block;
  max-width: min(520px, 88%);
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.admin-chat-image {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  border-radius: 8px;
  background: #eef3f6;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.admin-chat-message.from-admin .admin-chat-image-button {
  margin-left: auto;
}
.admin-image-preview {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, .82);
}
.admin-image-preview img {
  max-width: min(1180px, 96vw);
  max-height: 90vh;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}
.admin-image-preview button {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
}
.reply-target {
  display: block;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 10px;
  border-radius: 11px;
  color: #0798bd;
  background: #e7f8ff;
  font-size: 12px;
}
.help-center-body {
  padding: 18px 22px 24px;
  color: #42535c;
  line-height: 28px;
}
.help-center-body h4 {
  margin: 0 0 8px;
  color: #0b8fb7;
}
.help-center-body p {
  margin: 0 0 12px;
}
.service-dot {
  display: grid !important;
  place-items: center !important;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #23b9d2, #0798bd);
}
.home-console.data-closed {
  width: max(100%, 1680px) !important;
  grid-template-columns: 360px minmax(1160px, 1fr) !important;
}
.home-console.data-closed .live-chat-card {
  min-width: 0 !important;
}
.admin-shell.active-home .home-console.data-closed .game-data-float {
  right: 16px !important;
  border-radius: 28px !important;
}

/* Stage 3 layout: wallet help belongs on the right, and settings pages scroll inside the panel. */
.wallet-reference-page .wallet-layout:not(.wallet-wide-layout) {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 190px minmax(0, 1fr) 300px !important;
  align-items: stretch !important;
}
.wallet-reference-page .wallet-wide-layout {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 190px minmax(0, 1fr) !important;
}
.wallet-main-card {
  min-width: 0 !important;
}
.wallet-help {
  max-height: calc((100vh / var(--app-scale)) - 170px) !important;
  overflow-y: auto !important;
  border-radius: 6px !important;
}
.wallet-help h4 {
  font-size: 16px !important;
}
.wallet-help p {
  font-size: 14px !important;
  line-height: 22px !important;
}
.system-layout {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 190px minmax(0, 1fr) !important;
}
.system-main-card {
  min-width: 0 !important;
  max-height: calc((100vh / var(--app-scale)) - 150px) !important;
  overflow: auto !important;
}
.system-subpage {
  max-height: calc((100vh / var(--app-scale)) - 190px) !important;
  overflow: auto !important;
}
.system-subpage .reference-table,
.system-subpage .wallet-table,
.system-subpage table {
  min-width: max-content !important;
}

/* Metric icons use real assets and must not be clipped or pushed outside the card. */
.metric-card {
  overflow: visible !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
}
.metric-dot {
  flex: none !important;
  overflow: visible !important;
  border-radius: 9px !important;
}
.metric-dot img {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  object-fit: contain !important;
}
.metric-card > div {
  min-width: 0 !important;
}
.metric-card span,
.metric-card b {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Switch text stays readable: the thumb never covers the "开启/关闭" label. */
.mj-switch,
.reference-table .mj-switch {
  position: relative !important;
  overflow: hidden !important;
  width: 76px !important;
  padding: 0 !important;
}
.mj-switch span {
  position: absolute !important;
  z-index: 1 !important;
  width: auto !important;
  pointer-events: none !important;
  line-height: 30px !important;
  white-space: nowrap !important;
}
.mj-switch.on span {
  left: 9px !important;
  right: 32px !important;
  text-align: left !important;
}
.mj-switch:not(.on) span {
  left: 32px !important;
  right: 7px !important;
  text-align: right !important;
}
.mj-switch i {
  position: absolute !important;
  z-index: 2 !important;
  top: 3px !important;
  left: 4px !important;
}
.mj-switch.on i {
  transform: translateX(44px) !important;
}

/* Wide data pages stay inside their panel and scroll internally when needed. */
.reference-main,
.wallet-main-card,
.system-main-card,
.activity-main,
.monitor-main {
  overflow: auto !important;
}
.reference-table,
.wallet-table,
.quota-table,
.game-setting-table,
.entertainment-setting-table,
.close-message-table,
.monitor-grid-board {
  max-width: 100% !important;
}
.activity-main .reference-table,
.reports-main .reference-table,
.apply-main .reference-table,
.user-reference-main .reference-table,
.wallet-table,
.quota-table,
.open-table {
  width: 100% !important;
  min-width: max-content !important;
}
.wallet-table th {
  height: 38px !important;
  padding: 0 8px !important;
  font-size: 14px !important;
}
.wallet-table td {
  height: 38px !important;
  padding: 6px 8px !important;
  font-size: 14px !important;
}

/* Close-message rows should fit content, not force oversized empty rows. */
.close-message-table td {
  height: auto !important;
  min-height: 78px !important;
  padding: 8px 10px !important;
  vertical-align: top !important;
}
.close-message-table textarea {
  height: 78px !important;
  min-height: 78px !important;
  line-height: 20px !important;
}
.close-message-table p {
  margin: 0 !important;
  line-height: 22px !important;
}

/* Monitoring and disk pages use the same compact density as the rest of the admin UI. */
.monitor-summary {
  min-height: 42px !important;
  padding: 8px 12px !important;
  gap: 10px !important;
}
.monitor-grid-board {
  gap: 8px !important;
  padding: 10px !important;
}
.monitor-col h3 {
  height: 34px !important;
  font-size: 15px !important;
}
.monitor-col label {
  min-height: 32px !important;
  padding: 4px 6px !important;
}
.monitor-col input {
  height: 28px !important;
}
.disk-layout {
  grid-template-columns: 330px minmax(0, 1fr) !important;
}
.disk-side {
  padding: 12px !important;
  font-size: 14px !important;
}
.disk-game {
  min-height: 34px !important;
  grid-template-columns: 56px 1fr 90px 64px !important;
  gap: 6px !important;
  font-size: 13px !important;
}

/* 2026-07-03 density pass: fix pages that still had oversized legacy blocks after global 80% scaling. */
.close-message-page {
  padding: 12px 14px 12px !important;
}
.close-game-tabs {
  min-height: 36px !important;
  height: 36px !important;
  margin-bottom: 0 !important;
  align-items: stretch !important;
}
.close-game-tabs button {
  height: 36px !important;
  min-width: 102px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  line-height: 16px !important;
}
.close-game-tabs button:first-child,
.close-game-tabs button:last-child {
  min-width: 42px !important;
  font-size: 20px !important;
}
/* Close-message: restore normal table layout (undo legacy grid display hacks). */
.close-message-table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  overflow: visible !important;
}
.close-message-table thead,
.close-message-table tbody {
  display: table-header-group !important;
}
.close-message-table tbody {
  display: table-row-group !important;
}
.close-message-table tr {
  display: table-row !important;
  grid-template-columns: none !important;
  min-height: 0 !important;
  border-bottom: 0 !important;
}
.close-message-table td,
.close-message-table th {
  display: table-cell !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-items: unset !important;
  justify-content: unset !important;
  padding: 8px !important;
  border: 1px solid #e1e1e5 !important;
  overflow: visible !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
}
.close-message-table textarea {
  height: 94px !important;
  min-height: 94px !important;
  max-height: 94px !important;
  padding: 6px !important;
  overflow: auto !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.close-delay {
  height: auto !important;
  gap: 6px !important;
}
.close-delay input {
  width: 64px !important;
  height: 28px !important;
  font-size: 14px !important;
}
.close-message-table p {
  max-height: none !important;
  overflow: visible !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.activity-main {
  padding: 14px !important;
}
.activity-main .wallet-toolbar,
.activity-main .banner-toolbar,
.activity-main .reference-tabs,
.activity-main .invite-tabs,
.activity-main .red-tabs {
  min-height: 36px !important;
  margin-bottom: 10px !important;
}
.activity-main .wallet-add,
.activity-main .reference-tabs button,
.activity-main .invite-tabs button,
.activity-main .red-tabs button {
  height: 36px !important;
  min-height: 36px !important;
  min-width: 116px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
}
.activity-main .wallet-tip {
  height: 34px !important;
  min-height: 34px !important;
  margin-bottom: 10px !important;
  font-size: 14px !important;
}
.activity-main .reference-table {
  min-width: 0 !important;
  width: 100% !important;
  table-layout: fixed !important;
}
.activity-main .reference-table th {
  height: 38px !important;
  padding: 0 8px !important;
  font-size: 14px !important;
}
.activity-main .reference-table td {
  height: 58px !important;
  padding: 6px 8px !important;
  font-size: 14px !important;
}
.activity-main .reference-table .blue,
.activity-main .reference-table .red,
.activity-main .reference-table .green {
  min-width: 58px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 5px !important;
  font-size: 13px !important;
}
.activity-banner {
  max-width: 100% !important;
  border-radius: 7px !important;
}
.promo-banner {
  width: 440px !important;
  height: 132px !important;
}
.carousel-banner {
  width: 430px !important;
  height: 112px !important;
}
.promo-table td,
.banner-table td {
  height: 142px !important;
}
.invite-manage-form,
.signin-manage-form {
  padding: 8px 0 0 30px !important;
  font-size: 16px !important;
}
.invite-manage-form label,
.signin-manage-form label {
  min-height: 46px !important;
  gap: 8px !important;
}
.invite-manage-form label > span,
.signin-manage-form label > span {
  width: 170px !important;
  font-size: 16px !important;
}
.invite-manage-form label > input:not([type]),
.signin-manage-form label > input:not([type]),
.invite-manage-form input[type="text"] {
  width: 430px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 5px !important;
  font-size: 15px !important;
}
.invite-manage-form input[type="radio"],
.signin-manage-form input[type="radio"] {
  width: 22px !important;
  height: 22px !important;
}
.invite-manage-form .image-row,
.signin-manage-form .image-row {
  min-height: 150px !important;
}
.invite-manage-form .image-row img,
.signin-manage-form .image-row img {
  width: 560px !important;
  height: 138px !important;
  border-radius: 7px !important;
}
.invite-manage-form .upload-row,
.signin-manage-form .upload-row {
  min-height: 116px !important;
  padding-top: 8px !important;
}
.invite-manage-form .upload-row button,
.signin-manage-form .upload-row button,
.camera-upload {
  width: 110px !important;
  height: 110px !important;
}
.invite-manage-form > strong,
.signin-manage-form > strong {
  margin: 12px 0 10px 12px !important;
  font-size: 16px !important;
}
.invite-rule-table,
.signin-rule-table {
  max-width: 1120px !important;
  table-layout: fixed !important;
}
.invite-rule-table td,
.signin-rule-table td {
  height: 44px !important;
  padding: 5px 7px !important;
}
.invite-rule-table input,
.signin-rule-table input {
  width: 92px !important;
  height: 32px !important;
  padding: 0 8px !important;
  font-size: 14px !important;
}
.invite-form-actions {
  justify-content: flex-start !important;
  padding: 12px 0 0 170px !important;
  gap: 10px !important;
}
.invite-form-actions button {
  min-width: 104px !important;
  height: 34px !important;
  font-size: 14px !important;
}

.monitor-main {
  padding: 12px !important;
}
.monitor-summary {
  min-height: 36px !important;
  padding: 6px 10px !important;
  gap: 8px !important;
  font-size: 16px !important;
}
.monitor-summary button,
.monitor-summary select {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}
.monitor-grid-board,
.monitor-grid-board.time-board,
.monitor-grid-board.race-board {
  min-width: 0 !important;
  width: max-content !important;
  max-width: none !important;
  gap: 0 !important;
  padding: 0 !important;
  margin-top: 10px !important;
}
.monitor-col {
  flex: 0 0 190px !important;
  width: 190px !important;
}
.monitor-col.small {
  flex: 0 0 168px !important;
  width: 168px !important;
}
.monitor-col.race-col {
  flex: 0 0 154px !important;
  width: 154px !important;
}
.monitor-col.race-sum-col {
  flex: 0 0 170px !important;
  width: 170px !important;
  max-height: 720px !important;
}
.monitor-col h3 {
  height: 30px !important;
  font-size: 13px !important;
}
.monitor-col label {
  height: 34px !important;
  min-height: 34px !important;
  grid-template-columns: 42px 118px !important;
  gap: 4px !important;
  padding: 3px 6px !important;
}
.monitor-col.race-col label {
  grid-template-columns: 38px 90px !important;
}
.monitor-col.race-sum-col label,
.monitor-col.small label {
  grid-template-columns: 66px 82px !important;
}
.monitor-col label > span:not(.result-ball) {
  font-size: 14px !important;
}
.monitor-col input {
  height: 26px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
}
.result-ball,
.rank-box {
  width: 28px !important;
  height: 28px !important;
  border-width: 3px !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.disk-page .admin-body,
.disk-page {
  overflow: auto !important;
}
.disk-layout {
  width: max(100%, 1560px) !important;
  min-width: 0 !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 12px !important;
}
.disk-side {
  min-height: calc((100vh / var(--app-scale)) - 150px) !important;
  max-height: calc((100vh / var(--app-scale)) - 150px) !important;
  padding: 0 10px 10px !important;
  overflow-y: auto !important;
}
.disk-side > label,
.disk-side > p,
.disk-side > .radio-line {
  min-height: 50px !important;
  padding: 0 12px !important;
  gap: 7px !important;
  font-size: 15px !important;
}
.disk-side input {
  height: 34px !important;
  min-width: 54px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
}
.disk-side > label:first-child input {
  width: 142px !important;
  min-width: 142px !important;
}
.disk-side > label:first-child button {
  min-width: 52px !important;
  height: 32px !important;
  padding: 0 8px !important;
  font-size: 13px !important;
}
.disk-side small {
  padding: 10px 12px !important;
  border-bottom-width: 6px !important;
  font-size: 14px !important;
  line-height: 21px !important;
}
.disk-side h3 {
  height: 48px !important;
  font-size: 16px !important;
}
.disk-side .radio-line {
  display: grid !important;
  grid-template-columns: 56px 72px 50px 44px !important;
}
.disk-side .radio-line input[type="radio"] {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
}
.disk-side .radio-line > input {
  width: 48px !important;
  min-width: 48px !important;
  height: 32px !important;
}
.disk-game {
  height: 34px !important;
  min-height: 34px !important;
  grid-template-columns: 46px 1fr 68px 46px !important;
  padding: 0 6px !important;
  gap: 4px !important;
  font-size: 11px !important;
}
.disk-game .toggle-pill {
  width: 42px !important;
  height: 22px !important;
}
.disk-game .toggle-pill i {
  width: 18px !important;
  height: 18px !important;
}
.disk-game.disk-game-head {
  height: 30px !important;
  min-height: 30px !important;
}
.disk-layout .reference-main {
  min-width: 0 !important;
}

.login-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: -4px 0 12px;
}
.login-role-tabs button {
  height: 36px;
  border: 1px solid #0b96bd;
  border-radius: 18px;
  color: #0b96bd;
  background: #fff;
  font-size: 15px;
}
.login-role-tabs button.active {
  color: #fff;
  background: #0b96bd;
}
.super-shell .admin-body {
  padding: 14px 18px !important;
  background: #eef3f6 !important;
}
.super-shell {
  background: #eef3f6 !important;
  min-height: 100vh;
}
.super-shell .super-page > h2 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #273943 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: 0 !important;
}
.super-shell .super-main-panel,
.super-shell .reference-main {
  min-height: calc((100vh / var(--app-scale)) - 210px) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.super-top {
  grid-template-columns: 128px minmax(360px, 1fr) auto auto auto !important;
}
.super-nav {
  display: none !important;
}
.super-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.super-grid article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 35, 52, 0.06);
}
.super-grid span {
  color: #71818a;
  font-size: 14px;
}
.super-grid b {
  color: #102932;
  font-size: 24px;
}
.super-form {
  max-width: 720px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 35, 52, 0.06);
}
.super-form label {
  display: grid;
  gap: 7px;
  color: #344952;
  font-weight: 800;
}
.super-form input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d7e1e7;
  border-radius: 5px;
}
.super-game-table td,
.super-game-table th {
  white-space: nowrap;
}
.super-shell .reference-table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 35, 52, 0.06);
}
.super-shell .super-logs-table td {
  white-space: normal !important;
  word-break: break-word;
  text-align: left !important;
}
.super-shell .super-logs-table th {
  text-align: left !important;
}
.super-shell .super-log-detail {
  max-width: 520px;
  font-size: 14px !important;
  color: #51656f;
  line-height: 1.45;
}
.super-shell .platform-ad-editor,
.super-shell .platform-notice-list,
.super-shell .platform-create-room {
  background: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(15, 35, 52, 0.06);
  padding: 16px !important;
}

/* User management matches the official list page: compact empty table, no forced blank canvas. */
.active-users .admin-body {
  padding-bottom: 12px !important;
}
.user-reference-page .reference-layout {
  align-items: start !important;
}
.user-reference-page .reference-main,
.user-reference-page .reference-side {
  min-height: 0 !important;
  height: auto !important;
}
.user-reference-main {
  padding-bottom: 14px !important;
}
.user-reference-main .user-list-table .mj-empty,
.user-reference-main .user-agent-table .mj-empty,
.user-reference-main .sub-account-table .mj-empty {
  min-height: 178px !important;
}
.user-reference-main .user-list-table td[colspan],
.user-reference-main .user-agent-table td[colspan],
.user-reference-main .sub-account-table td[colspan] {
  height: 190px !important;
  padding: 0 !important;
}
.user-reference-main .reference-footer {
  min-height: 50px !important;
  padding: 8px 20px !important;
}

/* Remove forced scaled viewport filler that caused large blank space after scrolling inner pages. */
.admin-shell:not(.active-home) .admin-body {
  min-height: 0 !important;
  padding-bottom: 10px !important;
}
.admin-shell:not(.active-home) .page,
.admin-shell:not(.active-home) .reference-main,
.admin-shell:not(.active-home) .reference-side,
.admin-shell:not(.active-home) .system-main-card {
  min-height: 0 !important;
}
.system-main-card {
  height: auto !important;
}

/* Keep the 80% visual scale without leaving a transformed blank tail on the page. */
html,
body,
#root {
  height: 100% !important;
  overflow: hidden !important;
}
.admin-app {
  height: calc(100vh / var(--app-scale)) !important;
  min-height: calc(100vh / var(--app-scale)) !important;
  overflow: hidden !important;
}
.admin-shell,
.admin-login {
  height: calc(100vh / var(--app-scale)) !important;
  max-height: calc(100vh / var(--app-scale)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
/* 房主后台：顶栏+导航固定，仅 admin-body 滚动（对齐 super-shell） */
.admin-shell {
  display: flex !important;
  flex-direction: column !important;
}
.admin-shell .admin-top.l-header,
.admin-shell .admin-top {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 700 !important;
}
.admin-shell .admin-nav {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 500 !important;
}
.admin-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.admin-shell.active-home .admin-body {
  min-height: 0 !important;
  padding-bottom: 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Banner management fits the available page width. The table remains usable
   on narrow windows without pushing the action column off the screen. */
.banner-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}
.activity-main .banner-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}
.activity-main .banner-table th:nth-child(1),
.activity-main .banner-table td:nth-child(1) { width: 7% !important; }
.activity-main .banner-table th:nth-child(2),
.activity-main .banner-table td:nth-child(2) { width: 18% !important; }
.activity-main .banner-table th:nth-child(3),
.activity-main .banner-table td:nth-child(3) { width: 43% !important; }
.activity-main .banner-table th:nth-child(4),
.activity-main .banner-table td:nth-child(4) { width: 13% !important; }
.activity-main .banner-table th:nth-child(5),
.activity-main .banner-table td:nth-child(5) { width: 19% !important; }
.activity-main .banner-table .carousel-banner {
  display: block !important;
  width: min(100%, 520px) !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 800 / 275 !important;
  object-fit: cover !important;
  margin: 0 auto !important;
}
.activity-main .banner-table td:last-child { white-space: nowrap !important; }

/* Local banner upload and game-setting scroll regions stay inside the visible
   admin card instead of pushing the save action into the table body. */
.banner-file-input { display: none !important; }
.banner-image-field { grid-column: 1 / -1; }
.banner-upload-control { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.banner-upload-control button { min-height: 36px; padding: 0 14px; border-radius: 4px; }
.banner-upload-control input { min-width: 0; }
.game-setting-page { display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.game-setting-scroll { min-height: 0 !important; flex: 1 1 auto !important; overflow: auto !important; }
.game-setting-page > .system-bottom-actions { flex: 0 0 auto !important; position: relative !important; }

/* Keep a real save action visible at the bottom of every settings page.
   The page itself scrolls, while this bar remains inside the setting card. */
.system-main-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.system-subpage,
.setting-matrix,
.offline-channel {
  min-height: 0 !important;
}
.setting-matrix,
.system-subpage {
  padding-bottom: 82px !important;
}
.system-bottom-actions,
.close-message-footer,
.system-basic-savebar {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  min-height: 64px !important;
  margin: 16px 0 0 !important;
  padding: 12px 24px !important;
  border-top: 1px solid #d7e5eb !important;
  background: #fff !important;
  box-shadow: 0 -4px 12px rgba(38, 77, 97, .08) !important;
}
.system-main-card > .system-basic-savebar {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
.system-bottom-actions button,
.close-message-footer button,
.system-basic-savebar button {
  min-width: 122px !important;
  height: 40px !important;
  color: #fff !important;
  background: #078dbc !important;
  border-radius: 4px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}
.save-settings { display: inline-flex !important; }
.home-console,
.admin-shell.active-home .home-console {
  height: calc((100vh / var(--app-scale)) - 126px) !important;
  min-height: 0 !important;
  max-height: calc((100vh / var(--app-scale)) - 126px) !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 320px 510px minmax(0, 1fr) !important;
  align-items: stretch !important;
  overflow: visible !important;
}

/* Final home dashboard lock: keep the three official columns inside the viewport.
   This restores the online footer, chat input and game-data side switch on production. */
.admin-shell.active-home .admin-body {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding: 12px 18px 10px !important;
}
.admin-shell.active-home .game-control-card,
.admin-shell.active-home .live-chat-card,
.admin-shell.active-home .data-console-card {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.admin-shell.active-home .live-chat-card {
  position: relative !important;
  overflow: visible !important;
}
.admin-shell.active-home .game-control-card {
  grid-template-rows: 66px minmax(0, 1fr) 106px !important;
}
.admin-shell.active-home .game-switch-list {
  min-height: 0 !important;
  overflow-y: auto !important;
}
.admin-shell.active-home .live-chat-card {
  grid-template-rows: minmax(0, 1fr) 88px !important;
}
.admin-shell.active-home .chat-empty,
.admin-shell.active-home .chat-stream {
  min-height: 0 !important;
  overflow-y: auto !important;
}
.admin-shell.active-home .chat-compose {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 88px !important;
  padding: 10px 14px !important;
  grid-template-columns: unset !important;
}
.admin-shell.active-home .chat-compose-main {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-shell.active-home .chat-compose-main textarea {
  height: 44px !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
  font-size: 14px !important;
}
.admin-shell.active-home .chat-upload-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  flex: 0 0 auto !important;
  border-radius: 50% !important;
}
.admin-shell.active-home .chat-compose > button:not(.chat-upload-button) {
  width: 64px !important;
  min-width: 64px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
  font-size: 15px !important;
}
.admin-shell.active-home .game-data-float {
  display: flex !important;
  visibility: visible !important;
  right: -82px !important;
  z-index: 20 !important;
}
.admin-shell.active-home .home-console.data-closed {
  grid-template-columns: 390px minmax(700px, 1fr) !important;
  min-width: 900px !important;
}
.admin-shell.active-home .home-console.data-closed .game-data-float {
  right: 16px !important;
}
.admin-shell.active-home .service-chat-placeholder {
  top: 44% !important;
}
.admin-shell.active-home .metric-dot {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
}
.admin-shell.active-home .metric-dot img {
  width: 30px !important;
  height: 30px !important;
}
.admin-shell.active-home .metric-card {
  grid-template-columns: 54px minmax(0, 1fr) !important;
}

/* Home dashboard metric icons are grayscale asset masks; force the official
   colored badge + white glyph treatment and isolate it from legacy overrides. */
.admin-shell.active-home .home-metric-card {
  grid-template-columns: 54px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
}

.admin-shell.active-home .home-metric-dot {
  width: 50px !important;
  height: 50px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 50px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #1494c5 !important;
}

.admin-shell.active-home .home-metric-dot.blue { background: #1494c5 !important; }
.admin-shell.active-home .home-metric-dot.orange { background: #ffc166 !important; }
.admin-shell.active-home .home-metric-dot.cyan { background: #5bcddd !important; }
.admin-shell.active-home .home-metric-dot.green { background: #27ad5d !important; }
.admin-shell.active-home .home-metric-dot.red { background: #db4b5d !important; }
.admin-shell.active-home .home-metric-dot.rose { background: #f85e69 !important; }
.admin-shell.active-home .home-metric-dot.purple { background: #8a63ee !important; }
.admin-shell.active-home .home-metric-dot.pink { background: #df4bd1 !important; }
.admin-shell.active-home .home-metric-dot.dark { background: #89949a !important; }

.admin-shell.active-home .home-metric-dot img {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
}

/* Official home statistics: match the production reference card rhythm. */
.admin-shell.active-home .data-console-card {
  background: #f7f9fa !important;
  padding: 20px 18px 0 !important;
}

.admin-shell.active-home .home-metrics {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px 14px !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
}

.admin-shell.active-home .home-metric-card {
  position: relative !important;
  min-height: 112px !important;
  display: grid !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 20px 14px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(37, 55, 70, .07) !important;
  overflow: visible !important;
}

.admin-shell.active-home .home-metric-card.icon-left {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.admin-shell.active-home .home-metric-card.icon-right {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.admin-shell.active-home .home-metric-card.icon-right .home-metric-dot {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.admin-shell.active-home .home-metric-card.icon-right > div {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.admin-shell.active-home .home-metric-card > div {
  min-width: 0 !important;
  overflow: visible !important;
}

.admin-shell.active-home .home-metric-dot {
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 48px !important;
  border-radius: 50% !important;
  color: #fff !important;
  overflow: hidden !important;
}

.admin-shell.active-home .home-metric-dot svg {
  width: 24px !important;
  height: 24px !important;
  color: #fff !important;
  stroke: currentColor !important;
  fill: none !important;
}

.admin-shell.active-home .home-metric-dot.violet { background: #7384f7 !important; }
.admin-shell.active-home .home-metric-dot.gold { background: #ffc36f !important; }
.admin-shell.active-home .home-metric-dot.cyan { background: #80d9ef !important; }
.admin-shell.active-home .home-metric-dot.green { background: #5fdb98 !important; }
.admin-shell.active-home .home-metric-dot.salmon { background: #ff8d83 !important; }
.admin-shell.active-home .home-metric-dot.red { background: #ff454d !important; }
.admin-shell.active-home .home-metric-dot.rose { background: #f46369 !important; }
.admin-shell.active-home .home-metric-dot.purple { background: #8c6af5 !important; }
.admin-shell.active-home .home-metric-dot.pink { background: #e957e3 !important; }
.admin-shell.active-home .home-metric-dot.slate { background: #aebcc3 !important; }

.admin-shell.active-home .home-metric-card > div > span {
  display: block !important;
  overflow: visible !important;
  max-width: none !important;
  text-overflow: clip !important;
  color: #515a6e !important;
  font-size: .857143rem !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}

.admin-shell.active-home .home-metric-card b {
  display: block !important;
  overflow: visible !important;
  max-width: none !important;
  text-overflow: clip !important;
  margin-top: .214286rem !important;
  color: #000 !important;
  font-size: 1.071429rem !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.admin-shell.active-home .home-metric-card.accent-value b {
  color: #0b9bcc !important;
}

/* Keep the circular metric glyphs optically centered. The text-label rule
   above intentionally targets only the content span, not this icon span. */
.admin-shell.active-home .home-metric-card .home-metric-dot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.admin-shell.active-home .home-metric-card .home-metric-dot svg {
  display: block !important;
  flex: none !important;
  margin: 0 !important;
  transform: none !important;
}

/* Final page-height guard: non-home work pages must fill the scaled viewport.
   Earlier compact-table fixes should not collapse the whole page shell. */
.admin-shell:not(.active-home) .admin-body {
  min-height: calc((100vh / var(--app-scale)) - 116px) !important;
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 12px !important;
}

.admin-shell:not(.active-home) .page {
  flex: 1 1 auto !important;
  min-height: calc((100vh / var(--app-scale)) - 128px) !important;
  display: flex !important;
  flex-direction: column !important;
}

.admin-shell:not(.active-home) .reference-layout {
  flex: 1 1 auto !important;
  min-height: calc((100vh / var(--app-scale)) - 150px) !important;
  align-items: stretch !important;
}

.admin-shell:not(.active-home) .reference-main,
.admin-shell:not(.active-home) .reference-side,
.admin-shell:not(.active-home) .system-main-card {
  min-height: calc((100vh / var(--app-scale)) - 150px) !important;
}

.user-reference-page .reference-main,
.user-reference-page .reference-side {
  min-height: calc((100vh / var(--app-scale)) - 150px) !important;
}

.user-reference-main {
  display: flex !important;
  flex-direction: column !important;
  max-height: calc((100vh / var(--app-scale)) - 150px) !important;
  overflow: hidden !important;
}

/* The desktop canvas is intentionally scaled for wide owner-backend
   screenshots. On a phone that canvas must become a real single-column
   login, otherwise the 558px form remains wider than the viewport and is
   clipped before the user can submit it. */
/* ===== 正式版尺寸收口：登录、用户工具栏、审核页与常用弹窗 ===== */
.admin-login .login-panel {
  padding: 32px 48px !important;
}
.admin-login .login-form {
  width: 420px !important;
}
.admin-login .login-form h1 {
  margin-bottom: 18px !important;
  font-size: 24px !important;
}
.admin-login .login-assist {
  margin-bottom: 10px !important;
}
.admin-login .login-assist button,
.admin-login .login-role-tabs button {
  height: 30px !important;
  min-width: 92px !important;
  font-size: 13px !important;
}
.admin-login .login-form label {
  margin-bottom: 16px !important;
  font-size: 13px !important;
}
.admin-login .login-form label span {
  margin-bottom: 6px !important;
  font-size: 13px !important;
  line-height: 18px !important;
}
.admin-login .login-form input {
  height: 38px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}
.admin-login .login-submit {
  height: 40px !important;
  font-size: 14px !important;
}
.admin-login .login-panel footer {
  font-size: 12px !important;
}

.admin-shell.active-users .user-toolbar,
.admin-shell.active-apply .apply-toolbar {
  gap: 6px !important;
}
.admin-shell.active-users .user-toolbar input:not([type="checkbox"]),
.admin-shell.active-users .user-toolbar select,
.admin-shell.active-apply .apply-toolbar input,
.admin-shell.active-apply .apply-toolbar select {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
}
.admin-shell.active-users .user-toolbar .ivu-btn-primary,
.admin-shell.active-users .user-toolbar .ivu-btn-error,
.admin-shell.active-users .user-toolbar .ivu-btn-success,
.admin-shell.active-apply .apply-toolbar .ivu-btn-primary,
.admin-shell.active-apply .apply-toolbar .ivu-btn-error,
.admin-shell.active-apply .apply-footer .ivu-btn-primary,
.admin-shell.active-apply .apply-date-quick button {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  line-height: 28px !important;
}
.admin-shell.active-users .user-toolbar .user-refresh,
.admin-shell.active-users .user-switch-line,
.admin-shell.active-apply .apply-field {
  font-size: 12px !important;
}
.admin-shell.active-users .user-more-ops-row > td {
  padding: 6px 10px !important;
}
.admin-shell.active-users .user-more-ops {
  gap: 6px !important;
}
.admin-shell.active-users .user-more-ops > button {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  line-height: 28px !important;
}
.admin-shell.active-apply .apply-formal-table {
  font-size: 12px !important;
}
.admin-shell.active-apply .apply-formal-table th {
  height: 30px !important;
}
.admin-shell.active-apply .apply-formal-table td {
  height: 36px !important;
}

.admin-modal > header {
  height: 38px !important;
  padding: 0 12px !important;
}
.admin-modal h3 {
  font-size: 14px !important;
}
.admin-modal > div {
  font-size: 13px !important;
}
.admin-modal footer {
  padding: 8px 12px !important;
}
.admin-modal footer button,
.admin-modal .blue,
.admin-modal .modal-cancel {
  min-width: 64px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}
.admin-modal .form-grid,
.admin-modal .pm-modal-body,
.admin-modal .special-rebate-body,
.admin-modal .member-profile-body,
.admin-modal .score-op-form {
  padding: 10px 12px !important;
  gap: 8px !important;
}
.admin-modal input,
.admin-modal select,
.admin-modal textarea {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
}
.admin-modal textarea {
  height: auto !important;
  min-height: 120px !important;
  padding: 8px !important;
}
.admin-modal.confirm-dialog-modal .confirm-dialog-body {
  padding: 14px 18px !important;
  font-size: 13px !important;
}
.admin-modal.confirm-dialog-modal footer {
  padding: 0 18px 14px !important;
}

@media (max-width: 700px) {
  body:has(.admin-login),
  body:has(.admin-login) #root {
    overflow: auto !important;
  }

  body:has(.admin-login) #root {
    width: 100% !important;
    min-height: 100dvh !important;
    transform: none !important;
  }

  .admin-login {
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    display: block !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .admin-login .login-art {
    display: none !important;
  }

  .admin-login .login-panel {
    position: relative !important;
    width: 100% !important;
    min-height: 100dvh !important;
    padding: 92px 22px 70px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .admin-login .login-panel::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 50%;
    width: 142px;
    height: 42px;
    transform: translateX(-50%);
    background: url("/assets/web/logo-white.png") center / contain no-repeat;
    filter: brightness(0.55) saturate(1.4);
  }

  .admin-login .login-theme {
    top: 18px !important;
    right: 18px !important;
  }

  .admin-login .login-form {
    width: min(100%, 430px) !important;
    margin: 0 !important;
  }

  .admin-login .login-form h1 {
    margin-bottom: 24px !important;
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.35 !important;
    white-space: nowrap;
  }

  .admin-login .login-assist {
    justify-content: stretch !important;
    gap: 10px !important;
  }

  .admin-login .login-assist button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    font-size: 15px !important;
  }

  .admin-login .login-role-tabs {
    gap: 10px !important;
  }

  .admin-login .login-form label {
    margin-bottom: 20px !important;
  }

  .admin-login .login-form input,
  .admin-login .login-submit {
    width: 100% !important;
  }

  .admin-login .login-panel footer {
    bottom: 18px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
}

.user-reference-main .toolbar-line,
.user-reference-main .admin-filter-bar,
.user-reference-main .subtabs,
.user-reference-main .reference-tabs {
  flex: 0 0 auto !important;
}

.user-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  overflow: auto !important;
  border: 1px solid #dce8ed !important;
  border-bottom: 0 !important;
  background: #fff !important;
}

.user-table-scroll .reference-table {
  margin: 0 !important;
}

.user-reference-main .reference-footer {
  flex: 0 0 auto !important;
  border: 1px solid #dce8ed !important;
  border-top: 0 !important;
  background: #fff !important;
}

/* Final admin page guard: keep toolbars visible and make data regions scroll
   themselves. This prevents user/robot/report tables from locking the page or
   collapsing below the fold when the desktop scale changes. */
.admin-top {
  grid-template-columns: 112px minmax(880px, 1fr) auto !important;
}

.admin-top .top-message-zone {
  min-width: 880px !important;
  max-width: none !important;
}

.admin-top .marquee {
  width: 100% !important;
  max-width: none !important;
}

.admin-reference-page,
.user-reference-page {
  overflow: hidden !important;
}

.admin-reference-page .reference-layout,
.user-reference-page .reference-layout {
  overflow: hidden !important;
}

.admin-reference-page .reference-main,
.user-reference-page .reference-main {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.admin-reference-page .admin-filter-bar,
.admin-reference-page .date-quick-bar,
.admin-reference-page .reference-tabs,
.user-reference-page .toolbar-line,
.user-reference-page .admin-filter-bar,
.user-reference-page .subtabs,
.user-reference-page .reference-tabs,
.admin-reference-page .reference-footer,
.user-reference-page .reference-footer {
  flex: 0 0 auto !important;
}

.report-table-scroll,
.user-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.report-table-scroll .reference-table,
.user-table-scroll .reference-table {
  min-width: max-content !important;
}

/* Keep the full owner table width and let every data page swipe horizontally. */
.admin-body .reference-main,
.admin-body .system-main,
.admin-body .monitor-main,
.admin-body .activity-main {
  overflow-x: auto !important;
}
.admin-body table.reference-table {
  min-width: max-content !important;
}

/* The audit page mirrors the full-width owner application table and remains swipeable on narrow windows. */
.apply-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border: 1px solid #dce8ed;
  -webkit-overflow-scrolling: touch;
}
.apply-table-scroll .reference-table {
  min-width: 1120px !important;
  margin: 0;
}
.apply-table-scroll .reference-table th,
.apply-table-scroll .reference-table td {
  white-space: nowrap;
}
.apply-table-scroll .reference-table th:nth-child(1) { min-width: 150px; }
.apply-table-scroll .reference-table th:nth-child(2) { min-width: 150px; }
.apply-table-scroll .reference-table th:nth-child(4) { min-width: 150px; }
.apply-table-scroll .reference-table th:nth-child(7) { min-width: 170px; }
.apply-table-scroll .reference-table th:nth-child(9) { min-width: 120px; }
.apply-total-summary {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 44px;
  padding: 0 12px;
  color: #526772;
  font-size: 16px;
  font-weight: 700;
}
.apply-total-summary b { color: #334c59; }
.apply-type,
.apply-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.apply-type.up { background: #3caf50; }
.apply-type.down { background: #ed5a59; }
.apply-status.approved { background: #3caf50; }
.apply-status.pending { color: #e47a1c; background: #fff2df; }
.apply-status.rejected { color: #ed5a59; background: #ffe9e9; }
.apply-main .reference-footer {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.audit-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(1320px, 82vw);
  display: flex;
  flex-direction: column;
  background: #f7fafb;
  border-left: 1px solid #cbdde3;
  box-shadow: -10px 0 30px rgba(20, 48, 60, .22);
  /* 审核页直接出现，不要由右到左滑入 */
  animation: none;
  transform: none;
  transition: none;
}
.audit-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 16px 22px;
  color: #fff;
  background: linear-gradient(135deg, #058db6, #06b4bb);
}
.audit-drawer-head div { display: flex; align-items: baseline; gap: 12px; }
.audit-drawer-head b { font-size: 24px; }
.audit-drawer-head span { font-size: 14px; opacity: .9; }
.audit-drawer-head button { color: #fff; background: transparent; border: 0; cursor: pointer; }
.audit-drawer-summary {
  display: flex;
  gap: 28px;
  flex: 0 0 auto;
  padding: 14px 22px;
  color: #4c626b;
  background: #fff;
  border-bottom: 1px solid #dce8ed;
}
.audit-drawer-summary b { font-size: 18px; }
.audit-drawer-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px; }
.audit-drawer-table-scroll { min-width: 0; }
.audit-drawer-table-scroll .reference-table { min-width: 1120px !important; }
@media (max-width: 900px) {
  .audit-drawer { width: 100vw; }
}

/* Owner chat activity declarations may contain a real uploaded image. */
.chat-compose-main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.chat-compose-main textarea { width: 100%; }
.chat-upload-input { display: none !important; }
.chat-upload-button { width: 38px !important; min-width: 38px !important; padding: 0 !important; display: inline-grid; place-items: center; }
.chat-compose-images { display: flex; gap: 6px; padding: 4px 6px 0; overflow-x: auto; }
.chat-compose-images button { position: relative; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #edf4f8; }
.chat-compose-images img { width: 100%; height: 100%; object-fit: cover; }
.chat-compose-images span { position: absolute; top: 0; right: 0; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.58); color: #fff; font-size: 13px; line-height: 16px; }

/* ===== Formal home shell lock (match official screenshot) ===== */
.admin-top {
  height: 38px !important;
  grid-template-columns: 118px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 0 10px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-bottom: 1px solid #1a9fd8 !important;
}
.admin-top strong img {
  width: 82px !important;
  height: 32px !important;
}
.top-message-zone {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.top-message-zone .marquee {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 26px !important;
  padding: 0 12px !important;
  gap: 8px !important;
  border-radius: 13px !important;
  color: #ffff00 !important;
  background: rgba(0, 90, 160, .22) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.top-message-zone .marquee svg { color: #ffd456 !important; flex: 0 0 auto; }
.top-more {
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  cursor: pointer;
}
.admin-top-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.admin-top-right .top-room-meta,
.admin-top-right .top-expire {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
.admin-top-right .top-btn-feedback {
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 5px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .18) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.admin-top-right .top-btn-download {
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  color: #fff !important;
  background: #08bd24 !important;
  border: 1px solid #07a820 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.admin-top-right .top-btn-icon {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
}
.admin-top-right .top-btn-account {
  height: 28px !important;
  padding: 0 4px 0 0 !important;
  gap: 6px !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 13px !important;
}
.admin-top-right .top-avatar {
  width: 26px !important;
  height: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
}

.admin-nav {
  height: 66px !important;
  padding-left: 16px !important;
  background: #fff !important;
  border-bottom: 1px solid #d6dde1 !important;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .08) !important;
}
.admin-nav button {
  min-width: 92px !important;
  padding: 5px 7px 0 !important;
  gap: 1px !important;
  color: #1f3038 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.admin-nav button.active {
  color: #008bbb !important;
  background: #dff3f6 !important;
  border-bottom-color: #008bbb !important;
}
.admin-nav .nav-icon-wrap {
  width: 30px !important;
  height: 30px !important;
  position: relative !important;
}
.admin-nav .nav-icon {
  width: 29px !important;
  height: 29px !important;
}
.admin-nav .nav-badge {
  top: -8px !important;
  right: -18px !important;
  max-width: 39px !important;
  max-height: 18px !important;
}
.audit-float {
  top: 54px !important;
  width: 76px !important;
  height: 50px !important;
  border-radius: 26px 0 0 26px !important;
  background: linear-gradient(180deg, #ff9a32, #ff6a1e) !important;
  box-shadow: 0 4px 12px rgba(255, 104, 20, .35) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.admin-shell.active-home .home-metric-card.accent-value b {
  color: #0b9bcc !important;
}
.admin-shell.active-home .home-metric-card.is-loss b,
.admin-shell.active-home .home-metric-card.accent-value.is-loss b {
  color: #ff464d !important;
}
.admin-shell.active-home .game-data-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 15px !important;
  background: #fff !important;
}
.admin-shell.active-home .game-data-table th {
  height: 44px !important;
  color: #52636d !important;
  background: #e8f3f6 !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #d8e3e8 !important;
}
.admin-shell.active-home .game-data-table td {
  height: 44px !important;
  text-align: center !important;
  color: #1f3038 !important;
  border-bottom: 1px solid #eef3f5 !important;
}
.admin-shell.active-home .game-data-table tbody tr:nth-child(even) {
  background: #f6f8f9 !important;
}
.admin-shell.active-home .game-data-table .game-link {
  color: #008bbb !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.admin-shell.active-home .game-data-table .is-loss {
  color: #ff464d !important;
  font-weight: 700 !important;
}
.admin-shell.active-home .game-data-table .is-alert {
  color: #ff464d !important;
  font-weight: 700 !important;
}
.admin-shell.active-home .home-tabs button.active {
  color: #fff !important;
  background: #0695bb !important;
}
.admin-shell.active-home .toggle-pill.on {
  background: #0396bd !important;
}

/* ===== Formal rem lock：固定 16px（对照正式版 html font-size），勿改回 1vw ===== */
:root {
  --mj-rem: 16px;
  --mj-blue: #0087b4;
  --mj-feedback: #23caea;
  --mj-download: #00c531;
  --mj-page: #eaebec;
  --mj-nav-active: #dff7ff;
  --mj-tab: #eceff4;
  --mj-shadow: 0 0 0.714286rem #d3d3d3;
}

.admin-shell.active-home,
.admin-shell.active-home .admin-body,
.admin-shell.active-home .home-console {
  background: var(--mj-page) !important;
}

/* Top bar — solid formal blue */
.admin-shell .admin-top {
  height: calc(2.714286 * var(--mj-rem)) !important;
  min-height: calc(2.714286 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  gap: calc(0.714286 * var(--mj-rem)) !important;
  border-radius: 0 !important;
  font-size: calc(0.75 * var(--mj-rem)) !important;
  color: #fff !important;
  background: var(--mj-blue) !important;
  border-bottom: 0 !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}
.admin-shell .admin-top strong img {
  width: auto !important;
  height: calc(1.642857 * var(--mj-rem)) !important;
}
.admin-shell .top-message-zone {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  height: calc(2 * var(--mj-rem)) !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell .top-message-zone .marquee {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 calc(1 * var(--mj-rem)) !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  border-radius: 0 !important;
  color: #ff0 !important;
  background: transparent !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 400 !important;
}
.admin-shell .top-message-zone .marquee svg { color: #ffd456 !important; width: calc(1.071429 * var(--mj-rem)) !important; height: calc(1.071429 * var(--mj-rem)) !important; }
.admin-shell .top-more {
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell .admin-top-right {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.admin-shell .admin-top-right .top-room-meta,
.admin-shell .admin-top-right .top-expire {
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  margin-right: calc(0.857143 * var(--mj-rem)) !important;
  white-space: nowrap !important;
}
.admin-shell .admin-top-right .top-btn-feedback {
  width: auto !important;
  min-width: calc(4.285714 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) !important;
  margin-right: calc(1.071429 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.428571 * var(--mj-rem)) !important;
  color: #fff !important;
  background: var(--mj-feedback) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
}
.admin-shell .admin-top-right .top-btn-download {
  width: calc(6.214286 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  padding: 0 !important;
  margin-right: calc(1.071429 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.428571 * var(--mj-rem)) !important;
  color: #fff !important;
  background: var(--mj-download) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  justify-content: center !important;
}
.admin-shell .admin-top-right .top-btn-icon {
  width: calc(1.928571 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  padding: 0 !important;
  margin-right: calc(0.714286 * var(--mj-rem)) !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
}
.admin-shell .admin-top-right .top-btn-account {
  height: calc(1.928571 * var(--mj-rem)) !important;
  padding: 0 !important;
  gap: calc(0.357143 * var(--mj-rem)) !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell .admin-top-right .top-avatar {
  width: calc(1.714286 * var(--mj-rem)) !important;
  height: calc(1.714286 * var(--mj-rem)) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.22) !important;
}

/* Nav */
.admin-shell .admin-nav {
  height: calc(4.714286 * var(--mj-rem)) !important;
  padding-left: calc(1.071429 * var(--mj-rem)) !important;
  /* 右侧给「审核」浮动钮留空，避免压住导航图标 */
  padding-right: calc(5.5 * var(--mj-rem)) !important;
  background: #fff !important;
  border-bottom: 1px solid #d6dde1 !important;
  box-shadow: 0 calc(0.142857 * var(--mj-rem)) calc(0.642857 * var(--mj-rem)) rgba(0,0,0,.08) !important;
}
.admin-shell .admin-nav button {
  min-width: calc(4.928571 * var(--mj-rem)) !important;
  padding: calc(0.285714 * var(--mj-rem)) calc(0.357143 * var(--mj-rem)) 0 !important;
  gap: calc(0.071429 * var(--mj-rem)) !important;
  color: #1f3038 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: calc(0.214286 * var(--mj-rem)) solid transparent !important;
  border-radius: 0 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 700 !important;
}
.admin-shell .admin-nav button.active {
  color: var(--mj-blue) !important;
  background: var(--mj-nav-active) !important;
  border-bottom-color: var(--mj-blue) !important;
}
.admin-shell .admin-nav .nav-icon-wrap {
  width: calc(1.571429 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
}
.admin-shell .admin-nav .nav-icon {
  width: calc(1.571429 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
}
.admin-shell .admin-nav .nav-badge {
  top: calc(-0.5 * var(--mj-rem)) !important;
  right: calc(-1.15 * var(--mj-rem)) !important;
  max-width: calc(2.785714 * var(--mj-rem)) !important;
  max-height: calc(1.285714 * var(--mj-rem)) !important;
}
.admin-shell .audit-float {
  top: calc(3.4 * var(--mj-rem)) !important;
  width: calc(4.857143 * var(--mj-rem)) !important;
  height: calc(3.142857 * var(--mj-rem)) !important;
  border-radius: calc(2.714286 * var(--mj-rem)) 0 0 calc(2.714286 * var(--mj-rem)) !important;
  background: linear-gradient(180deg, #ff9a32, #ff7627) !important;
  box-shadow: 0 calc(0.285714 * var(--mj-rem)) calc(0.857143 * var(--mj-rem)) rgba(255,104,20,.35) !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 800 !important;
}

/* Home three columns — formal flex ratios */
.admin-shell.active-home .admin-body {
  padding: calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  overflow: hidden !important;
  background: var(--mj-page) !important;
}
.admin-shell.active-home .home-console,
.admin-shell.active-home .home-console.data-closed {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: calc((100vh / var(--app-scale)) - (2.714286 * var(--mj-rem)) - (4.714286 * var(--mj-rem)) - (1.5 * var(--mj-rem))) !important;
  min-height: 0 !important;
  max-height: none !important;
  grid-template-columns: unset !important;
}
.admin-shell.active-home .game-control-card {
  flex: 0 0 calc(21.428571 * var(--mj-rem)) !important;
  width: calc(21.428571 * var(--mj-rem)) !important;
  max-width: calc(21.428571 * var(--mj-rem)) !important;
  margin: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: var(--mj-shadow) !important;
  background: #fff !important;
  overflow: hidden !important;
}
.admin-shell.active-home .live-chat-card {
  flex: 1 1 auto !important;
  min-width: calc(28 * var(--mj-rem)) !important;
  width: auto !important;
  margin: 0 calc(0.571429 * var(--mj-rem)) !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: var(--mj-shadow) !important;
  background: #fff !important;
  overflow: visible !important;
}
.admin-shell.active-home .data-console-card {
  flex: 0 1 calc(36 * var(--mj-rem)) !important;
  width: calc(36 * var(--mj-rem)) !important;
  max-width: min(36 * var(--mj-rem), 38%) !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: calc(0.857143 * var(--mj-rem)) !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: var(--mj-shadow) !important;
  background: #fff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.admin-shell.active-home .home-console.data-closed .live-chat-card {
  margin-right: 0 !important;
}
.admin-shell.active-home .home-console.data-closed {
  min-width: 0 !important;
}

/* Left tabs + game rows */
.admin-shell.active-home .home-tabs {
  height: auto !important;
  padding: calc(1.071429 * var(--mj-rem)) 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 0 !important;
}
.admin-shell.active-home .home-tabs button {
  min-width: calc(5.071429 * var(--mj-rem)) !important;
  width: calc(5.071429 * var(--mj-rem)) !important;
  height: calc(2.142857 * var(--mj-rem)) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #878c94 !important;
  background: var(--mj-tab) !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  line-height: calc(2.142857 * var(--mj-rem)) !important;
  position: relative !important;
  overflow: hidden !important;
}
.admin-shell.active-home .home-tabs button:first-child { border-radius: calc(2.142857 * var(--mj-rem)) 0 0 calc(2.142857 * var(--mj-rem)) !important; }
.admin-shell.active-home .home-tabs button:last-child { border-radius: 0 calc(2.142857 * var(--mj-rem)) calc(2.142857 * var(--mj-rem)) 0 !important; }
.admin-shell.active-home .home-tabs button.active {
  color: #fff !important;
  background: var(--mj-blue) !important;
}
.admin-shell.active-home .game-switch-list {
  padding: 0 !important;
}
.admin-shell.active-home .game-switch-list article,
.admin-shell.active-home .service-channel-group > article {
  min-height: 0 !important;
  margin: 0 calc(0.535714 * var(--mj-rem)) !important;
  margin-bottom: 0 !important;
  padding: calc(0.75 * var(--mj-rem)) calc(0.535714 * var(--mj-rem)) !important;
  border-radius: calc(0.571429 * var(--mj-rem)) !important;
  grid-template-columns: calc(2.857143 * var(--mj-rem)) 1fr calc(3.0 * var(--mj-rem)) !important;
  gap: calc(0.428571 * var(--mj-rem)) !important;
  background: transparent !important;
}
.admin-shell.active-home .game-switch-list article.selected,
.admin-shell.active-home .game-switch-list article:hover,
.admin-shell.active-home .service-channel-group.selected > article {
  background: var(--mj-tab) !important;
}
.admin-shell.active-home .game-switch-list img,
.admin-shell.active-home .service-dot {
  width: calc(2.857143 * var(--mj-rem)) !important;
  height: calc(2.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-home .game-switch-list strong {
  font-size: calc(1 * var(--mj-rem)) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #272828 !important;
}
.admin-shell.active-home .game-switch-list span {
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #878c94 !important;
}
.admin-shell.active-home .toggle-pill {
  width: calc(3.0 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .toggle-pill.on { background: var(--mj-blue) !important; }
.admin-shell.active-home .game-control-card footer {
  height: auto !important;
  min-height: calc(4.5 * var(--mj-rem)) !important;
  padding: calc(0.857143 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .game-control-card footer b {
  font-size: calc(1.071429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .game-control-card footer b span { color: var(--mj-blue) !important; }
.admin-shell.active-home .game-control-card footer small {
  font-size: calc(0.785714 * var(--mj-rem)) !important;
}

/* Chat compose */
.admin-shell.active-home .chat-compose {
  min-height: calc(6 * var(--mj-rem)) !important;
  padding: calc(0.857143 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  gap: calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-compose-main textarea {
  height: calc(4.285714 * var(--mj-rem)) !important;
  min-height: calc(4.285714 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #f4f7f8 !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  color: #878c94 !important;
}
.admin-shell.active-home .chat-compose > button:not(.chat-upload-button) {
  width: calc(4.285714 * var(--mj-rem)) !important;
  min-width: calc(4.285714 * var(--mj-rem)) !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  border-radius: calc(2.285714 * var(--mj-rem)) !important;
  background: var(--mj-blue) !important;
  border: 1px solid var(--mj-blue) !important;
  font-size: calc(1 * var(--mj-rem)) !important;
}
.admin-shell.active-home .game-data-float {
  right: calc(-4.642857 * var(--mj-rem)) !important;
  left: auto !important;
  width: calc(4.642857 * var(--mj-rem)) !important;
  height: calc(2.857143 * var(--mj-rem)) !important;
  border-radius: 0 calc(2.5 * var(--mj-rem)) calc(2.5 * var(--mj-rem)) 0 !important;
  background: var(--mj-blue) !important;
  font-size: calc(1.857143 * var(--mj-rem)) !important;
  z-index: 20 !important;
}
.admin-shell.active-home .game-data-float span {
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.2 !important;
}
.admin-shell.active-home .home-console.data-closed .game-data-float {
  right: calc(1 * var(--mj-rem)) !important;
  border-radius: calc(2.5 * var(--mj-rem)) 0 0 calc(2.5 * var(--mj-rem)) !important;
}

/* Metrics — formal stacked first column + 4x2 grid */
.admin-shell.active-home .home-metrics {
  display: flex !important;
  align-items: stretch !important;
  gap: calc(0.571429 * var(--mj-rem)) !important;
  margin: 0 0 calc(0.857143 * var(--mj-rem)) !important;
  padding: 0 !important;
  grid-template-columns: unset !important;
}
.admin-shell.active-home .home-metrics-stack {
  flex: 0 0 calc(9.285714 * var(--mj-rem)) !important;
  width: calc(9.285714 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: calc(0.571429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .home-metrics-grid {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: calc(0.571429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .home-metric-card {
  min-height: calc(4.285714 * var(--mj-rem)) !important;
  height: calc(4.285714 * var(--mj-rem)) !important;
  margin: 0 !important;
  padding: calc(0.714286 * var(--mj-rem)) calc(0.428571 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #fff !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) calc(0.071429 * var(--mj-rem)) #eee !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: calc(0.428571 * var(--mj-rem)) !important;
  grid-template-columns: unset !important;
  overflow: hidden !important;
}
.admin-shell.active-home .home-metric-card.icon-right {
  justify-content: space-between !important;
}
.admin-shell.active-home .home-metric-dot {
  width: calc(1.928571 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  flex: 0 0 calc(1.928571 * var(--mj-rem)) !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
}
.admin-shell.active-home .home-metric-dot svg {
  width: calc(1.071429 * var(--mj-rem)) !important;
  height: calc(1.071429 * var(--mj-rem)) !important;
  color: #fff !important;
}
.admin-shell.active-home .home-metric-card .metric-text {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.admin-shell.active-home .home-metric-card .metric-text > span,
.admin-shell.active-home .home-metric-card > div > span {
  display: block !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
.admin-shell.active-home .home-metric-card b {
  display: block !important;
  margin-top: calc(0.214286 * var(--mj-rem)) !important;
  color: #000 !important;
  font-size: calc(1.071429 * var(--mj-rem)) !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}
.admin-shell.active-home .home-metric-card.accent-value b {
  color: var(--mj-blue) !important;
}
.admin-shell.active-home .home-metric-card.is-loss b,
.admin-shell.active-home .home-metric-card.accent-value.is-loss b {
  color: #ff464d !important;
}

/* Game table */
.admin-shell.active-home .game-data-table {
  width: 100% !important;
  flex: 1 1 auto !important;
  border-collapse: collapse !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  background: #fff !important;
}
.admin-shell.active-home .game-data-table th {
  height: calc(2.571429 * var(--mj-rem)) !important;
  color: #52636d !important;
  background: #e8f3f6 !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #d8e3e8 !important;
}
.admin-shell.active-home .game-data-table td {
  height: calc(2.571429 * var(--mj-rem)) !important;
  text-align: center !important;
  color: #474747 !important;
  border-bottom: 1px solid #eef3f5 !important;
}
.admin-shell.active-home .game-data-table tbody tr:nth-child(even) { background: #f6f8f9 !important; }
.admin-shell.active-home .game-data-table .game-link {
  color: var(--mj-blue) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.admin-shell.active-home .game-data-table .is-loss,
.admin-shell.active-home .game-data-table .is-alert {
  color: #ff464d !important;
  font-weight: 700 !important;
}

/* Narrow / wide：只调布局，不改 --app-scale / --mj-rem（否则浏览器放大会触发断点把尺寸缩回去） */
@media (max-width: 1100px) {
  .admin-shell.active-home .data-console-card {
    flex-basis: calc(42 * var(--mj-rem)) !important;
    width: calc(42 * var(--mj-rem)) !important;
    max-width: 48% !important;
  }
  .admin-shell.active-home .game-control-card {
    flex-basis: calc(18 * var(--mj-rem)) !important;
    width: calc(18 * var(--mj-rem)) !important;
  }
}

/* ===== Formal v2 precision lock ===== */
.admin-shell .admin-nav button {
  min-width: calc(4.928571 * var(--mj-rem)) !important;
  width: calc(4.928571 * var(--mj-rem)) !important;
  height: 100% !important;
  padding: calc(0.5 * var(--mj-rem)) calc(0.25 * var(--mj-rem)) calc(0.35 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.admin-shell .admin-nav .nav-icon-wrap {
  width: calc(1.571429 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
}
.admin-shell .admin-nav .nav-icon {
  width: calc(1.571429 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
}

/* Exact three-column widths：数据栏默认收起；展开时上限约 36rem/38%，避免挤扁聊天 */
.admin-shell.active-home .home-console {
  display: flex !important;
  overflow: visible !important;
}
.admin-shell.active-home .game-control-card {
  flex: 0 0 calc(21.428571 * var(--mj-rem)) !important;
  width: calc(21.428571 * var(--mj-rem)) !important;
  max-width: none !important;
}
.admin-shell.active-home .live-chat-card {
  flex: 1 1 auto !important;
  min-width: calc(28 * var(--mj-rem)) !important;
  max-width: none !important;
  margin: 0 calc(0.571429 * var(--mj-rem)) !important;
  position: relative !important;
}
.admin-shell.active-home .data-console-card {
  position: relative !important;
  flex: 0 1 calc(36 * var(--mj-rem)) !important;
  width: calc(36 * var(--mj-rem)) !important;
  max-width: min(36 * var(--mj-rem), 38%) !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transition: flex-basis .35s ease, width .35s ease, max-width .35s ease !important;
  background: transparent !important;
  box-shadow: none !important;
}
.admin-shell.active-home .data-console-card.is-closed {
  flex-basis: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
}
.admin-shell.active-home .data-console-inner {
  height: 100% !important;
  padding: calc(0.857143 * var(--mj-rem)) !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #fff !important;
  box-shadow: var(--mj-shadow) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  transition: opacity .25s ease !important;
}
.admin-shell.active-home .data-console-card.is-closed .data-console-inner {
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
}

/* Game-data tab: plate always left-rounded; only arrow flips */
.admin-shell.active-home .game-data-float {
  position: absolute !important;
  top: 50% !important;
  left: calc(-4.642857 * var(--mj-rem)) !important;
  right: auto !important;
  transform: translateY(-50%) !important;
  width: calc(4.642857 * var(--mj-rem)) !important;
  height: calc(2.857143 * var(--mj-rem)) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.2 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(2.5 * var(--mj-rem)) 0 0 calc(2.5 * var(--mj-rem)) !important;
  background: var(--mj-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
  z-index: 30 !important;
  cursor: pointer !important;
  font-size: calc(1.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
}
.admin-shell.active-home .game-data-float em {
  display: inline-block !important;
  font-style: normal !important;
  font-size: calc(1.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
  width: calc(1.2 * var(--mj-rem)) !important;
  text-align: center !important;
}
.admin-shell.active-home .game-data-float span {
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.15 !important;
  text-align: left !important;
}
.admin-shell.active-home .home-console.data-closed .live-chat-card {
  margin-right: 0 !important;
}
.admin-shell.active-home .home-console.data-closed .game-data-float,
.admin-shell.active-home .data-console-card.is-closed .game-data-float {
  left: calc(-4.642857 * var(--mj-rem)) !important;
  border-radius: calc(2.5 * var(--mj-rem)) 0 0 calc(2.5 * var(--mj-rem)) !important;
}

/* Game list typography: name 700 / issue 400 like formal */
.admin-shell.active-home .game-switch-list strong {
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 700 !important;
  color: #515a6e !important;
}
.admin-shell.active-home .game-switch-list span {
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  color: #515a6e !important;
}

/* Metric icons: stack = icon left; grid = icon right */
.admin-shell.active-home .home-metric-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}
.admin-shell.active-home .home-metric-card.icon-left {
  justify-content: flex-start !important;
}
.admin-shell.active-home .home-metric-card.icon-left .home-metric-dot { order: 0 !important; }
.admin-shell.active-home .home-metric-card.icon-left .metric-text { order: 1 !important; margin-left: calc(0.428571 * var(--mj-rem)) !important; }
.admin-shell.active-home .home-metric-card.icon-right {
  justify-content: space-between !important;
}
.admin-shell.active-home .home-metric-card.icon-right .metric-text { order: 0 !important; margin-left: 0 !important; }
.admin-shell.active-home .home-metric-card.icon-right .home-metric-dot { order: 1 !important; }

/* Chat compose formal */
.admin-shell.active-home .chat-compose {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: calc(0.35 * var(--mj-rem)) !important;
  min-height: calc(6.4 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) calc(0.85 * var(--mj-rem)) !important;
  position: relative !important;
}
.admin-shell.active-home .chat-compose-row {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  width: 100% !important;
}
.admin-shell.active-home .chat-compose-tools {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.25 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-home .chat-tool-btn {
  width: calc(2.285714 * var(--mj-rem)) !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  min-width: calc(2.285714 * var(--mj-rem)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: transparent !important;
  font-size: calc(1.35 * var(--mj-rem)) !important;
  line-height: 1 !important;
  color: #b1b1b1 !important;
}
.admin-shell.active-home .chat-tool-btn.active,
.admin-shell.active-home .chat-tool-btn:hover {
  color: var(--mj-blue) !important;
}
.admin-shell.active-home .chat-compose-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.admin-shell.active-home .chat-compose-main textarea {
  height: calc(4.285714 * var(--mj-rem)) !important;
  min-height: calc(4.285714 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-compose-row > button {
  width: calc(4.285714 * var(--mj-rem)) !important;
  min-width: calc(4.285714 * var(--mj-rem)) !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  border-radius: calc(2.285714 * var(--mj-rem)) !important;
  background: var(--mj-blue) !important;
  color: #fff !important;
  font-size: calc(1 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-emoji-panel,
.admin-shell.active-home .chat-quick-panel {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: calc(0.35 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) !important;
  border: 1px solid #eaebee !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #fff !important;
}
.admin-shell.active-home .chat-emoji-panel button,
.admin-shell.active-home .chat-quick-list button {
  border: 1px solid #479fff !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  color: #479fff !important;
  background: #fff !important;
  padding: calc(0.15 * var(--mj-rem)) calc(0.35 * var(--mj-rem)) !important;
  font-size: calc(0.785714 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-emoji-panel button {
  border: 0 !important;
  font-size: calc(1.4 * var(--mj-rem)) !important;
  padding: calc(0.15 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-quick-edit {
  display: flex !important;
  gap: calc(0.35 * var(--mj-rem)) !important;
  width: 100% !important;
}
.admin-shell.active-home .chat-quick-edit input {
  flex: 1 !important;
  height: calc(2 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-quick-edit button {
  height: calc(2 * var(--mj-rem)) !important;
  padding: 0 calc(0.7 * var(--mj-rem)) !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  background: var(--mj-blue) !important;
  color: #fff !important;
}
.admin-shell.active-home .chat-file-chip {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  background: #edf4f8 !important;
  color: #0087b4 !important;
  font-size: 12px !important;
}

/* ===== Formal pixel lock v3 (robotnew content-footer / l-header / menu-icon / top-item) ===== */
.admin-shell .admin-top {
  height: calc(2.714286 * var(--mj-rem)) !important;
  min-height: calc(2.714286 * var(--mj-rem)) !important;
  max-height: calc(2.714286 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell .admin-top strong img {
  height: calc(1.642857 * var(--mj-rem)) !important;
  width: auto !important;
}
.admin-shell .top-message-zone {
  height: calc(2 * var(--mj-rem)) !important;
}
.admin-shell .top-message-zone .marquee {
  height: 100% !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  padding: 0 calc(1 * var(--mj-rem)) !important;
}
.admin-shell .admin-top-right .top-btn-feedback,
.admin-shell .admin-top-right .top-btn-download {
  height: calc(1.928571 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}

/* menus-box 高度对照正式版 4.714286rem（≈75.4px @16） */
.admin-shell .admin-nav {
  height: calc(4.714286 * var(--mj-rem)) !important;
  min-height: calc(4.714286 * var(--mj-rem)) !important;
}
.admin-shell .admin-nav button {
  min-width: calc(4.928571 * var(--mj-rem)) !important;
  width: calc(4.928571 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 700 !important;
}
.admin-shell .admin-nav .nav-icon-wrap,
.admin-shell .admin-nav .nav-icon {
  width: calc(1.571429 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
}

/* home-right / top-item */
.admin-shell.active-home .data-console-inner {
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-home .home-metric-card {
  min-height: calc(3.857143 * var(--mj-rem)) !important;
  height: calc(3.857143 * var(--mj-rem)) !important;
  padding: calc(0.714286 * var(--mj-rem)) calc(0.428571 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-home .home-metric-card .metric-text > span,
.admin-shell.active-home .home-metric-card > div > span {
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
}
.admin-shell.active-home .home-metric-card b {
  margin-top: calc(0.142857 * var(--mj-rem)) !important;
  color: #000 !important;
  font-size: calc(1.071429 * var(--mj-rem)) !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}
.admin-shell.active-home .home-metric-card.accent-value b { color: #0087b4 !important; }
.admin-shell.active-home .home-metric-dot {
  width: calc(1.928571 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  flex: 0 0 calc(1.928571 * var(--mj-rem)) !important;
}
.admin-shell.active-home .home-metric-dot svg {
  width: calc(0.857143 * var(--mj-rem)) !important;
  height: calc(0.857143 * var(--mj-rem)) !important;
}

/* content-footer: .file | .left(input) | emoji+quick | .right(send) */
.admin-shell.active-home .chat-compose {
  display: flex !important;
  flex-direction: column !important;
  height: calc(6.428571 * var(--mj-rem)) !important;
  min-height: calc(6.428571 * var(--mj-rem)) !important;
  max-height: calc(6.428571 * var(--mj-rem)) !important;
  padding: 0 !important;
  gap: 0 !important;
  border-top: calc(0.071429 * var(--mj-rem)) solid #eaebee !important;
  justify-content: center !important;
  position: relative !important;
}
.admin-shell.active-home .chat-compose-row {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  gap: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.admin-shell.active-home .chat-tools-left {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding-left: calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-tools-left .chat-tool-btn {
  width: calc(2 * var(--mj-rem)) !important;
  height: auto !important;
  min-width: calc(2 * var(--mj-rem)) !important;
  margin-left: calc(0.5 * var(--mj-rem)) !important;
  font-size: calc(1.35 * var(--mj-rem)) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #515a6e !important;
}
.admin-shell.active-home .chat-compose-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin-left: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-compose-main textarea {
  width: 100% !important;
  height: calc(3.6 * var(--mj-rem)) !important;
  min-height: calc(3.6 * var(--mj-rem)) !important;
  background: #f4f7f8 !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  resize: none !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-tools-right {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
}
.admin-shell.active-home .chat-tools-right .chat-tool-btn {
  width: calc(2.285714 * var(--mj-rem)) !important;
  min-width: calc(2.285714 * var(--mj-rem)) !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  margin-left: calc(0.5 * var(--mj-rem)) !important;
  font-size: calc(2.0 * var(--mj-rem)) !important;
  color: #b1b1b1 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.admin-shell.active-home .chat-tools-right .chat-tool-btn.active,
.admin-shell.active-home .chat-tools-right .chat-tool-btn:hover {
  color: #0087b4 !important;
}
.admin-shell.active-home .chat-send-btn,
.admin-shell.active-home .chat-compose-row > .chat-send-btn {
  margin: 0 calc(0.714286 * var(--mj-rem)) !important;
  width: calc(4.285714 * var(--mj-rem)) !important;
  min-width: calc(4.285714 * var(--mj-rem)) !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  border-radius: calc(2.285714 * var(--mj-rem)) !important;
  background: #0087b4 !important;
  color: #fff !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  border: 0 !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-home .chat-emoji-panel,
.admin-shell.active-home .chat-quick-panel,
.admin-shell.active-home .chat-compose-images {
  position: absolute !important;
  left: calc(0.714286 * var(--mj-rem)) !important;
  right: calc(0.714286 * var(--mj-rem)) !important;
  bottom: calc(6.6 * var(--mj-rem)) !important;
  z-index: 5 !important;
}

/* ===== Formal pixel lock v4: reply panel / nav badges / marquee / icon-text gap ===== */

/* Native marquee like formal <marquee scrollamount> */
.admin-shell .top-message-zone .marquee {
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.admin-shell .top-message-zone .marquee > span {
  animation: none !important;
  transform: none !important;
}
.admin-shell .top-message-zone .marquee marquee {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #ff0 !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  line-height: calc(2 * var(--mj-rem)) !important;
}

/* menus-box .item — icon above text with formal gap */
.admin-shell .admin-nav button {
  height: calc(4.714286 * var(--mj-rem)) !important;
  min-height: calc(4.714286 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  gap: 0 !important;
  padding: 0 !important;
}
.admin-shell .admin-nav .nav-icon-wrap {
  width: calc(1.571429 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
}
.admin-shell .admin-nav .nav-icon {
  width: calc(1.571429 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
  display: block !important;
  object-fit: contain !important;
}
.admin-shell .admin-nav .nav-label {
  margin-top: calc(0.357143 * var(--mj-rem)) !important;
  text-align: center !important;
  color: #272828 !important;
  font-weight: 700 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.2 !important;
}
.admin-shell .admin-nav button.active .nav-label {
  color: #0087b4 !important;
}

/* .item .new / .hot — formal absolute corners */
.admin-shell .admin-nav .nav-badge {
  position: absolute !important;
  z-index: 100 !important;
  width: calc(2.142857 * var(--mj-rem)) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  pointer-events: none !important;
}
.admin-shell .admin-nav .nav-badge.new {
  top: calc(0.071429 * var(--mj-rem)) !important;
  right: calc(-0.642857 * var(--mj-rem)) !important;
  left: auto !important;
}
.admin-shell .admin-nav .nav-badge.hot {
  top: calc(0.071429 * var(--mj-rem)) !important;
  right: calc(0.142857 * var(--mj-rem)) !important;
  left: auto !important;
}
.admin-shell .admin-nav button {
  overflow: visible !important;
}

/* Formal .reply floating quick-reply panel */
.admin-shell.active-home .live-chat-card {
  position: relative !important;
  overflow: visible !important;
}
.admin-shell.active-home .chat-reply-panel {
  position: absolute !important;
  z-index: 40 !important;
  width: calc(15 * var(--mj-rem)) !important;
  min-height: 50% !important;
  max-height: 65% !important;
  right: calc(4.285714 * var(--mj-rem)) !important;
  bottom: calc(5.714286 * var(--mj-rem)) !important;
  left: auto !important;
  padding: calc(0.714286 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  border: 0 !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}
.admin-shell.active-home .chat-reply-tit {
  border-bottom: calc(0.071429 * var(--mj-rem)) solid #eaebee !important;
  font-size: calc(1.142857 * var(--mj-rem)) !important;
  padding: calc(0.214286 * var(--mj-rem)) 0 calc(0.714286 * var(--mj-rem)) !important;
  color: #333 !important;
  font-weight: 600 !important;
}
.admin-shell.active-home .chat-reply-search {
  margin-bottom: calc(0.571429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-reply-search input {
  width: 100% !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  padding: 0 calc(0.571429 * var(--mj-rem)) 0 calc(2.2 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #515a6e !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23808695' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat calc(0.55 * 1em) 50% / calc(1.1 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-reply-content {
  flex: 1 1 auto !important;
  overflow: auto !important;
  min-height: 0 !important;
}
.admin-shell.active-home .chat-reply-item {
  color: #333 !important;
  cursor: pointer !important;
  padding: calc(0.357143 * var(--mj-rem)) 0 !important;
  font-size: calc(1.142857 * var(--mj-rem)) !important;
  line-height: 1.45 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  height: auto !important;
  min-height: 0 !important;
}
.admin-shell.active-home .chat-reply-item:hover {
  color: #0087b4 !important;
}
.admin-shell.active-home .chat-reply-item.is-edit {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-reply-item.is-edit span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.admin-shell.active-home .chat-reply-item.is-edit button {
  flex: 0 0 auto !important;
  border: 0 !important;
  background: transparent !important;
  color: #ed4014 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  padding: 0 !important;
  height: auto !important;
  width: auto !important;
  min-width: 0 !important;
}
.admin-shell.active-home .chat-reply-empty {
  color: #999 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) 0 !important;
}
.admin-shell.active-home .chat-reply-edit-row {
  display: flex !important;
  gap: calc(0.35 * var(--mj-rem)) !important;
  padding-top: calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-reply-edit-row input {
  flex: 1 1 auto !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-reply-edit-row button {
  flex: 0 0 auto !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  padding: 0 calc(0.85 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #0087b4 !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  width: auto !important;
  min-width: 0 !important;
}
.admin-shell.active-home .chat-reply-bottom {
  padding-top: calc(0.714286 * var(--mj-rem)) !important;
  margin-top: calc(0.35 * var(--mj-rem)) !important;
  color: #0087b4 !important;
  border-top: calc(0.071429 * var(--mj-rem)) solid #f4f4f4 !important;
  cursor: pointer !important;
  font-size: calc(1 * var(--mj-rem)) !important;
}

/* Keep emoji panel near compose; kill old broken quick chip styles */
.admin-shell.active-home .chat-quick-panel { display: none !important; }
.admin-shell.active-home .chat-emoji-panel {
  position: absolute !important;
  left: calc(0.714286 * var(--mj-rem)) !important;
  right: calc(0.714286 * var(--mj-rem)) !important;
  bottom: calc(6.6 * var(--mj-rem)) !important;
  z-index: 5 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: calc(0.35 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) !important;
  border: 1px solid #eaebee !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #fff !important;
}

/* ===== Formal pixel lock v5: review panel + thinner notice footer ===== */

/* l-header notice strip: footer height 2rem, no pill background */
.admin-shell .admin-top {
  height: calc(2.714286 * var(--mj-rem)) !important;
  min-height: calc(2.714286 * var(--mj-rem)) !important;
  max-height: calc(2.714286 * var(--mj-rem)) !important;
  align-items: center !important;
}
.admin-shell .top-message-zone {
  height: calc(2 * var(--mj-rem)) !important;
  min-height: calc(2 * var(--mj-rem)) !important;
  max-height: calc(2 * var(--mj-rem)) !important;
  line-height: calc(2 * var(--mj-rem)) !important;
  padding: 0 calc(1.428571 * var(--mj-rem)) !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.admin-shell .top-message-zone .marquee {
  height: calc(2 * var(--mj-rem)) !important;
  min-height: calc(2 * var(--mj-rem)) !important;
  max-height: calc(2 * var(--mj-rem)) !important;
  line-height: calc(2 * var(--mj-rem)) !important;
  padding: 0 !important;
  gap: calc(0.714286 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  color: #ff0 !important;
}
.admin-shell .top-message-zone .marquee .marquee-bell,
.admin-shell .top-message-zone .marquee svg {
  width: calc(1.071429 * var(--mj-rem)) !important;
  height: calc(1.071429 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
  color: #ffd456 !important;
  margin: 0 !important;
  margin-right: 0 !important;
}
.admin-shell .top-message-zone .marquee img.marquee-bell {
  object-fit: contain !important;
}
.admin-shell .admin-top-right .top-btn-icon .top-mute-image {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  object-fit: contain !important;
}
.admin-shell .top-message-zone .marquee marquee {
  height: calc(2 * var(--mj-rem)) !important;
  line-height: calc(2 * var(--mj-rem)) !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  color: #ff0 !important;
}
.admin-shell .top-more {
  height: calc(2 * var(--mj-rem)) !important;
  line-height: calc(2 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Formal .review floating audit */
.admin-shell .audit-float {
  position: fixed !important;
  z-index: 620 !important;
  top: calc(2.714286 * var(--mj-rem)) !important;
  right: 0 !important;
  margin-top: calc(0.857143 * var(--mj-rem)) !important;
  width: calc(4.857143 * var(--mj-rem)) !important;
  min-width: calc(4.857143 * var(--mj-rem)) !important;
  height: calc(2.714286 * var(--mj-rem)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: #ff7627 !important;
  border-radius: calc(2.714286 * var(--mj-rem)) 0 0 calc(2.714286 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: none !important;
}
.admin-shell .audit-float.is-open {
  right: calc(65.714286 * var(--mj-rem)) !important;
}
.admin-shell .audit-float span {
  margin-left: calc(0.285714 * var(--mj-rem)) !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}

.admin-shell .audit-drawer {
  position: fixed !important;
  z-index: 600 !important;
  top: calc(2.714286 * var(--mj-rem)) !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  width: calc(65.714286 * var(--mj-rem)) !important;
  max-width: none !important;
  height: calc((100vh / var(--app-scale)) - (2.714286 * var(--mj-rem))) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 calc(1.071429 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  background: #fff !important;
  border: 0 !important;
  border-left: 0 !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) rgba(0,0,0,.1) !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}
.admin-shell .audit-drawer-head,
.admin-shell .audit-drawer-summary {
  display: none !important;
}
.admin-shell .audit-drawer-title {
  margin: 0 !important;
  padding: calc(0.857143 * var(--mj-rem)) 0 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 700 !important;
  color: #515a6e !important;
  line-height: 1.4 !important;
  background: transparent !important;
}
.admin-shell .audit-drawer-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 0 !important;
  background: transparent !important;
}
.admin-shell .audit-drawer-table-scroll {
  min-width: 0 !important;
  overflow: auto !important;
}
.admin-shell .audit-drawer .audit-table,
.admin-shell .audit-drawer .reference-table {
  width: 100% !important;
  min-width: 980px !important;
  border-collapse: collapse !important;
  background: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell .audit-drawer .reference-table th {
  height: calc(2.571429 * var(--mj-rem)) !important;
  padding: 0 calc(0.4 * var(--mj-rem)) !important;
  color: #474747 !important;
  background: #e9f2f5 !important;
  border: calc(0.071429 * var(--mj-rem)) solid #e9f2f5 !important;
  font-weight: 500 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.admin-shell .audit-drawer .reference-table td {
  height: calc(2.571429 * var(--mj-rem)) !important;
  padding: 0 calc(0.4 * var(--mj-rem)) !important;
  color: #131313 !important;
  text-align: center !important;
  border-bottom: calc(0.071429 * var(--mj-rem)) solid #eef3f5 !important;
  background: #fff !important;
  white-space: nowrap !important;
}
.admin-shell .audit-drawer .reference-table tbody tr:nth-child(even) td {
  background: #f4f7f8 !important;
}
.admin-shell .audit-drawer .reference-table td:first-child {
  color: #0087b4 !important;
}
.admin-shell .audit-drawer .reference-table button {
  height: calc(1.714286 * var(--mj-rem)) !important;
  min-width: 0 !important;
  padding: calc(0.2 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  margin: 0 calc(0.15 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
}
.admin-shell .audit-drawer .reference-table button.green { background: #19be6b !important; color: #fff !important; }
.admin-shell .audit-drawer .reference-table button.red { background: #ed4014 !important; color: #fff !important; }
.admin-shell .audit-drawer .reference-table button.blue { background: #0087b4 !important; color: #fff !important; }

/* ===== Formal metric icons (top-item .right i.*) ===== */
.admin-shell.active-home .home-metric-dot {
  width: calc(1.928571 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  flex: 0 0 calc(1.928571 * var(--mj-rem)) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-repeat: no-repeat !important;
  background-position: 50% !important;
  background-size: calc(0.857143 * var(--mj-rem)) !important;
  padding: 0 !important;
}
.admin-shell.active-home .home-metric-dot .metric-icon-img {
  width: calc(0.857143 * var(--mj-rem)) !important;
  height: calc(0.857143 * var(--mj-rem)) !important;
  object-fit: contain !important;
  display: block !important;
}
.admin-shell.active-home .home-metric-dot svg { display: none !important; }
.admin-shell.active-home .home-metric-dot.amount { background-color: #708aff !important; }
.admin-shell.active-home .home-metric-dot.thirdAmount { background-color: #ff4747 !important; }
.admin-shell.active-home .home-metric-dot.liushui { background-color: #fac77d !important; }
.admin-shell.active-home .home-metric-dot.yingkui { background-color: #80d3f3 !important; }
.admin-shell.active-home .home-metric-dot.huishui { background-color: #66de9d !important; }
.admin-shell.active-home .home-metric-dot.allykui { background-color: #ff9684 !important; }
.admin-shell.active-home .home-metric-dot.chongzhi { background-color: #f66b6b !important; }
.admin-shell.active-home .home-metric-dot.tixian { background-color: #9179fa !important; }
.admin-shell.active-home .home-metric-dot.zhuce { background-color: #f66bf1 !important; }
.admin-shell.active-home .home-metric-dot.weijie { background-color: #aab9be !important; }

/* ===== Formal system settings v2 — full page lock from robotnew #/system ===== */
.admin-shell.active-system .admin-body {
  padding: 12px 18px 10px !important;
  background: #eaebec !important;
  overflow: hidden !important;
}
.admin-shell.active-system .system-reference-page.layout-page {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell.active-system .system-reference-page > h2 { display: none !important; }
.admin-shell.active-system .system-layout {
  display: flex !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}

/* left-list: short pills + arrow, tight spacing — 缝隙对齐首页 */
.admin-shell.active-system .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  margin: 0 !important;
  height: 100% !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
}
.admin-shell.active-system .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
  transition: all .2s !important;
}
.admin-shell.active-system .left-list .tab .tab-text {
  display: inline !important;
  line-height: inherit !important;
}
.admin-shell.active-system .left-list .tab .tab-arrow {
  display: inline-block !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
  color: inherit !important;
  transform: translateY(-0.05em);
  font-weight: 400 !important;
}
.admin-shell.active-system .left-list .tab.chooseTab,
.admin-shell.active-system .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}

/* right white card */
.admin-shell.active-system .system-main-card.home-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  color: #272828 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

/* top tabs like ivu-tabs */
.admin-shell.active-system .system-tabs {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 0 calc(1.142857 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) 0 0 !important;
  gap: 0 !important;
  border-bottom: calc(0.071429 * var(--mj-rem)) solid #dcdee2 !important;
  align-items: flex-end !important;
  position: relative !important;
  display: flex !important;
  background: #fff !important;
}
.admin-shell.active-system .system-tabs button {
  height: calc(2.357143 * var(--mj-rem)) !important;
  padding: 0 calc(1.142857 * var(--mj-rem)) !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: calc(0.142857 * var(--mj-rem)) solid transparent !important;
  background: transparent !important;
  color: #515a6e !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.admin-shell.active-system .system-tabs button.active {
  color: #0087b4 !important;
  border-bottom-color: #0087b4 !important;
  font-weight: 500 !important;
}
.admin-shell.active-system .system-tabs .save-settings { display: none !important; }

/* scrollable pane: content + save flow together (NOT fixed bottom) */
.admin-shell.active-system .system-tabpane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  z-index: 2 !important;
}
.admin-shell.active-system .system-main-card > .system-tabpane:has(.close-message-page) {
  overflow: hidden !important;
}

.admin-shell.active-system .setting-matrix.contentModel {
  display: flex !important;
  grid-template-columns: none !important;
  margin: 0 calc(1.071429 * var(--mj-rem)) !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  border: 0 !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-system .setting-matrix .model {
  width: 33.333% !important;
  flex: 1 1 0 !important;
  margin-top: calc(0.714286 * var(--mj-rem)) !important;
  border: calc(0.071429 * var(--mj-rem)) solid #e1e1e5 !important;
  border-left-width: 0 !important;
  background: #fff !important;
}
.admin-shell.active-system .setting-matrix .model:first-child,
.admin-shell.active-system .setting-matrix .model.model1 {
  border-left-width: calc(0.071429 * var(--mj-rem)) !important;
}

.admin-shell.active-system .setting-row.row {
  display: flex !important;
  min-height: 0 !important;
  grid-template-columns: none !important;
  border: 0 !important;
  align-items: stretch !important;
  margin: 0 !important;
}
.admin-shell.active-system .setting-row .left {
  width: 50% !important;
  white-space: nowrap !important;
  font-size: calc(0.928571 * var(--mj-rem)) !important;
  line-height: calc(2.285714 * var(--mj-rem)) !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
  border-right: calc(0.071429 * var(--mj-rem)) solid #e1e1e5 !important;
  border-bottom: calc(0.071429 * var(--mj-rem)) solid #e1e1e5 !important;
  color: #272828 !important;
  display: flex !important;
  align-items: center !important;
  gap: calc(0.285714 * var(--mj-rem)) !important;
  background: #fff !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* 只改左侧 Info 图标，勿波及开关内部 svg（否则欢迎语/公告开关会变形） */
.admin-shell.active-system .setting-row .left > svg,
.admin-shell.active-system .setting-row .left .setting-label-main > svg {
  flex: 0 0 auto !important;
  width: calc(1.25 * var(--mj-rem)) !important;
  height: calc(1.25 * var(--mj-rem)) !important;
  color: #0087b4 !important;
  cursor: pointer !important;
}
.admin-shell.active-system .setting-row .right {
  width: 50% !important;
  height: calc(2.285714 * var(--mj-rem)) !important;
  border-bottom: calc(0.071429 * var(--mj-rem)) solid #e1e1e5 !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 calc(0.357143 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
  background: #fff !important;
}
.admin-shell.active-system .setting-row.imgbtn .left,
.admin-shell.active-system .setting-row.imgbtn .right,
.admin-shell.active-system .setting-row .right.imgbtn,
.admin-shell.active-system .setting-row .right.mjimgbtn {
  height: calc(3.928571 * var(--mj-rem)) !important;
}
.admin-shell.active-system .setting-row.is-tall .left {
  height: calc(7.142857 * var(--mj-rem)) !important;
  align-items: flex-start !important;
  padding-top: calc(0.5 * var(--mj-rem)) !important;
  white-space: normal !important;
}
.admin-shell.active-system .setting-row.is-tall .right {
  height: calc(7.142857 * var(--mj-rem)) !important;
  align-items: flex-start !important;
  padding-top: calc(0.214286 * var(--mj-rem)) !important;
}
/* 欢迎语/公告：开关放在左侧标题正下方，右侧整格留给输入框 */
.admin-shell.active-system .setting-row.has-label-extra .left {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: calc(0.428571 * var(--mj-rem));
}
.admin-shell.active-system .setting-row.has-label-extra .setting-label-main {
  display: inline-flex;
  align-items: center;
  gap: calc(0.285714 * var(--mj-rem));
  line-height: 1.35;
}
.admin-shell.active-system .setting-row.has-label-extra .setting-label-extra {
  display: flex;
  align-items: center;
  padding-left: calc(1.428571 * var(--mj-rem));
}
.admin-shell.active-system .setting-row.has-label-extra .right textarea {
  width: calc(100% - 0.71429 * var(--mj-rem)) !important;
  height: calc(6.428571 * var(--mj-rem)) !important;
  min-height: calc(6.428571 * var(--mj-rem));
  margin-top: calc(0.142857 * var(--mj-rem)) !important;
}
.admin-shell.active-system .setting-row.has-label-extra .right textarea:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #eef1f3 !important;
}
.admin-shell.active-system .setting-row .right input,
.admin-shell.active-system .setting-row .right select {
  width: calc(100% - 0.71429 * var(--mj-rem)) !important;
  height: calc(1.785714 * var(--mj-rem)) !important;
  margin-top: calc(0.178571 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) !important;
  background: #f4f7f8 !important;
  border-radius: calc(0.357143 * var(--mj-rem)) !important;
  border: calc(0.071429 * var(--mj-rem)) solid #d9dadc !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  outline: none !important;
  box-shadow: none !important;
}
.admin-shell.active-system .setting-row .right textarea {
  width: calc(100% - 0.71429 * var(--mj-rem)) !important;
  height: calc(6.785714 * var(--mj-rem)) !important;
  resize: none !important;
  text-align: left !important;
  padding: calc(0.357143 * var(--mj-rem)) !important;
  margin-top: calc(0.214286 * var(--mj-rem)) !important;
  background: #f4f7f8 !important;
  border-radius: calc(0.357143 * var(--mj-rem)) !important;
  border: calc(0.071429 * var(--mj-rem)) solid #d9dadc !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .setting-row .right .time-pair {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.25 * var(--mj-rem)) !important;
  width: 100% !important;
}
.admin-shell.active-system .setting-row .right .time-pair input { width: 100% !important; }
.admin-shell.active-system .setting-row .right .mj-switch:not(.mj-fancy-switch) {
  margin-top: calc(0.285714 * var(--mj-rem)) !important;
  height: calc(1.571429 * var(--mj-rem)) !important;
  min-width: calc(3.2 * var(--mj-rem)) !important;
}
.admin-shell.active-system .avatar-upload,
.admin-shell.active-system .avatar-upload-button {
  width: calc(3.214286 * var(--mj-rem)) !important;
  height: calc(3.214286 * var(--mj-rem)) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.admin-shell.active-system .avatar-upload-button img {
  width: calc(3.214286 * var(--mj-rem)) !important;
  height: calc(3.214286 * var(--mj-rem)) !important;
  padding: calc(0.285714 * var(--mj-rem)) !important;
  background: #ecedf0 !important;
  border-radius: calc(0.357143 * var(--mj-rem)) !important;
  object-fit: cover !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .avatar-upload-button span { display: none !important; }

/* save sits AFTER content in normal flow (formal .bottom) */
.admin-shell.active-system .system-bottom-actions.bottom,
.admin-shell.active-system .home-content .bottom {
  position: static !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: calc(1.142857 * var(--mj-rem)) !important;
  padding: 0 !important;
  background: #fff !important;
  text-align: right !important;
  display: block !important;
  border: 0 !important;
  box-shadow: none !important;
}
.admin-shell.active-system .system-bottom-actions .notice-pill { display: none !important; }
.admin-shell.active-system .system-bottom-actions .alarm {
  display: inline-block !important;
  float: left !important;
  max-width: calc(100% - 14 * var(--mj-rem)) !important;
  color: #ed4014 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.5 !important;
  text-align: left !important;
}
.admin-shell.active-system .system-bottom-actions .btn.save,
.admin-shell.active-system .system-bottom-actions button,
.admin-shell.active-system .home-content .bottom .ivu-btn-primary,
.admin-shell.active-system .home-content .bottom .btn.save {
  float: right !important;
  width: calc(5.714286 * var(--mj-rem)) !important;
  min-width: calc(5.714286 * var(--mj-rem)) !important;
  height: calc(2.142857 * var(--mj-rem)) !important;
  padding: 0 !important;
  margin: calc(0.2 * var(--mj-rem)) 0 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  color: #fff !important;
  border: none !important;
  background: #0087b4 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.admin-shell.active-system .system-sub-body,
.admin-shell.active-system .system-subpage {
  margin: calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}
.admin-shell.active-system .system-subpage .system-bottom-actions {
  position: static !important;
  margin: calc(1.142857 * var(--mj-rem)) 0 !important;
  text-align: right !important;
  display: block !important;
}
.admin-shell.active-system .system-subpage .system-bottom-actions .notice-pill { display: none !important; }
.admin-shell.active-system .system-subpage .system-bottom-actions button {
  float: right !important;
  margin-left: calc(0.714286 * var(--mj-rem)) !important;
  height: calc(2.142857 * var(--mj-rem)) !important;
  padding: 0 calc(0.85 * var(--mj-rem)) !important;
  background: #0087b4 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .mj-empty-block {
  padding: calc(3 * var(--mj-rem));
  text-align: center;
  color: #999;
  font-size: calc(0.857143 * var(--mj-rem));
}


/* ===== System settings subpages (formal parity) ===== */
.admin-shell.active-system .system-tabpane > .system-subpage {
  margin: 0 !important;
  padding: calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}
/* 封盘消息：占满内容区；中间滚动；底栏始终可见 */
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 10px 14px 0 !important;
  margin: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  position: relative !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .system-subpage.has-absolute-bottom {
  padding-bottom: calc(6 * var(--mj-rem)) !important;
}
.admin-shell.active-system .system-bottom-actions.bottom.is-absolute,
.admin-shell.active-system .has-absolute-bottom > .system-bottom-actions.bottom {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: calc(5 * var(--mj-rem)) !important;
  margin: 0 !important;
  padding: calc(0.714286 * var(--mj-rem)) calc(1.142857 * var(--mj-rem)) !important;
  background: #fff !important;
  box-shadow: 0 -0.1rem 0.4rem rgba(0,0,0,.06) !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
}
.admin-shell.active-system .system-bottom-actions.bottom.is-absolute::after,
.admin-shell.active-system .has-absolute-bottom > .system-bottom-actions.bottom::after {
  content: "";
  display: table;
  clear: both;
}
.admin-shell.active-system .system-bottom-actions.bottom.is-absolute .btn.save,
.admin-shell.active-system .system-bottom-actions.bottom.is-absolute .btn.reset,
.admin-shell.active-system .has-absolute-bottom > .system-bottom-actions .btn {
  float: right !important;
  margin-left: calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-system .system-bottom-actions .btn.reset {
  background: #fff !important;
  color: #515a6e !important;
  border: calc(0.071429 * var(--mj-rem)) solid #dcdee2 !important;
  width: auto !important;
  min-width: calc(5.714286 * var(--mj-rem)) !important;
  padding: 0 calc(0.85 * var(--mj-rem)) !important;
}

.admin-shell.active-system .ivu-alert.system-alert,
.admin-shell.active-system .system-alert {
  margin: 0 0 calc(0.857143 * var(--mj-rem)) !important;
  padding: calc(0.571429 * var(--mj-rem)) calc(3.428571 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) calc(1.142857 * var(--mj-rem)) !important;
  background: #f6ffed !important;
  border: 1px solid #b7eb8f !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  color: #222 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.6 !important;
}
.admin-shell.active-system .addPro {
  margin: 0 0 calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-system .addPro > button:not(.mj-switch),
.admin-shell.active-system .addPro .ivu-btn-primary,
.admin-shell.active-system .ivu-btn-primary:not(.mj-switch),
.admin-shell.active-system .rebate-save,
.admin-shell.active-system .ent-rebate-save {
  height: calc(2.142857 * var(--mj-rem)) !important;
  min-width: calc(5.714286 * var(--mj-rem)) !important;
  padding: 0 calc(0.85 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #0087b4 !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
}
.admin-shell.active-system .addPro .mj-switch:not(.mj-fancy-switch),
.admin-shell.active-system .rebate-toolbar .mj-switch:not(.mj-fancy-switch) {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  height: 25px !important;
  min-height: 25px !important;
  padding: 0 !important;
  border: 1px solid #ccc !important;
  border-radius: 25px !important;
  background: #ccc !important;
  color: #fff !important;
  display: inline-block !important;
  position: relative !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  float: none !important;
  margin: 0 !important;
}
.admin-shell.active-system .addPro .mj-switch:not(.mj-fancy-switch).on,
.admin-shell.active-system .rebate-toolbar .mj-switch:not(.mj-fancy-switch).on {
  background: #0087b4 !important;
  border-color: #0087b4 !important;
}
.admin-shell.active-system .addPro .mj-switch:not(.mj-fancy-switch) span,
.admin-shell.active-system .rebate-toolbar .mj-switch:not(.mj-fancy-switch) span {
  position: absolute !important;
  top: 0 !important;
  line-height: 23px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  z-index: 1 !important;
}
.admin-shell.active-system .addPro .mj-switch:not(.mj-fancy-switch).on span,
.admin-shell.active-system .rebate-toolbar .mj-switch:not(.mj-fancy-switch).on span {
  left: 8px !important;
  right: 26px !important;
  text-align: left !important;
}
.admin-shell.active-system .addPro .mj-switch:not(.mj-fancy-switch):not(.on) span,
.admin-shell.active-system .rebate-toolbar .mj-switch:not(.mj-fancy-switch):not(.on) span {
  left: 26px !important;
  right: 6px !important;
  text-align: right !important;
}
.admin-shell.active-system .addPro .mj-switch:not(.mj-fancy-switch) i,
.admin-shell.active-system .rebate-toolbar .mj-switch:not(.mj-fancy-switch) i {
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 19px !important;
  height: 19px !important;
  border-radius: 50% !important;
  background: #fff !important;
  z-index: 2 !important;
  transform: none !important;
}
.admin-shell.active-system .addPro .mj-switch:not(.mj-fancy-switch).on i,
.admin-shell.active-system .rebate-toolbar .mj-switch:not(.mj-fancy-switch).on i {
  transform: translateX(39px) !important;
}
.admin-shell.active-system .system-list-table,
.admin-shell.active-system .game-setting-table,
.admin-shell.active-system .entertainment-setting-table,
.admin-shell.active-system .entertainment-sort-table,
.admin-shell.active-system .close-message-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e8eaec !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .system-list-table th,
.admin-shell.active-system .game-setting-table th,
.admin-shell.active-system .entertainment-setting-table th,
.admin-shell.active-system .entertainment-sort-table th,
.admin-shell.active-system .close-message-table th {
  background: #f8f8f9 !important;
  color: #515a6e !important;
  font-weight: 500 !important;
  padding: calc(0.571429 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  border: 1px solid #e8eaec !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.admin-shell.active-system .system-list-table td,
.admin-shell.active-system .game-setting-table td,
.admin-shell.active-system .entertainment-setting-table td,
.admin-shell.active-system .entertainment-sort-table td,
.admin-shell.active-system .close-message-table td {
  padding: calc(0.5 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  border: 1px solid #e8eaec !important;
  text-align: center !important;
  vertical-align: middle !important;
  color: #515a6e !important;
}
.admin-shell.active-system .system-list-table input,
.admin-shell.active-system .game-setting-table input,
.admin-shell.active-system .close-message-table textarea {
  width: 100% !important;
  min-height: calc(1.785714 * var(--mj-rem)) !important;
  border: 1px solid #d9dadc !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  background: #fff !important;
  color: #515a6e !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .close-message-table textarea {
  min-height: calc(4.5 * var(--mj-rem)) !important;
  padding: calc(0.35 * var(--mj-rem)) !important;
  resize: vertical !important;
}
.admin-shell.active-system .close-game-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: calc(0.35 * var(--mj-rem)) !important;
  margin: 0 0 calc(0.714286 * var(--mj-rem)) !important;
  padding-bottom: calc(0.5 * var(--mj-rem)) !important;
  border-bottom: 1px solid #dcdee2 !important;
}
.admin-shell.active-system .close-game-tabs button {
  height: calc(2 * var(--mj-rem)) !important;
  padding: 0 calc(0.75 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  background: #fff !important;
  color: #515a6e !important;
  border-radius: calc(0.25 * var(--mj-rem)) calc(0.25 * var(--mj-rem)) 0 0 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
}
.admin-shell.active-system .close-game-tabs button.active {
  color: #fff !important;
  background: #0087b4 !important;
  border-color: #0087b4 !important;
}
.admin-shell.active-system .close-delay {
  display: inline-flex !important;
  align-items: center !important;
  gap: calc(0.25 * var(--mj-rem)) !important;
  white-space: nowrap !important;
}
.admin-shell.active-system .close-delay input {
  width: calc(4 * var(--mj-rem)) !important;
}
.admin-shell.active-system .close-remark {
  text-align: left !important;
  margin: 0 !important;
  font-size: calc(0.785714 * var(--mj-rem)) !important;
  color: #808695 !important;
  line-height: 1.5 !important;
}
.admin-shell.active-system .rebate-setting-head {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.714286 * var(--mj-rem)) !important;
  margin-bottom: calc(0.714286 * var(--mj-rem)) !important;
  font-size: calc(0.928571 * var(--mj-rem)) !important;
  color: #515a6e !important;
}
.admin-shell.active-system .rebate-setting-head select {
  height: calc(2.142857 * var(--mj-rem)) !important;
  min-width: calc(10 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-system .rebate-plan-grid {
  display: grid !important;
  gap: calc(0.714286 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) 0 !important;
}
.admin-shell.active-system .rebate-plan-grid label {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.4 * var(--mj-rem)) !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .rebate-plan-grid input[type="checkbox"],
.admin-shell.active-system .rebate-plan-row input[type="checkbox"] {
  width: 1em !important;
  height: 1em !important;
  min-width: 1em !important;
  min-height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  accent-color: #0087b4 !important;
  cursor: pointer !important;
}
.admin-shell.active-system .rebate-plan-grid input[type="text"],
.admin-shell.active-system .rebate-plan-grid input:not([type="checkbox"]) {
  width: calc(5.5 * var(--mj-rem)) !important;
  height: calc(1.857143 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  text-align: center !important;
}
.admin-shell.active-system .system-note-line {
  margin-top: calc(0.857143 * var(--mj-rem)) !important;
  color: #ed4014 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .rebate-all-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  margin: calc(1 * var(--mj-rem)) 0 !important;
  color: #515a6e !important;
}
.admin-shell.active-system .rebate-all-row input {
  width: calc(6 * var(--mj-rem)) !important;
  height: calc(1.857143 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  text-align: center !important;
}
.admin-shell.active-system .flow-sync {
  width: 100% !important;
}
.admin-shell.active-system .sync-btn {
  flex: 0 0 auto !important;
  height: calc(1.785714 * var(--mj-rem)) !important;
  padding: 0 calc(0.6 * var(--mj-rem)) !important;
  margin-top: calc(0.178571 * var(--mj-rem)) !important;
  border: 1px solid #0087b4 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  background: #fff !important;
  color: #0087b4 !important;
  font-size: calc(0.785714 * var(--mj-rem)) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.admin-shell.active-system .pay-type-radios {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.85 * var(--mj-rem)) !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}
.admin-shell.active-system .pay-type-radios label {
  display: inline-flex !important;
  align-items: center !important;
  gap: calc(0.25 * var(--mj-rem)) !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
}
.admin-shell.active-system .offline-channel-matrix {
  width: auto !important;
  max-width: calc(28 * var(--mj-rem)) !important;
}
.admin-shell.active-system .offline-channel-matrix .model {
  width: 100% !important;
  flex: none !important;
}
.admin-shell.active-system .offline-channel-matrix .setting-row .left,
.admin-shell.active-system .offline-channel-matrix .setting-row .right {
  width: 50% !important;
}
.admin-shell.active-system .game-setting-scroll {
  flex: 1 1 auto !important;
  overflow: auto !important;
  min-height: 0 !important;
}
.admin-shell.active-system .left-list .tab .tab-arrow {
  font-family: Ionicons, sans-serif !important;
  margin-left: calc(0.15 * var(--mj-rem)) !important;
}


/* ===== System settings formal v3 fixes ===== */
.admin-shell.active-system .setting-row .right .mj-select {
  width: calc(8.4375 * var(--mj-rem)) !important;
  margin: 0 auto !important;
}
.admin-shell.active-system .mj-select {
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  text-align: left !important;
  z-index: 20 !important;
}
.admin-shell.active-system .mj-select-trigger {
  width: 100% !important;
  height: calc(2.142857 * var(--mj-rem)) !important;
  padding: 0 calc(1.6 * var(--mj-rem)) 0 calc(0.5 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  text-align: center !important;
  cursor: pointer !important;
  position: relative !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .mj-select-arrow {
  position: absolute !important;
  right: calc(0.5 * var(--mj-rem)) !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid #808695 !important;
  transform: translateY(-50%) !important;
}
.admin-shell.active-system .mj-select-dropdown {
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 0.15 * var(--mj-rem)) !important;
  min-width: 100% !important;
  max-height: calc(12 * var(--mj-rem)) !important;
  overflow: auto !important;
  background: #fff !important;
  border: 1px solid #e8eaec !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.15) !important;
  z-index: 50 !important;
  padding: calc(0.25 * var(--mj-rem)) 0 !important;
}
.admin-shell.active-system .mj-select-option {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  padding: calc(0.45 * var(--mj-rem)) calc(0.75 * var(--mj-rem)) !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
}
.admin-shell.active-system .mj-select-option.selected,
.admin-shell.active-system .mj-select-option:hover {
  background: #f3f3f3 !important;
  color: #0087b4 !important;
}
.admin-shell.active-system .mj-select-option em {
  font-style: normal !important;
  color: #19be6b !important;
  margin-left: 0.25rem !important;
}

.admin-shell.active-system .mj-time-field {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: calc(6.5 * var(--mj-rem)) !important;
  height: calc(2 * var(--mj-rem)) !important;
  background: #f4f7f8 !important;
  border: 1px solid #d9dadc !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .mj-time-input {
  flex: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  padding: 0 calc(1.6 * var(--mj-rem)) 0 calc(0.35 * var(--mj-rem)) !important;
  margin: 0 !important;
  cursor: pointer !important;
}
.admin-shell.active-system .mj-time-suffix {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: calc(1.6 * var(--mj-rem)) !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: #808695 !important;
  cursor: pointer !important;
  font-size: calc(0.9 * var(--mj-rem)) !important;
  line-height: 1 !important;
}
.admin-shell.active-system .mj-time-panel {
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 0.2 * var(--mj-rem)) !important;
  width: calc(11 * var(--mj-rem)) !important;
  background: #fff !important;
  border: 1px solid #e8eaec !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.15) !important;
  z-index: 60 !important;
  padding: calc(0.4 * var(--mj-rem)) !important;
}
.admin-shell.active-system .mj-time-cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: calc(0.3 * var(--mj-rem)) !important;
  max-height: calc(10 * var(--mj-rem)) !important;
}
.admin-shell.active-system .mj-time-col {
  overflow: auto !important;
  max-height: calc(10 * var(--mj-rem)) !important;
  border: 1px solid #f0f0f0 !important;
}
.admin-shell.active-system .mj-time-col button {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  padding: calc(0.25 * var(--mj-rem)) 0 !important;
  color: #515a6e !important;
  cursor: pointer !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .mj-time-col button.active,
.admin-shell.active-system .mj-time-col button:hover {
  background: #e8f7ff !important;
  color: #0087b4 !important;
}
.admin-shell.active-system .mj-time-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: calc(0.4 * var(--mj-rem)) !important;
  margin-top: calc(0.4 * var(--mj-rem)) !important;
}
.admin-shell.active-system .mj-time-actions button {
  height: calc(1.7 * var(--mj-rem)) !important;
  padding: 0 calc(0.6 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  background: #fff !important;
  border-radius: calc(0.2 * var(--mj-rem)) !important;
  cursor: pointer !important;
}
.admin-shell.active-system .mj-time-actions button.primary {
  background: #0087b4 !important;
  border-color: #0087b4 !important;
  color: #fff !important;
}
.admin-shell.active-system .time-pair {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.25 * var(--mj-rem)) !important;
  width: 100% !important;
}
.admin-shell.active-system .btn.save,
.admin-shell.active-system .ivu-btn-primary,
.admin-shell.active-system .serch {
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* contentTable formal */
.admin-shell.active-system .contentTable {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .contentTable .title td,
.admin-shell.active-system .contentTable thead td {
  background: #f8f8f9 !important;
  color: #515a6e !important;
  font-weight: 500 !important;
  text-align: center !important;
  height: calc(2.857143 * var(--mj-rem)) !important;
  border: 1px solid #e8eaec !important;
  padding: 0 calc(0.4 * var(--mj-rem)) !important;
}
.admin-shell.active-system .contentTable .content td,
.admin-shell.active-system .contentTable tbody td {
  height: calc(5 * var(--mj-rem)) !important;
  text-align: center !important;
  vertical-align: middle !important;
  border: 1px solid #e8eaec !important;
  color: #515a6e !important;
  background: #fff !important;
  padding: calc(0.35 * var(--mj-rem)) !important;
}
.admin-shell.active-system .contentTable .content td input,
.admin-shell.active-system .contentTable .index input {
  width: calc(3.5 * var(--mj-rem)) !important;
  height: calc(1.857143 * var(--mj-rem)) !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  color: #515a6e !important;
  outline: none !important;
}
.admin-shell.active-system .contentTable .textarea,
.admin-shell.active-system .close-message-table textarea.textarea {
  width: 100% !important;
  min-height: calc(4.2 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.2 * var(--mj-rem)) !important;
  resize: vertical !important;
  padding: calc(0.35 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
  text-align: left !important;
  background: #fff !important;
}
.admin-shell.active-system .game-content-model,
.admin-shell.active-system .close-content-model {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: 0 !important;
  border-bottom: none !important;
  height: auto !important;
  max-height: none !important;
}
.admin-shell.active-system .game-setting-page {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}
.admin-shell.active-system .system-subpage.has-absolute-bottom {
  padding-bottom: calc(4.5 * var(--mj-rem)) !important;
}
.admin-shell.active-system .system-bottom-actions.bottom.is-absolute,
.admin-shell.active-system .has-absolute-bottom > .system-bottom-actions.bottom {
  height: calc(4.285714 * var(--mj-rem)) !important;
  min-height: calc(4.285714 * var(--mj-rem)) !important;
  max-height: calc(5 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) calc(1.142857 * var(--mj-rem)) !important;
  box-shadow: none !important;
  border-top: 1px solid #eaebee !important;
}
.admin-shell.active-system .sort-bottom {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  margin: calc(1.142857 * var(--mj-rem)) 0 0 !important;
  text-align: left !important;
  float: none !important;
}
.admin-shell.active-system .sort-bottom .btn.save {
  float: none !important;
}
.admin-shell.active-system .entertainment-sort-table .content {
  cursor: grab !important;
}
.admin-shell.active-system .close-message-table .left {
  width: 18% !important;
  white-space: nowrap !important;
}
.admin-shell.active-system .close-message-table .right {
  width: 36% !important;
}
.admin-shell.active-system .close-message-table .locked {
  width: 16% !important;
}
.admin-shell.active-system .close-message-page .close-game-tabs {
  flex: 0 0 auto !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

/* rebate */
.admin-shell.active-system .rebate-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.85 * var(--mj-rem)) !important;
  margin-bottom: calc(0.85 * var(--mj-rem)) !important;
  position: relative !important;
  z-index: 5 !important;
}
.admin-shell.active-system .rebate-toolbar .mj-select {
  flex: 0 0 auto !important;
  width: calc(10.625 * var(--mj-rem)) !important;
}
.admin-shell.active-system .rebate-auto-label {
  color: #515a6e !important;
  font-size: calc(0.928571 * var(--mj-rem)) !important;
  white-space: nowrap !important;
}
.admin-shell.active-system .rebate-plan-row {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.45 * var(--mj-rem)) !important;
  margin-bottom: calc(0.65 * var(--mj-rem)) !important;
}
.admin-shell.active-system .rebate-footer {
  margin-top: calc(1.2 * var(--mj-rem)) !important;
}
.admin-shell.active-system .rebate-footer .ivu-btn-primary {
  width: calc(5.714286 * var(--mj-rem)) !important;
  min-width: calc(5.714286 * var(--mj-rem)) !important;
  height: calc(2.142857 * var(--mj-rem)) !important;
}
.admin-shell.active-system .entertainment-rebate-page .ent-rebate-inputs {
  display: flex !important;
  align-items: center !important;
  gap: calc(0.85 * var(--mj-rem)) !important;
  margin-top: calc(1.2 * var(--mj-rem)) !important;
}
.admin-shell.active-system .entertainment-rebate-page .setUp {
  display: inline-flex !important;
  align-items: center !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-system .entertainment-rebate-page .programInput {
  width: calc(5.5 * var(--mj-rem)) !important;
  height: calc(1.857143 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  text-align: center !important;
}
.admin-shell.active-system .entertainment-rebate-page .serch {
  width: calc(4 * var(--mj-rem)) !important;
  min-width: calc(4 * var(--mj-rem)) !important;
  height: calc(2.142857 * var(--mj-rem)) !important;
  padding: 0 !important;
}

/* add/edit modal form */
.admin-modal.system-edit-modal {
  width: 500px !important;
  max-width: 92vw !important;
}
.admin-modal.system-edit-modal .system-form {
  display: grid !important;
  gap: calc(1 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) calc(0.5 * var(--mj-rem)) 0 !important;
}
.admin-modal.system-edit-modal .system-form > label {
  display: grid !important;
  grid-template-columns: 130px 1fr !important;
  align-items: start !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  color: #515a6e !important;
  font-size: calc(0.875 * var(--mj-rem)) !important;
}
.admin-modal.system-edit-modal .system-form > label > span {
  text-align: right !important;
  line-height: calc(2.142857 * var(--mj-rem)) !important;
}
.admin-modal.system-edit-modal .system-form input,
.admin-modal.system-edit-modal .system-form textarea {
  width: 100% !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  padding: calc(0.4 * var(--mj-rem)) calc(0.55 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
  color: #515a6e !important;
  font-size: calc(0.875 * var(--mj-rem)) !important;
}
.admin-modal.system-edit-modal .system-form input {
  height: calc(2.142857 * var(--mj-rem)) !important;
}
.admin-modal.system-edit-modal .pay-type-radios {
  justify-content: flex-start !important;
  height: calc(2.142857 * var(--mj-rem)) !important;
}

/* keep profile save right but button text centered */
.admin-shell.active-system .system-bottom-actions.bottom:not(.is-absolute):not(.sort-bottom) {
  text-align: right !important;
}
.admin-shell.active-system .system-bottom-actions.bottom:not(.is-absolute):not(.sort-bottom) .btn.save {
  float: none !important;
  display: inline-flex !important;
}


/* ===== Formal system tables v4 — lock to robotnew measured sizes ===== */
.admin-shell.active-system .contentTable {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #272828 !important;
}
.admin-shell.active-system .contentTable .title td,
.admin-shell.active-system .contentTable thead td,
.admin-shell.active-system .contentTable .edit.title td {
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  text-align: center !important;
  vertical-align: middle !important;
  border: 1px solid #e1e1e5 !important;
  padding: 0 calc(0.4 * var(--mj-rem)) !important;
  height: auto !important;
  min-height: calc(2.285714 * var(--mj-rem)) !important;
}

/* game settings columns: 195/150/88/195/167/167/200/200 */
.admin-shell.active-system .game-setting-table {
  width: 100% !important;
}
.admin-shell.active-system .game-setting-table col:nth-child(1),
.admin-shell.active-system .game-setting-table td:nth-child(1),
.admin-shell.active-system .game-setting-table th:nth-child(1) { width: 195px !important; }
.admin-shell.active-system .game-setting-table .title td:nth-child(1) { width: 195px !important; }
.admin-shell.active-system .game-setting-table .title td:nth-child(2) { width: 150px !important; }
.admin-shell.active-system .game-setting-table .title td:nth-child(3) { width: 88px !important; }
.admin-shell.active-system .game-setting-table .title td:nth-child(4) { width: 195px !important; }
.admin-shell.active-system .game-setting-table .title td:nth-child(5),
.admin-shell.active-system .game-setting-table .title td:nth-child(6) { width: 167px !important; }
.admin-shell.active-system .game-setting-table .title td:nth-child(7) { width: 200px !important; }
.admin-shell.active-system .game-setting-table .title td:nth-child(8) { width: 200px !important; }
.admin-shell.active-system .game-setting-table .content td {
  height: calc(2.714286 * var(--mj-rem)) !important;
  min-height: calc(2.714286 * var(--mj-rem)) !important;
  max-height: calc(2.714286 * var(--mj-rem)) !important;
  padding: 0 calc(0.4 * var(--mj-rem)) !important;
  border: 1px solid #e1e1e5 !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #fff !important;
  overflow: hidden !important;
}
.admin-shell.active-system .game-setting-table .content td input {
  width: 90% !important;
  max-width: 171px !important;
  height: 26px !important;
  margin: 0 auto !important;
  border: 1px solid #d9dadc !important;
  background: #f4f7f8 !important;
  border-radius: 4px !important;
  text-align: center !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #878c94 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .game-setting-table .edit td {
  height: calc(2.714286 * var(--mj-rem)) !important;
  padding: 0 11px !important;
}
.admin-shell.active-system .game-setting-table .mj-time-field {
  width: 100% !important;
  max-width: 140px !important;
  height: 26px !important;
  margin: 0 auto !important;
}
.admin-shell.active-system .game-setting-table .mj-switch:not(.mj-fancy-switch) {
  transform: scale(0.92);
  margin: 0 auto !important;
}

/* entertainment sort: compact table ~262px */
.admin-shell.active-system .entertainment-sort-page {
  padding: calc(1.071429 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) 0 !important;
}
.admin-shell.active-system .sort-table-wrap {
  width: fit-content !important;
  max-width: 100% !important;
}
.admin-shell.active-system .entertainment-sort-table {
  width: 262px !important;
  max-width: 262px !important;
  table-layout: fixed !important;
}
.admin-shell.active-system .entertainment-sort-table .title td:first-child,
.admin-shell.active-system .entertainment-sort-table td:first-child { width: 91px !important; }
.admin-shell.active-system .entertainment-sort-table .title td:last-child,
.admin-shell.active-system .entertainment-sort-table td:last-child { width: 171px !important; }
.admin-shell.active-system .entertainment-sort-table .title td {
  height: 37px !important;
  background: #e5f1f5 !important;
}
.admin-shell.active-system .entertainment-sort-table .content td {
  height: 43px !important;
  background: #fff !important;
  border: 1px solid #e1e1e5 !important;
}

/* close messages — no .left/.right collision */
.admin-shell.active-system .close-message-page {
  padding: calc(0.7 * var(--mj-rem)) calc(1 * var(--mj-rem)) 0 !important;
}
.admin-shell.active-system .close-content-model {
  overflow: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
.admin-shell.active-system .close-message-table {
  width: 100% !important;
  table-layout: fixed !important;
}
.admin-shell.active-system .close-message-table .title td {
  height: 37px !important;
  background: #e5f1f5 !important;
  padding: 0 !important;
}
.admin-shell.active-system .close-message-table .msg-name { width: 13.4% !important; }
.admin-shell.active-system .close-message-table .msg-body { width: 41% !important; }
.admin-shell.active-system .close-message-table .msg-time { width: 13.4% !important; }
.admin-shell.active-system .close-message-table .msg-desc { width: 32.2% !important; border-right: none !important; }
.admin-shell.active-system .close-message-table .content td {
  height: auto !important;
  min-height: calc(7.5 * var(--mj-rem)) !important;
  max-height: none !important;
  padding: calc(0.5 * var(--mj-rem)) !important;
  border: 1px solid #e1e1e5 !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #fff !important;
  overflow: visible !important;
  white-space: normal !important;
  color: #272828 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell.active-system .close-message-table .msg-name {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  width: 13.4% !important;
}
.admin-shell.active-system .close-message-table .textarea {
  display: block !important;
  width: 100% !important;
  height: 94px !important;
  min-height: 94px !important;
  max-height: 94px !important;
  margin: 0 auto !important;
  padding: 6px !important;
  resize: none !important;
  border: 1px solid #d9dadc !important;
  border-radius: 4px !important;
  background: #f4f7f8 !important;
  color: #000 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.5 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .close-message-table .msg-desc,
.admin-shell.active-system .close-message-table .close-remark {
  text-align: left !important;
  font-size: calc(0.785714 * var(--mj-rem)) !important;
  color: #808695 !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}
.admin-shell.active-system .close-message-page .system-bottom-actions.bottom.is-absolute {
  height: calc(4.285714 * var(--mj-rem)) !important;
}

/* kill leftover left/right rules on close table */
.admin-shell.active-system .close-message-table td.left,
.admin-shell.active-system .close-message-table td.right {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  border-right: 1px solid #e1e1e5 !important;
}

/* rebate toolbar: select + 自动回水 side by side on LEFT */
.admin-shell.active-system .rebate-toolbar.addPro,
.admin-shell.active-system .rebate-toolbar {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  width: 100% !important;
  margin: 0 0 calc(0.85 * var(--mj-rem)) !important;
  padding: 0 !important;
}
.admin-shell.active-system .rebate-toolbar .mj-select,
.admin-shell.active-system .rebate-toolbar .backWater {
  flex: 0 0 170px !important;
  width: 170px !important;
  max-width: 170px !important;
  margin: 0 !important;
}
.admin-shell.active-system .rebate-toolbar .program.program2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: calc(0.4 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 calc(0.357143 * var(--mj-rem)) !important;
  float: none !important;
}
.admin-shell.active-system .rebate-toolbar .rebate-auto-label {
  margin: 0 !important;
  white-space: nowrap !important;
  color: #272828 !important;
  font-size: calc(1 * var(--mj-rem)) !important;
}
.admin-shell.active-system .rebate-toolbar .mj-switch {
  margin: 0 !important;
  float: none !important;
  position: static !important;
}


/* ===== Close message FORMAL rebuild (isolated classes, no legacy collision) ===== */
.admin-shell.active-system .close-message-page {
  /* layout controlled by .system-tabpane > .system-subpage.close-message-page */
  position: relative !important;
  min-height: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
/* 对齐正式版 ivu-tabs-card：单行可横滑 + 左右箭头 */
.admin-shell.active-system .cm-game-tabs {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  height: 37px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border-bottom: 1px solid #dcdee2 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.admin-shell.active-system .cm-tabs-arrow {
  position: absolute !important;
  top: 0 !important;
  z-index: 2 !important;
  width: 37px !important;
  height: 37px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #515a6e !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-system .cm-tabs-prev { left: 0 !important; }
.admin-shell.active-system .cm-tabs-next { right: 0 !important; }
.admin-shell.active-system .cm-tabs-nav-wrap {
  height: 37px !important;
  margin: 0 !important;
  padding: 0 37px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important;
}
.admin-shell.active-system .cm-tabs-nav-wrap::-webkit-scrollbar { display: none !important; }
.admin-shell.active-system .cm-tabs-nav {
  display: inline-flex !important;
  align-items: flex-end !important;
  height: 37px !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .cm-game-tabs .cm-tabs-nav > button {
  display: inline-block !important;
  height: 35px !important;
  min-height: 35px !important;
  min-width: 0 !important;
  margin: 0 5px -1px 0 !important;
  padding: 6px 18px 5px !important;
  border: 1px solid #dcdee2 !important;
  border-bottom: 0 !important;
  border-radius: 5px 5px 0 0 !important;
  background: #f8f8f9 !important;
  color: #515a6e !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  vertical-align: bottom !important;
  box-shadow: none !important;
}
.admin-shell.active-system .cm-game-tabs .cm-tabs-nav > button.active {
  height: 37px !important;
  min-height: 37px !important;
  padding: 6px 18px !important;
  background: #fff !important;
  border-color: #dcdee2 !important;
  border-bottom: 1px solid #fff !important;
  color: #0087b4 !important;
  font-weight: 400 !important;
}
.admin-shell.active-system .cm-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}
.admin-shell.active-system .cm-formal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-size: 14px !important;
  color: #272828 !important;
  background: #fff !important;
}
.admin-shell.active-system .cm-formal-table thead { display: table-header-group !important; }
.admin-shell.active-system .cm-formal-table tbody { display: table-row-group !important; }
.admin-shell.active-system .cm-formal-table tr { display: table-row !important; }
.admin-shell.active-system .cm-formal-table th,
.admin-shell.active-system .cm-formal-table td {
  display: table-cell !important;
  border: 1px solid #e1e1e5 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .cm-formal-table th {
  height: 37px !important;
  padding: 0 !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
  text-align: center !important;
}
.admin-shell.active-system .cm-formal-table td {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 10px 8px !important;
  background: #fff !important;
  text-align: center !important;
  overflow: visible !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
}
.admin-shell.active-system .cm-col-name { width: 13.5% !important; white-space: nowrap !important; }
.admin-shell.active-system .cm-col-body { width: 41% !important; }
.admin-shell.active-system .cm-col-time { width: 13.5% !important; }
.admin-shell.active-system .cm-col-desc { width: 32% !important; }
.admin-shell.active-system .cm-formal-table td.cm-col-desc {
  text-align: left !important;
  color: #808695 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  padding-left: 12px !important;
}
.admin-shell.active-system .cm-formal-table textarea {
  display: block !important;
  width: 96% !important;
  height: 94px !important;
  min-height: 94px !important;
  max-height: 94px !important;
  margin: 0 auto !important;
  padding: 6px !important;
  border: 1px solid #d9dadc !important;
  border-radius: 4px !important;
  background: #f4f7f8 !important;
  color: #000 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  resize: none !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .cm-delay {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  color: #515a6e !important;
  font-size: 14px !important;
}
.admin-shell.active-system .cm-delay input {
  width: 56px !important;
  height: 28px !important;
  border: 1px solid #d9dadc !important;
  border-radius: 4px !important;
  text-align: center !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 14px !important;
}

/* 封盘：中间区域可滚；底栏固定 69px（对齐正式版） */
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page > .cm-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 0 0 6px !important;
}
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page > .cm-footer {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 69px !important;
  height: 69px !important;
  min-height: 69px !important;
  max-height: 69px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-top: 1px solid #eaebee !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  z-index: 5 !important;
  float: none !important;
}
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page > .cm-footer .cm-alarm {
  display: block !important;
  float: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  color: #ed4014 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: left !important;
}
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page > .cm-footer .cm-btn-save,
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page > .cm-footer .cm-btn-reset {
  float: none !important;
  flex: 0 0 auto !important;
  width: 91px !important;
  min-width: 91px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 0 0 10px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  line-height: 32px !important;
  text-align: center !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page > .cm-footer .cm-btn-save,
.admin-shell.active-system .system-tabpane > .system-subpage.close-message-page > .cm-footer .cm-btn-reset {
  border: none !important;
  background: #0087b4 !important;
  color: #fff !important;
}
.admin-shell.active-system .cm-footer-btns { display: contents !important; }

/* sort save centered under compact table */
.admin-shell.active-system .entertainment-sort-page .sort-table-wrap {
  width: 262px !important;
}
.admin-shell.active-system .entertainment-sort-page .sort-bottom {
  width: 262px !important;
  margin: 18px 0 0 !important;
  text-align: center !important;
  display: block !important;
}
.admin-shell.active-system .entertainment-sort-page .sort-bottom .btn.save {
  float: none !important;
  display: inline-flex !important;
  margin: 0 auto !important;
}

/* game header second row: only switches */
.admin-shell.active-system .game-setting-table .edit.title td {
  height: 43px !important;
  background: #e5f1f5 !important;
}
.admin-shell.active-system .game-setting-table .edit.title td input,
.admin-shell.active-system .game-setting-table .edit.title td .mj-time-field {
  display: none !important;
}

/* ===== Wallet page formal rebuild (align robotnew #/wallet) ===== */
.admin-shell.active-wallet .wallet-reference-page.layout-page {
  height: calc((100vh / var(--app-scale)) - (2.714286 * var(--mj-rem)) - (4.714286 * var(--mj-rem))) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell.active-wallet .wallet-reference-page > h2 { display: none !important; }
.admin-shell.active-wallet .wallet-layout,
.admin-shell.active-wallet .wallet-wide-layout,
.admin-shell.active-wallet .wallet-layout-formal {
  display: flex !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  justify-content: space-between !important;
}

.admin-shell.active-wallet .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) 0 calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
}
.admin-shell.active-wallet .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
}
.admin-shell.active-wallet .left-list .tab .tab-text { display: inline !important; }
.admin-shell.active-wallet .left-list .tab .tab-arrow {
  display: inline-block !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: inherit !important;
  transform: translateY(-0.05em);
}
.admin-shell.active-wallet .left-list .tab.chooseTab,
.admin-shell.active-wallet .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}

.admin-shell.active-wallet .wallet-main-card.home-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  background: #fff !important;
  border-radius: 0 0 calc(0.571429 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  color: #272828 !important;
  position: relative !important;
  overflow: auto !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.admin-shell.active-wallet .addPro {
  margin: calc(0.714286 * var(--mj-rem)) !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-wallet .addPro > button,
.admin-shell.active-wallet .addPro .ivu-btn-primary {
  height: calc(2 * var(--mj-rem)) !important;
  min-width: auto !important;
  padding: 0 calc(1.071429 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #0087b4 !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  float: none !important;
}

.admin-shell.active-wallet .wallet-alert.ivu-alert,
.admin-shell.active-wallet .ivu-alert.ivu-alert-success.wallet-alert {
  margin: 0 calc(0.714286 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  padding: calc(0.571429 * var(--mj-rem)) calc(3.428571 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) calc(1.142857 * var(--mj-rem)) !important;
  background: #f6ffed !important;
  border: 1px solid #b7eb8f !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  color: #222 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1.5 !important;
  flex: 0 0 auto !important;
  height: auto !important;
}
.admin-shell.active-wallet .wallet-alert-second {
  margin-top: calc(1 * var(--mj-rem)) !important;
}
.admin-shell.active-wallet .wallet-alert .ivu-alert-message {
  color: #222 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}

.admin-shell.active-wallet .walletCon {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  margin: 0 calc(0.714286 * var(--mj-rem)) !important;
  padding: 0 !important;
  gap: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-wallet .walletCon .report-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  overflow: auto !important;
}
.admin-shell.active-wallet .walletCon .info {
  flex: 0 0 calc(13.8125 * var(--mj-rem)) !important;
  width: calc(13.8125 * var(--mj-rem)) !important;
  margin: 0 0 0 calc(0.714286 * var(--mj-rem)) !important;
  overflow: hidden !important;
}
.admin-shell.active-wallet .walletCon .info-con {
  width: 100% !important;
  border: 1px solid #dcdee2 !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  max-height: calc(100vh / var(--app-scale) - 16 * var(--mj-rem)) !important;
  background: #fff !important;
}
.admin-shell.active-wallet .walletCon .tit {
  height: calc(3 * var(--mj-rem)) !important;
  line-height: calc(3 * var(--mj-rem)) !important;
  padding: 0 0 0 calc(0.714286 * var(--mj-rem)) !important;
  margin: 0 !important;
  background: #eaf2f5 !important;
  color: #0087b4 !important;
  font-size: calc(1.142857 * var(--mj-rem)) !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.admin-shell.active-wallet .walletCon .tit svg {
  color: #0087b4 !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-wallet .walletCon .content {
  padding: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(1 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
}
.admin-shell.active-wallet .walletCon .tit1 {
  margin: 0 0 calc(0.214286 * var(--mj-rem)) !important;
  color: #0087b4 !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  font-weight: 700 !important;
  line-height: calc(1.5 * var(--mj-rem)) !important;
}
.admin-shell.active-wallet .walletCon .txt {
  margin: 0 0 calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-wallet .walletCon .txt p {
  margin: 0 !important;
  color: #333 !important;
  font-size: calc(1 * var(--mj-rem)) !important;
  line-height: calc(1.5 * var(--mj-rem)) !important;
  font-weight: 400 !important;
}
.admin-shell.active-wallet .walletCon .txt p.red { color: #ed4014 !important; }
.admin-shell.active-wallet .walletCon .tit2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 0 calc(0.714286 * var(--mj-rem)) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0087b4 !important;
  font-size: calc(1.142857 * var(--mj-rem)) !important;
  font-weight: 700 !important;
  line-height: calc(2 * var(--mj-rem)) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-wallet .walletCon .tit2 svg {
  transition: transform .2s !important;
}
.admin-shell.active-wallet .walletCon .tit2 svg.open {
  transform: rotate(180deg) !important;
}

.admin-shell.active-wallet .wallet-full {
  margin: 0 calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

.admin-shell.active-wallet .wallet-formal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  border: 1px solid #dcdee2 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #272828 !important;
  background: #fff !important;
}
.admin-shell.active-wallet .wallet-formal-table th,
.admin-shell.active-wallet .wallet-formal-table td {
  border: 1px solid #dcdee2 !important;
  text-align: center !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-wallet .wallet-formal-table th {
  height: calc(2.3125 * var(--mj-rem)) !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
.admin-shell.active-wallet .wallet-formal-table td {
  height: calc(2.75 * var(--mj-rem)) !important;
  background: #fff !important;
  color: #515a6e !important;
}
.admin-shell.active-wallet .wallet-formal-table .wallet-empty-row td {
  height: calc(10.75 * var(--mj-rem)) !important;
  padding: calc(1 * var(--mj-rem)) !important;
}
.admin-shell.active-wallet .wallet-formal-table .wallet-op {
  min-width: calc(4 * var(--mj-rem)) !important;
  height: calc(1.75 * var(--mj-rem)) !important;
  padding: 0 calc(0.75 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.25 * var(--mj-rem)) !important;
  background: #0087b4 !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
}
.admin-shell.active-wallet .wallet-paytype-table {
  width: calc(20 * var(--mj-rem)) !important;
  max-width: 100% !important;
  margin-top: 0 !important;
}

/* neutralize oversized legacy wallet rules inside active-wallet */
.admin-shell.active-wallet .wallet-toolbar,
.admin-shell.active-wallet .wallet-tip,
.admin-shell.active-wallet .wallet-help,
.admin-shell.active-wallet .wallet-add {
  display: none !important;
}

/* ===== User management formal rebuild (align robotnew #/user) ===== */
.admin-shell.active-users .user-reference-page.layout-page {
  height: calc((100vh / var(--app-scale)) - (2.714286 * var(--mj-rem)) - (4.714286 * var(--mj-rem))) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell.active-users .user-layout-formal,
.admin-shell.active-users .two-col-layout {
  display: flex !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  justify-content: space-between !important;
  align-items: stretch !important;
}

.admin-shell.active-users .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) 0 calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
}
.admin-shell.active-users .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
}
.admin-shell.active-users .left-list .tab .tab-text { display: inline !important; }
.admin-shell.active-users .left-list .tab .tab-arrow {
  display: inline-block !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: inherit !important;
}
.admin-shell.active-users .left-list .tab.chooseTab,
.admin-shell.active-users .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}

.admin-shell.active-users .user-main-card.user-page {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  background: #fff !important;
  border-radius: 0 0 calc(0.571429 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  color: #272828 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  max-height: none !important;
}

.admin-shell.active-users .user-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-users .user-toolbar input:not([type="checkbox"]),
.admin-shell.active-users .user-toolbar select {
  width: calc(11 * var(--mj-rem)) !important;
  height: calc(2 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.admin-shell.active-users .user-toolbar .manual-select { width: calc(6 * var(--mj-rem)) !important; }
.admin-shell.active-users .user-toolbar .ivu-btn-primary,
.admin-shell.active-users .user-toolbar .ivu-btn-error,
.admin-shell.active-users .user-toolbar .ivu-btn-success,
.admin-shell.active-users .reference-footer .ivu-btn-primary {
  height: calc(2 * var(--mj-rem)) !important;
  min-width: 0 !important;
  padding: 0 calc(1.071429 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  float: none !important;
}
.admin-shell.active-users .user-toolbar .ivu-btn-primary { background: #0087b4 !important; }
.admin-shell.active-users .user-toolbar .ivu-btn-error { background: #e75a56 !important; }
.admin-shell.active-users .user-toolbar .ivu-btn-success { background: #3fad46 !important; }
.admin-shell.active-users .user-switch-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-users .user-switch-line input[type="checkbox"] {
  width: 1em !important;
  height: 1em !important;
  min-width: 1em !important;
  min-height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #a0a7b0 !important;
  border-radius: 2px !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  accent-color: #0087b4 !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-users .user-refresh {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0087b4 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-users .toolbar-label {
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  white-space: nowrap !important;
}

.admin-shell.active-users .user-subtabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  margin: 0 calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-users .user-subtabs button {
  height: calc(2 * var(--mj-rem)) !important;
  min-width: 0 !important;
  padding: 0 calc(0.9 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #0087b4 !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-users .user-subtabs button.active {
  background: #006d91 !important;
}

/* card tabs like ivu-tabs-card */
.admin-shell.active-users .user-card-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  margin: calc(0.5 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #dcdee2 !important;
  flex: 0 0 auto !important;
  overflow-x: auto !important;
}
.admin-shell.active-users .user-card-tabs button {
  height: 35px !important;
  min-height: 35px !important;
  margin: 0 5px -1px 0 !important;
  padding: 6px 18px 5px !important;
  border: 1px solid #dcdee2 !important;
  border-bottom: 0 !important;
  border-radius: 5px 5px 0 0 !important;
  background: #f8f8f9 !important;
  color: #515a6e !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
/* 亮色模式 card-tabs 选中态 */
.admin-shell:not(.theme_black) .user-card-tabs button.active {
  background: #fff !important;
  color: #2d8cf0 !important;
  border-bottom: 1px solid #fff !important;
  position: relative;
  z-index: 1;
}
.admin-shell.active-users .robot-form-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin: 0 10px 12px;
  padding: 18px 28px 28px;
  background: #fff;
  border: 1px solid #dcdee2;
  border-top: 0;
  box-sizing: border-box;
}
.admin-shell.active-users .robot-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 14px;
}
.admin-shell.active-users .robot-form-row-top {
  align-items: flex-start;
}
.admin-shell.active-users .robot-form-label {
  flex: 0 0 168px;
  width: 168px;
  color: #515a6e;
  font-size: 14px;
  line-height: 32px;
  text-align: right;
}
.admin-shell.active-users .robot-form-label em {
  color: #ed4014;
  margin-right: 4px;
  font-style: normal;
}
.admin-shell.active-users .robot-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  background: #2d8cf0;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
}
.admin-shell.active-users .robot-form-control {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-shell.active-users .robot-form-control > input,
.admin-shell.active-users .robot-form-control > select {
  width: min(420px, 100%);
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  background: #fff;
  color: #515a6e;
  font-size: 14px;
  box-sizing: border-box;
}
.admin-shell.active-users .robot-avatar-actions {
  gap: 12px;
}
.admin-shell.active-users .robot-form-avatar-preview {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #e8eaec;
}
.admin-shell.active-users .robot-schedule-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}
.admin-shell.active-users .robot-schedule-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: #515a6e;
  font-size: 14px;
}
.admin-shell.active-users .robot-schedule-line input[type="time"] {
  width: 130px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
}
.admin-shell.active-users .robot-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  color: #515a6e;
}
.admin-shell.active-users .robot-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px 18px;
  width: 100%;
  padding-top: 4px;
}
.admin-shell.active-users .robot-game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 4px;
  color: #515a6e;
  font-size: 14px;
}
.admin-shell.active-users .robot-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 8px;
}
.admin-shell.active-users .robot-confirm-btn {
  min-width: 108px;
  height: 36px !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 4px !important;
  background: #2d8cf0 !important;
  color: #fff !important;
  font-size: 14px !important;
  cursor: pointer;
}
.admin-shell.active-users .robot-list-toolbar {
  margin-top: 8px;
}
@media (max-width: 1200px) {
  .admin-shell.active-users .robot-game-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}


.admin-shell.active-users .user-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  overflow: hidden !important;
}
.admin-shell.active-users .user-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}
.admin-shell.active-users .user-formal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
  border: 1px solid #dcdee2 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #272828 !important;
  background: #fff !important;
}
.admin-shell.active-users .user-formal-table th,
.admin-shell.active-users .user-formal-table td {
  border: 1px solid #dcdee2 !important;
  text-align: center !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  white-space: nowrap !important;
}
.admin-shell.active-users .user-formal-table th {
  height: calc(2.3125 * var(--mj-rem)) !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
}
.admin-shell.active-users .user-formal-table td {
  height: calc(2.75 * var(--mj-rem)) !important;
  color: #515a6e !important;
  background: #fff !important;
}
.admin-shell.active-users .user-formal-table .wallet-empty-row td {
  height: calc(10.75 * var(--mj-rem)) !important;
  padding: calc(1 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-footer {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}
.admin-shell.active-users .online-dot {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #c5c8ce !important;
}
.admin-shell.active-users .online-dot.on { background: #19be6b !important; }
.admin-shell.active-users .mini-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #e8f4f8 !important;
  color: #0087b4 !important;
  font-size: 12px !important;
}
.admin-shell.active-users .robot-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.admin-shell.active-users .tag {
  display: inline-block !important;
  min-width: 28px !important;
  padding: 0 8px !important;
  height: 22px !important;
  line-height: 22px !important;
  border-radius: 3px !important;
  font-size: 12px !important;
}
.admin-shell.active-users .green-tag { background: #e8f9ef !important; color: #19be6b !important; }
.admin-shell.active-users .blue-tag { background: #e8f4f8 !important; color: #0087b4 !important; }
.admin-shell.active-users .btn-blue,
.admin-shell.active-users .btn-green,
.admin-shell.active-users .btn-red,
.admin-shell.active-users .link-btn {
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 10px !important;
  margin: 0 2px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-users .btn-blue { background: #0087b4 !important; }
.admin-shell.active-users .btn-green { background: #19be6b !important; }
.admin-shell.active-users .btn-red { background: #e75a56 !important; }
.admin-shell.active-users .link-btn {
  background: transparent !important;
  color: #0087b4 !important;
  height: auto !important;
  padding: 0 4px !important;
}
.admin-shell.active-users .ops {
  white-space: nowrap !important;
}

/* neutralize oversized legacy user styles */
.admin-shell.active-users .robot-tabs,
.admin-shell.active-users .toolbar-line,
.admin-shell.active-users .subtabs,
.admin-shell.active-users .user-agent-tabs {
  display: none !important;
}

/* ===== Apply management formal rebuild (align robotnew #/apply) ===== */
.admin-shell.active-apply .apply-reference-page.layout-page {
  height: calc((100vh / var(--app-scale)) - (2.714286 * var(--mj-rem)) - (4.714286 * var(--mj-rem))) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell.active-apply .apply-layout-formal,
.admin-shell.active-apply .two-col-layout {
  display: flex !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  justify-content: space-between !important;
  align-items: stretch !important;
}
.admin-shell.active-apply .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) 0 calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
}
.admin-shell.active-apply .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
}
.admin-shell.active-apply .left-list .tab .tab-text { display: inline !important; }
.admin-shell.active-apply .left-list .tab .tab-arrow {
  display: inline-block !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: inherit !important;
}
.admin-shell.active-apply .left-list .tab.chooseTab,
.admin-shell.active-apply .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}

.admin-shell.active-apply .apply-main-card.apply-table {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  background: #fff !important;
  border-radius: 0 0 calc(0.571429 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  color: #272828 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.admin-shell.active-apply .apply-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 6px 8px !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-apply .apply-toolbar input,
.admin-shell.active-apply .apply-toolbar select {
  height: 26px !important;
  min-width: 80px !important;
  padding: 0 6px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 12px !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.admin-shell.active-apply .apply-toolbar input[type="date"] { min-width: 100px !important; }
.admin-shell.active-apply .apply-field {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #515a6e !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
.admin-shell.active-apply .apply-toolbar .ivu-btn-primary,
.admin-shell.active-apply .apply-toolbar .ivu-btn-error,
.admin-shell.active-apply .apply-footer .ivu-btn-primary {
  height: 26px !important;
  min-width: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  float: none !important;
}
.admin-shell.active-apply .apply-toolbar .ivu-btn-primary { background: #0087b4 !important; }
.admin-shell.active-apply .apply-toolbar .ivu-btn-error { background: #e75a56 !important; }

.admin-shell.active-apply .apply-date-quick.date-quick-bar {
  display: flex !important;
  gap: 6px !important;
  margin: 0 8px 8px !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-apply .apply-date-quick button {
  height: 24px !important;
  min-width: 50px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #19be6b !important;
  color: #fff !important;
  font-size: 12px !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.admin-shell.active-apply .apply-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  overflow: hidden !important;
}
.admin-shell.active-apply .apply-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  max-height: none !important;
}
.admin-shell.active-apply .apply-formal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #dcdee2 !important;
  font-size: 12px !important;
  color: #272828 !important;
  background: #fff !important;
}
.admin-shell.active-apply .apply-formal-table th,
.admin-shell.active-apply .apply-formal-table td {
  border: 1px solid #dcdee2 !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0 5px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.admin-shell.active-apply .apply-formal-table th {
  height: 28px !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}
.admin-shell.active-apply .apply-formal-table td {
  height: 32px !important;
  color: #515a6e !important;
  background: #fff !important;
  font-size: 12px !important;
}
.admin-shell.active-apply .apply-formal-table .wallet-empty-row td {
  height: 172px !important;
  padding: 16px !important;
}
.admin-shell.active-apply .apply-footer {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.admin-shell.active-apply .apply-total-summary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-right: auto !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.admin-shell.active-apply .apply-type,
.admin-shell.active-apply .apply-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  min-height: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 3px !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-apply .apply-type.up,
.admin-shell.active-apply .apply-status.approved {
  background: #19be6b !important;
  color: #fff !important;
}
.admin-shell.active-apply .apply-type.down,
.admin-shell.active-apply .apply-status.rejected {
  background: #e75a56 !important;
  color: #fff !important;
}
.admin-shell.active-apply .apply-type.bonus {
  background: #ff9900 !important;
  color: #fff !important;
}
.admin-shell.active-apply .apply-status.pending {
  background: #fff2df !important;
  color: #e47a1c !important;
}
.admin-shell.active-apply .apply-status.ignored,
.admin-shell.active-apply .apply-status.trading {
  background: #f0f0f0 !important;
  color: #808695 !important;
}
.admin-shell.active-apply .btn-blue,
.admin-shell.active-apply .btn-green,
.admin-shell.active-apply .btn-red {
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 10px !important;
  margin: 0 2px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-apply .btn-blue { background: #0087b4 !important; }
.admin-shell.active-apply .btn-green { background: #19be6b !important; }
.admin-shell.active-apply .btn-red { background: #e75a56 !important; }
.admin-shell.active-apply .ops { white-space: nowrap !important; }


/* ===== Reports formal rebuild (align robotnew #/report) ===== */
.admin-shell.active-reports .report-reference-page.layout-page {
  height: calc((100vh / var(--app-scale)) - (2.714286 * var(--mj-rem)) - (4.714286 * var(--mj-rem))) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell.active-reports .report-layout-formal,
.admin-shell.active-reports .two-col-layout {
  display: flex !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  justify-content: space-between !important;
  align-items: stretch !important;
}
.admin-shell.active-reports .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) 0 calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
}
.admin-shell.active-reports .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
}
.admin-shell.active-reports .left-list .tab .tab-text { display: inline !important; }
.admin-shell.active-reports .left-list .tab .tab-arrow {
  display: inline-block !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: inherit !important;
}
.admin-shell.active-reports .left-list .tab.chooseTab,
.admin-shell.active-reports .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}

.admin-shell.active-reports .report-main-card.report-table {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  background: #fff !important;
  border-radius: 0 0 calc(0.571429 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  color: #272828 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.admin-shell.active-reports .report-card-tabs {
  display: flex !important;
  gap: 0 !important;
  margin: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) 0 !important;
  flex: 0 0 auto !important;
  border-bottom: 1px solid #e8eaec !important;
}
.admin-shell.active-reports .report-card-tabs button {
  height: calc(2.285714 * var(--mj-rem)) !important;
  padding: 0 calc(1.142857 * var(--mj-rem)) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
  margin-bottom: -1px !important;
}
.admin-shell.active-reports .report-card-tabs button.active {
  color: #0087b4 !important;
  border-bottom-color: #0087b4 !important;
  font-weight: 500 !important;
}

.admin-shell.active-reports .report-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-reports .report-toolbar input,
.admin-shell.active-reports .report-toolbar select {
  height: calc(2 * var(--mj-rem)) !important;
  min-width: calc(7.5 * var(--mj-rem)) !important;
  padding: 0 calc(0.571429 * var(--mj-rem)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.admin-shell.active-reports .report-toolbar input[type="date"] { min-width: calc(9 * var(--mj-rem)) !important; }
.admin-shell.active-reports .report-toolbar .ivu-btn-primary,
.admin-shell.active-reports .report-toolbar .ivu-btn-error,
.admin-shell.active-reports .report-toolbar .ivu-btn-success,
.admin-shell.active-reports .report-date-quick .ivu-btn-success,
.admin-shell.active-reports .report-footer .ivu-btn-primary {
  height: calc(2 * var(--mj-rem)) !important;
  min-width: 0 !important;
  padding: 0 calc(1.071429 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.admin-shell.active-reports .report-toolbar .ivu-btn-primary,
.admin-shell.active-reports .report-footer .ivu-btn-primary { background: #0087b4 !important; }
.admin-shell.active-reports .report-toolbar .ivu-btn-error { background: #e75a56 !important; }
.admin-shell.active-reports .report-toolbar .ivu-btn-success,
.admin-shell.active-reports .report-date-quick .ivu-btn-success { background: #3fad46 !important; }

.admin-shell.active-reports .report-date-quick.date-quick-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: calc(0.5 * var(--mj-rem)) !important;
  margin: 0 calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-reports .report-date-quick .btn-date {
  height: calc(2 * var(--mj-rem)) !important;
  min-width: calc(4.5 * var(--mj-rem)) !important;
  padding: 0 calc(0.85 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  background: #3fad46 !important;
  color: #fff !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-reports .report-check {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
.admin-shell.active-reports .required-mark {
  color: #e75a56 !important;
  margin: 0 2px !important;
}

.admin-shell.active-reports .report-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
  overflow: hidden !important;
}
.admin-shell.active-reports .report-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  max-height: none !important;
}
.admin-shell.active-reports .report-formal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #dcdee2 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #272828 !important;
  background: #fff !important;
}
.admin-shell.active-reports .report-formal-table th,
.admin-shell.active-reports .report-formal-table td {
  border: 1px solid #dcdee2 !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0 calc(0.4 * var(--mj-rem)) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.admin-shell.active-reports .report-formal-table th {
  height: calc(2.3125 * var(--mj-rem)) !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
}
.admin-shell.active-reports .report-formal-table td {
  height: calc(2.75 * var(--mj-rem)) !important;
  color: #515a6e !important;
  background: #fff !important;
}
.admin-shell.active-reports .report-formal-table .wallet-empty-row td {
  height: calc(10.75 * var(--mj-rem)) !important;
  padding: calc(1 * var(--mj-rem)) !important;
}
.admin-shell.active-reports .report-footer {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.admin-shell.active-reports .report-total-summary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-right: auto !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap !important;
}
.admin-shell.active-reports .notice-pill {
  color: #808695 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.admin-shell.active-reports .admin-filter-bar,
.admin-shell.active-reports .reference-tabs,
.admin-shell.active-reports .reports-main > .reference-footer {
  display: none !important;
}


/* ===== Activity formal rebuild (align robotnew #/promotions) ===== */
.admin-shell.active-activity .activity-reference-page.layout-page {
  height: calc((100vh / var(--app-scale)) - (2.714286 * var(--mj-rem)) - (4.714286 * var(--mj-rem))) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell.active-activity .activity-layout-formal {
  display: flex !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  justify-content: space-between !important;
  align-items: stretch !important;
}
.admin-shell.active-activity .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) 0 calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
}
.admin-shell.active-activity .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all .2s !important;
}
.admin-shell.active-activity .left-list .tab .tab-text {
  display: inline !important;
  line-height: inherit !important;
}
.admin-shell.active-activity .left-list .tab .tab-arrow {
  display: inline-block !important;
  opacity: 1 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
  color: inherit !important;
  transform: translateY(-0.05em);
  font-weight: 400 !important;
  margin-left: calc(0.15 * var(--mj-rem)) !important;
}
.admin-shell.active-activity .left-list .tab.chooseTab,
.admin-shell.active-activity .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}
.admin-shell.active-activity .activity-main-card {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: calc(100% - 1.42857 * var(--mj-rem)) !important;
  margin: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) calc(1.071429 * var(--mj-rem)) !important;
  background: #fff !important;
  border-radius: 0 0 calc(0.571429 * var(--mj-rem)) calc(0.571429 * var(--mj-rem)) !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: calc(0.714286 * var(--mj-rem)) !important;
  box-shadow: none !important;
}
.admin-shell.active-activity .activity-card-tabs {
  display: flex !important;
  gap: 0 !important;
  margin: 0 0 calc(0.714286 * var(--mj-rem)) !important;
  border-bottom: 1px solid #e8eaec !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-activity .activity-card-tabs button {
  height: calc(2.285714 * var(--mj-rem)) !important;
  padding: 0 calc(1.142857 * var(--mj-rem)) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  cursor: pointer !important;
  margin-bottom: -1px !important;
}
.admin-shell.active-activity .activity-card-tabs button.active {
  color: #0087b4 !important;
  border-bottom-color: #0087b4 !important;
}
.admin-shell.active-activity .activity-tip,
.admin-shell.active-activity .wallet-tip {
  background: #edfff3 !important;
  color: #19be6b !important;
  border: 1px solid #b7eb8f !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  margin: 0 0 12px !important;
  font-size: 13px !important;
}
.admin-shell.active-activity .wallet-toolbar { margin-bottom: 10px !important; }
.admin-shell.active-activity .ivu-btn-primary,
.admin-shell.active-activity .ivu-btn-error,
.admin-shell.active-activity .ivu-btn-success,
.admin-shell.active-activity .wallet-add {
  height: 32px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 13px !important;
  cursor: pointer !important;
  margin: 0 4px 0 0 !important;
}
.admin-shell.active-activity .ivu-btn-primary,
.admin-shell.active-activity .wallet-add { background: #0087b4 !important; }
.admin-shell.active-activity .ivu-btn-error { background: #e75a56 !important; }
.admin-shell.active-activity .ivu-btn-success { background: #19be6b !important; }
.admin-shell.active-activity .activity-table,
.admin-shell.active-activity .promo-table,
.admin-shell.active-activity .banner-table,
.admin-shell.active-activity .reference-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border: 1px solid #dcdee2 !important;
  font-size: 13px !important;
}
.admin-shell.active-activity .activity-table th,
.admin-shell.active-activity .activity-table td,
.admin-shell.active-activity .promo-table th,
.admin-shell.active-activity .promo-table td,
.admin-shell.active-activity .banner-table th,
.admin-shell.active-activity .banner-table td,
.admin-shell.active-activity .reference-table th,
.admin-shell.active-activity .reference-table td {
  border: 1px solid #dcdee2 !important;
  text-align: center !important;
  padding: 8px 6px !important;
  vertical-align: middle !important;
  height: auto !important;
  min-height: 0 !important;
  font-size: 13px !important;
  white-space: normal !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
.admin-shell.active-activity .activity-table th,
.admin-shell.active-activity .promo-table th,
.admin-shell.active-activity .banner-table th,
.admin-shell.active-activity .reference-table th {
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
}
.admin-shell.active-activity .promo-table th:nth-child(1),
.admin-shell.active-activity .promo-table td:nth-child(1),
.admin-shell.active-activity .banner-table th:nth-child(1),
.admin-shell.active-activity .banner-table td:nth-child(1) { width: 56px !important; }
.admin-shell.active-activity .promo-table th:nth-child(2),
.admin-shell.active-activity .promo-table td:nth-child(2) { width: 120px !important; }
.admin-shell.active-activity .promo-table th:nth-child(3),
.admin-shell.active-activity .promo-table td:nth-child(3),
.admin-shell.active-activity .promo-table th:nth-child(4),
.admin-shell.active-activity .promo-table td:nth-child(4) { width: 28% !important; }
.admin-shell.active-activity .promo-table th:nth-child(5),
.admin-shell.active-activity .promo-table td:nth-child(5) { width: 100px !important; }
.admin-shell.active-activity .promo-table th:nth-child(6),
.admin-shell.active-activity .promo-table td:nth-child(6) { width: 140px !important; }
.admin-shell.active-activity .activity-banner,
.admin-shell.active-activity .promo-banner,
.admin-shell.active-activity .carousel-banner {
  max-width: 180px !important;
  max-height: 72px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
}
.admin-shell.active-activity .invite-manage-form,
.admin-shell.active-activity .signin-manage-form,
.admin-shell.active-activity .red-send-form {
  padding: 8px 0 0 !important;
  color: #515a6e !important;
  font-size: 13px !important;
}
.admin-shell.active-activity .invite-manage-form label,
.admin-shell.active-activity .signin-manage-form label,
.admin-shell.active-activity .red-send-form label {
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
  font-size: 13px !important;
}
.admin-shell.active-activity .invite-manage-form label > span,
.admin-shell.active-activity .signin-manage-form label > span,
.admin-shell.active-activity .red-send-form label > span {
  width: 140px !important;
  flex: 0 0 140px !important;
  text-align: right !important;
  font-size: 13px !important;
}
.admin-shell.active-activity .invite-manage-form label > input:not([type]),
.admin-shell.active-activity .signin-manage-form label > input:not([type]),
.admin-shell.active-activity .invite-manage-form input[type="text"],
.admin-shell.active-activity .red-send-form input,
.admin-shell.active-activity .red-send-form select {
  width: 320px !important;
  max-width: 60% !important;
  height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  color: #515a6e !important;
  background: #fff !important;
  font-size: 13px !important;
}
.admin-shell.active-activity .invite-manage-form em,
.admin-shell.active-activity .signin-manage-form em {
  font-style: normal !important;
  font-size: 13px !important;
}
.admin-shell.active-activity .ad-upload-box {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px !important;
  border: 1px dashed #c5c8ce !important;
  border-radius: 4px !important;
  background: #f8fafb !important;
  cursor: pointer !important;
  min-width: 180px !important;
}
.admin-shell.active-activity .ad-upload-box img {
  max-width: 220px !important;
  max-height: 80px !important;
  object-fit: contain !important;
}
.admin-shell.active-activity .ad-upload-box em {
  color: #0087b4 !important;
  font-size: 12px !important;
}
.admin-shell.active-activity .invite-manage-form .image-row img,
.admin-shell.active-activity .signin-manage-form .image-row img {
  max-width: 220px !important;
  max-height: 80px !important;
}

/* ===== Monitor formal rebuild (align robotnew #/monitor) ===== */
.admin-shell.active-monitor .admin-body {
  padding: 12px 18px 10px !important;
  background: #eaebec !important;
  overflow: hidden !important;
}
.admin-shell.active-monitor .monitor-reference-page.layout-page {
  --moni-rem: max(16px, var(--mj-rem));
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
  font-size: var(--moni-rem) !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
}
.admin-shell.active-monitor .monitor-layout-formal {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
  gap: 12px !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}
.admin-shell.active-monitor .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  min-width: calc(9.5 * var(--mj-rem)) !important;
  max-width: calc(9.5 * var(--mj-rem)) !important;
  margin: 0 !important;
  height: 100% !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-monitor .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all .2s !important;
}
.admin-shell.active-monitor .left-list .tab .tab-text {
  display: inline !important;
  line-height: inherit !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 1 auto !important;
  text-align: center !important;
  font-size: inherit !important;
  font-weight: 400 !important;
}
.admin-shell.active-monitor .left-list .tab .tab-arrow {
  display: inline-block !important;
  opacity: 1 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
  color: inherit !important;
  transform: translateY(-0.05em);
  font-weight: 400 !important;
  margin-left: calc(0.15 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-monitor .left-list .tab.chooseTab,
.admin-shell.active-monitor .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}
.admin-shell.active-monitor .left-list .tab.chooseTab .tab-arrow,
.admin-shell.active-monitor .left-list .tab.active .tab-arrow {
  opacity: 1 !important;
  color: #fff !important;
}
.admin-shell.active-monitor .monitor-main-card.monitor-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: 0.285714em !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 0 1.071429em 1.071429em !important;
  box-shadow: 0 0 0.714286em #d3d3d3 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-monitor .moni-title-bar {
  margin-top: 1.071429em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #272828 !important;
  font-size: 0.857143em !important;
  font-weight: 400 !important;
  flex-shrink: 0 !important;
  line-height: 1.5 !important;
  border: 0.071429em solid #e1e1e5 !important;
  padding: 0.142857em 0.357143em !important;
  border-radius: 0.285714em !important;
  box-sizing: border-box !important;
  background: #fff !important;
}
.admin-shell.active-monitor .moni-title-l {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  font-weight: 400 !important;
}
.admin-shell.active-monitor .moni-title-l span {
  margin-right: 2.142857em !important;
  white-space: nowrap !important;
  font-weight: 400 !important;
}
.admin-shell.active-monitor .moni-title-r {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.625em !important;
  flex-shrink: 0 !important;
  font-weight: 400 !important;
}
.admin-shell.active-monitor .moni-title-r > button {
  width: 2.785714em !important;
  height: 1.5em !important;
  padding: 0 !important;
  border: 0.071429em solid #d9dadc !important;
  border-radius: 0.357143em !important;
  background: linear-gradient(180deg, #fff, #eeeeef) !important;
  color: #515a6e !important;
  font-size: 0.857143em !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}
.admin-shell.active-monitor .moni-title-r > span {
  width: 2.857143em !important;
  min-width: 2.857143em !important;
  text-align: center !important;
  font-weight: 400 !important;
}
.admin-shell.active-monitor .moni-title-r .select {
  width: 4.571429em !important;
  height: 1.5em !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.5em !important;
}
.admin-shell.active-monitor .monitor-content > .border {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin-top: 0.571429em !important;
  font-size: 0.857143em !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.admin-shell.active-monitor .moni-lhc-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 0.357143em !important;
  flex-shrink: 0 !important;
}
.admin-shell.active-monitor .moni-lhc-tabs .ivu-tabs-tab {
  border-radius: 0.357143em !important;
  border: 0.071429em solid #e1e1e5 !important;
  background: #fff !important;
  color: #515a6e !important;
  padding: 4px 12px !important;
  font-size: 1em !important;
  cursor: pointer !important;
}
.admin-shell.active-monitor .moni-lhc-tabs .ivu-tabs-tab-active {
  background: #0087b4 !important;
  color: #fff !important;
  border-color: #0087b4 !important;
}
.admin-shell.active-monitor .moni-table {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  border-top: 0.071429em solid #e1e1e5 !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}
.admin-shell.active-monitor .moni-table .column {
  flex: 1 1 0 !important;
  min-width: 7.75em !important;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.admin-shell.active-monitor .moni-table.pk10 .column {
  min-width: 7.75em !important;
}
.admin-shell.active-monitor .moni-table .column:nth-child(odd) .moni-tab-title,
.admin-shell.active-monitor .moni-table .column:nth-child(odd) .moni-tab-list li {
  background: #f1f1f1 !important;
}
.admin-shell.active-monitor .moni-table .column:nth-child(even) .moni-tab-title,
.admin-shell.active-monitor .moni-table .column:nth-child(even) .moni-tab-list li {
  background: #fff !important;
}
.admin-shell.active-monitor .moni-table .column:first-child .moni-tab-title,
.admin-shell.active-monitor .moni-table .column:first-child .moni-tab-list li {
  border-left: 0.071429em solid #e1e1e5 !important;
}
.admin-shell.active-monitor .moni-tab-title {
  height: 2.142857em !important;
  line-height: 2.142857em !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  text-align: center !important;
  border-right: 0.071429em solid #e1e1e5 !important;
  color: #272828 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.admin-shell.active-monitor .moni-tab-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-right: 0.071429em solid #e1e1e5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.admin-shell.active-monitor .moni-tab-list li {
  height: 1.928571em !important;
  min-height: 1.928571em !important;
  max-height: 1.928571em !important;
  line-height: 1.928571em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0.285714em 0 !important;
  margin: 0 !important;
  border-top: 0.071429em solid #e1e1e5 !important;
  border-bottom: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  width: 100% !important;
  font-weight: 400 !important;
}
.admin-shell.active-monitor .moni-tab-list li:last-child {
  border-bottom: 0.071429em solid #e1e1e5 !important;
}
.admin-shell.active-monitor .moni-ball {
  flex: 0 0 3.571429em !important;
  width: 3.571429em !important;
  min-width: 3.571429em !important;
  max-width: 3.571429em !important;
  height: 1.928571em !important;
  max-height: 1.928571em !important;
  margin: 0 0.285714em 0 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  line-height: 1.928571em !important;
  font-weight: 400 !important;
}
.admin-shell.active-monitor .moni-ball .moni-text {
  font-style: normal !important;
  color: #545454 !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.admin-shell.active-monitor .moni-tab-input {
  flex: 0 0 auto !important;
  width: calc(100% - 4.28571em) !important;
  min-width: 0 !important;
  max-width: none !important;
  border: 0.071429em solid #d9dadc !important;
  height: 1.642857em !important;
  min-height: 1.642857em !important;
  max-height: 1.642857em !important;
  border-radius: 0.357143em !important;
  text-align: center !important;
  background: #fff !important;
  color: #545454 !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.642857em !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.admin-shell.active-monitor .moni-tab-input.blue {
  color: #0087b4 !important;
  font-weight: 700 !important;
  /* 加粗不能撑高格子：高度已锁死 */
  height: 1.642857em !important;
  min-height: 1.642857em !important;
  max-height: 1.642857em !important;
  line-height: 1.642857em !important;
}
.admin-shell.active-monitor .moni-table .ball {
  width: 1.642857em !important;
  height: 1.642857em !important;
  line-height: 1.642857em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: #222 !important;
  font-size: 0.928571em !important;
  font-weight: 400 !important;
  box-sizing: border-box !important;
  border: 2px solid transparent !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  font-style: normal !important;
}
.admin-shell.active-monitor .moni-table .ball.ball-0 { border-color: #c1ec56; color: #1ea319; }
.admin-shell.active-monitor .moni-table .ball.ball-1 { border-color: #ffc219; color: #c90; }
.admin-shell.active-monitor .moni-table .ball.ball-2 { border-color: #3078e3; color: #3078e3; }
.admin-shell.active-monitor .moni-table .ball.ball-3 { border-color: #da3120; color: #da3120; }
.admin-shell.active-monitor .moni-table .ball.ball-4 { border-color: #c438b4; color: #c438b4; }
.admin-shell.active-monitor .moni-table .ball.ball-5 { border-color: #ed851f; color: #ed851f; }
.admin-shell.active-monitor .moni-table .ball.ball-6 { border-color: #1cac58; color: #1cac58; }
.admin-shell.active-monitor .moni-table .ball.ball-7 { border-color: #a02110; color: #a02110; }
.admin-shell.active-monitor .moni-table .ball.ball-8 { border-color: #423f44; color: #423f44; }
.admin-shell.active-monitor .moni-table .ball.ball-9 { border-color: #05a3da; color: #05a3da; }
.admin-shell.active-monitor .moni-table.pcdd .ball-pc {
  color: #fff !important;
  border: 0 !important;
}
.admin-shell.active-monitor .moni-table.pcdd .ball-0,
.admin-shell.active-monitor .moni-table.pcdd .ball-13,
.admin-shell.active-monitor .moni-table.pcdd .ball-14,
.admin-shell.active-monitor .moni-table.pcdd .ball-27 { background: linear-gradient(#ffe55a, #ffc64a) !important; color: #333 !important; }
.admin-shell.active-monitor .moni-table.pcdd .ball-1,
.admin-shell.active-monitor .moni-table.pcdd .ball-4,
.admin-shell.active-monitor .moni-table.pcdd .ball-7,
.admin-shell.active-monitor .moni-table.pcdd .ball-10,
.admin-shell.active-monitor .moni-table.pcdd .ball-16,
.admin-shell.active-monitor .moni-table.pcdd .ball-19,
.admin-shell.active-monitor .moni-table.pcdd .ball-22,
.admin-shell.active-monitor .moni-table.pcdd .ball-25 { background: linear-gradient(#7dff9a, #1ea319) !important; }
.admin-shell.active-monitor .moni-table.pcdd .ball-2,
.admin-shell.active-monitor .moni-table.pcdd .ball-5,
.admin-shell.active-monitor .moni-table.pcdd .ball-8,
.admin-shell.active-monitor .moni-table.pcdd .ball-11,
.admin-shell.active-monitor .moni-table.pcdd .ball-17,
.admin-shell.active-monitor .moni-table.pcdd .ball-20,
.admin-shell.active-monitor .moni-table.pcdd .ball-23,
.admin-shell.active-monitor .moni-table.pcdd .ball-26 { background: linear-gradient(#7db8ff, #3078e3) !important; }
.admin-shell.active-monitor .moni-table.pcdd .ball-3,
.admin-shell.active-monitor .moni-table.pcdd .ball-6,
.admin-shell.active-monitor .moni-table.pcdd .ball-9,
.admin-shell.active-monitor .moni-table.pcdd .ball-12,
.admin-shell.active-monitor .moni-table.pcdd .ball-15,
.admin-shell.active-monitor .moni-table.pcdd .ball-18,
.admin-shell.active-monitor .moni-table.pcdd .ball-21,
.admin-shell.active-monitor .moni-table.pcdd .ball-24 { background: linear-gradient(#ff8a7a, #da3120) !important; }
.admin-shell.active-monitor .moni-table .rank-box {
  width: 1.642857em !important;
  height: 1.642857em !important;
  font-size: 0.928571em !important;
  font-weight: 400 !important;
  border-radius: 4px !important;
  margin: 0 !important;
  font-style: normal !important;
  text-shadow: none !important;
}
.admin-shell.active-monitor .moni-table.hk6 .ball-lhc.ball-red { background: #e74c3c !important; color: #fff !important; border: 0 !important; }
.admin-shell.active-monitor .moni-table.hk6 .ball-lhc.ball-blue { background: #3498db !important; color: #fff !important; border: 0 !important; }
.admin-shell.active-monitor .moni-table.hk6 .ball-lhc.ball-green { background: #27ae60 !important; color: #fff !important; border: 0 !important; }
.admin-shell.active-monitor .moni-empty-tip {
  padding: 40px 20px !important;
  color: #878c94 !important;
  text-align: center !important;
  width: 100% !important;
}
.admin-shell.active-monitor .monitor-table-scroll,
.admin-shell.active-monitor .monitor-exposure-table,
.admin-shell.active-monitor .monitor-summary,
.admin-shell.active-monitor .monitor-grid-board {
  display: none !important;
}


/* ===== Odds / Disk / Open formal rebuild ===== */
/* 区域划分对齐正式版 #/quota：左栏 152px，栏间距 ~11–12px，右侧主卡占满剩余 */
.admin-shell.active-odds .admin-body {
  padding: 12px 18px 10px !important;
  background: #eaebec !important;
  overflow: hidden !important;
}
.admin-shell.active-odds .odds-reference-page.layout-page,
.admin-shell.active-disk .disk-reference-page.layout-page,
.admin-shell.active-open .open-reference-page.layout-page {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell.active-odds .odds-layout-formal,
.admin-shell.active-open .open-layout-formal {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
  gap: 12px !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}
.admin-shell.active-odds .left-list.reference-side,
.admin-shell.active-open .left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  min-width: calc(9.5 * var(--mj-rem)) !important;
  max-width: calc(9.5 * var(--mj-rem)) !important;
  margin: 0 !important;
  height: 100% !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: calc(0.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-odds .left-list .tab,
.admin-shell.active-open .left-list .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  text-align: center !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all .2s !important;
}
.admin-shell.active-odds .left-list .tab .tab-text,
.admin-shell.active-open .left-list .tab .tab-text {
  display: inline !important;
  line-height: inherit !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 0 1 auto !important;
  text-align: center !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  font-family: inherit !important;
}
.admin-shell.active-odds .left-list .tab .tab-arrow,
.admin-shell.active-open .left-list .tab .tab-arrow {
  display: inline-block !important;
  opacity: 1 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
  color: inherit !important;
  transform: translateY(-0.05em);
  font-weight: 400 !important;
  margin-left: calc(0.15 * var(--mj-rem)) !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-odds .left-list .tab.chooseTab .tab-arrow,
.admin-shell.active-odds .left-list .tab.active .tab-arrow,
.admin-shell.active-open .left-list .tab.chooseTab .tab-arrow,
.admin-shell.active-open .left-list .tab.active .tab-arrow {
  opacity: 1 !important;
  color: #fff !important;
}
.admin-shell.active-odds .left-list .tab.chooseTab,
.admin-shell.active-odds .left-list .tab.active,
.admin-shell.active-open .left-list .tab.chooseTab,
.admin-shell.active-open .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}
.admin-shell.active-odds .odds-main-card,
.admin-shell.active-open .open-main-card {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: 100% !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: 4px !important;
  box-shadow: 0 0 12px #d3d3d3 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  color: #272828 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-odds .odds-toolbar,
.admin-shell.active-open .open-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 15px 17px 10px !important;
  flex-shrink: 0 !important;
}
.admin-shell.active-odds .odds-toolbar select,
.admin-shell.active-odds .odds-toolbar input,
.admin-shell.active-open .open-toolbar input,
.admin-shell.active-open .open-toolbar select {
  height: calc(32px / var(--app-scale)) !important;
  min-width: calc(136px / var(--app-scale)) !important;
  padding: 0 12px !important;
  border: 1px solid #e1e1e5 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  color: #515a6e !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.admin-shell.active-odds .ivu-btn-primary,
.admin-shell.active-odds .ivu-btn-error {
  height: calc(32px / var(--app-scale)) !important;
  min-width: calc(88px / var(--app-scale)) !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: calc(32px / var(--app-scale)) !important;
}
.admin-shell.active-open .ivu-btn-primary,
.admin-shell.active-open .ivu-btn-error {
  height: calc(32px / var(--app-scale)) !important;
  min-width: calc(64px / var(--app-scale)) !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: calc(32px / var(--app-scale)) !important;
}
.admin-shell.active-odds .ivu-btn-primary,
.admin-shell.active-open .ivu-btn-primary { background: #0087b4 !important; }
.admin-shell.active-odds .ivu-btn-error,
.admin-shell.active-open .ivu-btn-error { background: #e75a56 !important; }
.admin-shell.active-odds .ivu-btn-error {
  min-width: 160px !important;
}
.admin-shell.active-open .admin-body {
  padding: 12px 18px 10px !important;
  background: #eaebec !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
/* 开奖结果：左栏/工具栏/分页固定，仅表格区域滚动 */
.admin-shell.active-open .open-reference-page.layout-page {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.admin-shell.active-open .open-layout-formal {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
}
.admin-shell.active-open .open-main-card {
  min-height: 0 !important;
}
.admin-shell.active-open .left-list.reference-side,
.admin-shell.active-open .reference-side {
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  align-self: stretch !important;
}
.admin-shell.active-open .open-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.admin-shell.active-open .open-toolbar {
  width: 100% !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  padding: 14px 17px 10px !important;
}
.admin-shell.active-open .open-toolbar-spacer {
  flex: 1 1 auto !important;
  min-width: 12px !important;
}
.admin-shell.active-open .open-refresh-box {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}
.admin-shell.active-open .open-refresh-link {
  height: calc(24px / var(--app-scale)) !important;
  padding: 0 8px !important;
  border: 1px solid #d9dadc !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #000 !important;
  font-size: 14px !important;
  line-height: calc(22px / var(--app-scale)) !important;
  cursor: pointer !important;
}
.admin-shell.active-open .open-refresh-box select {
  min-width: calc(88px / var(--app-scale)) !important;
  height: calc(32px / var(--app-scale)) !important;
}
.admin-shell.active-open .open-formal-table th[colspan] {
  text-align: center !important;
}

/* Formal quota table denseness (robotnew #/quota) */
.admin-shell.active-odds .quota-content.odds-table-scroll,
.admin-shell.active-open .open-table-scroll,
.admin-shell.active-disk .disk-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 0 17px 17px !important;
  box-sizing: border-box !important;
}
.admin-shell.active-odds .odds-formal-table.my-table {
  width: 100% !important;
  min-width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e1e1e5 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  table-layout: fixed !important;
  background: #fff !important;
}
/* 表头整块底色（对齐正式版 .base-thead #e9f2f5），两行之间无横线 */
.admin-shell.active-odds .odds-formal-table thead.odds-thead,
.admin-shell.active-odds .odds-formal-table thead {
  background: #e9f2f5 !important;
}
.admin-shell.active-odds .odds-formal-table th {
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid #e1e1e5 !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0 6px !important;
  color: #272828 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.admin-shell.active-odds .odds-formal-table th:last-child {
  border-right: 0 !important;
}
.admin-shell.active-odds .odds-formal-table th.odds-th-span {
  height: 72px !important;
  font-weight: 700 !important;
}
.admin-shell.active-odds .odds-formal-table th.quota-limit-head {
  height: 36px !important;
  min-height: 36px !important;
}
.admin-shell.active-odds .odds-formal-table tr.editAll th,
.admin-shell.active-odds .odds-formal-table th.quota-limit-bulk-th {
  height: 36px !important;
  min-height: 36px !important;
  font-weight: 400 !important;
  background: transparent !important;
}
.admin-shell.active-odds .quota-limit-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  color: #272828 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.admin-shell.active-odds .quota-info {
  color: #0087b4 !important;
  font-style: normal !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: help !important;
}
.admin-shell.active-odds .odds-formal-table td {
  border: 0 !important;
  border-right: 1px solid #e1e1e5 !important;
  border-top: 1px solid #e1e1e5 !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 4px 6px !important;
  height: 37px !important;
  min-height: 37px !important;
  color: #272828 !important;
  background: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
}
.admin-shell.active-odds .odds-formal-table td:last-child {
  border-right: 0 !important;
}
.admin-shell.active-odds .odds-formal-table .play-name {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #272828 !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.admin-shell.active-odds .div-flex {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
}
.admin-shell.active-odds .div-flex input {
  width: 96px !important;
  max-width: 58% !important;
  height: 26px !important;
  padding: 0 8px !important;
  border: 1px solid #d9dadc !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  line-height: 26px !important;
  box-sizing: border-box !important;
}
.admin-shell.active-odds .div-flex span {
  margin-left: 0 !important;
  color: #999 !important;
  min-width: auto !important;
  max-width: none !important;
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  white-space: nowrap !important;
}

.admin-shell.active-open .open-formal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e1e1e5 !important;
  font-size: 14px !important;
  table-layout: auto !important;
  background: #fff !important;
}
.admin-shell.active-open .open-formal-table thead.base-thead,
.admin-shell.active-open .open-formal-table thead {
  background: #e9f2f5 !important;
}
.admin-shell.active-open .open-formal-table th,
.admin-shell.active-open .open-formal-table td {
  border: 1px solid #e1e1e5 !important;
  text-align: center !important;
  padding: 6px 4px !important;
  vertical-align: middle !important;
  height: calc(37px / var(--app-scale)) !important;
  color: #272828 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  background: #fff !important;
}
.admin-shell.active-open .open-formal-table th {
  background: transparent !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.admin-shell.active-open .open-nums {
  white-space: nowrap !important;
}
.admin-shell.active-open .open-nums .flex-row {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  flex-wrap: nowrap !important;
}
.admin-shell.active-open .open-nums .rank-box,
.admin-shell.active-open .open-nums .b,
.admin-shell.active-open .open-nums .result-ball,
.admin-shell.active-open .result-ball,
.admin-shell.active-open .rank-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(27px / var(--app-scale)) !important;
  height: calc(27px / var(--app-scale)) !important;
  margin: 0 1px !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: calc(16px / var(--app-scale)) !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-shadow: none !important;
}
.admin-shell.active-open .open-nums .rank-box.r1,
.admin-shell.active-open .open-nums .b.b1 { background: #fff603 !important; color: #fff !important; }
.admin-shell.active-open .open-nums .rank-box.r2,
.admin-shell.active-open .open-nums .b.b2 { background: #008fff !important; }
.admin-shell.active-open .open-nums .rank-box.r3,
.admin-shell.active-open .open-nums .b.b3 { background: #4b4b4b !important; }
.admin-shell.active-open .open-nums .rank-box.r4,
.admin-shell.active-open .open-nums .b.b4 { background: #ff7602 !important; }
.admin-shell.active-open .open-nums .rank-box.r5,
.admin-shell.active-open .open-nums .b.b5 { background: #7dfdff !important; color: #fff !important; }
.admin-shell.active-open .open-nums .rank-box.r6,
.admin-shell.active-open .open-nums .b.b6 { background: #5234ff !important; }
.admin-shell.active-open .open-nums .rank-box.r7,
.admin-shell.active-open .open-nums .b.b7 { background: #bfbfbf !important; }
.admin-shell.active-open .open-nums .rank-box.r8,
.admin-shell.active-open .open-nums .b.b8 { background: #ff2500 !important; }
.admin-shell.active-open .open-nums .rank-box.r9,
.admin-shell.active-open .open-nums .b.b9 { background: #780c00 !important; }
.admin-shell.active-open .open-nums .rank-box.r10,
.admin-shell.active-open .open-nums .b.b10 { background: #0cbf02 !important; font-size: calc(14px / var(--app-scale)) !important; }
.admin-shell.active-open .col-red,
.admin-shell.active-open .red-text { color: #f00 !important; }
.admin-shell.active-open .open-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  padding: 8px 17px 12px !important;
  border-top: 0 !important;
  background: #fff !important;
}
.admin-shell.active-open .open-pager {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.admin-shell.active-open .open-pager select,
.admin-shell.active-open .open-pager input,
.admin-shell.active-open .open-pager button {
  height: calc(28px / var(--app-scale)) !important;
  border: 1px solid #d9dadc !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 13px !important;
}
.admin-shell.active-open .open-pager input {
  width: calc(48px / var(--app-scale)) !important;
  text-align: center !important;
  padding: 0 4px !important;
}
.admin-shell.active-open .open-pager button {
  padding: 0 10px !important;
  cursor: pointer !important;
}
.admin-shell.active-open .open-pager button:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}
.admin-shell.active-disk .disk-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  padding-top: 8px !important;
}
.admin-shell.active-disk .disk-layout-formal {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  align-items: stretch !important;
}
.admin-shell.active-disk .disk-side.left-panel {
  flex: 0 0 calc(354px / var(--app-scale)) !important;
  width: calc(354px / var(--app-scale)) !important;
  min-width: calc(354px / var(--app-scale)) !important;
  max-width: calc(354px / var(--app-scale)) !important;
  margin: calc(11px / var(--app-scale)) 0 !important;
  height: calc(100% - (22px / var(--app-scale))) !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: 0 0 11px #d3d3d3 !important;
  padding: 0 0 0 calc(11px / var(--app-scale)) !important;
  font-size: 14px !important;
  color: #515a6e !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .disk-side-top {
  flex: 0 0 auto !important;
  padding-right: calc(11px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-side .disk-password {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: calc(46px / var(--app-scale)) !important;
  margin: 0 !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-side .disk-password label {
  flex: 0 0 calc(85px / var(--app-scale)) !important;
  width: calc(85px / var(--app-scale)) !important;
  text-align: right !important;
  color: #515a6e !important;
  font-size: 14px !important;
  line-height: calc(32px / var(--app-scale)) !important;
  padding-right: 8px !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .disk-side .disk-password input {
  flex: 0 0 calc(166px / var(--app-scale)) !important;
  width: calc(166px / var(--app-scale)) !important;
  min-width: calc(166px / var(--app-scale)) !important;
  max-width: calc(166px / var(--app-scale)) !important;
  height: calc(32px / var(--app-scale)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  background: #f3f3f3 !important;
  color: #515a6e !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .disk-side .disk-password .ivu-btn-ghost,
.admin-shell.active-disk .disk-side .disk-password button.ivu-btn-ghost {
  flex: 0 0 calc(32px / var(--app-scale)) !important;
  width: calc(32px / var(--app-scale)) !important;
  min-width: calc(32px / var(--app-scale)) !important;
  height: calc(32px / var(--app-scale)) !important;
  padding: 0 !important;
  line-height: calc(32px / var(--app-scale)) !important;
  font-size: 14px !important;
  color: #0087b4 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}
.admin-shell.active-disk .disk-side .disk-password .ivu-btn-primary {
  flex: 0 0 calc(48px / var(--app-scale)) !important;
  width: calc(48px / var(--app-scale)) !important;
  min-width: calc(48px / var(--app-scale)) !important;
  height: calc(32px / var(--app-scale)) !important;
  padding: 0 9px !important;
  line-height: calc(32px / var(--app-scale)) !important;
  font-size: 14px !important;
  background: #0087b4 !important;
  color: #fff !important;
  border: 1px solid #0087b4 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}
.admin-shell.active-disk .disk-stat-item {
  display: flex !important;
  align-items: center !important;
  height: calc(46px / var(--app-scale)) !important;
  margin: 0 !important;
  gap: 8px !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-stat-item label {
  flex: 0 0 calc(85px / var(--app-scale)) !important;
  width: calc(85px / var(--app-scale)) !important;
  text-align: right !important;
  color: #515a6e !important;
  padding-right: 8px !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .disk-stat-item span,
.admin-shell.active-disk .disk-stat-item span b {
  font-weight: 400 !important;
  color: #272828 !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-success-line {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  height: calc(46px / var(--app-scale)) !important;
  margin: 0 !important;
  padding-left: 12px !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-success-line .item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.admin-shell.active-disk .disk-success-line .green-text,
.admin-shell.active-disk .disk-success-line .green-text b { color: green !important; font-weight: 400 !important; }
.admin-shell.active-disk .disk-success-line .red-text,
.admin-shell.active-disk .disk-success-line .red-text b { color: red !important; font-weight: 400 !important; }
.admin-shell.active-disk .disk-side .radio-line {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 4px 0 8px !important;
  padding-left: 12px !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-side .radio-line label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  color: #515a6e !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}
.admin-shell.active-disk .disk-side .radio-line input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 2px 0 0 !important;
}
.admin-shell.active-disk .disk-side .radio-line input[type="number"] {
  width: 48px !important;
  height: 28px !important;
  margin: 0 4px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  text-align: center !important;
  font-size: 14px !important;
  padding: 0 4px !important;
}
.admin-shell.active-disk .disk-side .disk-note {
  color: #f00 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  margin: 4px 11px 10px 12px !important;
}
.admin-shell.active-disk .disk-side-bottom {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding-right: calc(11px / var(--app-scale)) !important;
  overflow: hidden !important;
}
.admin-shell.active-disk .disk-side-bottom header {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #272828 !important;
  margin: 4px 0 8px !important;
}
.admin-shell.active-disk .disk-game-table-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}
.admin-shell.active-disk .disk-game-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-game-table th,
.admin-shell.active-disk .disk-game-table td {
  border: 1px solid #e8eaec !important;
  text-align: center !important;
  padding: 4px 2px !important;
  vertical-align: middle !important;
  color: #272828 !important;
  font-size: 14px !important;
  height: calc(35px / var(--app-scale)) !important;
  font-weight: 400 !important;
}
.admin-shell.active-disk .disk-game-table th {
  background: #fff !important;
  font-weight: 400 !important;
}
.admin-shell.active-disk .disk-game-table th:nth-child(1),
.admin-shell.active-disk .disk-game-table td:nth-child(1) { width: calc(58px / var(--app-scale)) !important; }
.admin-shell.active-disk .disk-game-table th:nth-child(3),
.admin-shell.active-disk .disk-game-table td:nth-child(3) { width: 96px !important; }
.admin-shell.active-disk .disk-game-table th:nth-child(4),
.admin-shell.active-disk .disk-game-table td:nth-child(4) { width: 78px !important; }
.admin-shell.active-disk .disk-main-card {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: calc(100% - (22px / var(--app-scale))) !important;
  margin: calc(11px / var(--app-scale)) !important;
  background: #fff !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  box-shadow: 0 0 11px #d3d3d3 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .notice-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #e75a56 !important;
  font-size: 12px !important;
  margin-right: auto !important;
  background: #fff7e6 !important;
  border: 1px solid #ffd591 !important;
  border-radius: 4px !important;
  padding: 4px 10px !important;
}
.admin-shell.active-disk .disk-main-card .form-content {
  flex: 0 0 auto !important;
  padding: 10px 0 0 calc(23px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-main-card .form-content_top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 9px !important;
  padding-right: calc(23px / var(--app-scale)) !important;
  height: 33px !important;
}
.admin-shell.active-disk .disk-main-card .header-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #272828 !important;
  line-height: 24px !important;
}
.admin-shell.active-disk .fly-table-title-r {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #808695 !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .fly-table-title-r button {
  height: calc(32px / var(--app-scale)) !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #0087b4 !important;
  cursor: pointer !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .fly-table-title-r select {
  height: calc(32px / var(--app-scale)) !important;
  width: calc(73px / var(--app-scale)) !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  padding: 0 8px !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-main-card h2 {
  margin: 0 0 10px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #272828 !important;
}
.admin-shell.active-disk .form-content_bottom.disk-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 calc(23px / var(--app-scale)) calc(10px / var(--app-scale)) 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 37px !important;
}
.admin-shell.active-disk .disk-toolbar select,
.admin-shell.active-disk .disk-toolbar input {
  height: calc(32px / var(--app-scale)) !important;
  min-width: 0 !important;
  padding: 4px 8px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  color: #515a6e !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .disk-toolbar select {
  width: calc(135px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-toolbar input[placeholder="期号"],
.admin-shell.active-disk .disk-toolbar input:nth-of-type(1) {
  width: calc(135px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-toolbar input[type="date"] {
  width: calc(149px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-toolbar .ivu-btn-primary,
.admin-shell.active-disk .disk-toolbar .ivu-btn-error,
.admin-shell.active-disk .ivu-btn-primary,
.admin-shell.active-disk .ivu-btn-error {
  height: calc(32px / var(--app-scale)) !important;
  min-width: 0 !important;
  padding: 0 calc(16px / var(--app-scale)) !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: calc(30px / var(--app-scale)) !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .disk-toolbar .ivu-btn-primary,
.admin-shell.active-disk .ivu-btn-primary { background: #0087b4 !important; border-color: #0087b4 !important; }
.admin-shell.active-disk .disk-toolbar .ivu-btn-error,
.admin-shell.active-disk .ivu-btn-error { background: #e75a56 !important; border-color: #e75a56 !important; padding: 0 calc(17px / var(--app-scale)) !important; }
.admin-shell.active-disk .content-table.disk-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: calc(17px / var(--app-scale)) calc(17px / var(--app-scale)) 0 !important;
}
.admin-shell.active-disk .disk-formal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #dcdee2 !important;
  font-size: 14px !important;
  table-layout: auto !important;
}
.admin-shell.active-disk .disk-formal-table th,
.admin-shell.active-disk .disk-formal-table td {
  border: 1px solid #dcdee2 !important;
  text-align: center !important;
  padding: 0 6px !important;
  vertical-align: middle !important;
  height: calc(37px / var(--app-scale)) !important;
  font-size: 14px !important;
  color: #272828 !important;
  font-weight: 400 !important;
}
.admin-shell.active-disk .disk-formal-table th {
  background: #e9f2f5 !important;
  font-weight: 700 !important;
}
.admin-shell.active-disk .disk-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  padding: 8px 17px 12px !important;
}
.admin-shell.active-disk .toggle-pill {
  width: calc(48px / var(--app-scale)) !important;
  height: calc(24px / var(--app-scale)) !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #ccc !important;
  position: relative !important;
  padding: 0 !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-disk .toggle-pill.on { background: #19be6b !important; }
.admin-shell.active-disk .toggle-pill i {
  position: absolute !important;
  top: calc(2px / var(--app-scale)) !important;
  left: calc(2px / var(--app-scale)) !important;
  width: calc(20px / var(--app-scale)) !important;
  height: calc(20px / var(--app-scale)) !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.2) !important;
  transition: left .15s ease !important;
  transform: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.admin-shell.active-disk .toggle-pill.on i {
  left: calc(26px / var(--app-scale)) !important;
  transform: none !important;
}
.admin-shell.active-disk .disk-modal-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}
.admin-shell.active-disk .disk-modal {
  width: min(960px, 96vw) !important;
  max-height: 86vh !important;
  overflow: auto !important;
  background: #fff !important;
  border-radius: 6px !important;
  padding: 16px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
}
.admin-shell.active-disk .disk-modal-rates {
  width: min(860px, 96vw) !important;
}
.admin-shell.active-disk .disk-modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}
.admin-shell.active-disk .disk-modal-head h3 {
  margin: 0 !important;
  font-size: 16px !important;
  color: #273943 !important;
}
.admin-shell.active-disk .disk-modal-head button {
  border: 0 !important;
  background: transparent !important;
  color: #808695 !important;
  cursor: pointer !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .disk-rate-tip {
  color: #808695 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 0 0 10px !important;
}
.admin-shell.active-disk .disk-rate-toolbar,
.admin-shell.active-disk .disk-rate-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  align-items: center !important;
}
.admin-shell.active-disk .disk-rate-toolbar input,
.admin-shell.active-disk .disk-rate-form input {
  height: 32px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  padding: 0 10px !important;
  min-width: 140px !important;
  font-size: 14px !important;
}
.admin-shell.active-disk .green-text { color: green !important; }
.admin-shell.active-disk .red-text { color: #ed4014 !important; }
.admin-shell.active-disk .admin-body {
  padding: 0 !important;
  background: #eaebec !important;
  overflow: hidden !important;
}
.admin-shell.active-disk.admin-shell .admin-body {
  padding: 0 !important;
  background: #eaebec !important;
}
.admin-shell.active-disk .disk-toolbar .ivu-btn-primary,
.admin-shell.active-disk .disk-toolbar .ivu-btn-error {
  height: calc(32px / var(--app-scale)) !important;
  font-size: calc(14px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-side,
.admin-shell.active-disk .disk-main-card {
  font-size: calc(14px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-main-card .header-title {
  font-size: calc(16px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-side .disk-note {
  font-size: calc(11px / var(--app-scale)) !important;
}
.admin-shell.active-disk .disk-formal-table th,
.admin-shell.active-disk .disk-formal-table td,
.admin-shell.active-disk .disk-game-table th,
.admin-shell.active-disk .disk-game-table td {
  font-size: calc(14px / var(--app-scale)) !important;
}
/* ===== Top header formal lock + notice-box + theme_black ===== */
.admin-shell .admin-top.l-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  grid-template-columns: none !important;
}
.admin-shell .admin-top .top-left {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin-left: 0 !important;
}
.admin-shell .admin-top .top-left strong {
  margin-right: calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell .admin-top .top-message-zone.footer {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.admin-shell .admin-top-right.right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  margin-right: calc(0.5 * var(--mj-rem)) !important;
  gap: 0 !important;
}
.admin-shell .admin-top-right .roomhao {
  display: inline-flex !important;
  align-items: center !important;
  color: #fff !important;
  margin-right: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell .admin-top-right .top-room-reset {
  width: calc(1.214286 * var(--mj-rem)) !important;
  height: calc(1.214286 * var(--mj-rem)) !important;
  min-width: 0 !important;
  margin-left: calc(0.357143 * var(--mj-rem)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: hsla(0, 0%, 100%, 0.2) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.admin-shell .admin-top-right .top-btns {
  display: flex !important;
  align-items: center !important;
}
.admin-shell .admin-top-right .top-btn-feedback {
  position: relative !important;
}
.admin-shell .admin-top-right .top-btn-feedback .unRead {
  position: absolute !important;
  top: -3px !important;
  right: -2px !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #ff3930 !important;
}
.admin-shell .admin-top-right .ringIcon.is-dnd {
  opacity: 0.72 !important;
  color: #ffd456 !important;
}
.admin-shell .admin-top-right .themeType {
  font-size: calc(1.2 * var(--mj-rem)) !important;
}
.admin-shell .admin-top-right .top-btn-account {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
}
.admin-shell .admin-top-right .top-btn-account .arrow-open {
  transform: rotate(180deg) !important;
}
.admin-shell .admin-account-menu {
  top: calc(100% + 6px) !important;
  right: 0 !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  padding: 6px 0 !important;
  border-radius: 4px !important;
  border: 1px solid #e8eaec !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}
.admin-shell .admin-account-menu button {
  width: 100% !important;
  height: calc(2.4 * var(--mj-rem)) !important;
  justify-content: flex-start !important;
  padding: 0 calc(1 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #515a6e !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
}
.admin-shell .admin-account-menu button:hover {
  background: #f3f3f3 !important;
  color: #0087b4 !important;
}
.admin-shell .download-form .download-links {
  display: flex !important;
  gap: 16px !important;
  grid-column: 1 / -1 !important;
}
.admin-shell .download-form .download-links a {
  color: #0087b4 !important;
  font-size: 13px !important;
}

/* Notice overlay */
.admin-shell .notice-box {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.5) !important;
}
.admin-shell .notice-box .notice {
  width: min(44rem, 92vw) !important;
  height: min(20rem, 72vh) !important;
  background: #fff !important;
  border-radius: 1.2rem !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.admin-shell .notice-box .notice-header {
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-size: 14px !important;
}
.admin-shell .notice-box .notice-header .close {
  border: 0 !important;
  background: transparent !important;
  color: #666 !important;
  padding: 4px !important;
}
.admin-shell .notice-box .notice-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
}
.admin-shell .notice-box .notice-menu {
  width: 140px !important;
  flex: 0 0 140px !important;
  border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
  overflow: auto !important;
  padding: 8px 0 !important;
}
.admin-shell .notice-box .notice-menu-item {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(0, 0, 0, 0.6) !important;
  text-align: center !important;
  padding: 12px 8px !important;
  font-size: 14px !important;
  cursor: pointer !important;
}
.admin-shell .notice-box .notice-menu-item.active {
  color: #fff !important;
  background: #3a7bbc !important;
}
.admin-shell .notice-box .notice-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 14px 16px !important;
  overflow: auto !important;
}
.admin-shell .notice-box .notice-content-item h3 {
  margin: 0 !important;
  font-size: 16px !important;
  color: rgba(0, 0, 0, 0.72) !important;
}
.admin-shell .notice-box .notice-content-item .date {
  margin: 6px 0 0 !important;
  color: #999 !important;
  font-size: 13px !important;
}
.admin-shell .notice-box .notice-content-item-msg p {
  margin: 12px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #515a6e !important;
  white-space: pre-wrap !important;
}

/* ===== Night mode (theme_black) — all pages ===== */
.admin-shell.theme_black,
body.theme_black,
html.theme_black body {
  background: #1f262e !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .admin-body,
.admin-shell.theme_black.active-home,
.admin-shell.theme_black.active-home .admin-body,
.admin-shell.theme_black.active-home .home-console {
  background: #1f262e !important;
}
.admin-shell.theme_black .admin-top.l-header {
  background: #146e8c !important;
}
.admin-shell.theme_black .admin-nav {
  background: #1f262e !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .admin-nav button {
  color: #a1a5aa !important;
  background: transparent !important;
}
.admin-shell.theme_black .admin-nav button.active {
  color: #146e8c !important;
  background: #2a3340 !important;
}
.admin-shell.theme_black .page,
.admin-shell.theme_black .layout-page,
.admin-shell.theme_black .reference-main,
.admin-shell.theme_black .system-main-card,
.admin-shell.theme_black .home-content,
.admin-shell.theme_black .odds-main-card,
.admin-shell.theme_black .open-main-card,
.admin-shell.theme_black .disk-main-card,
.admin-shell.theme_black .activity-main-card,
.admin-shell.theme_black .disk-side,
.admin-shell.theme_black .left-list,
.admin-shell.theme_black .left-list.reference-side,
.admin-shell.theme_black .component {
  background: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .left-list .tab,
.admin-shell.theme_black .reference-side button {
  background: #1f262e !important;
  color: #a1a5aa !important;
  border: 1px solid #3e4451 !important;
  box-shadow: none !important;
}
.admin-shell.theme_black .left-list .tab.chooseTab,
.admin-shell.theme_black .left-list .tab.active,
.admin-shell.theme_black .reference-side button.active {
  background: #146e8c !important;
  color: #fff !important;
  border-color: #146e8c !important;
}
.admin-shell.theme_black table,
.admin-shell.theme_black .signTable,
.admin-shell.theme_black .reference-table,
.admin-shell.theme_black .my-table,
.admin-shell.theme_black .odds-formal-table,
.admin-shell.theme_black .open-formal-table,
.admin-shell.theme_black .disk-formal-table,
.admin-shell.theme_black .wallet-table {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black th,
.admin-shell.theme_black td,
.admin-shell.theme_black .signTable th,
.admin-shell.theme_black .signTable td,
.admin-shell.theme_black .reference-table th,
.admin-shell.theme_black .reference-table td,
.admin-shell.theme_black .odds-formal-table th,
.admin-shell.theme_black .odds-formal-table td,
.admin-shell.theme_black .open-formal-table th,
.admin-shell.theme_black .open-formal-table td {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black th,
.admin-shell.theme_black .odds-formal-table th,
.admin-shell.theme_black .open-formal-table th,
.admin-shell.theme_black .disk-formal-table th,
.admin-shell.theme_black .reference-table th {
  background: #2a3340 !important;
  color: #c5c8ce !important;
}
.admin-shell.theme_black input,
.admin-shell.theme_black select,
.admin-shell.theme_black textarea,
.admin-shell.theme_black .div-flex input {
  background: #1f262e !important;
  border-color: #404142 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .ivu-btn-primary,
.admin-shell.theme_black button.blue {
  background: #146e8c !important;
  border-color: #146e8c !important;
}
.admin-shell.theme_black .admin-account-menu {
  background: #1f262e !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .admin-account-menu button {
  color: #a1a5aa !important;
  background: transparent !important;
}
.admin-shell.theme_black .admin-account-menu button:hover {
  background: #2a3340 !important;
  color: #23caea !important;
}
.admin-shell.theme_black .notice-box .notice,
.admin-shell.theme_black .notice-box .notice-body,
.admin-shell.theme_black .admin-modal,
.admin-shell.theme_black .feedback-modal,
.admin-shell.theme_black .safe-password-modal,
.admin-shell.theme_black .two-factor-modal {
  background: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .notice-box .notice-header,
.admin-shell.theme_black .admin-modal > header,
.admin-shell.theme_black .feedback-modal > header,
.admin-shell.theme_black .safe-password-modal > header,
.admin-shell.theme_black .two-factor-modal > header {
  background: #2a3340 !important;
  color: #c5c8ce !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .notice-box .notice-menu {
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .notice-box .notice-menu-item {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .notice-box .notice-menu-item.active {
  background: #146e8c !important;
  color: #fff !important;
}
.admin-shell.theme_black .notice-box .notice-content-item h3,
.admin-shell.theme_black .notice-box .notice-content-item-msg p {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .wallet-tip,
.admin-shell.theme_black .activity-tip,
.admin-shell.theme_black .alarm,
.admin-shell.theme_black .notice-pill {
  background: #2a3340 !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .home-metric,
.admin-shell.theme_black .monitor-summary,
.admin-shell.theme_black .monitor-grid-board,
.admin-shell.theme_black .monitor-col,
.admin-shell.theme_black .apply-table-scroll,
.admin-shell.theme_black .chat-panel,
.admin-shell.theme_black .service-side,
.admin-shell.theme_black .game-side-scroll {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .setting-matrix,
.admin-shell.theme_black .system-subpage,
.admin-shell.theme_black .offline-channel,
.admin-shell.theme_black .setting-row,
.admin-shell.theme_black label,
.admin-shell.theme_black h2,
.admin-shell.theme_black h3 {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .activity-card-tabs,
.admin-shell.theme_black .robot-tabs,
.admin-shell.theme_black .feedback-tabs {
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .activity-card-tabs button,
.admin-shell.theme_black .robot-tabs button,
.admin-shell.theme_black .feedback-tabs button {
  color: #a1a5aa !important;
  background: #1f262e !important;
}
.admin-shell.theme_black .activity-card-tabs button.active,
.admin-shell.theme_black .robot-tabs button.active,
.admin-shell.theme_black .feedback-tabs button.active {
  color: #146e8c !important;
  background: #2a3340 !important;
}
.admin-shell.theme_black .empty-state,
.admin-shell.theme_black .wallet-empty-row td {
  color: #808695 !important;
  background: #1f262e !important;
}
.admin-shell.theme_black .audit-float {
  background: #146e8c !important;
}
.admin-shell.theme_black .pagination,
.admin-shell.theme_black .reference-footer,
.admin-shell.theme_black .open-footer,
.admin-shell.theme_black .disk-footer {
  color: #a1a5aa !important;
}

/* ===== Top bar formal rebuild + notice box ===== */
.admin-shell .admin-top.l-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  grid-template-columns: none !important;
}
.admin-shell .admin-top .top-left {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  gap: calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell .admin-top .top-left strong {
  flex: 0 0 auto !important;
}
.admin-shell .admin-top .top-message-zone.footer {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: calc(2 * var(--mj-rem)) !important;
  line-height: calc(2 * var(--mj-rem)) !important;
  padding: 0 calc(1 * var(--mj-rem)) !important;
}
.admin-shell .admin-top-right.right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  margin-right: calc(0.5 * var(--mj-rem)) !important;
  gap: 0 !important;
}
.admin-shell .admin-top-right .roomhao {
  display: inline-flex !important;
  align-items: center !important;
  color: #fff !important;
  margin-right: calc(0.857143 * var(--mj-rem)) !important;
  white-space: nowrap !important;
}
.admin-shell .admin-top-right .top-room-reset {
  width: calc(1.214286 * var(--mj-rem)) !important;
  height: calc(1.214286 * var(--mj-rem)) !important;
  min-width: 0 !important;
  margin-left: calc(0.357143 * var(--mj-rem)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: hsla(0, 0%, 100%, 0.2) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}
.admin-shell .admin-top-right .top-btns.btns {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.admin-shell .admin-top-right .top-btn-feedback.feedback {
  width: auto !important;
  min-width: calc(4.285714 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  padding: 0 calc(0.714286 * var(--mj-rem)) !important;
  margin-right: calc(1.071429 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: calc(0.428571 * var(--mj-rem)) !important;
  background: #23caea !important;
  color: #fff !important;
  position: relative !important;
}
.admin-shell .admin-top-right .top-btn-feedback .unRead {
  position: absolute !important;
  top: -3px !important;
  right: -2px !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #ff3930 !important;
}
.admin-shell .admin-top-right .top-btn-download.down {
  width: calc(7.5 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  margin-right: calc(1.071429 * var(--mj-rem)) !important;
  background: #00c531 !important;
}
.admin-shell .admin-top-right .ringIcon.is-dnd {
  opacity: 0.55 !important;
}
.admin-shell .admin-top-right .themeType {
  font-size: calc(1.285714 * var(--mj-rem)) !important;
}
.admin-shell .admin-top-right .top-btn-account {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
}
.admin-shell .admin-top-right .top-btn-account .arrow-open {
  transform: rotate(180deg) !important;
}
.admin-shell .admin-account-menu {
  top: calc(100% + 6px) !important;
  right: 0 !important;
  width: calc(10.5 * var(--mj-rem)) !important;
  padding: 6px 0 !important;
  border-radius: 4px !important;
  border: 1px solid #e8eaec !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
  /* 必须高于 .audit-float(620) / .audit-drawer(600) / nav，否则会被「审核」栏盖住 */
  z-index: 5000 !important;
}
.admin-shell .admin-top-right .top-btn-account,
.admin-shell .admin-account-wrap {
  position: relative !important;
  z-index: 5000 !important;
}
.admin-shell .admin-top.l-header,
.admin-shell .admin-top {
  z-index: 700 !important;
}
.admin-shell .admin-nav {
  z-index: 500 !important;
}
.admin-shell .audit-float {
  z-index: 620 !important;
}
.admin-shell .admin-account-menu button {
  width: 100% !important;
  height: calc(2.428571 * var(--mj-rem)) !important;
  padding: 0 14px !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #515a6e !important;
  font-size: 13px !important;
}
.admin-shell .admin-account-menu button:hover {
  background: #f3f5f7 !important;
  color: #0087b4 !important;
}
.admin-shell .download-form .download-links {
  display: flex !important;
  gap: 16px !important;
  grid-column: 1 / -1 !important;
}
.admin-shell .download-form .download-links a {
  color: #0087b4 !important;
  text-decoration: underline !important;
}

/* System notice overlay (更多>>) */
.admin-shell .notice-box {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,.5) !important;
}
.admin-shell .notice-box .notice {
  width: min(44.285714rem, 92vw) !important;
  height: min(22rem, 78vh) !important;
  background: #fff !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.admin-shell .notice-box .notice-header {
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 14px !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-size: 14px !important;
}
.admin-shell .notice-box .notice-header .close {
  border: 0 !important;
  background: transparent !important;
  color: #666 !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.admin-shell .notice-box .notice-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
}
.admin-shell .notice-box .notice-menu {
  width: 140px !important;
  flex: 0 0 140px !important;
  overflow: auto !important;
  border-right: 1px solid rgba(0,0,0,.1) !important;
  padding: 8px 0 !important;
}
.admin-shell .notice-box .notice-menu-item {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(0,0,0,.6) !important;
  padding: 12px 10px 12px 14px !important;
  text-align: left !important;
  cursor: pointer !important;
  font-size: 13px !important;
}
.admin-shell .notice-box .notice-menu-item.active {
  background: #3a7bbc !important;
  color: #fff !important;
}
.admin-shell .notice-box .notice-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 14px !important;
  overflow: auto !important;
}
.admin-shell .notice-box .notice-content-item h3 {
  margin: 0 !important;
  font-size: 16px !important;
  color: rgba(0,0,0,.72) !important;
}
.admin-shell .notice-box .notice-content-item .date {
  margin: 8px 0 0 !important;
  color: #888 !important;
  font-size: 13px !important;
}
.admin-shell .notice-box .notice-content-item-msg p {
  margin: 12px 0 0 !important;
  line-height: 1.6 !important;
  color: #333 !important;
  white-space: pre-wrap !important;
}

/* ===== Global night theme (.theme_black) for all pages ===== */
.admin-shell.theme_black,
html.theme_black,
body.theme_black {
  color-scheme: dark;
}
.admin-shell.theme_black {
  background: #1f262e !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .admin-top.l-header {
  background: #146e8c !important;
}
.admin-shell.theme_black .admin-nav {
  background: #1f262e !important;
  border-bottom-color: #3e4451 !important;
}
.admin-shell.theme_black .admin-nav button {
  color: #a1a5aa !important;
  background: transparent !important;
}
.admin-shell.theme_black .admin-nav button.active {
  color: #146e8c !important;
  background: #2a3340 !important;
}
.admin-shell.theme_black .admin-body,
.admin-shell.theme_black.active-home,
.admin-shell.theme_black.active-home .admin-body,
.admin-shell.theme_black.active-home .home-console,
.admin-shell.theme_black .layout-page,
.admin-shell.theme_black .page {
  background: #1f262e !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .left-list,
.admin-shell.theme_black .left-list .tab,
.admin-shell.theme_black .reference-side,
.admin-shell.theme_black .disk-side,
.admin-shell.theme_black .system-main-card,
.admin-shell.theme_black .odds-main-card,
.admin-shell.theme_black .open-main-card,
.admin-shell.theme_black .disk-main-card,
.admin-shell.theme_black .activity-main-card,
.admin-shell.theme_black .home-content,
.admin-shell.theme_black .reference-main,
.admin-shell.theme_black .wallet-main,
.admin-shell.theme_black .monitor-main {
  background: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
  border: 1px solid #3e4451 !important;
}
.admin-shell.theme_black .left-list .tab,
.admin-shell.theme_black .reference-side button {
  background: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
  box-shadow: none !important;
}
.admin-shell.theme_black .left-list .tab.chooseTab,
.admin-shell.theme_black .left-list .tab.active,
.admin-shell.theme_black .reference-side button.active {
  background: #146e8c !important;
  color: #fff !important;
}
.admin-shell.theme_black table,
.admin-shell.theme_black .reference-table,
.admin-shell.theme_black .odds-formal-table,
.admin-shell.theme_black .open-formal-table,
.admin-shell.theme_black .disk-formal-table,
.admin-shell.theme_black .wallet-table,
.admin-shell.theme_black .signTable,
.admin-shell.theme_black .my-table {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black th,
.admin-shell.theme_black td,
.admin-shell.theme_black .reference-table th,
.admin-shell.theme_black .reference-table td,
.admin-shell.theme_black .odds-formal-table th,
.admin-shell.theme_black .odds-formal-table td,
.admin-shell.theme_black .open-formal-table th,
.admin-shell.theme_black .open-formal-table td,
.admin-shell.theme_black .disk-formal-table th,
.admin-shell.theme_black .disk-formal-table td {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black th,
.admin-shell.theme_black .reference-table th,
.admin-shell.theme_black .odds-formal-table th,
.admin-shell.theme_black .open-formal-table th,
.admin-shell.theme_black .disk-formal-table th,
.admin-shell.theme_black .wallet-table th {
  background: #2a3340 !important;
  color: #c5c8ce !important;
}
.admin-shell.theme_black input,
.admin-shell.theme_black select,
.admin-shell.theme_black textarea,
.admin-shell.theme_black .div-flex input {
  background: #1f262e !important;
  border-color: #404142 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .ivu-btn-primary,
.admin-shell.theme_black button.blue {
  background: #146e8c !important;
  border-color: #146e8c !important;
  color: #fff !important;
}
.admin-shell.theme_black .ivu-btn-error,
.admin-shell.theme_black button.danger,
.admin-shell.theme_black button.red {
  background: #a84848 !important;
  border-color: #a84848 !important;
  color: #fff !important;
}
.admin-shell.theme_black .admin-account-menu {
  background: #1f262e !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .admin-account-menu button {
  color: #a1a5aa !important;
  background: transparent !important;
}
.admin-shell.theme_black .admin-account-menu button:hover {
  background: #2a3340 !important;
  color: #23caea !important;
}
.admin-shell.theme_black .notice-box .notice,
.admin-shell.theme_black .admin-modal,
.admin-shell.theme_black .feedback-modal,
.admin-shell.theme_black .safe-password-modal,
.admin-shell.theme_black .two-factor-modal {
  background: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .notice-box .notice-header,
.admin-shell.theme_black .admin-modal > header,
.admin-shell.theme_black .feedback-modal > header,
.admin-shell.theme_black .safe-password-modal > header,
.admin-shell.theme_black .two-factor-modal > header {
  background: #2a3340 !important;
  color: #c5c8ce !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .notice-box .notice-menu {
  border-right-color: #3e4451 !important;
}
.admin-shell.theme_black .notice-box .notice-menu-item {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .notice-box .notice-menu-item.active {
  background: #146e8c !important;
  color: #fff !important;
}
.admin-shell.theme_black .notice-box .notice-content-item h3,
.admin-shell.theme_black .notice-box .notice-content-item-msg p {
  color: #c5c8ce !important;
}
.admin-shell.theme_black .wallet-tip,
.admin-shell.theme_black .notice-pill,
.admin-shell.theme_black .alarm,
.admin-shell.theme_black .activity-tip {
  background: #2a3340 !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .audit-float {
  background: #146e8c !important;
}
.admin-shell.theme_black .home-metric,
.admin-shell.theme_black .metric-card,
.admin-shell.theme_black .chat-panel,
.admin-shell.theme_black .service-panel,
.admin-shell.theme_black .game-side-scroll,
.admin-shell.theme_black .setting-matrix,
.admin-shell.theme_black .system-subpage {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
.admin-shell.theme_black .red-text { color: #ff6b6b !important; }
.admin-shell.theme_black .blue-text,
.admin-shell.theme_black .green-text { color: #23caea !important; }
.admin-shell.theme_black .apply-table-scroll,
.admin-shell.theme_black .report-table-scroll,
.admin-shell.theme_black .user-table-scroll,
.admin-shell.theme_black .odds-table-scroll,
.admin-shell.theme_black .open-table-scroll,
.admin-shell.theme_black .disk-table-scroll {
  background: #1f262e !important;
}
.admin-shell.theme_black .pagination,
.admin-shell.theme_black .reference-footer,
.admin-shell.theme_black .open-footer,
.admin-shell.theme_black .disk-footer {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .top-btn-feedback.feedback i,
.admin-shell.theme_black .top-btn-feedback.feedback span,
.admin-shell.theme_black .admin-top .top-btn-feedback {
  color: #fff !important;
}

/* Top bar follow-up: copy room / expire soon / H5App modal */
.admin-shell .admin-top-right .top-room-copy {
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  padding: 0 !important;
  height: auto !important;
  min-width: 0 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.admin-shell .admin-top-right .top-expire.special {
  color: #ffe08a !important;
  font-weight: 600 !important;
}
.admin-shell .notice-box .notice-pagination {
  margin-top: 12px !important;
  text-align: center !important;
  color: #888 !important;
  font-size: 12px !important;
}
.admin-shell .h5app-download-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  max-height: 70vh !important;
  overflow: auto !important;
  padding: 4px 2px !important;
}
.admin-shell .h5app-block h4 {
  margin: 0 0 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #273943 !important;
}
.admin-shell .h5app-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.admin-shell .h5app-row input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #dce3e8 !important;
  border-radius: 4px !important;
}
.admin-shell .h5app-row .blue,
.admin-shell .h5app-actions .blue {
  height: 34px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #0087b4 !important;
  color: #fff !important;
  white-space: nowrap !important;
}
.admin-shell .h5app-row .blue-link {
  color: #0087b4 !important;
  white-space: nowrap !important;
}
.admin-shell .h5app-tip {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
  color: #888 !important;
  line-height: 1.5 !important;
}
.admin-shell .h5app-actions {
  display: flex !important;
  justify-content: flex-end !important;
  padding-top: 4px !important;
}
.admin-shell .update-room-modal {
  width: min(380px, calc(100vw - 40px)) !important;
}
.admin-shell .update-room-body {
  padding: 8px 4px !important;
  color: #515a6e !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}
.admin-shell .update-room-body label {
  display: grid !important;
  grid-template-columns: 18px 72px 1fr !important;
  align-items: center !important;
  gap: 6px !important;
}
.admin-shell .update-room-body label b { color: #e75a56 !important; }
.admin-shell .update-room-body input {
  height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #dce3e8 !important;
  border-radius: 4px !important;
}
.admin-shell.theme_black .h5app-block h4,
.admin-shell.theme_black .update-room-body {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .h5app-row input,
.admin-shell.theme_black .update-room-body input {
  background: #1f262e !important;
  border-color: #404142 !important;
  color: #a1a5aa !important;
}

/* ===== Night mode text + formal hover interactions ===== */

/* Fix invisible nav labels in night mode (nav-label was locked to #272828) */
.admin-shell.theme_black .admin-nav .nav-label {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .admin-nav button.active .nav-label {
  color: #fff !important;
}
.admin-shell.theme_black .admin-nav button.active {
  color: #fff !important;
  background: #146e8c !important;
  border-bottom-color: #23caea !important;
}

/* Day + night: top nav hover */
.admin-shell .admin-nav button:hover {
  background: #f3f8fa !important;
}
.admin-shell .admin-nav button:hover .nav-label {
  color: #0087b4 !important;
}
.admin-shell .admin-nav button.active:hover {
  background: var(--mj-nav-active, #dff7ff) !important;
}
.admin-shell.theme_black .admin-nav button:hover {
  background: hsla(0, 0%, 100%, 0.04) !important;
}
.admin-shell.theme_black .admin-nav button:hover .nav-label {
  color: #23caea !important;
}
.admin-shell.theme_black .admin-nav button.active:hover {
  background: #1e8aaf !important;
}
.admin-shell.theme_black .admin-nav button.active:hover .nav-label {
  color: #fff !important;
}

/* Left game tabs / side list hover */
.admin-shell .left-list .tab:hover,
.admin-shell .reference-side button:hover,
.admin-shell .reference-side .tab:hover {
  background: #eef6f9 !important;
  color: #0087b4 !important;
}
.admin-shell .left-list .tab.chooseTab:hover,
.admin-shell .left-list .tab.active:hover,
.admin-shell .reference-side button.active:hover {
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  color: #fff !important;
}
.admin-shell.theme_black .left-list .tab:hover,
.admin-shell.theme_black .reference-side button:hover,
.admin-shell.theme_black .reference-side .tab:hover {
  background: #3c4547 !important;
  color: #fff !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black .left-list .tab.chooseTab:hover,
.admin-shell.theme_black .left-list .tab.active:hover,
.admin-shell.theme_black .reference-side button.active:hover {
  background: #1e8aaf !important;
  color: #fff !important;
}

/* Table row / cell hover (formal: white 4% / #3e4451) */
.admin-shell tbody tr:hover,
.admin-shell .reference-table tbody tr:hover,
.admin-shell .odds-formal-table tbody tr:hover,
.admin-shell .open-formal-table tbody tr:hover,
.admin-shell .disk-formal-table tbody tr:hover,
.admin-shell .wallet-table tbody tr:hover,
.admin-shell .signTable tbody tr:hover,
.admin-shell .my-table tbody tr:hover {
  background: #f5fafc !important;
}
.admin-shell tbody tr:hover > td,
.admin-shell .reference-table tbody tr:hover > td,
.admin-shell .odds-formal-table tbody tr:hover > td,
.admin-shell .open-formal-table tbody tr:hover > td,
.admin-shell .disk-formal-table tbody tr:hover > td,
.admin-shell .wallet-table tbody tr:hover > td,
.admin-shell .signTable tbody tr:hover > td,
.admin-shell .my-table tbody tr:hover > td {
  background: transparent !important;
}
.admin-shell.theme_black tbody tr:hover,
.admin-shell.theme_black .reference-table tbody tr:hover,
.admin-shell.theme_black .odds-formal-table tbody tr:hover,
.admin-shell.theme_black .open-formal-table tbody tr:hover,
.admin-shell.theme_black .disk-formal-table tbody tr:hover,
.admin-shell.theme_black .wallet-table tbody tr:hover,
.admin-shell.theme_black .signTable tbody tr:hover,
.admin-shell.theme_black .my-table tbody tr:hover {
  background: hsla(0, 0%, 100%, 0.04) !important;
}
.admin-shell.theme_black tbody tr:hover > td,
.admin-shell.theme_black .reference-table tbody tr:hover > td,
.admin-shell.theme_black .odds-formal-table tbody tr:hover > td,
.admin-shell.theme_black .open-formal-table tbody tr:hover > td,
.admin-shell.theme_black .disk-formal-table tbody tr:hover > td,
.admin-shell.theme_black .wallet-table tbody tr:hover > td,
.admin-shell.theme_black .signTable tbody tr:hover > td,
.admin-shell.theme_black .my-table tbody tr:hover > td {
  background: transparent !important;
  color: #c5c8ce !important;
}
.admin-shell.theme_black thead th:hover {
  background-color: hsla(0, 0%, 100%, 0.04) !important;
}

/* Primary / error buttons hover */
.admin-shell .ivu-btn-primary:hover,
.admin-shell button.blue:hover,
.admin-shell .top-btn-feedback:hover {
  filter: brightness(1.08);
  background: #1e8aaf !important;
}
.admin-shell .ivu-btn-error:hover,
.admin-shell button.danger:hover,
.admin-shell button.red:hover {
  filter: brightness(1.05);
  background: #a33133 !important;
}
.admin-shell .top-btn-download:hover {
  filter: brightness(1.08);
  background: #12d645 !important;
}
.admin-shell.theme_black .ivu-btn-primary:hover,
.admin-shell.theme_black button.blue:hover {
  background: #1e8aaf !important;
  border-color: #1e8aaf !important;
}
.admin-shell.theme_black .ivu-btn-error:hover,
.admin-shell.theme_black button.danger:hover,
.admin-shell.theme_black button.red:hover {
  background: #a33133 !important;
  border-color: #a33133 !important;
}

/* Home page night: unread/inactive text & hover */
.admin-shell.theme_black.active-home .home-tabs button {
  color: #a1a5aa !important;
  background: #2a3340 !important;
  border-color: #3e4451 !important;
}
.admin-shell.theme_black.active-home .home-tabs button.active {
  color: #fff !important;
  background: #146e8c !important;
}
.admin-shell.theme_black.active-home .home-tabs button:hover {
  color: #fff !important;
  background: #3c4547 !important;
}
.admin-shell.theme_black.active-home .game-switch-list article {
  color: #a1a5aa !important;
  background: transparent !important;
}
.admin-shell.theme_black.active-home .game-switch-list article strong,
.admin-shell.theme_black.active-home .game-switch-list article span {
  color: #a1a5aa !important;
}
.admin-shell.theme_black.active-home .game-switch-list article:hover,
.admin-shell.theme_black.active-home .game-switch-list article.selected {
  background: hsla(0, 0%, 100%, 0.04) !important;
}
.admin-shell.theme_black.active-home .game-switch-list article:hover strong,
.admin-shell.theme_black.active-home .game-switch-list article.selected strong {
  color: #fff !important;
}
.admin-shell.theme_black.active-home .chat-tool-btn {
  color: #a1a5aa !important;
}
.admin-shell.theme_black.active-home .chat-tool-btn:hover,
.admin-shell.theme_black.active-home .chat-tool-btn.active {
  background: hsla(0, 0%, 100%, 0.04) !important;
  color: #23caea !important;
}
.admin-shell.theme_black.active-home .chat-reply-item:hover {
  background: hsla(0, 0%, 100%, 0.04) !important;
}

/* Activity / report / wallet sub tabs hover */
.admin-shell .activity-card-tabs button:hover,
.admin-shell .robot-tabs button:hover,
.admin-shell .feedback-tabs button:hover,
.admin-shell .reference-tabs button:hover {
  color: #0087b4 !important;
  background: #f3f8fa !important;
}
.admin-shell.theme_black .activity-card-tabs button,
.admin-shell.theme_black .robot-tabs button,
.admin-shell.theme_black .feedback-tabs button,
.admin-shell.theme_black .reference-tabs button {
  color: #a1a5aa !important;
}
.admin-shell.theme_black .activity-card-tabs button:hover,
.admin-shell.theme_black .robot-tabs button:hover,
.admin-shell.theme_black .feedback-tabs button:hover,
.admin-shell.theme_black .reference-tabs button:hover {
  color: #fff !important;
  background: #3c4547 !important;
}
.admin-shell.theme_black .activity-card-tabs button.active,
.admin-shell.theme_black .robot-tabs button.active,
.admin-shell.theme_black .feedback-tabs button.active,
.admin-shell.theme_black .reference-tabs button.active {
  color: #fff !important;
  background: #146e8c !important;
}

/* Account menu / pagination / misc interactive */
.admin-shell .admin-account-menu button:hover {
  background: #f3f5f7 !important;
  color: #0087b4 !important;
}
.admin-shell.theme_black .admin-account-menu button:hover {
  background: #2a3340 !important;
  color: #23caea !important;
}
.admin-shell .reference-footer button:hover,
.admin-shell .open-footer button:hover,
.admin-shell .disk-footer button:hover,
.admin-shell .pagination button:hover {
  filter: brightness(1.06);
}

/* ===== Night theme v3 nuclear overrides ===== */
html.theme_black,
html.theme_black body,
html.theme_black .admin-shell.theme_black {
  background: #1f262e !important;
  color: #a1a5aa !important;
  color-scheme: dark;
}

/* Home: online footer + chat stream (root cause of white islands) */
html.theme_black .admin-shell.theme_black.active-home .game-control-card,
html.theme_black .admin-shell.theme_black.active-home .live-chat-card,
html.theme_black .admin-shell.theme_black.active-home .data-console-card,
html.theme_black .admin-shell.theme_black.active-home .data-console-inner,
html.theme_black .admin-shell.theme_black.active-home .home-console.data-closed .live-chat-card {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  box-shadow: none !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-control-card footer,
html.theme_black .admin-shell.theme_black .game-control-card footer {
  background: #1f262e !important;
  background-color: #1f262e !important;
  border-top-color: #3e4451 !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-control-card footer b,
html.theme_black .admin-shell.theme_black.active-home .game-control-card footer small,
html.theme_black .admin-shell.theme_black .game-control-card footer b,
html.theme_black .admin-shell.theme_black .game-control-card footer small {
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-control-card footer b span,
html.theme_black .admin-shell.theme_black.active-home .game-control-card footer span {
  color: #23caea !important;
}
html.theme_black .admin-shell.theme_black.active-home .chat-empty,
html.theme_black .admin-shell.theme_black.active-home .chat-stream,
html.theme_black .admin-shell.theme_black .chat-empty,
html.theme_black .admin-shell.theme_black .chat-stream {
  background: #1f262e !important;
  background-color: #1f262e !important;
  border-bottom-color: #3e4451 !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .admin-chat-message,
html.theme_black .admin-shell.theme_black.active-home .admin-chat-message p,
html.theme_black .admin-shell.theme_black.active-home .admin-chat-message header,
html.theme_black .admin-shell.theme_black.active-home .admin-chat-message b,
html.theme_black .admin-shell.theme_black.active-home .admin-chat-html,
html.theme_black .admin-shell.theme_black.active-home .service-chat-placeholder,
html.theme_black .admin-shell.theme_black.active-home .service-chat-placeholder strong,
html.theme_black .admin-shell.theme_black.active-home .service-chat-placeholder span {
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .admin-chat-html .fn-bet-card,
html.theme_black .admin-shell.theme_black.active-home .admin-chat-image {
  background: #2a3340 !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .chat-compose,
html.theme_black .admin-shell.theme_black.active-home .chat-compose-main textarea,
html.theme_black .admin-shell.theme_black.active-home .chat-reply-panel,
html.theme_black .admin-shell.theme_black.active-home .chat-emoji-panel {
  background: #1f262e !important;
  border-color: #3e4451 !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-switch-list strong {
  color: #c5c8ce !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-switch-list span {
  color: #878c94 !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table,
html.theme_black .admin-shell.theme_black.active-home .game-data-table th,
html.theme_black .admin-shell.theme_black.active-home .game-data-table td,
html.theme_black .admin-shell.theme_black.active-home .home-metric-card {
  background: #1f262e !important;
  border-color: #404142 !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table th {
  background: #3e4451 !important;
  color: #c5c8ce !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table .game-link,
html.theme_black .admin-shell.theme_black.active-home .game-data-table a,
html.theme_black .admin-shell.theme_black.active-home .game-data-table button.game-link {
  color: #23caea !important;
  background: transparent !important;
}

/* System settings — beat .active-system .system-main-card.home-content */
html.theme_black .admin-shell.theme_black.active-system .system-main-card,
html.theme_black .admin-shell.theme_black.active-system .system-main-card.home-content,
html.theme_black .admin-shell.theme_black.active-system .system-tabs,
html.theme_black .admin-shell.theme_black.active-system .system-tabpane,
html.theme_black .admin-shell.theme_black.active-system .setting-matrix,
html.theme_black .admin-shell.theme_black.active-system .contentModel,
html.theme_black .admin-shell.theme_black.active-system .setting-row,
html.theme_black .admin-shell.theme_black.active-system .setting-row .left,
html.theme_black .admin-shell.theme_black.active-system .setting-row .right,
html.theme_black .admin-shell.theme_black.active-system .setting-row .model,
html.theme_black .admin-shell.theme_black.active-system .system-subpage,
html.theme_black .admin-shell.theme_black.active-system .system-bottom-actions,
html.theme_black .admin-shell.theme_black.active-system .system-bottom-actions.bottom,
html.theme_black .admin-shell.theme_black.active-system .home-content .bottom,
html.theme_black .admin-shell.theme_black.active-system .has-absolute-bottom > .system-bottom-actions.bottom {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
  box-shadow: none !important;
}
html.theme_black .admin-shell.theme_black.active-system .system-main-card label,
html.theme_black .admin-shell.theme_black.active-system .system-main-card span,
html.theme_black .admin-shell.theme_black.active-system .system-main-card p,
html.theme_black .admin-shell.theme_black.active-system .system-main-card .setting-row,
html.theme_black .admin-shell.theme_black.active-system .system-tabs button {
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-system .system-tabs button.active {
  color: #23caea !important;
}
html.theme_black .admin-shell.theme_black.active-system input,
html.theme_black .admin-shell.theme_black.active-system select,
html.theme_black .admin-shell.theme_black.active-system textarea,
html.theme_black .admin-shell.theme_black.active-system .mj-select-trigger,
html.theme_black .admin-shell.theme_black.active-system .contentTable .textarea,
html.theme_black .admin-shell.theme_black.active-system .contentTable .content td input {
  background: #1f262e !important;
  border-color: #404142 !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-system .contentTable .title td,
html.theme_black .admin-shell.theme_black.active-system .contentTable thead td,
html.theme_black .admin-shell.theme_black.active-system .contentTable .content td,
html.theme_black .admin-shell.theme_black.active-system .contentTable tbody td {
  background: #1f262e !important;
  border-color: #404142 !important;
  color: #a1a5aa !important;
}

/* Wallet / users / reports / activity / odds / open / disk / apply / monitor */
html.theme_black .admin-shell.theme_black.active-wallet .wallet-main-card,
html.theme_black .admin-shell.theme_black.active-wallet .wallet-main-card.home-content,
html.theme_black .admin-shell.theme_black.active-wallet .walletCon .info-con,
html.theme_black .admin-shell.theme_black.active-wallet .wallet-help,
html.theme_black .admin-shell.theme_black.active-wallet .wallet-tip,
html.theme_black .admin-shell.theme_black.active-users .user-main-card,
html.theme_black .admin-shell.theme_black.active-users .user-main-card.user-page,
html.theme_black .admin-shell.theme_black.active-reports .report-main-card,
html.theme_black .admin-shell.theme_black.active-reports .report-main-card.report-table,
html.theme_black .admin-shell.theme_black.active-apply .apply-main-card,
html.theme_black .admin-shell.theme_black.active-apply .apply-main-card.apply-table,
html.theme_black .admin-shell.theme_black.active-activity .activity-main-card,
html.theme_black .admin-shell.theme_black.active-odds .odds-main-card,
html.theme_black .admin-shell.theme_black.active-open .open-main-card,
html.theme_black .admin-shell.theme_black.active-disk .disk-main-card,
html.theme_black .admin-shell.theme_black.active-disk .disk-side.left-panel,
html.theme_black .admin-shell.theme_black.active-monitor .monitor-main-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
  box-shadow: none !important;
}

/* Generic: any remaining white cards / tables / forms inside shell */
html.theme_black .admin-shell.theme_black .home-content,
html.theme_black .admin-shell.theme_black .layout-right,
html.theme_black .admin-shell.theme_black .reference-main,
html.theme_black .admin-shell.theme_black .panel,
html.theme_black .admin-shell.theme_black .stat-card,
html.theme_black .admin-shell.theme_black .side-tabs,
html.theme_black .admin-shell.theme_black table,
html.theme_black .admin-shell.theme_black .reference-table,
html.theme_black .admin-shell.theme_black .wallet-table,
html.theme_black .admin-shell.theme_black .my-table,
html.theme_black .admin-shell.theme_black .ivu-alert,
html.theme_black .admin-shell.theme_black .system-alert,
html.theme_black .admin-shell.theme_black .activity-tip,
html.theme_black .admin-shell.theme_black .wallet-tip {
  background: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}
html.theme_black .admin-shell.theme_black th {
  background: #3e4451 !important;
  color: #c5c8ce !important;
}
html.theme_black .admin-shell.theme_black td {
  background: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #404142 !important;
}
html.theme_black .admin-shell.theme_black input:not([type="checkbox"]):not([type="radio"]),
html.theme_black .admin-shell.theme_black select,
html.theme_black .admin-shell.theme_black textarea {
  background: #1f262e !important;
  border-color: #404142 !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black a,
html.theme_black .admin-shell.theme_black .blue:not(button):not(.ivu-btn),
html.theme_black .admin-shell.theme_black .wallet-op,
html.theme_black .admin-shell.theme_black .game-link {
  color: #23caea !important;
}

/* Keep primary buttons / balls / switches */
html.theme_black .admin-shell.theme_black .result-ball {
  background: #fff !important;
  color: #222 !important;
}
html.theme_black .admin-shell.theme_black .mj-switch.on,
html.theme_black .admin-shell.theme_black .toggle-pill.on,
html.theme_black .admin-shell.theme_black .ivu-btn-primary,
html.theme_black .admin-shell.theme_black button.blue,
html.theme_black .admin-shell.theme_black .chat-send-btn {
  background: #146e8c !important;
  border-color: #146e8c !important;
  color: #fff !important;
}
html.theme_black .admin-shell.theme_black tbody tr:hover {
  background: hsla(0,0%,100%,.04) !important;
}

/* auto-generated white->dark overrides */
html.theme_black .admin-shell.theme_black .admin-modal {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .game-control-card,
html.theme_black .admin-shell.theme_black .live-chat-card,
html.theme_black .admin-shell.theme_black .data-console-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .home-tabs button {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .game-control-card footer {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black .chat-empty {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black .chat-compose {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .chat-compose textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .metric-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .metric-dot.red {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .metric-dot.pink {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .stat-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .panel {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black .panel tbody tr:nth-child(even) {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .panel tbody tr:hover {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .side-tabs {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .side-tabs button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .user-main {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .reference-side button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .wallet-main-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .wallet-tip {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .wallet-help {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .system-main-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .setting-row input,
html.theme_black .admin-shell.theme_black .setting-row select,
html.theme_black .admin-shell.theme_black .setting-row textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .reference-main {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .reference-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .reference-table tbody tr:nth-child(even) {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .reference-tabs button {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .reference-tabs button.active {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .activity-banner {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .activity-main .reference-table button:disabled {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .monitor-summary button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .monitor-summary select {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .monitor-col h3 {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .monitor-col input {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .disk-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .disk-side input {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .disk-game-head {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .metric-dot.rose {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .admin-chat-message p {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .admin-chat-html {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .admin-chat-html .fn-bet-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .admin-chat-html .fn-bet-follow {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .admin-chat-image {
  background: #1f262e !important;
  background-color: #1f262e !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .system-bottom-actions,
html.theme_black .admin-shell.theme_black .system-basic-savebar {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.rose {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .data-console-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.red {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.pink {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .apply-table-scroll {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .apply-type.down {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .apply-status.pending {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .apply-status.rejected {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .chat-compose-images button {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .game-data-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-home .game-data-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .game-data-table tbody tr:nth-child(even) {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .admin-top-right .top-avatar {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .admin-nav {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-home .game-control-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-home .live-chat-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-home .chat-compose-main textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-home .data-console-inner {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-home .chat-emoji-panel,
html.theme_black .admin-shell.theme_black.active-home .chat-quick-panel {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-home .chat-emoji-panel button,
html.theme_black .admin-shell.theme_black.active-home .chat-quick-list button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-home .chat-file-chip {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .chat-reply-panel {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-home .chat-reply-search input {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-home .chat-emoji-panel {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .audit-drawer {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .audit-drawer .audit-table,
html.theme_black .admin-shell.theme_black .audit-drawer .reference-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .audit-drawer .reference-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .audit-drawer .reference-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .audit-drawer .reference-table tbody tr:nth-child(even) td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .audit-drawer .reference-table button.red {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.thirdAmount {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.liushui {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.allykui {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.chongzhi {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .admin-body {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-main-card.home-content {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-tabs {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-system .setting-matrix .model {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .setting-row .left {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .setting-row .right {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .setting-row .right input,
html.theme_black .admin-shell.theme_black.active-system .setting-row .right select {
  background: #1f262e !important;
  background-color: #1f262e !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .setting-row .right textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .avatar-upload-button img {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-bottom-actions.bottom,
html.theme_black .admin-shell.theme_black.active-system .home-content .bottom {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-bottom-actions.bottom.is-absolute,
html.theme_black .admin-shell.theme_black.active-system .has-absolute-bottom > .system-bottom-actions.bottom {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-bottom-actions .btn.reset {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-system .ivu-alert.system-alert,
html.theme_black .admin-shell.theme_black.active-system .system-alert {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .addPro .mj-switch i,
html.theme_black .admin-shell.theme_black.active-system .rebate-toolbar .mj-switch i {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-list-table th,
html.theme_black .admin-shell.theme_black.active-system .game-setting-table th,
html.theme_black .admin-shell.theme_black.active-system .entertainment-setting-table th,
html.theme_black .admin-shell.theme_black.active-system .entertainment-sort-table th,
html.theme_black .admin-shell.theme_black.active-system .close-message-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-list-table input,
html.theme_black .admin-shell.theme_black.active-system .game-setting-table input,
html.theme_black .admin-shell.theme_black.active-system .close-message-table textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .close-game-tabs button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-system .sync-btn {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .mj-select-trigger {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-system .mj-select-dropdown {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .mj-time-field {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .mj-time-panel {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .mj-time-col button.active,
html.theme_black .admin-shell.theme_black.active-system .mj-time-col button:hover {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .mj-time-actions button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-system .contentTable .title td,
html.theme_black .admin-shell.theme_black.active-system .contentTable thead td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .contentTable .content td,
html.theme_black .admin-shell.theme_black.active-system .contentTable tbody td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .contentTable .textarea,
html.theme_black .admin-shell.theme_black.active-system .close-message-table textarea.textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-system .contentTable .title td,
html.theme_black .admin-shell.theme_black.active-system .contentTable thead td,
html.theme_black .admin-shell.theme_black.active-system .contentTable .edit.title td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .game-setting-table .content td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .game-setting-table .content td input {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .entertainment-sort-table .title td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .entertainment-sort-table .content td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .close-message-table .title td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .close-message-table .content td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .close-message-table .textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .cm-game-tabs .cm-tabs-nav > button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  border-color: #3e4451 !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-system .cm-game-tabs .cm-tabs-nav > button.active {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-system .cm-formal-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .cm-formal-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .cm-formal-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .cm-formal-table textarea {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-system .cm-delay input {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .system-tabpane > .system-subpage.close-message-page > .cm-footer {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-system .game-setting-table .edit.title td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .left-list.reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .wallet-main-card.home-content {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .wallet-alert.ivu-alert,
html.theme_black .admin-shell.theme_black.active-wallet .ivu-alert.ivu-alert-success.wallet-alert {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .walletCon .info-con {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .walletCon .tit {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .wallet-formal-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .wallet-formal-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-wallet .wallet-formal-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-users .left-list.reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-users .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-main-card.user-page {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-toolbar input:not([type="checkbox"]),
html.theme_black .admin-shell.theme_black.active-users .user-toolbar select {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-toolbar .ivu-btn-error {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-card-tabs button {
  background: #1f262e !important;
  background-color: #1f262e !important;
  border-color: #3e4451 !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-card-tabs button.active {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-formal-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-formal-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-users .user-formal-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-users .mini-avatar {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-users .green-tag {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-users .blue-tag {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-users .btn-red {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-apply .left-list.reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-apply .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-main-card.apply-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-toolbar input,
html.theme_black .admin-shell.theme_black.active-apply .apply-toolbar select {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-toolbar .ivu-btn-error {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-formal-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-formal-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-formal-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-type.down,
html.theme_black .admin-shell.theme_black.active-apply .apply-status.rejected {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-apply .apply-status.pending {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-apply .btn-red {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-reports .left-list.reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-reports .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-reports .report-main-card.report-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-reports .report-toolbar input,
html.theme_black .admin-shell.theme_black.active-reports .report-toolbar select {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-reports .report-toolbar .ivu-btn-error {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-reports .report-formal-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-reports .report-formal-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-reports .report-formal-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-activity .left-list.reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-activity .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-activity .activity-main-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-activity .activity-tip,
html.theme_black .admin-shell.theme_black.active-activity .wallet-tip {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-activity .ivu-btn-error {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-activity .activity-table th,
html.theme_black .admin-shell.theme_black.active-activity .promo-table th,
html.theme_black .admin-shell.theme_black.active-activity .banner-table th,
html.theme_black .admin-shell.theme_black.active-activity .reference-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-activity .invite-manage-form label > input:not([type]),
html.theme_black .admin-shell.theme_black.active-activity .signin-manage-form label > input:not([type]),
html.theme_black .admin-shell.theme_black.active-activity .invite-manage-form input[type="text"],
html.theme_black .admin-shell.theme_black.active-activity .red-send-form input,
html.theme_black .admin-shell.theme_black.active-activity .red-send-form select {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-activity .ad-upload-box {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-monitor .left-list.reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-monitor .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-monitor .monitor-main-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-monitor .monitor-summary .ivu-btn-error {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-monitor .monitor-col {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-monitor .monitor-col input {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border-color: #3e4451 !important;
}

html.theme_black .admin-shell.theme_black.active-odds .left-list.reference-side,
html.theme_black .admin-shell.theme_black.active-open .left-list.reference-side {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-odds .left-list .tab,
html.theme_black .admin-shell.theme_black.active-open .left-list .tab {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-odds .odds-main-card,
html.theme_black .admin-shell.theme_black.active-open .open-main-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-odds .odds-toolbar select,
html.theme_black .admin-shell.theme_black.active-odds .odds-toolbar input,
html.theme_black .admin-shell.theme_black.active-open .open-toolbar input,
html.theme_black .admin-shell.theme_black.active-disk .disk-toolbar input,
html.theme_black .admin-shell.theme_black.active-disk .disk-toolbar select {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-odds .ivu-btn-error,
html.theme_black .admin-shell.theme_black.active-open .ivu-btn-error,
html.theme_black .admin-shell.theme_black.active-disk .ivu-btn-error {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-odds .odds-formal-table.my-table {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-odds .odds-formal-table thead.odds-thead,
html.theme_black .admin-shell.theme_black.active-odds .odds-formal-table thead {
  background: #2a3340 !important;
}

html.theme_black .admin-shell.theme_black.active-odds .odds-formal-table th,
html.theme_black .admin-shell.theme_black.active-odds .odds-formal-table td {
  background: transparent !important;
  background-color: transparent !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-odds .odds-formal-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-odds .odds-formal-table th {
  background: transparent !important;
  background-color: transparent !important;
}

html.theme_black .admin-shell.theme_black.active-odds .div-flex input {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-open .open-formal-table th,
html.theme_black .admin-shell.theme_black.active-disk .disk-formal-table th {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black.active-disk .disk-side.left-panel {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black.active-disk .disk-main-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black.active-disk .toggle-pill i {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .admin-account-menu {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  box-shadow: none !important;
}

html.theme_black .admin-shell.theme_black .notice-box .notice {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
}

html.theme_black .admin-shell.theme_black .notice-box .notice-header {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black .left-list .tab:hover,
html.theme_black .admin-shell.theme_black .reference-side button:hover,
html.theme_black .admin-shell.theme_black .reference-side .tab:hover {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

html.theme_black .admin-shell.theme_black tbody tr:hover,
html.theme_black .admin-shell.theme_black .reference-table tbody tr:hover,
html.theme_black .admin-shell.theme_black .odds-formal-table tbody tr:hover,
html.theme_black .admin-shell.theme_black .open-formal-table tbody tr:hover,
html.theme_black .admin-shell.theme_black .disk-formal-table tbody tr:hover,
html.theme_black .admin-shell.theme_black .wallet-table tbody tr:hover,
html.theme_black .admin-shell.theme_black .signTable tbody tr:hover,
html.theme_black .admin-shell.theme_black .my-table tbody tr:hover {
  background: #1f262e !important;
  background-color: #1f262e !important;
}

/* ===== boot loading / expire banner / important ad / platform notice admin ===== */
.boot-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.boot-loading-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.boot-loading-ring svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.boot-loading-ring .boot-track {
  fill: none;
  stroke: #e6e8eb;
  stroke-width: 4;
}

.boot-loading-ring .boot-progress {
  fill: none;
  stroke: #1a9fff;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 90ms linear;
}

.boot-loading-ring img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  object-fit: contain;
  pointer-events: none;
}

.boot-loading-pct {
  position: absolute;
  right: -6px;
  top: 18px;
  color: #1a9fff;
  font-size: 13px;
  font-weight: 600;
  transform: rotate(12deg);
  font-variant-numeric: tabular-nums;
}

.expire-renew-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 36px 6px 16px;
  background: #fff;
  border: 1px solid #e24c4c;
  border-left: none;
  border-right: none;
  color: #333;
  font-size: 13px;
  line-height: 1.4;
}

.expire-renew-banner p {
  margin: 0;
  text-align: center;
}

.expire-renew-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e24c4c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.expire-renew-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}

.important-ad-mask {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.important-ad-modal {
  position: relative;
  width: min(520px, 92vw);
  padding: 36px 28px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d2748 0%, #0a1a30 100%);
  border: 1px solid rgba(64, 168, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(64, 168, 255, 0.25), 0 18px 48px rgba(0, 0, 0, 0.45);
  color: #fff;
  text-align: center;
}

.important-ad-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.important-ad-ribbon {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 6px 22px;
  background: linear-gradient(90deg, #c62828, #e53935);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.important-ad-modal h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  color: #f5d76e;
  letter-spacing: 0.5px;
}

.important-ad-body {
  margin: 0 auto 18px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.7;
}

.important-ad-body p {
  margin: 0 0 4px;
}

.important-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 42px;
  margin: 4px 0 14px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffe08a, #d4a017);
  color: #4a2f00;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.important-ad-today {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  user-select: none;
}

.important-ad-actions {
  display: flex;
  justify-content: center;
}

.important-ad-actions .blue {
  min-width: 96px;
}

.admin-shell .notice-pagination {
  margin-top: 16px;
  text-align: center;
  color: #8a9199;
  font-size: 13px;
}

.platform-notice-admin {
  display: grid;
  gap: 20px;
}

.platform-ad-editor,
.platform-notice-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
}

.platform-ad-editor h3,
.platform-notice-list h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.platform-ad-editor label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}

.platform-ad-editor input[type="text"],
.platform-ad-editor input:not([type]),
.platform-ad-editor textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.platform-ad-editor label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme_white .platform-ad-editor,
.theme_white .platform-notice-list {
  background: #fff;
  border-color: #e6e8eb;
}

.login-site-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #8a9199;
  line-height: 1.5;
}
.login-site-hint a {
  color: #1a9fff;
  text-decoration: underline;
}
.platform-create-room .platform-create-desc {
  margin: 0 0 14px;
  color: #8a9199;
  font-size: 13px;
  line-height: 1.6;
}
.platform-create-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.platform-create-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(26, 159, 255, 0.08);
  border: 1px solid rgba(26, 159, 255, 0.35);
}
.platform-create-result h3 {
  margin: 0 0 8px;
}
.platform-create-result p {
  margin: 4px 0;
}

/* ===== formal notice modal + sjb image ad ===== */
.admin-shell .notice-box {
  z-index: 9700 !important;
  background: rgba(15, 25, 40, 0.32) !important;
  backdrop-filter: none !important;
}

.admin-shell .notice-box .notice {
  width: min(720px, 94vw) !important;
  height: auto !important;
  max-height: min(560px, 86vh) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden !important;
  color: #333 !important;
}

.admin-shell .notice-box .notice-header {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: block !important;
}

.admin-shell .notice-box .notice-header img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 148px !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.admin-shell .notice-box .notice-header .close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  z-index: 2 !important;
}

.admin-shell .notice-box .notice-body {
  display: flex !important;
  min-height: 280px !important;
  max-height: 380px !important;
  background: #fff !important;
}

.admin-shell .notice-box .notice-menu {
  width: 148px !important;
  flex: 0 0 148px !important;
  border-right: 2px solid #d8dee6 !important;
  padding: 10px 0 !important;
  background: #fff !important;
  overflow: auto !important;
}

.admin-shell .notice-box .notice-menu-item {
  position: relative !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(0, 0, 0, 0.65) !important;
  text-align: left !important;
  padding: 12px 10px 12px 14px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  cursor: pointer !important;
  z-index: 0 !important;
}

.admin-shell .notice-box .notice-menu-item span {
  display: block !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.admin-shell .notice-box .notice-menu-item.active {
  color: #fff !important;
  background: #3a7bbc !important;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1) !important;
}

.admin-shell .notice-box .notice-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 18px 22px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  color: #444 !important;
}

.admin-shell .notice-box .notice-content-item {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}

.admin-shell .notice-box .notice-content-item .date {
  margin: 0 0 12px !important;
  color: #9aa3ad !important;
  font-size: 13px !important;
}

.admin-shell .notice-box .notice-content-item-msg {
  color: #4a5560 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.admin-shell .notice-box .notice-content-item-msg p {
  margin: 0 0 10px !important;
  color: inherit !important;
}

.admin-shell .notice-box .notice-pagination {
  margin-top: auto !important;
  padding-top: 10px !important;
  text-align: center !important;
  color: #9aa3ad !important;
  font-size: 13px !important;
}

html.theme_black .admin-shell.theme_black .notice-box .notice,
html.theme_black .admin-shell.theme_black .notice-box .notice-body,
html.theme_black .admin-shell.theme_black .notice-box .notice-header,
html.theme_black .admin-shell.theme_black .notice-box .notice-menu,
html.theme_black .admin-shell.theme_black .notice-box .notice-content {
  background: #fff !important;
  color: #444 !important;
}

html.theme_black .admin-shell.theme_black .notice-box .notice-menu-item {
  color: rgba(0, 0, 0, 0.65) !important;
  background: transparent !important;
}

html.theme_black .admin-shell.theme_black .notice-box .notice-menu-item.active {
  color: #fff !important;
  background: #3a7bbc !important;
}

.important-ad-modal.image-mode {
  width: min(560px, 92vw);
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Image popup: no card/plate — only graphic + close + checkbox */
.important-ad-stage {
  position: relative;
  width: min(560px, 92vw);
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-align: center;
}
.important-ad-stage .important-ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.important-ad-stage .important-ad-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  width: 100%;
  color: #fff !important;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  user-select: none;
}

.important-ad-modal.image-mode .important-ad-close {
  top: -6px;
  right: -6px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.important-ad-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent !important;
  cursor: pointer;
  line-height: 0;
}

.important-ad-image-btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent !important;
}

.important-ad-modal.image-mode .important-ad-today {
  margin: 14px 0 0;
  justify-content: center;
  width: 100%;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.platform-ad-preview {
  display: block;
  max-width: 320px;
  width: 100%;
  margin: 8px 0 14px;
  border-radius: 8px;
}

.platform-ad-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #8a9199;
}


/* force notice modal never inherit dark shell blacks */
html.theme_black .admin-shell.theme_black .notice-box,
.admin-shell.theme_black .notice-box {
  background: rgba(15, 25, 40, 0.32) !important;
}
html.theme_black .admin-shell.theme_black .notice-box .notice,
html.theme_black .admin-shell.theme_black .notice-box .notice-header,
html.theme_black .admin-shell.theme_black .notice-box .notice-body,
html.theme_black .admin-shell.theme_black .notice-box .notice-menu,
html.theme_black .admin-shell.theme_black .notice-box .notice-content,
.admin-shell.theme_black .notice-box .notice,
.admin-shell.theme_black .notice-box .notice-header,
.admin-shell.theme_black .notice-box .notice-body,
.admin-shell.theme_black .notice-box .notice-menu,
.admin-shell.theme_black .notice-box .notice-content {
  background: #fff !important;
  background-color: #fff !important;
  color: #444 !important;
}
html.theme_black .admin-shell.theme_black .notice-box .notice-header,
.admin-shell.theme_black .notice-box .notice-header {
  background: transparent !important;
}
.important-ad-mask {
  background: rgba(15, 25, 40, 0.32) !important;
}

/* ===== notice: megaphone header transparent, content board white ===== */
.admin-shell .notice-box {
  background: rgba(15, 25, 40, 0.28) !important;
}
.admin-shell .notice-box .notice {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}
.admin-shell .notice-box .notice-header {
  background: transparent !important;
  background-color: transparent !important;
}
.admin-shell .notice-box .notice-header img {
  background: transparent !important;
  mix-blend-mode: normal !important;
}
.admin-shell .notice-box .notice-body {
  background: #fff !important;
  border-radius: 0 0 18px 18px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
}
.admin-shell .notice-box .notice-menu,
.admin-shell .notice-box .notice-content {
  background: #fff !important;
}
.admin-shell .notice-box .notice-menu {
  border-right: 1px solid #d8dee6 !important;
}
.admin-shell .notice-box .notice-menu-item {
  color: rgba(0, 0, 0, 0.65) !important;
  background: transparent !important;
}
.admin-shell .notice-box .notice-menu-item.active {
  color: #fff !important;
  background: #3a7bbc !important;
}
.admin-shell .notice-box .notice-content-item .date,
.admin-shell .notice-box .notice-pagination {
  color: #9aa3ad !important;
}
.admin-shell .notice-box .notice-content-item-msg,
.admin-shell .notice-box .notice-content-item-msg p {
  color: #4a5560 !important;
}
html.theme_black .admin-shell.theme_black .notice-box .notice,
.admin-shell.theme_black .notice-box .notice {
  background: transparent !important;
}
html.theme_black .admin-shell.theme_black .notice-box .notice-header,
.admin-shell.theme_black .notice-box .notice-header {
  background: transparent !important;
}
html.theme_black .admin-shell.theme_black .notice-box .notice-body,
html.theme_black .admin-shell.theme_black .notice-box .notice-menu,
html.theme_black .admin-shell.theme_black .notice-box .notice-content,
.admin-shell.theme_black .notice-box .notice-body,
.admin-shell.theme_black .notice-box .notice-menu,
.admin-shell.theme_black .notice-box .notice-content {
  background: #fff !important;
  color: #444 !important;
}

/* super admin uses owner top/nav look */
.super-shell.admin-shell .admin-top.l-header {
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
}
.super-shell.admin-shell .admin-nav {
  background: #fff !important;
  border-bottom: 1px solid #d6dde1 !important;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08) !important;
}
.super-shell.admin-shell .admin-nav button.active {
  background: #dff3f6 !important;
  border-color: #111 !important;
  color: #008bbb !important;
}
.super-shell .admin-reference-page {
  background: transparent !important;
}


/* FINAL: megaphone header must stay transparent; content board white */
.admin-shell .notice-box .notice { background: transparent !important; overflow: visible !important; }
.admin-shell .notice-box .notice-header,
.admin-shell .notice-box .notice-header img,
html.theme_black .admin-shell.theme_black .notice-box .notice-header,
.admin-shell.theme_black .notice-box .notice-header {
  background: transparent !important;
  background-color: transparent !important;
}
.admin-shell .notice-box .notice-body,
.admin-shell .notice-box .notice-menu,
.admin-shell .notice-box .notice-content {
  background: #fff !important;
}

/* ===== Night: restore home right metric icon colors + table grid lines ===== */
html.theme_black .admin-shell.theme_black.active-home .home-metric-card,
.admin-shell.theme_black.active-home .home-metric-card {
  background: #1f262e !important;
  background-color: #1f262e !important;
  border: 1px solid #3e4451 !important;
  box-shadow: none !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .home-metric-card .metric-text > span,
html.theme_black .admin-shell.theme_black.active-home .home-metric-card > div > span,
.admin-shell.theme_black.active-home .home-metric-card .metric-text > span {
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .home-metric-card b,
.admin-shell.theme_black.active-home .home-metric-card b {
  color: #c5c8ce !important;
}
html.theme_black .admin-shell.theme_black.active-home .home-metric-card.accent-value b,
.admin-shell.theme_black.active-home .home-metric-card.accent-value b {
  color: #23caea !important;
}
html.theme_black .admin-shell.theme_black.active-home .home-metric-card.is-loss b,
html.theme_black .admin-shell.theme_black.active-home .home-metric-card.accent-value.is-loss b {
  color: #ff464d !important;
}

/* icon circle colors must NOT be flattened to #1f262e */
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot,
.admin-shell.theme_black.active-home .home-metric-dot {
  background-image: none !important;
}
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.amount,
.admin-shell.theme_black.active-home .home-metric-dot.amount { background: #708aff !important; background-color: #708aff !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.thirdAmount,
.admin-shell.theme_black.active-home .home-metric-dot.thirdAmount { background: #ff4747 !important; background-color: #ff4747 !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.liushui,
.admin-shell.theme_black.active-home .home-metric-dot.liushui { background: #fac77d !important; background-color: #fac77d !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.yingkui,
.admin-shell.theme_black.active-home .home-metric-dot.yingkui { background: #80d3f3 !important; background-color: #80d3f3 !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.huishui,
.admin-shell.theme_black.active-home .home-metric-dot.huishui { background: #66de9d !important; background-color: #66de9d !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.allykui,
.admin-shell.theme_black.active-home .home-metric-dot.allykui { background: #ff9684 !important; background-color: #ff9684 !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.chongzhi,
.admin-shell.theme_black.active-home .home-metric-dot.chongzhi { background: #f66b6b !important; background-color: #f66b6b !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.tixian,
.admin-shell.theme_black.active-home .home-metric-dot.tixian { background: #9179fa !important; background-color: #9179fa !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.zhuce,
.admin-shell.theme_black.active-home .home-metric-dot.zhuce { background: #f66bf1 !important; background-color: #f66bf1 !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.weijie,
.admin-shell.theme_black.active-home .home-metric-dot.weijie,
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.dark,
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.slate,
.admin-shell.theme_black.active-home .home-metric-dot.weijie { background: #aab9be !important; background-color: #aab9be !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.rose,
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.red,
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.pink,
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.salmon,
.admin-shell.theme_black.active-home .home-metric-dot.rose,
.admin-shell.theme_black.active-home .home-metric-dot.red,
.admin-shell.theme_black.active-home .home-metric-dot.pink {
  background: #f66b6b !important;
  background-color: #f66b6b !important;
}
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.blue,
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.violet { background: #708aff !important; background-color: #708aff !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.orange,
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.gold { background: #fac77d !important; background-color: #fac77d !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.cyan { background: #80d3f3 !important; background-color: #80d3f3 !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.green { background: #66de9d !important; background-color: #66de9d !important; }
html.theme_black .admin-shell.theme_black.active-home .home-metric-dot.purple { background: #9179fa !important; background-color: #9179fa !important; }

/* formal dark table grid lines */
html.theme_black .admin-shell.theme_black.active-home .game-data-table,
.admin-shell.theme_black.active-home .game-data-table {
  background: #1f262e !important;
  border: 1px solid #404142 !important;
  border-collapse: collapse !important;
  color: #a1a5aa !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table th,
.admin-shell.theme_black.active-home .game-data-table th {
  background: #3e4451 !important;
  background-color: #3e4451 !important;
  color: #a1a5aa !important;
  border: 1px solid #404142 !important;
  border-bottom: 1px solid #404142 !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table td,
.admin-shell.theme_black.active-home .game-data-table td {
  background: #1f262e !important;
  background-color: #1f262e !important;
  color: #a1a5aa !important;
  border: 1px solid #404142 !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table tbody tr:nth-child(even),
html.theme_black .admin-shell.theme_black.active-home .game-data-table tbody tr:nth-child(even) td,
.admin-shell.theme_black.active-home .game-data-table tbody tr:nth-child(even),
.admin-shell.theme_black.active-home .game-data-table tbody tr:nth-child(even) td {
  background: #1f262e !important;
  background-color: #1f262e !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table tbody tr:hover,
html.theme_black .admin-shell.theme_black.active-home .game-data-table tbody tr:hover td {
  background-color: hsla(0, 0%, 100%, 0.04) !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table .game-link,
.admin-shell.theme_black.active-home .game-data-table .game-link {
  color: #23caea !important;
}
html.theme_black .admin-shell.theme_black.active-home .game-data-table .is-loss,
html.theme_black .admin-shell.theme_black.active-home .game-data-table .is-alert {
  color: #ff464d !important;
}

/* ===== Super admin: fixed top+nav, body scrolls to bottom ===== */
.super-shell.admin-shell,
.super-shell.admin-shell.active-home {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh / var(--app-scale)) !important;
  max-height: calc(100vh / var(--app-scale)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.super-shell .admin-top.l-header,
.super-shell.admin-shell .admin-top.l-header {
  position: relative !important;
  flex: 0 0 auto !important;
  z-index: 40 !important;
}
.super-shell .admin-nav,
.super-shell.admin-shell .admin-nav {
  position: relative !important;
  flex: 0 0 auto !important;
  z-index: 39 !important;
}
.super-shell .admin-body,
.super-shell.admin-shell .admin-body,
.super-shell.admin-shell.active-home .admin-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 72px !important;
}
.super-shell .admin-reference-page,
.super-shell .super-page,
.super-shell .super-main-panel,
.super-shell .reference-main,
.super-shell .admin-reference-page .reference-main {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
.super-shell .platform-notice-admin {
  overflow: visible !important;
  padding-bottom: 48px !important;
}
.super-shell .platform-ad-editor {
  overflow: visible !important;
}
.super-shell .platform-ad-preview {
  display: block !important;
  max-width: min(480px, 100%) !important;
  max-height: none !important;
  height: auto !important;
  margin-bottom: 16px !important;
}

/* Important notice: no grey panel behind image */
.important-ad-mask {
  background: rgba(0, 0, 0, 0.55) !important;
}
.important-ad-stage,
.admin-shell .important-ad-stage,
.important-ad-modal.image-mode,
.admin-shell .important-ad-modal.image-mode {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.important-ad-stage .important-ad-image-btn,
.important-ad-stage .important-ad-image-btn img {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ========== 全站左栏 pill：强制与系统设置一致（文字+箭头整体居中） ========== */
.admin-shell .left-list.reference-side .tab,
.admin-shell .left-list .tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
  text-align: center !important;
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  max-width: calc(7.857143 * var(--mj-rem)) !important;
  height: calc(1.928571 * var(--mj-rem)) !important;
  min-height: calc(1.928571 * var(--mj-rem)) !important;
  max-height: calc(1.928571 * var(--mj-rem)) !important;
  line-height: calc(1.928571 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #fff !important;
  color: #878c94 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #d3d3d3 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  position: relative !important;
}
.admin-shell .left-list .tab .tab-inner {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(0.15 * var(--mj-rem)) !important;
  max-width: 100% !important;
  line-height: inherit !important;
}
.admin-shell .left-list .tab .tab-text {
  display: inline !important;
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center !important;
  line-height: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
}
.admin-shell .left-list .tab .tab-arrow {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  float: none !important;
  flex: none !important;
  margin-left: 0 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  line-height: 1 !important;
  color: inherit !important;
  transform: translateY(-0.05em);
  font-weight: 400 !important;
}
.admin-shell .left-list .tab.chooseTab,
.admin-shell .left-list .tab.active {
  color: #fff !important;
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-radius: calc(1.285714 * var(--mj-rem)) !important;
  box-shadow: 0 0 calc(0.714286 * var(--mj-rem)) #0087b4 !important;
}
.admin-shell .left-list .tab.chooseTab .tab-arrow,
.admin-shell .left-list .tab.active .tab-arrow {
  opacity: 1 !important;
  color: #fff !important;
}
.admin-shell .left-list.reference-side {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* ===== 首页客服：扁平聊天房间列表（对齐正式版） ===== */
.admin-shell.active-home .game-switch-list:has(.cs-room-panel) {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.admin-shell.active-home .cs-room-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px 8px;
  flex: 0 0 auto;
  border-bottom: 1px solid #e6ebef;
  background: #fff;
}
.admin-shell.active-home .cs-room-toolbar input,
.admin-shell.active-home .cs-room-toolbar select {
  height: 32px;
  min-width: 96px;
  padding: 0 10px;
  border: 1px solid #d9dadc;
  border-radius: 4px;
  background: #fff;
  color: #272828;
}
.admin-shell.active-home .cs-room-toolbar input {
  flex: 1 1 110px;
  min-width: 110px;
}
.admin-shell.active-home .cs-room-toolbar .ivu-btn-primary,
.admin-shell.active-home .cs-room-toolbar .ivu-btn-error {
  height: 32px;
  min-width: 56px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  line-height: 32px;
}
.admin-shell.active-home .cs-room-toolbar .ivu-btn-primary { background: #0087b4; }
.admin-shell.active-home .cs-room-toolbar .ivu-btn-error { background: #e75a56; }
.admin-shell.active-home .cs-room-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0;
}
.admin-shell.active-home .cs-room-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #f0f2f4;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.admin-shell.active-home .cs-room-item:hover,
.admin-shell.active-home .cs-room-item.selected {
  background: #f3f8fb;
}
.admin-shell.active-home .cs-room-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #dfe7ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b6b75;
  font-weight: 700;
}
.admin-shell.active-home .cs-room-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-shell.active-home .cs-room-main {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-shell.active-home .cs-room-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.admin-shell.active-home .cs-room-top b {
  font-size: 15px;
  color: #1f2d3d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-shell.active-home .cs-status {
  flex: 0 0 auto;
  min-width: 40px;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 20px;
  font-style: normal;
  text-align: center;
}
.admin-shell.active-home .cs-status.is-ok {
  background: #19be6b;
  color: #fff;
}
.admin-shell.active-home .cs-status.is-ban {
  background: #ed4014;
  color: #fff;
}
.admin-shell.active-home .cs-room-sub {
  display: block;
  color: #8a9399;
  font-size: 12px;
}
.admin-shell.active-home .cs-unread {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ed4014;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-style: normal;
}
.admin-shell.active-home .cs-room-more {
  position: relative;
  flex: 0 0 auto;
}
.admin-shell.active-home .cs-room-more > button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8a9399;
  font-size: 20px;
  line-height: 1;
}
.admin-shell.active-home .cs-room-more > button:hover {
  background: #e8eef2;
  color: #273943;
}
.admin-shell.active-home .cs-room-menu {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 20;
  min-width: 132px;
  padding: 6px 0;
  border: 1px solid #e1e5e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.admin-shell.active-home .cs-room-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #273943;
  text-align: left;
  font-size: 13px;
}
.admin-shell.active-home .cs-room-menu button:hover {
  background: #f3f8fb;
}
.admin-shell.active-home .cs-room-menu button.danger {
  color: #ed4014;
}
.admin-shell.active-home .cs-room-empty {
  margin: 40px 16px;
  color: #8a9399;
  text-align: center;
}

/* ========== 顶栏+导航钉死：壳内滚动；禁止 transform（否则浏览器缩放失效） ========== */
html,
body {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
#root {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  transform: none !important;
  zoom: 1 !important;
}
.admin-app,
.admin-shell,
.admin-shell.admin-shell,
.admin-shell.active-home,
.admin-shell.active-system,
.admin-shell.active-wallet,
.admin-shell.active-users,
.admin-shell.active-apply,
.admin-shell.active-reports,
.admin-shell.active-activity,
.admin-shell.active-monitor,
.admin-shell.active-odds,
.admin-shell.active-disk,
.admin-shell.active-open,
.super-shell.admin-shell {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.admin-shell > .expire-renew-banner,
.admin-shell > .admin-top,
.admin-shell > .admin-top.l-header,
.admin-shell > .admin-nav {
  flex: 0 0 auto !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
}
.admin-shell > .admin-nav {
  z-index: 50 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
.admin-shell > .admin-body,
.admin-shell.active-home > .admin-body,
.admin-shell.active-system > .admin-body,
.admin-shell.active-monitor > .admin-body,
.admin-shell.active-odds > .admin-body,
.admin-shell.active-open > .admin-body,
.admin-shell.active-disk > .admin-body,
.super-shell.admin-shell > .admin-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
/* 禁止内页再撑开整页导致外层滚动 */
.admin-shell:not(.active-home) > .admin-body > .page,
.admin-shell:not(.active-home) .page {
  min-height: 0 !important;
}

/* 开奖结果：App/H5 同款奖球 PNG，禁用 CSS 色块 */
.admin-shell.active-open .open-nums .flex-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
}
.admin-shell.active-open .open-ball-img {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
.admin-shell.active-open .open-ball-img.open-ball-ssc,
.admin-shell.active-open .open-ball-img.open-ball-pc28 {
  width: 26px !important;
  height: 26px !important;
}
.admin-shell.active-open .open-ball-img.open-ball-lhc {
  width: 24px !important;
  height: 24px !important;
}
.admin-shell.active-open .open-nums .rank-box,
.admin-shell.active-open .open-nums .b,
.admin-shell.active-open .open-nums .result-ball {
  display: none !important;
}

/* ===== Unify left sidebar width + gap to match 系统设置 across all pages ===== */
.admin-shell:not(.active-home) .admin-body {
  padding: 12px 18px 10px !important;
  background: #eaebec !important;
  overflow: hidden !important;
}
.admin-shell:not(.active-home) .layout-page {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
.admin-shell:not(.active-home) .reference-layout,
.admin-shell:not(.active-home) .system-layout,
.admin-shell:not(.active-home) .two-col-layout,
.admin-shell:not(.active-home) .wallet-layout,
.admin-shell:not(.active-home) .wallet-wide-layout,
.admin-shell:not(.active-home) .wallet-layout-formal,
.admin-shell:not(.active-home) .user-layout-formal,
.admin-shell:not(.active-home) .apply-layout-formal,
.admin-shell:not(.active-home) .report-layout-formal,
.admin-shell:not(.active-home) .activity-layout-formal,
.admin-shell:not(.active-home) .monitor-layout-formal,
.admin-shell:not(.active-home) .odds-layout-formal,
.admin-shell:not(.active-home) .open-layout-formal,
.admin-shell:not(.active-home) .disk-layout-formal {
  display: flex !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}
.admin-shell:not(.active-home) .left-list.reference-side,
.admin-shell:not(.active-home) aside.left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  min-width: calc(9.5 * var(--mj-rem)) !important;
  max-width: calc(9.5 * var(--mj-rem)) !important;
  margin: 0 !important;
  height: 100% !important;
  max-height: none !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
.admin-shell:not(.active-home) .layout-right,
.admin-shell:not(.active-home) .system-main-card,
.admin-shell:not(.active-home) .system-main-card.home-content,
.admin-shell:not(.active-home) .user-main-card,
.admin-shell:not(.active-home) .user-main-card.user-page,
.admin-shell:not(.active-home) .reference-main,
.admin-shell:not(.active-home) .activity-main-card,
.admin-shell:not(.active-home) .activity-main,
.admin-shell:not(.active-home) .wallet-main-card,
.admin-shell:not(.active-home) .apply-main-card,
.admin-shell:not(.active-home) .report-main-card,
.admin-shell:not(.active-home) .monitor-main-card,
.admin-shell:not(.active-home) .odds-main-card,
.admin-shell:not(.active-home) .open-main-card,
.admin-shell:not(.active-home) .disk-main-card,
.admin-shell:not(.active-home) .home-content.layout-right {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  max-height: none !important;
  box-sizing: border-box !important;
}

/* dark theme: keep the same geometry */
html.theme_black .admin-shell.theme_black:not(.active-home) .left-list.reference-side,
html.theme_black .admin-shell.theme_black:not(.active-home) aside.left-list.reference-side {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  min-width: calc(9.5 * var(--mj-rem)) !important;
  max-width: calc(9.5 * var(--mj-rem)) !important;
  margin: 0 !important;
  height: 100% !important;
}
html.theme_black .admin-shell.theme_black:not(.active-home) .reference-layout,
html.theme_black .admin-shell.theme_black:not(.active-home) .system-layout,
html.theme_black .admin-shell.theme_black:not(.active-home) .two-col-layout,
html.theme_black .admin-shell.theme_black:not(.active-home) .wallet-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .user-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .apply-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .report-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .activity-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .monitor-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .odds-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .open-layout-formal,
html.theme_black .admin-shell.theme_black:not(.active-home) .disk-layout-formal {
  gap: 12px !important;
  justify-content: stretch !important;
}
html.theme_black .admin-shell.theme_black:not(.active-home) .layout-right,
html.theme_black .admin-shell.theme_black:not(.active-home) .system-main-card,
html.theme_black .admin-shell.theme_black:not(.active-home) .user-main-card,
html.theme_black .admin-shell.theme_black:not(.active-home) .reference-main,
html.theme_black .admin-shell.theme_black:not(.active-home) .home-content.layout-right {
  margin: 0 !important;
  height: 100% !important;
}

/* ===== Uiverse switch (Galahhad) — 房主后台统一开关 ===== */
.admin-shell .switch.mj-fancy-switch,
.admin-shell label.switch {
  /* switch */
  /* 非首页默认：相对放大版再缩 20% */
  --switch-width: 55px;
  --switch-height: 29px;
  --switch-bg: rgb(131, 131, 131);
  /* 开启：与顶部公告栏同一青蓝渐变 */
  --switch-checked-bg: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%);
  --switch-checked-solid: #0ec0ff;
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 22px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 7px;
  --icon-checkmark-color: var(--switch-checked-solid);
  --icon-checkmark-size: 12px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all .2s ease-in-out;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  line-height: 0;
  /* 覆盖旧 mj-switch 尺寸/文字样式 */
  width: var(--switch-width) !important;
  height: var(--switch-height) !important;
  min-width: var(--switch-width) !important;
  min-height: var(--switch-height) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.admin-shell .switch.mj-fancy-switch input,
.admin-shell label.switch input {
  display: none !important;
}
.admin-shell .switch.mj-fancy-switch svg,
.admin-shell label.switch svg {
  -webkit-transition: var(--icon-transition);
  transition: var(--icon-transition);
  position: absolute;
  height: auto;
}
.admin-shell .switch.mj-fancy-switch .checkmark,
.admin-shell label.switch .checkmark {
  width: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  transform: scale(0);
}
.admin-shell .switch.mj-fancy-switch .cross,
.admin-shell label.switch .cross {
  width: var(--icon-cross-size);
  color: var(--icon-cross-color);
}
.admin-shell .switch.mj-fancy-switch .slider,
.admin-shell label.switch .slider {
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: flex;
  align-items: center;
  position: relative;
  transition: var(--switch-transition);
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible;
}
.admin-shell .switch.mj-fancy-switch .circle,
.admin-shell label.switch .circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
  border-radius: inherit;
  box-shadow: var(--circle-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--circle-transition);
  z-index: 1;
  position: absolute;
  left: var(--switch-offset);
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
}
.admin-shell .switch.mj-fancy-switch .slider::before,
.admin-shell label.switch .slider::before {
  content: "";
  position: absolute;
  width: var(--effect-width);
  height: var(--effect-height);
  left: calc(var(--switch-offset) + (var(--effect-width) / 2));
  top: 50%;
  transform: translateY(-50%);
  background: var(--effect-bg);
  border-radius: var(--effect-border-radius);
  transition: var(--effect-transition);
}
.admin-shell .switch.mj-fancy-switch input:checked + .slider,
.admin-shell label.switch input:checked + .slider {
  background: var(--switch-checked-bg) !important;
}
.admin-shell .switch.mj-fancy-switch input:checked + .slider .checkmark,
.admin-shell label.switch input:checked + .slider .checkmark {
  transform: scale(1);
}
.admin-shell .switch.mj-fancy-switch input:checked + .slider .cross,
.admin-shell label.switch input:checked + .slider .cross {
  transform: scale(0);
}
.admin-shell .switch.mj-fancy-switch input:checked + .slider::before,
.admin-shell label.switch input:checked + .slider::before {
  left: calc(100% - var(--effect-width) - (var(--effect-width) / 2) - var(--switch-offset));
}
.admin-shell .switch.mj-fancy-switch input:checked + .slider .circle,
.admin-shell label.switch input:checked + .slider .circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  box-shadow: var(--circle-checked-shadow);
  transform: translateY(-50%);
}

/* 首页左侧游戏开关：跟行高用同一套 rem，避免固定 px 撑破列表 */
.admin-shell.active-home .game-home-switch.switch {
  --switch-width: calc(2.85 * var(--mj-rem));
  --switch-height: calc(1.5 * var(--mj-rem));
  --circle-diameter: calc(1.14 * var(--mj-rem));
  --icon-cross-size: calc(0.5 * var(--mj-rem));
  --icon-checkmark-size: calc(0.78 * var(--mj-rem));
  width: var(--switch-width) !important;
  min-width: var(--switch-width) !important;
  max-width: var(--switch-width) !important;
  height: var(--switch-height) !important;
  min-height: var(--switch-height) !important;
  margin-left: auto !important;
}
.admin-shell.active-home .game-home-switch.switch .slider {
  width: var(--switch-width) !important;
  height: var(--switch-height) !important;
}
.admin-shell.active-home .game-switch-list article {
  overflow: hidden !important;
  align-items: center !important;
}
.admin-shell.active-home .game-switch-list article .toggle-pill {
  display: none !important;
}

/* 其他页面开关：相对放大版再缩 20%；并盖过旧 .mj-switch 固定尺寸 */
.admin-shell .setting-row .right .switch.mj-fancy-switch,
.admin-shell .addPro .switch.mj-fancy-switch,
.admin-shell .rebate-toolbar .switch.mj-fancy-switch,
.admin-shell .reference-table .switch.mj-fancy-switch,
.admin-shell .game-setting-table .switch.mj-fancy-switch,
.admin-shell .entertainment-setting-table .switch.mj-fancy-switch,
.admin-shell .disk-game .switch.mj-fancy-switch,
.admin-shell.active-system .setting-row .right .switch.mj-fancy-switch,
.admin-shell.active-system .addPro .switch.mj-fancy-switch,
.admin-shell.active-system .rebate-toolbar .switch.mj-fancy-switch,
.admin-shell.active-system .game-setting-table .switch.mj-fancy-switch {
  --switch-width: calc(3.05 * var(--mj-rem));
  --switch-height: calc(1.6 * var(--mj-rem));
  --circle-diameter: calc(1.2 * var(--mj-rem));
  --icon-cross-size: calc(0.45 * var(--mj-rem));
  --icon-checkmark-size: calc(0.72 * var(--mj-rem));
  width: var(--switch-width) !important;
  min-width: var(--switch-width) !important;
  max-width: var(--switch-width) !important;
  height: var(--switch-height) !important;
  min-height: var(--switch-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none !important;
  float: none !important;
  position: relative !important;
  display: inline-block !important;
  transform: none !important;
}
.admin-shell.active-system .setting-row .right .switch.mj-fancy-switch .slider,
.admin-shell.active-system .addPro .switch.mj-fancy-switch .slider,
.admin-shell.active-system .rebate-toolbar .switch.mj-fancy-switch .slider,
.admin-shell .setting-row .right .switch.mj-fancy-switch .slider,
.admin-shell .addPro .switch.mj-fancy-switch .slider {
  width: var(--switch-width) !important;
  height: var(--switch-height) !important;
}
.admin-shell.active-system .game-setting-table .switch.mj-fancy-switch {
  transform: none !important;
  margin: 0 auto !important;
}

/* 顶栏：与总后台一致 — 青蓝横向渐变（覆盖 formal 实色 / 夜间深青） */
.admin-shell .admin-top,
.admin-shell .admin-top.l-header,
.admin-shell.theme_black .admin-top.l-header,
.admin-shell.theme_white .admin-top.l-header,
.admin-shell.super-shell .admin-top.l-header {
  background: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%) !important;
  border-bottom: 1px solid #1a9fd8 !important;
}

/* 基本资料：单列顺序 + CSS 三列高度自适应均分 */
.admin-shell.active-system .setting-matrix.contentModel.profile-flow {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: calc(0.714286 * var(--mj-rem)) !important;
  width: calc(100% - 1.428571 * var(--mj-rem)) !important;
  max-width: none !important;
  margin: calc(0.714286 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) 0 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .setting-matrix.profile-flow > .model {
  width: auto !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  margin-top: 0 !important;
  border: calc(0.071429 * var(--mj-rem)) solid #e1e1e5 !important;
  border-left-width: calc(0.071429 * var(--mj-rem)) !important;
  background: #fff !important;
  box-sizing: border-box !important;
  column-count: unset !important;
  column-gap: unset !important;
  column-rule: none !important;
  overflow: visible !important;
}
.admin-shell.active-system .setting-matrix.profile-flow .model.setting-flow-cols {
  width: auto !important;
  flex: 1 1 0 !important;
  margin-top: 0 !important;
  border: calc(0.071429 * var(--mj-rem)) solid #e1e1e5 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  column-count: unset !important;
  column-gap: unset !important;
  column-fill: unset !important;
  column-rule: none !important;
  overflow: visible !important;
}
.admin-shell.active-system .setting-matrix.profile-flow .setting-row {
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  page-break-inside: avoid !important;
  width: 100% !important;
  display: flex !important;
}
.admin-shell.active-system .setting-matrix.profile-flow .setting-row .left,
.admin-shell.active-system .setting-matrix.profile-flow .setting-row .right {
  width: 50% !important;
}

/* 娱乐设置：保存栏固定在内容区底部，不再 absolute 悬空 */
.admin-shell.active-system .entertainment-setting-page {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
  padding-top: calc(0.714286 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
}
.admin-shell.active-system .entertainment-setting-page .system-alert {
  flex: 0 0 auto !important;
}
.admin-shell.active-system .entertainment-setting-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}
.admin-shell.active-system .entertainment-setting-page > .system-bottom-actions.bottom {
  position: relative !important;
  flex: 0 0 auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: calc(4.285714 * var(--mj-rem)) !important;
  min-height: calc(4.285714 * var(--mj-rem)) !important;
  margin: 0 !important;
  padding: calc(0.5 * var(--mj-rem)) 0 !important;
  background: #fff !important;
  border-top: 1px solid #eaebee !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  text-align: right !important;
}
.admin-shell.active-system .entertainment-setting-table th,
.admin-shell.active-system .entertainment-setting-table td {
  height: auto !important;
  min-height: calc(2.6 * var(--mj-rem)) !important;
  padding: calc(0.5 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
}

/* 房主后台：进群 / 上下分 / 私信 页内提示（对齐正式版截图；整体放大约 40%） */
.mj-notify-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 448px;
  pointer-events: none;
}
.mj-notify-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 336px;
  max-width: 448px;
  padding: 14px 48px 14px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 35, 52, 0.2);
  border: 1px solid #e8eef3;
  cursor: pointer;
  position: relative;
  transform: scale(1);
}
.mj-notify-avatar {
  width: 59px;
  height: 59px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 59px;
  background: #f3f6f9;
}
.mj-notify-body { min-width: 0; flex: 1 1 auto; }
.mj-notify-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f2d3d;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mj-notify-text {
  margin-top: 3px;
  font-size: 18px;
  color: #5b6b7c;
  line-height: 1.35;
  word-break: break-all;
}
.mj-notify-warn {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: #e23c3c;
  line-height: 1.3;
}
.mj-notify-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #3a4654;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mj-notify-close:hover { background: #1f2d3d; }

/* 首页「客服」未读红点 */
.home-tabs button {
  position: relative;
}
.home-tab-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f5222d;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}
.admin-shell.active-home .home-tab-badge {
  top: calc(0.15 * var(--mj-rem));
  right: calc(0.35 * var(--mj-rem));
  min-width: calc(1.05 * var(--mj-rem));
  height: calc(1.05 * var(--mj-rem));
  line-height: calc(1.05 * var(--mj-rem));
  font-size: calc(0.75 * var(--mj-rem));
}

/* ===== 首页三栏底部对齐（左游戏 / 中聊天 / 右余额） =====
   覆盖历史 overflow:visible / min-height:auto，避免右侧内容把底边撑歪、左侧缩水。 */
.admin-shell.active-home {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh / var(--app-scale)) !important;
  max-height: calc(100vh / var(--app-scale)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.admin-shell.active-home .admin-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding-bottom: calc(0.571429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .home-console,
.admin-shell.active-home .home-console.data-closed {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
.admin-shell.active-home .game-control-card,
.admin-shell.active-home .live-chat-card,
.admin-shell.active-home .data-console-card {
  align-self: stretch !important;
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-home .game-control-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}
.admin-shell.active-home .game-switch-list,
.admin-shell.active-home .cs-room-panel {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.admin-shell.active-home .live-chat-card {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  overflow: visible !important;
}
.admin-shell.active-home .chat-stream,
.admin-shell.active-home .chat-empty {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.admin-shell.active-home .chat-compose {
  align-self: stretch !important;
}
.admin-shell.active-home .data-console-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.admin-shell.active-home .data-console-inner {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.admin-shell.active-home .home-metrics {
  flex: 0 0 auto !important;
}
.admin-shell.active-home .game-data-table-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.admin-shell.active-home .game-data-table-wrap .game-data-table {
  width: 100% !important;
}
/* ===== 首页聊天：一键回底部（对齐 App to_bottom + 未读数） ===== */
.admin-shell.active-home .live-chat-card {
  position: relative !important;
}
.admin-shell.active-home .chat-to-bottom {
  position: absolute !important;
  right: 16px !important;
  bottom: calc(88px + 10px) !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff url(/assets/web/icons/to_bottom.png) center / 100% 100% no-repeat !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14) !important;
  z-index: 24 !important;
  cursor: pointer !important;
  display: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.admin-shell.active-home .chat-to-bottom.is-show {
  display: block !important;
}
.admin-shell.active-home .chat-to-bottom-unread {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  background: #ff6a6a !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 18px !important;
  text-align: center !important;
  font-weight: 700 !important;
  display: none !important;
}
.admin-shell.active-home .chat-to-bottom-unread.is-on {
  display: block !important;
}
.admin-shell.active-home .down-circle {
  display: none !important;
}


/* ===== 全站一色调：与顶部公告栏完全同一套青蓝渐变 ===== */
:root {
  --mj-tone-grad: linear-gradient(90deg, #02d4fd 0%, #0ec0ff 48%, #23a5fd 100%);
  --mj-tone-shadow: 0 2px 10px rgba(14, 192, 255, 0.35);
  --mj-nav-active: #dff7ff;
}

/* 顶栏导航选中：恢复原样式（浅蓝底 + 原色图标/文字，禁止洗成白图标） */
.admin-shell .admin-nav button.active,
.admin-shell .admin-nav button.active:hover,
.super-shell.admin-shell .admin-nav button.active,
.super-shell.admin-shell .admin-nav button.active:hover {
  background: #dff7ff !important;
  background-image: none !important;
  background-color: #dff7ff !important;
  border-color: transparent !important;
  border-bottom-color: #0087b4 !important;
  color: #0087b4 !important;
  box-shadow: none !important;
}
.admin-shell .admin-nav button.active .nav-icon-wrap,
.admin-shell .admin-nav button.active img.nav-icon,
.admin-shell .admin-nav button.active .nav-icon,
.admin-shell .admin-nav button.active img {
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.admin-shell .admin-nav button.active .nav-label {
  filter: none !important;
  color: #0087b4 !important;
}

/* 左侧栏：未选中白底，选中公告栏渐变 */
.admin-shell .left-list .tab,
.admin-shell .left-list.reference-side .tab,
.admin-shell .reference-side > button,
.admin-shell .reference-side button.tab {
  color: #878c94 !important;
  background: #fff !important;
  box-shadow: 0 0 10px #d3d3d3 !important;
  border: 0 !important;
}
.admin-shell .left-list .tab .tab-arrow,
.admin-shell .left-list .tab .tab-text { color: inherit !important; }
.admin-shell.active-system .left-list .tab.chooseTab,
.admin-shell.active-system .left-list .tab.active,
.admin-shell.active-wallet .left-list .tab.chooseTab,
.admin-shell.active-wallet .left-list .tab.active,
.admin-shell.active-users .left-list .tab.chooseTab,
.admin-shell.active-users .left-list .tab.active,
.admin-shell.active-apply .left-list .tab.chooseTab,
.admin-shell.active-apply .left-list .tab.active,
.admin-shell.active-reports .left-list .tab.chooseTab,
.admin-shell.active-reports .left-list .tab.active,
.admin-shell.active-activity .left-list .tab.chooseTab,
.admin-shell.active-activity .left-list .tab.active,
.admin-shell.active-monitor .left-list .tab.chooseTab,
.admin-shell.active-monitor .left-list .tab.active,
.admin-shell.active-odds .left-list .tab.chooseTab,
.admin-shell.active-odds .left-list .tab.active,
.admin-shell.active-open .left-list .tab.chooseTab,
.admin-shell.active-open .left-list .tab.active,
.admin-shell .left-list .tab.chooseTab,
.admin-shell .left-list .tab.active,
.admin-shell .reference-side > button.active,
.admin-shell .reference-side button.tab.active,
.admin-shell .reference-side button.active {
  color: #fff !important;
  background: var(--mj-tone-grad) !important;
  background-image: var(--mj-tone-grad) !important;
  box-shadow: var(--mj-tone-shadow) !important;
}
.admin-shell .left-list .tab.chooseTab .tab-arrow,
.admin-shell .left-list .tab.active .tab-arrow,
.admin-shell .left-list .tab.chooseTab .tab-text,
.admin-shell .left-list .tab.active .tab-text { color: #fff !important; }

/* 主操作按钮 / 保存 / 搜索 / 发送 */
.admin-shell button.blue,
.admin-shell .blue:not(a):not(.game-link),
.admin-shell a.blue.ivu-btn,
.admin-shell .ivu-btn-primary:not(.mj-switch):not(.ivu-btn-error):not(.ivu-btn-success),
.admin-shell .btn-blue,
.admin-shell .save-settings,
.admin-shell .btn.save,
.admin-shell button.btn.save,
.admin-shell .cm-btn-save,
.admin-shell .cm-btn-reset,
.admin-shell .chat-send-btn,
.admin-shell .toolbar-line > button:not(.ivu-btn-error):not(.ivu-btn-success):not(.red):not(.green),
.admin-shell .subtabs button,
.admin-shell .user-subtabs button,
.admin-shell .user-toolbar .ivu-btn-primary,
.admin-shell .apply-toolbar .ivu-btn-primary,
.admin-shell .report-toolbar .ivu-btn-primary,
.admin-shell .report-footer .ivu-btn-primary,
.admin-shell .reference-footer > .blue,
.admin-shell .reference-footer .ivu-btn-primary,
.admin-shell .wallet-main-card .ivu-btn-primary,
.admin-shell .addPro .ivu-btn-primary,
.admin-shell .home-content .bottom .ivu-btn-primary,
.admin-shell .home-content .bottom .btn.save,
.admin-shell .rebate-footer .ivu-btn-primary,
.admin-shell .system-basic-savebar button,
.admin-shell .system-bottom-actions button:not(.btn.reset):not(.ivu-btn-error),
.admin-shell .system-bottom-actions .btn.save,
.admin-shell .close-message-footer button,
.admin-shell.active-activity .ivu-btn-primary,
.admin-shell.active-odds .ivu-btn-primary,
.admin-shell.active-open .ivu-btn-primary,
.admin-shell .audit-drawer .reference-table button.blue,
.admin-shell.active-system .home-content .bottom .ivu-btn-primary,
.admin-shell.active-system .home-content .bottom .btn.save,
.admin-shell.active-system .system-bottom-actions .btn.save,
.admin-shell.active-system .system-bottom-actions button:not(.btn.reset):not(.ivu-btn-error),
.admin-shell.active-system .system-subpage .system-bottom-actions button,
.admin-shell.active-system .ivu-btn-primary:not(.mj-switch):not(.ivu-btn-error):not(.ivu-btn-success),
.admin-shell.active-system .mj-time-actions button.primary,
.admin-shell.active-users .user-toolbar .ivu-btn-primary,
.admin-shell.active-users .user-subtabs button,
.admin-shell.active-users .btn-blue,
.admin-shell.active-apply .apply-toolbar .ivu-btn-primary,
.admin-shell.active-reports .report-toolbar .ivu-btn-primary,
.admin-shell.active-reports .report-footer .ivu-btn-primary {
  background: var(--mj-tone-grad) !important;
  background-image: var(--mj-tone-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--mj-tone-shadow) !important;
}
.admin-shell.active-users .user-subtabs button.active {
  background: linear-gradient(90deg, #0ec0ff 0%, #1a9ae0 48%, #1680c8 100%) !important;
  background-image: linear-gradient(90deg, #0ec0ff 0%, #1a9ae0 48%, #1680c8 100%) !important;
  box-shadow: var(--mj-tone-shadow) !important;
}

/* 首页游戏/客服选中 */
.admin-shell.active-home .home-tabs button.active {
  background: var(--mj-tone-grad) !important;
  background-image: var(--mj-tone-grad) !important;
  color: #fff !important;
  box-shadow: var(--mj-tone-shadow) !important;
}

/* 聊天：管理员气泡 + 注单/封盘标题 */
.admin-shell .admin-chat-message.from-admin p,
.admin-shell .admin-chat-message.from-admin .admin-chat-html {
  background: var(--mj-tone-grad) !important;
  background-image: var(--mj-tone-grad) !important;
  color: #fff !important;
}
.admin-shell .admin-chat-html .fn-bet-hd,
.admin-shell .admin-chat-html .fn-seal-hd,
.admin-shell .admin-chat-message.from-admin .admin-chat-html .fn-seal-hd {
  background: var(--mj-tone-grad) !important;
  background-image: var(--mj-tone-grad) !important;
  color: #fff !important;
}
.admin-shell .chat-avatar {
  background: var(--mj-tone-grad) !important;
  background-image: var(--mj-tone-grad) !important;
}

/* 开关开启态也跟同一色调（实心取渐变中间色） */
.admin-shell .mj-switch.is-checked,
.admin-shell .toggle-pill.on,
.admin-shell .ivu-switch-checked {
  background: #0ec0ff !important;
  border-color: #0ec0ff !important;
}

/* ===== 浏览器整页缩放最终锁（必须在文件末尾；rem 对齐正式版 16px） ===== */
:root {
  --app-scale: 1 !important;
  --mj-rem: 16px !important;
  --mj-row: calc(2.285714 * var(--mj-rem)) !important;
}
html {
  font-size: 16px !important;
}
html,
body,
#root {
  transform: none !important;
}
#root {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  zoom: 1 !important;
}
/* 默认 fancy 开关也跟 rem，避免浏览器放大时只有开关「窜大」 */
.admin-shell .switch.mj-fancy-switch,
.admin-shell label.switch {
  --switch-width: calc(3.2 * var(--mj-rem)) !important;
  --switch-height: calc(1.7 * var(--mj-rem)) !important;
  --circle-diameter: calc(1.28 * var(--mj-rem)) !important;
  --icon-cross-size: calc(0.5 * var(--mj-rem)) !important;
  --icon-checkmark-size: calc(0.78 * var(--mj-rem)) !important;
}
.admin-shell.active-home .game-home-switch.switch {
  --switch-width: calc(2.85 * var(--mj-rem)) !important;
  --switch-height: calc(1.5 * var(--mj-rem)) !important;
  --circle-diameter: calc(1.14 * var(--mj-rem)) !important;
  --icon-cross-size: calc(0.5 * var(--mj-rem)) !important;
  --icon-checkmark-size: calc(0.78 * var(--mj-rem)) !important;
}

/* 房主后台：页面持续缓存（切换隐藏，不卸载） */
.admin-shell .admin-body > .admin-page-cache.is-active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}
.admin-shell .admin-body > .admin-page-cache.is-hidden {
  display: none !important;
}

/* 游戏设置：表头标题与总开关同一格，去掉多余横线 */
.admin-shell.active-system .game-setting-table .game-th-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 4px 0 !important;
}
.admin-shell.active-system .game-setting-table thead tr.title td {
  vertical-align: middle !important;
}
.admin-shell.active-system .game-setting-table thead tr.edit {
  display: none !important;
}

/* ========== 2026-08-04：撤销「缩小 densify」对首页/登录的硬改，回正式版 rem 框架 ========== */
/* 登录页：不再额外压尺寸，沿用既有 formal 规则 */

/* 首页：禁止 densify 的 280/430 固定列宽，恢复 formal flex + rem */
.home-console,
.admin-shell.active-home .home-console {
  grid-template-columns: unset !important;
}
.admin-shell.active-home .game-control-card {
  flex: 0 0 calc(21.428571 * var(--mj-rem)) !important;
  width: calc(21.428571 * var(--mj-rem)) !important;
  max-width: calc(21.428571 * var(--mj-rem)) !important;
}
.admin-shell.active-home .live-chat-card {
  flex: 1 1 auto !important;
  min-width: calc(28 * var(--mj-rem)) !important;
  margin: 0 calc(0.571429 * var(--mj-rem)) !important;
}
.admin-shell.active-home .data-console-card {
  flex: 0 1 calc(36 * var(--mj-rem)) !important;
  width: calc(36 * var(--mj-rem)) !important;
  max-width: min(36 * var(--mj-rem), 38%) !important;
  min-width: 0 !important;
}

/* 基础设置：基准行高倍数 + 输入框不超出格子（对照正式版约 2.4rem 行） */
.admin-shell.active-system .setting-row .left,
.admin-shell.active-system .setting-row .right {
  height: var(--mj-row) !important;
  min-height: var(--mj-row) !important;
  max-height: var(--mj-row) !important;
  line-height: var(--mj-row) !important;
  overflow: hidden !important;
}
.admin-shell.active-system .setting-row .right input,
.admin-shell.active-system .setting-row .right select {
  width: calc(100% - 0.5 * var(--mj-rem)) !important;
  height: calc(var(--mj-row) - 0.7 * var(--mj-rem)) !important;
  min-height: 0 !important;
  max-height: calc(var(--mj-row) - 0.7 * var(--mj-rem)) !important;
  margin: 0 !important;
  padding: 0 calc(0.5 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
  font-size: calc(0.86 * var(--mj-rem)) !important;
}
/* 头像行对照正式版约 62.9px ≈ 3.928571rem（非 2×普通行） */
.admin-shell.active-system .setting-row.imgbtn .left,
.admin-shell.active-system .setting-row.imgbtn .right,
.admin-shell.active-system .setting-row .right.imgbtn,
.admin-shell.active-system .setting-row .right.mjimgbtn {
  height: calc(3.928571 * var(--mj-rem)) !important;
  min-height: calc(3.928571 * var(--mj-rem)) !important;
  max-height: calc(3.928571 * var(--mj-rem)) !important;
}
.admin-shell.active-system .avatar-upload,
.admin-shell.active-system .avatar-upload-button,
.admin-shell.active-system .avatar-upload-button img {
  width: calc(3.2 * var(--mj-rem)) !important;
  height: calc(3.2 * var(--mj-rem)) !important;
}
/* 欢迎语/公告 = 2 倍行高，横线可与邻列对齐 */
.admin-shell.active-system .setting-row.is-tall .left,
.admin-shell.active-system .setting-row.is-tall .right,
.admin-shell.active-system .setting-row.has-label-extra .left,
.admin-shell.active-system .setting-row.has-label-extra .right {
  height: calc(var(--mj-row) * 2) !important;
  min-height: calc(var(--mj-row) * 2) !important;
  max-height: calc(var(--mj-row) * 2) !important;
  line-height: normal !important;
  overflow: hidden !important;
}
.admin-shell.active-system .setting-row.has-label-extra .left {
  overflow: visible !important;
  white-space: normal !important;
  padding-top: calc(0.28 * var(--mj-rem)) !important;
  padding-bottom: calc(0.28 * var(--mj-rem)) !important;
  gap: calc(0.28 * var(--mj-rem)) !important;
}
.admin-shell.active-system .setting-row.has-label-extra .setting-label-main {
  line-height: 1.25 !important;
  white-space: normal !important;
}
.admin-shell.active-system .setting-row.has-label-extra .setting-label-extra {
  padding-left: calc(1.35 * var(--mj-rem)) !important;
  line-height: 0 !important;
}
.admin-shell.active-system .setting-row.has-label-extra .right {
  align-items: stretch !important;
  justify-content: center !important;
  padding: calc(0.28 * var(--mj-rem)) calc(0.35 * var(--mj-rem)) !important;
}
.admin-shell.active-system .setting-row.has-label-extra .right textarea,
.admin-shell.active-system .setting-row.is-tall .right textarea {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: calc(0.28 * var(--mj-rem)) calc(0.4 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
  font-size: calc(0.86 * var(--mj-rem)) !important;
  line-height: 1.35 !important;
}

/* 5) 左侧标题下的开关：对照正式版 large switch ≈ 64×25 */
.admin-shell.active-system .setting-row .left .switch.mj-fancy-switch,
.admin-shell.active-system .setting-row .right .switch.mj-fancy-switch {
  --switch-width: calc(4 * var(--mj-rem));
  --switch-height: calc(1.571429 * var(--mj-rem));
  --circle-diameter: calc(1.285714 * var(--mj-rem));
  --icon-cross-size: calc(0.5 * var(--mj-rem));
  --icon-checkmark-size: calc(0.85 * var(--mj-rem));
  width: var(--switch-width) !important;
  min-width: var(--switch-width) !important;
  max-width: var(--switch-width) !important;
  height: var(--switch-height) !important;
  min-height: var(--switch-height) !important;
  transform: none !important;
}
.admin-shell.active-system .setting-row .left .switch.mj-fancy-switch .slider,
.admin-shell.active-system .setting-row .right .switch.mj-fancy-switch .slider {
  width: var(--switch-width) !important;
  height: var(--switch-height) !important;
}
.admin-shell.active-system .setting-row .left .switch.mj-fancy-switch svg,
.admin-shell.active-system .setting-row .right .switch.mj-fancy-switch svg {
  width: auto !important;
  height: auto !important;
  color: inherit !important;
  cursor: inherit !important;
}

/* 基础设置 / 用户列表共用 Info 悬停提示 */
.admin-shell.active-system .mj-setting-tip,
.admin-shell.active-users .mj-setting-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: calc(1.25 * var(--mj-rem));
  height: calc(1.25 * var(--mj-rem));
  cursor: help;
  outline: none;
  z-index: 1;
}
.admin-shell.active-system .mj-setting-tip > svg,
.admin-shell.active-users .mj-setting-tip > svg {
  width: calc(1.25 * var(--mj-rem)) !important;
  height: calc(1.25 * var(--mj-rem)) !important;
  color: #0087b4 !important;
  pointer-events: none;
}
.admin-shell.active-system .mj-setting-tip-pop,
.admin-shell.active-users .mj-setting-tip-pop {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-18%);
  z-index: 6000;
  min-width: 220px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(48, 49, 51, 0.94);
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
  white-space: normal;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  pointer-events: none;
}
.admin-shell.active-system .mj-setting-tip-pop.has-image,
.admin-shell.active-users .mj-setting-tip-pop.has-image {
  max-width: 340px;
}
.admin-shell.active-system .mj-setting-tip-pop::before,
.admin-shell.active-users .mj-setting-tip-pop::before {
  content: "";
  position: absolute;
  left: 18%;
  top: -6px;
  border: 6px solid transparent;
  border-bottom-color: rgba(48, 49, 51, 0.94);
  border-top: 0;
}
.admin-shell.active-system .mj-setting-tip-pop > span,
.admin-shell.active-users .mj-setting-tip-pop > span {
  display: block;
}
.admin-shell.active-system .mj-setting-tip-pop > span + span,
.admin-shell.active-users .mj-setting-tip-pop > span + span {
  margin-top: 6px;
}
.admin-shell.active-system .mj-setting-tip-pop > span.is-note,
.admin-shell.active-users .mj-setting-tip-pop > span.is-note {
  color: #ffd666;
}
.admin-shell.active-system .mj-setting-tip-img-wrap,
.admin-shell.active-users .mj-setting-tip-img-wrap {
  display: block !important;
  margin-top: 8px !important;
  text-align: center;
}
.admin-shell.active-system .mj-setting-tip-img,
.admin-shell.active-users .mj-setting-tip-img {
  display: inline-block;
  max-width: 300px;
  width: auto;
  height: auto;
  vertical-align: top;
  border-radius: 2px;
}
.admin-shell.active-system .mj-setting-tip:hover,
.admin-shell.active-system .mj-setting-tip:focus-within,
.admin-shell.active-users .mj-setting-tip:hover,
.admin-shell.active-users .mj-setting-tip:focus-within {
  z-index: 6000;
}
.admin-shell.active-system .mj-setting-tip:hover .mj-setting-tip-pop,
.admin-shell.active-system .mj-setting-tip:focus-within .mj-setting-tip-pop,
.admin-shell.active-users .mj-setting-tip:hover .mj-setting-tip-pop,
.admin-shell.active-users .mj-setting-tip:focus-within .mj-setting-tip-pop {
  display: block;
}
.admin-shell.active-system .setting-row .left {
  overflow: visible !important;
}
.admin-shell.active-system .system-matrix,
.admin-shell.active-system .setting-col,
.admin-shell.active-system .setting-row {
  overflow: visible !important;
}

/* ========== 2026-08-04 首页框架最终锁：导航高度 + 聊天不被数据栏挤扁 ========== */
.admin-shell .admin-top,
.admin-shell .admin-top.l-header {
  height: calc(2.714286 * var(--mj-rem)) !important;
  min-height: calc(2.714286 * var(--mj-rem)) !important;
}
.admin-shell .admin-nav {
  height: calc(4.714286 * var(--mj-rem)) !important;
  min-height: calc(4.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-home .home-console,
.admin-shell.active-home .home-console.data-closed {
  display: flex !important;
  grid-template-columns: unset !important;
}
.admin-shell.active-home .game-control-card {
  flex: 0 0 calc(21.428571 * var(--mj-rem)) !important;
  width: calc(21.428571 * var(--mj-rem)) !important;
  max-width: calc(21.428571 * var(--mj-rem)) !important;
}
.admin-shell.active-home .live-chat-card {
  flex: 1 1 auto !important;
  min-width: calc(28 * var(--mj-rem)) !important;
  width: auto !important;
}
.admin-shell.active-home .data-console-card {
  flex: 0 1 calc(36 * var(--mj-rem)) !important;
  width: calc(36 * var(--mj-rem)) !important;
  max-width: 38% !important;
  min-width: 0 !important;
}
.admin-shell.active-home .home-console.data-closed .data-console-card {
  display: none !important;
  width: 0 !important;
  flex: 0 0 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.admin-shell.active-home .home-console.data-closed .live-chat-card {
  margin-right: 0 !important;
  min-width: calc(36 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-compose {
  min-height: calc(6.4 * var(--mj-rem)) !important;
  height: calc(6.4 * var(--mj-rem)) !important;
}
.admin-shell.active-home .chat-compose-main textarea {
  height: calc(4.2 * var(--mj-rem)) !important;
  min-height: calc(4.2 * var(--mj-rem)) !important;
  max-height: calc(4.2 * var(--mj-rem)) !important;
}

/* ========== 2026-08-04 顶栏问界 logo + 用户列表对齐正式站 ========== */
.admin-shell .admin-top strong img {
  width: auto !important;
  max-width: calc(7.5 * var(--mj-rem)) !important;
  height: calc(1.85 * var(--mj-rem)) !important;
  object-fit: contain !important;
}
.admin-shell.active-users .user-formal-table .th-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
.admin-shell.active-users .user-formal-table thead th {
  overflow: visible !important;
}
.admin-shell.active-users .user-formal-table .th-tip {
  display: none !important;
}
.admin-shell.active-users .user-avatar-img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}
.admin-shell.active-users .user-list-table td .mini-avatar {
  display: none !important;
}
.admin-shell.active-users .btn-follow {
  min-width: 52px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 13px !important;
  cursor: pointer !important;
}
.admin-shell.active-users .btn-follow.is-on {
  border-color: #19be6b !important;
  color: #19be6b !important;
}
.admin-shell.active-users .btn-white {
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 10px !important;
  margin: 0 2px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.admin-shell.active-users .rebate-ops {
  white-space: nowrap !important;
}
.admin-shell.active-users .recharge-type-text {
  color: #515a6e !important;
  font-size: 13px !important;
}
.admin-shell.active-users .red-tag {
  background: #ffece8 !important;
  color: #ed4014 !important;
}
.admin-shell.active-users .user-more-ops-row > td {
  padding: 8px 12px !important;
  background: #f7fafc !important;
  border-bottom: 1px solid #e8eef2 !important;
}
.admin-shell.active-users .user-more-ops {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}
.admin-shell.active-users .user-more-ops .btn-green,
.admin-shell.active-users .user-more-ops .btn-red,
.admin-shell.active-users .user-more-ops .btn-white {
  margin: 0 !important;
}
.admin-shell.active-users .more-ops-btn.is-open {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08) !important;
}
.admin-shell.active-users .score-op-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}
.admin-shell.active-users .score-op-tabs button {
  min-width: 72px !important;
  height: 32px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
}
.admin-shell.active-users .score-op-tabs button.active {
  border-color: #0087b4 !important;
  background: #0087b4 !important;
  color: #fff !important;
}
.admin-shell.active-users .user-switch-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 8px !important;
  margin-right: 12px !important; /* 与「刷新」拉开，避免再挡住 */
  white-space: nowrap !important;
  font-size: 13px !important;
  color: #515a6e !important;
  line-height: 1 !important;
}
/* 真正勾选框，不要画成开关 */
.admin-shell.active-users .user-switch-line input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #a0a7b0 !important;
  border-radius: 2px !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  accent-color: #0087b4 !important;
  background: #fff !important;
  position: static !important;
  cursor: pointer !important;
  flex: 0 0 14px !important;
  transition: none !important;
}
.admin-shell.active-users .user-switch-line input[type="checkbox"]::after,
.admin-shell.active-users .user-switch-line input[type="checkbox"]:checked::after {
  content: none !important;
  display: none !important;
}
.admin-shell.active-users .user-switch-line input[type="checkbox"]:checked {
  background: transparent !important;
}
.admin-shell.active-users .user-toolbar .user-refresh {
  margin-left: 0 !important;
}
.admin-shell.active-users .user-list-table .mj-fancy-switch {
  transform: scale(0.92);
  transform-origin: center center;
}


/* ========== 2026-08-04 细节对齐：只调尺寸/空隙，不改页面内容结构 ========== */

/* 1) 首页右侧游戏数据栏：默认展开；收起时仍保留浮钮，勿 display:none 删掉整栏 */
.admin-shell.active-home .home-console.data-closed .data-console-card {
  display: block !important;
  position: relative !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}
.admin-shell.active-home .home-console:not(.data-closed) .data-console-card,
.admin-shell.active-home .data-console-card.is-open {
  display: block !important;
  /* 正式版 .home-right .home-content = 49.642857rem，右侧更宽、聊天更窄 */
  flex: 0 0 calc(49.642857 * var(--mj-rem)) !important;
  width: calc(49.642857 * var(--mj-rem)) !important;
  max-width: calc(49.642857 * var(--mj-rem)) !important;
  min-width: calc(49.642857 * var(--mj-rem)) !important;
  overflow: visible !important;
}

/* 聊天区吃剩余宽度（正式版 .home-content flex:1），不要 min-width:28rem 抢宽 */
.admin-shell.active-home .home-console:not(.data-closed) .live-chat-card {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* 2) 顶栏导航：图标与文字间隙 ≈8px，字重常规（对照正式版） */
.admin-shell .admin-nav button {
  gap: 0 !important;
  font-weight: 400 !important;
}
.admin-shell .admin-nav .nav-label {
  margin-top: calc(0.5 * var(--mj-rem)) !important; /* 8px @16 */
  font-weight: 400 !important;
  font-size: calc(0.857143 * var(--mj-rem)) !important;
  color: #272828 !important;
  line-height: 1.2 !important;
}
.admin-shell .admin-nav button.active .nav-label {
  font-weight: 400 !important;
  color: #0087b4 !important;
}

/* 3) 基础设置：基本资料/线下渠道 与下方表格间隙加大 */
.admin-shell.active-system .system-tabs {
  margin-bottom: 0 !important;
  padding-top: calc(0.5 * var(--mj-rem)) !important;
  padding-bottom: 0 !important;
}
.admin-shell.active-system .system-tabpane {
  padding-top: calc(0.857143 * var(--mj-rem)) !important; /* ~14px 再加列顶距 */
}
.admin-shell.active-system .setting-matrix.contentModel.profile-flow {
  margin-top: calc(0.285714 * var(--mj-rem)) !important;
}
.admin-shell.active-system .setting-row .left,
.admin-shell.active-system .setting-row .left span {
  font-weight: 400 !important;
  color: #515a6e !important;
}

/* 4) 用户管理：父级左内边距加大；格子更宽；更多操作单行横滚 */
.admin-shell.active-users .user-toolbar {
  margin: calc(0.714286 * var(--mj-rem)) calc(1.285714 * var(--mj-rem)) calc(0.5 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-subtabs {
  margin: 0 calc(1.285714 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-card-tabs {
  margin-left: calc(1.285714 * var(--mj-rem)) !important;
  margin-right: calc(1.285714 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-content {
  margin: 0 calc(1.285714 * var(--mj-rem)) calc(0.714286 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-formal-table th,
.admin-shell.active-users .user-formal-table td {
  padding: 0 calc(0.857143 * var(--mj-rem)) !important;
  min-width: calc(4.5 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-formal-table th {
  font-weight: 400 !important;
}
.admin-shell.active-users .user-formal-table td {
  font-weight: 400 !important;
}
.admin-shell.active-users .user-list-table th:nth-child(1),
.admin-shell.active-users .user-list-table td:nth-child(1) {
  min-width: calc(5.5 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-list-table th:nth-child(2),
.admin-shell.active-users .user-list-table td:nth-child(2) {
  min-width: calc(5.5 * var(--mj-rem)) !important;
}
.admin-shell.active-users .user-list-table th:nth-child(11),
.admin-shell.active-users .user-list-table td:nth-child(11) {
  min-width: calc(7.5 * var(--mj-rem)) !important; /* 账号类型 */
}
.admin-shell.active-users .user-list-table th:nth-child(12),
.admin-shell.active-users .user-list-table td:nth-child(12) {
  min-width: calc(7 * var(--mj-rem)) !important; /* 回水设置 */
}
.admin-shell.active-users .user-more-ops-row > td {
  overflow-x: auto !important;
  max-width: none !important;
}
.admin-shell.active-users .user-more-ops {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  align-items: center !important;
  width: max-content !important;
  min-width: 100% !important;
  padding-bottom: 2px !important;
}



/* ========== 2026-08-04 首页：按同视角截图收窄整页（对齐正式比例） ========== */
/*
  同视角截图像素：正式 中≈27%/右≈55%；问界被 1960 撑成 中≈61%/右≈18%。
  整页固定为正式三栏之和（约 1560px），顶栏+导航+三栏一体左右滑。
  聊天只吃「页宽 − 左 − 右」剩余，禁止再拉到 1960。
*/
:root {
  /* 21.428571 + 24 + 49.642857 + 2.5 ≈ 97.57rem @16 ≈ 1561px */
  --mj-home-page-width: calc((21.428571 + 24 + 49.642857 + 2.5) * var(--mj-rem));
}

html:has(.admin-shell.active-home),
html:has(.admin-shell.active-home) body,
html:has(.admin-shell.active-home) #root {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
html:has(.admin-shell.active-home) .admin-app {
  width: var(--mj-home-page-width) !important;
  min-width: var(--mj-home-page-width) !important;
  max-width: var(--mj-home-page-width) !important;
  overflow: hidden !important;
  height: calc(100vh / var(--app-scale)) !important;
}

.admin-shell.active-home {
  width: var(--mj-home-page-width) !important;
  min-width: var(--mj-home-page-width) !important;
  max-width: var(--mj-home-page-width) !important;
  height: calc(100vh / var(--app-scale)) !important;
  max-height: calc(100vh / var(--app-scale)) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.admin-shell.active-home .admin-top,
.admin-shell.active-home .admin-top.l-header,
.admin-shell.active-home .admin-nav {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

.admin-shell.active-home .admin-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.admin-shell.active-home .home-console,
.admin-shell.active-home .home-console:not(.data-closed),
.admin-shell.active-home .home-console.data-closed {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.admin-shell.active-home .game-control-card {
  flex: 0 0 calc(21.428571 * var(--mj-rem)) !important;
  width: calc(21.428571 * var(--mj-rem)) !important;
  min-width: calc(21.428571 * var(--mj-rem)) !important;
  max-width: calc(21.428571 * var(--mj-rem)) !important;
}

/* 聊天 ≈24rem：正式同视角约 27%，不要 flex 无限吃宽 */
.admin-shell.active-home .home-console:not(.data-closed) .live-chat-card,
.admin-shell.active-home .live-chat-card {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: calc(21.428571 * var(--mj-rem)) !important;
  max-width: calc(28 * var(--mj-rem)) !important;
}

.admin-shell.active-home .home-console:not(.data-closed) .data-console-card,
.admin-shell.active-home .data-console-card.is-open,
.admin-shell.active-home .data-console-card {
  flex: 0 0 calc(49.642857 * var(--mj-rem)) !important;
  width: calc(49.642857 * var(--mj-rem)) !important;
  min-width: calc(49.642857 * var(--mj-rem)) !important;
  max-width: calc(49.642857 * var(--mj-rem)) !important;
}

.admin-shell.active-home .home-console.data-closed .data-console-card,
.admin-shell.active-home .data-console-card.is-closed {
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
}
.admin-shell.active-home .home-console.data-closed .live-chat-card {
  flex: 1 1 auto !important;
  max-width: none !important;
  min-width: calc(28 * var(--mj-rem)) !important;
}


/* ========== 2026-08-04 首页：栏内禁止横向滚动，只整页左右滑 ========== */
.admin-shell.active-home .game-control-card,
.admin-shell.active-home .live-chat-card,
.admin-shell.active-home .data-console-card,
.admin-shell.active-home .data-console-inner {
  overflow-x: hidden !important;
}
.admin-shell.active-home .game-switch-list,
.admin-shell.active-home .cs-room-panel,
.admin-shell.active-home .chat-stream,
.admin-shell.active-home .chat-empty {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
/* 表格区只允许上下滚，不要出现栏内横滑条 */
.admin-shell.active-home .game-data-table-wrap {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}
.admin-shell.active-home .game-data-table-wrap .game-data-table,
.admin-shell.active-home .game-data-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}
/* 正式版列宽比例：15% / 22% / 15% / 15% / 15% / 18% */
.admin-shell.active-home .game-data-table th,
.admin-shell.active-home .game-data-table td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.admin-shell.active-home .game-data-table th:nth-child(1),
.admin-shell.active-home .game-data-table td:nth-child(1) { width: 15% !important; }
.admin-shell.active-home .game-data-table th:nth-child(2),
.admin-shell.active-home .game-data-table td:nth-child(2) { width: 22% !important; }
.admin-shell.active-home .game-data-table th:nth-child(3),
.admin-shell.active-home .game-data-table td:nth-child(3),
.admin-shell.active-home .game-data-table th:nth-child(4),
.admin-shell.active-home .game-data-table td:nth-child(4),
.admin-shell.active-home .game-data-table th:nth-child(5),
.admin-shell.active-home .game-data-table td:nth-child(5) { width: 15% !important; }
.admin-shell.active-home .game-data-table th:nth-child(6),
.admin-shell.active-home .game-data-table td:nth-child(6) { width: 18% !important; }

/* ===== 用户管理·更多操作弹窗（正式版对齐）2026-08-04 ===== */
.admin-modal.score-op-formal,
.admin-modal.pm-modal { width: min(520px, 94vw); }
.admin-modal.member-profile-modal { width: min(820px, 96vw); }
.admin-modal.special-rebate-modal { width: min(720px, 96vw); }
.admin-modal.user-report-modal { width: min(980px, 98vw); }

.score-op-formal .score-remark-quick { margin-top: 4px; }
.score-op-formal .score-remark-quick-label {
  display: block;
  margin-bottom: 8px;
  color: #515a6e;
  font-size: 13px;
}
.score-op-formal .score-remark-list { margin-bottom: 4px; }
.score-op-formal .score-quick-btn.active {
  border-color: #0087b4;
  background: #e8f6fb;
  color: #0087b4;
}

.pm-modal-body { padding: 12px 16px 4px; }
.pm-modal-body textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

.member-profile-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding: 12px 16px 8px;
}
.member-profile-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-profile-col label {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #515a6e;
}
.member-profile-col label input,
.member-profile-col label select {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  box-sizing: border-box;
}
.member-profile-avatar-row,
.member-profile-pay-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  color: #515a6e;
}
.member-profile-avatar-row img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e8eaec;
}
.member-profile-pay-row img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 4px;
  border: 1px solid #e8eaec;
}
.member-profile-pay-row em {
  font-style: normal;
  color: #c5c8ce;
  line-height: 32px;
}

.special-rebate-body { padding: 12px 16px 8px; }
.special-rebate-loading { padding: 24px; text-align: center; color: #808695; }
.special-rebate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.special-rebate-switch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #515a6e;
}
.special-rebate-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.special-rebate-all input {
  width: 88px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
}
.special-rebate-tip {
  margin: 8px 0 16px;
  padding: 10px 12px;
  background: #fff6f6;
  color: #ed4014;
  border-radius: 4px;
  font-size: 13px;
}
.special-rebate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 14px;
  max-height: 360px;
  overflow-y: auto;
}
.special-rebate-item {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #515a6e;
}
.special-rebate-item input {
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  box-sizing: border-box;
}
.special-rebate-safe {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #515a6e;
  margin-top: 8px;
}
.special-rebate-safe input {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
}

.user-report-body { padding: 10px 14px 6px; }
.user-report-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.user-report-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #808695;
}
.user-report-filters input,
.user-report-filters select {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
}
.user-report-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e8eaec;
}
.user-report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: #515a6e;
}
@media (max-width: 720px) {
  .member-profile-body,
  .special-rebate-grid { grid-template-columns: 1fr; }
}

/* ===== 代理列表 / 下线弹窗（正式版对齐）2026-08-04 ===== */
.admin-shell .btn-cyan {
  background: #13c2c2 !important;
  border-color: #13c2c2 !important;
  color: #fff !important;
}
.admin-shell .downline-count-btn {
  min-width: 36px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #2d8cf0 !important;
  color: #fff !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.admin-shell .user-more-ops {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
.admin-shell .agent-ops {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  justify-content: center !important;
  align-items: center !important;
}
  /* 操作按钮统一高度/字号/内边距 */
  .admin-shell .user-agent-table .agent-ops > button,
  .admin-shell .agent-ops > button,
  .admin-shell .agent-ops > .btn-green,
  .admin-shell .agent-ops > .btn-cyan,
  .admin-shell .agent-ops > .btn-blue,
  .admin-shell .agent-ops > .btn-red,
  .admin-shell .user-more-ops > button,
  .admin-shell .user-more-ops > .btn-green,
  .admin-shell .user-more-ops > .btn-white,
  .admin-shell .user-more-ops > .btn-red {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    line-height: 26px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
  }
.admin-modal.agent-simple-modal { width: min(420px, 92vw); }
.admin-modal.add-downline-modal,
.admin-modal.commission-modal { width: min(760px, 96vw); }
.admin-modal.downline-list-modal { width: min(1100px, 98vw); }
.admin-modal.red-packet-modal,
.admin-modal.delete-user-modal { width: min(520px, 94vw); }

/* 确认框（正式版风格） */
.admin-modal.confirm-dialog-modal {
  max-width: 400px !important;
  width: min(400px, 90vw) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.15) !important;
}
.admin-modal.confirm-dialog-modal .confirm-dialog-body {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 20px 24px 24px !important;
}
.confirm-dialog-icon {
  flex-shrink: 0;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #2d8cf0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  text-align: center !important;
}
.confirm-dialog-body p {
  margin: 4px 0 0 !important;
  font-size: 14px !important;
  color: #515a6e !important;
  line-height: 1.5 !important;
}
.admin-modal.confirm-dialog-modal footer {
  padding: 0 24px 20px !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
}
.admin-modal.confirm-dialog-modal footer button {
  min-width: 70px !important;
  height: 32px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
}

/* 娱乐额度 */
.ent-quota-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  padding: 12px 16px !important;
}
.ent-quota-item {
  padding: 8px 10px !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.ent-quota-item em {
  font-style: normal !important;
  color: #19be6b !important;
  font-weight: 600 !important;
}

/* 下分限制 */
.down-limit-formal { padding: 12px 16px 8px !important; }
.down-limit-formal .special-rebate-switch-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.special-rebate-tip {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
  color: #808695 !important;
  line-height: 1.5 !important;
}

.special-rebate-all {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
  font-size: 13px !important;
}
.special-rebate-all input {
  width: 80px !important;
  height: 28px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  padding: 0 8px !important;
}
.special-rebate-all .ivu-btn-primary {
  height: 28px !important;
  line-height: 26px !important;
  padding: 0 12px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
}

.special-rebate-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}
.special-rebate-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 8px !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 4px !important;
  font-size: 12px !important;
}
.special-rebate-item input {
  width: 56px !important;
  height: 26px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  padding: 0 6px !important;
  font-size: 12px !important;
  text-align: right !important;
}

/* 下线/抽佣弹窗 */
.add-downline-body { padding: 12px 16px 8px; }
.add-downline-account {
  width: 100%;
  min-height: 34px;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  box-sizing: border-box;
}
.commission-section-title {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #17233d;
}
.pct-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pct-input-wrap em {
  font-style: normal;
  color: #808695;
}
.commission-batch-row {
  width: 100%;
  margin-bottom: 12px;
}
.commission-batch-row input {
  flex: 1;
  min-width: 180px;
}
.agent-report-summary {
  margin: 8px 12px 0;
  font-size: 13px;
  color: #515a6e;
}
.agent-report-tip {
  margin: 10px 12px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.downline-list-body { padding: 10px 14px 6px; }

/* ===== 用户列表表格列宽（正式版对齐）2026-08-04 ===== */
.user-list-table {
  min-width: 900px !important;
  table-layout: fixed !important;
}
.user-list-table thead tr {
  white-space: nowrap !important;
}
.user-list-table th,
.user-list-table td {
  min-width: 60px !important;
  padding: 0 6px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* th: 在线状态 | 头像 | 会员备注 | 用户名 | 昵称 | 余额 | 是否代注 | 是否关注 | 账号状态 | 账号类型 | 回水设置 | 分数操作 | 操作 */
.user-list-table th:nth-child(1),
.user-list-table td:nth-child(1) { width: 44px !important; min-width: 44px !important; text-align: center !important; }
.user-list-table th:nth-child(2),
.user-list-table td:nth-child(2) { width: 52px !important; min-width: 52px !important; text-align: center !important; }
.user-list-table th:nth-child(3),
.user-list-table td:nth-child(3) { width: 90px !important; }
.user-list-table th:nth-child(4),
.user-list-table td:nth-child(4) { width: 115px !important; }
.user-list-table th:nth-child(5),
.user-list-table td:nth-child(5) { width: 85px !important; }
.user-list-table th:nth-child(6),
.user-list-table td:nth-child(6) { width: 95px !important; text-align: right !important; }
.user-list-table th:nth-child(7),
.user-list-table td:nth-child(7) { width: 82px !important; text-align: center !important; }
.user-list-table th:nth-child(8),
.user-list-table td:nth-child(8) { width: 82px !important; text-align: center !important; }
.user-list-table th:nth-child(9),
.user-list-table td:nth-child(9) { width: 90px !important; text-align: center !important; }
.user-list-table th:nth-child(10),
.user-list-table td:nth-child(10) { width: 82px !important; text-align: center !important; }
.user-list-table th:nth-child(11),
.user-list-table td:nth-child(11) { width: 88px !important; text-align: center !important; }
.user-list-table th:nth-child(12),
.user-list-table td:nth-child(12) { width: 82px !important; text-align: center !important; }
.user-list-table th:last-child,
.user-list-table td:last-child { width: 84px !important; min-width: 84px !important; text-align: center !important; }

.user-list-table .user-avatar-img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* ===== 审核页面·内部内容缩小（对齐正式版，不改外框）2026-08-04 ===== */

/* 审核页 toolbar：工具栏收紧 */
.admin-shell.active-apply .apply-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  background: #fff !important;
  border-bottom: 1px solid #e8eaec !important;
}
.admin-shell.active-apply .apply-toolbar input[type="text"],
.admin-shell.active-apply .apply-toolbar input[type="date"],
.admin-shell.active-apply .apply-toolbar select {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  color: #515a6e !important;
  background: #fff !important;
  box-sizing: border-box !important;
  line-height: 26px !important;
}
.admin-shell.active-apply .apply-toolbar .ivu-btn-primary,
.admin-shell.active-apply .apply-toolbar .ivu-btn-error,
.admin-shell.active-apply .apply-toolbar .ivu-btn-success {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  line-height: 26px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.admin-shell.active-apply .apply-toolbar .ivu-btn-primary {
  background: #2d8cf0 !important;
  border-color: #2d8cf0 !important;
  color: #fff !important;
}
.admin-shell.active-apply .apply-toolbar .ivu-btn-error {
  background: #fff !important;
  border-color: #ed4014 !important;
  color: #ed4014 !important;
}
.admin-shell.active-apply .apply-toolbar .ivu-btn-success {
  background: #fff !important;
  border-color: #19be6b !important;
  color: #19be6b !important;
}

/* 审核页：label 包裹的 select 也要缩小 */
.admin-shell.active-apply .apply-toolbar label.apply-field {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  color: #515a6e !important;
  white-space: nowrap !important;
}
.admin-shell.active-apply .apply-toolbar label.apply-field select {
  height: 28px !important;
  padding: 0 22px 0 8px !important;
  font-size: 12px !important;
}

/* 快捷日期按钮 */
.admin-shell.active-apply .apply-date-quick {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-bottom: 1px solid #e8eaec !important;
}
.admin-shell.active-apply .apply-date-quick button {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 10px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 12px !important;
  cursor: pointer !important;
  line-height: 22px !important;
  white-space: nowrap !important;
}
.admin-shell.active-apply .apply-date-quick button:hover {
  background: #f0f7ff !important;
  border-color: #2d8cf0 !important;
  color: #2d8cf0 !important;
}

/* 审核表格 */
.admin-shell.active-apply .apply-table-scroll {
  overflow-x: auto !important;
  overflow-y: auto !important;
}
.admin-shell.active-apply .apply-table thead th,
.admin-shell.active-apply .apply-table tbody td,
.admin-shell.active-apply .reference-table.audit-table thead th,
.admin-shell.active-apply .reference-table.audit-table tbody td {
  padding: 0 8px !important;
  height: 32px !important;
  min-height: 32px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border-bottom: 1px solid #e8eaec !important;
}
.admin-shell.active-apply .apply-table thead th {
  background: #f7fafc !important;
  color: #515a6e !important;
  font-weight: 400 !important;
}
.admin-shell.active-apply .apply-table tbody tr:hover td {
  background: #f7fafc !important;
}
.admin-shell.active-apply .apply-table tbody td button.green,
.admin-shell.active-apply .apply-table tbody td button.red,
.admin-shell.active-apply .apply-table tbody td button.blue,
.admin-shell.active-apply .reference-table.audit-table tbody td button {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  line-height: 22px !important;
  padding: 0 10px !important;
  border-radius: 3px !important;
  font-size: 12px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.admin-shell.active-apply .apply-table tbody td button.green {
  background: #19be6b !important;
  color: #fff !important;
}
.admin-shell.active-apply .apply-table tbody td button.red {
  background: #ed4014 !important;
  color: #fff !important;
}
.admin-shell.active-apply .apply-table tbody td button.blue {
  background: #2d8cf0 !important;
  color: #fff !important;
}
.admin-shell.active-apply .reference-table.audit-table tbody td button.green,
.admin-shell.active-apply .reference-table.audit-table tbody td button.red {
  background: #2d8cf0 !important;
  color: #fff !important;
}

/* 审核页左侧 tab */
.admin-shell.active-apply .reference-side.left-list .tab {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  background: transparent !important;
  border: none !important;
  color: #515a6e !important;
  cursor: pointer !important;
  width: 100% !important;
  text-align: left !important;
}
.admin-shell.active-apply .reference-side.left-list .tab:hover {
  background: #f0f7ff !important;
  color: #2d8cf0 !important;
}
.admin-shell.active-apply .reference-side.left-list .tab.active {
  background: #2d8cf0 !important;
  color: #fff !important;
}

/* 审核汇总行 */
.admin-shell.active-apply .apply-stat-bar {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  color: #515a6e !important;
  border-bottom: 1px solid #e8eaec !important;
  background: #f7fafc !important;
}
.admin-shell.active-apply .apply-stat-bar strong {
  color: #17233d !important;
  font-weight: 600 !important;
}

/* 审核页翻页 */
.admin-shell.active-apply .reference-footer {
  padding: 6px 10px !important;
  font-size: 12px !important;
  gap: 8px !important;
}

/* 审核汇总行 */
/* user-more-ops-row 内的操作按钮 */
.admin-shell .user-more-ops {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
}
.admin-shell .user-more-ops > button,
.admin-shell .user-more-ops > .btn-green,
.admin-shell .user-more-ops > .btn-white,
.admin-shell .user-more-ops > .btn-red,
.admin-shell .user-more-ops > .btn-blue,
.admin-shell .user-more-ops > .btn-cyan {
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  line-height: 24px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  border-radius: 3px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  border: 1px solid #dcdee2 !important;
}
.admin-shell .user-more-ops > button:not(.btn-green):not(.btn-red):not(.btn-blue):not(.btn-cyan) {
  background: #fff !important;
  color: #515a6e !important;
}
.admin-shell .user-more-ops > .btn-green {
  background: #19be6b !important;
  border-color: #19be6b !important;
  color: #fff !important;
}
.admin-shell .user-more-ops > .btn-red {
  background: #ed4014 !important;
  border-color: #ed4014 !important;
  color: #fff !important;
}
.admin-shell .user-more-ops > .btn-blue {
  background: #2d8cf0 !important;
  border-color: #2d8cf0 !important;
  color: #fff !important;
}
.admin-shell .user-more-ops > .btn-cyan {
  background: #13c2c2 !important;
  border-color: #13c2c2 !important;
  color: #fff !important;
}

/* 申请管理最终作用域：恢复右侧卡片与完整表格，不依赖历史全局选择器。 */
.admin-shell.active-apply .apply-reference-page.layout-page {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.admin-shell.active-apply .apply-layout-formal {
  display: flex !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
}
.admin-shell.active-apply .apply-layout-formal > aside.reference-side.left-list {
  flex: 0 0 calc(9.5 * var(--mj-rem)) !important;
  width: calc(9.5 * var(--mj-rem)) !important;
  min-width: calc(9.5 * var(--mj-rem)) !important;
  max-width: calc(9.5 * var(--mj-rem)) !important;
  height: 100% !important;
  margin: 0 !important;
  padding: calc(0.714286 * var(--mj-rem)) 0 calc(1.428571 * var(--mj-rem)) !important;
  box-sizing: border-box !important;
}
.admin-shell.active-apply .apply-layout-formal > aside.reference-side.left-list > .tab {
  width: calc(7.857143 * var(--mj-rem)) !important;
  min-width: calc(7.857143 * var(--mj-rem)) !important;
  margin: calc(1.071429 * var(--mj-rem)) 0 0 !important;
  box-sizing: border-box !important;
}
.admin-shell.active-apply .apply-layout-formal > section.apply-main-card.apply-table {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
}
.admin-shell.active-apply .apply-main-card.apply-table > .apply-toolbar,
.admin-shell.active-apply .apply-main-card.apply-table > .apply-date-quick {
  flex: 0 0 auto !important;
}
.admin-shell.active-apply .apply-main-card.apply-table > .apply-content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  margin: 0 12px 10px !important;
  overflow: hidden !important;
}
.admin-shell.active-apply .apply-main-card.apply-table .apply-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  border: 1px solid #dcdee2 !important;
  background: #fff !important;
}
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table {
  display: table !important;
  width: max-content !important;
  min-width: 1800px !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  background: #fff !important;
}
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table > thead > tr > th,
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table > tbody > tr > td {
  display: table-cell !important;
  min-width: 72px !important;
  height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid #dcdee2 !important;
  color: #515a6e !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  box-sizing: border-box !important;
}
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table > thead > tr > th {
  height: 30px !important;
  background: #e5f1f5 !important;
  color: #272828 !important;
  font-weight: 400 !important;
}
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table > tbody > tr > td {
  background: #fff !important;
}
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table > tbody > tr:nth-child(even) > td {
  background: #f8fafb !important;
}
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table th:nth-child(2),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table td:nth-child(2),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table th:nth-child(6),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table td:nth-child(6) {
  min-width: 120px !important;
}
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table th:nth-child(12),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table td:nth-child(12),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table th:nth-child(13),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table td:nth-child(13),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table th:nth-child(14),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table td:nth-child(14),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table th:nth-child(15),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table td:nth-child(15),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table th:nth-child(16),
.admin-shell.active-apply .apply-main-card.apply-table table.signTable.apply-formal-table td:nth-child(16) {
  min-width: 110px !important;
}
