html, body {
  background: #0a0a0a !important;
  min-height: 100%;
}

:root {
  --baize-brand-logo: url("./brand/baize-butterfly.svg?v=2");
}

body {
  overflow-x: hidden;
}

button, a {
  cursor: pointer;
}

[contenteditable="false"] {
  caret-color: transparent;
}

[data-happy-horse-guide="true"],
[class*="HappyHorseGuide_banner"] {
  display: none !important;
}

[class*="ProductOperation_container"],
[class*="Header_downloadBox"],
[class*="Header_product-item"]:has([class*="ProductOperation_container"]),
[class*="Header_product-item"]:has([class*="Header_downloadBox"]) {
  display: none !important;
}

.roboneo-clone-hidden {
  display: none !important;
}

[data-mmg-hidden-nav="true"] {
  display: none !important;
}

.Navbar_logoBox__4Q70O {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 150px !important;
  height: 40px !important;
  filter: none !important;
}

.Navbar_logoBox__4Q70O img {
  display: none !important;
}

.Navbar_logoBox__4Q70O::before {
  content: "";
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  background: rgba(236, 238, 246, 0.9);
  -webkit-mask-image: var(--baize-brand-logo);
  mask-image: var(--baize-brand-logo);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.Navbar_logoBox__4Q70O::after {
  content: "Baizeapp";
  color: #f8fbff;
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
}

.Navbar_logo_img___xNRk {
  width: 32px !important;
  height: 32px !important;
  background: rgba(236, 238, 246, 0.9) !important;
  -webkit-mask-image: var(--baize-brand-logo) !important;
  mask-image: var(--baize-brand-logo) !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
}

.LogoSection_home_logo_box__xeJsO {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.LogoSection_home_logo_box__xeJsO img {
  display: none !important;
}

.LogoSection_home_logo_box__xeJsO::before {
  content: "";
  display: block;
  width: min(142px, 70%);
  aspect-ratio: 1;
  background: rgba(224, 226, 234, 0.92);
  -webkit-mask-image: var(--baize-brand-logo);
  mask-image: var(--baize-brand-logo);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 0 26px rgba(180, 188, 210, 0.25));
}

.Navbar_navbar_container__fSZCP,
.Navbar_collapse_navbar_box__b0Yry,
.Navbar_navbarBox__iXoJO {
  transition: width 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.Navbar_collapse__RvkMF {
  cursor: pointer !important;
}

body.mmg-sidebar-collapsed .Navbar_navbar_container__fSZCP {
  width: 72px !important;
}

body.mmg-sidebar-collapsed .Navbar_navbarBox__iXoJO {
  opacity: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  transform: translateX(-14px) !important;
}

body.mmg-sidebar-collapsed .Navbar_collapse_navbar_box__b0Yry {
  width: 72px !important;
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

body.mmg-sidebar-collapsed .Navbar_collapse_navbar_box__b0Yry * {
  pointer-events: auto !important;
}

body.mmg-sidebar-collapsed .Navbar_collapse_navbar_box__b0Yry .Navbar_expand_btn__AERdn {
  display: flex !important;
  width: 44px !important;
  height: 44px !important;
}

body:not(.mmg-sidebar-collapsed) .Navbar_collapse_navbar_box__b0Yry {
  opacity: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

body:not(.mmg-sidebar-collapsed) .Navbar_navbarBox__iXoJO {
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.InputModeTabs_tab__3guSm,
[data-mmg-input-mode] {
  position: relative;
}

.InputModeTabs_tabs_wrapper__CABIW,
[data-mmg-input-tabs] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  padding: 4px !important;
  border-radius: 22px !important;
  background: rgba(240, 245, 255, 0.08) !important;
  overflow: hidden !important;
}

.InputModeTabs_tabs_wrapper__CABIW > [class*="InputModeTabs_curve"],
[data-mmg-input-tabs] > [class*="InputModeTabs_curve"] {
  display: none !important;
}

.InputModeTabs_tabs_wrapper__CABIW .InputModeTabs_tab__3guSm,
[data-mmg-input-tabs] [data-mmg-input-mode] {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.66) !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.InputModeTabs_tabs_wrapper__CABIW .InputModeTabs_active__W4y_4,
[data-mmg-input-mode][data-mmg-active="true"] {
  background: rgba(240, 245, 255, 0.16) !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

.clone-tab-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  color: inherit;
  text-decoration: none;
}

.RoboneoChatInputTextArea[contenteditable="true"] {
  outline: none;
  caret-color: var(--content-primary, #fff);
}

.TabList_TabList__fnt0M {
  position: relative !important;
  top: auto !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  background: rgba(10, 10, 10, 0.86) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(18px);
}

.PromptCategoryTabs_category_tabs__s4PhK.mmg-prompt-tabs-hidden {
  display: none !important;
}

.mmg-hot-prompt-list {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.92);
}

.mmg-hot-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.mmg-hot-prompt-head strong {
  font-size: 13px;
  font-weight: 800;
}

.mmg-hot-prompt-head button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.mmg-hot-prompt-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mmg-hot-prompt-card {
  position: relative;
  display: grid;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  background: rgba(30, 30, 35, 0.92);
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.mmg-hot-prompt-card:hover {
  border-color: rgba(139, 112, 255, 0.62);
  background: rgba(43, 40, 55, 0.96);
}

.mmg-hot-prompt-card span {
  position: relative;
  z-index: 2;
  align-self: start;
  max-width: 74%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
}

.mmg-hot-prompt-images {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 110px;
  height: 78px;
}

.mmg-hot-prompt-images i {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.mmg-hot-prompt-image-0 {
  left: 0;
  top: 18px;
  width: 58px;
  height: 58px;
  transform: rotate(-7deg);
}

.mmg-hot-prompt-image-1 {
  left: 35px;
  top: 0;
  width: 60px;
  height: 60px;
  transform: rotate(5deg);
}

.mmg-hot-prompt-image-2 {
  right: 0;
  bottom: 0;
  width: 54px;
  height: 54px;
  transform: rotate(10deg);
}

.mmg-gateway-panel {
  box-sizing: border-box;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(22, 22, 26, 0.82);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.mmg-gateway-panel[data-tone="error"] {
  border-color: rgba(255, 116, 116, 0.38);
}

.mmg-gateway-panel[data-tone="success"] {
  border-color: rgba(112, 219, 167, 0.34);
}

.mmg-gateway-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.mmg-gateway-panel-title span:last-child {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 500;
}

.mmg-gateway-panel-body {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.mmg-gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mmg-gateway-actions a,
.mmg-gateway-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(111, 74, 255, 0.94);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.mmg-gateway-actions a.secondary,
.mmg-gateway-actions button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.mmg-data-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  padding: 4px;
}

.mmg-data-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 4px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.mmg-data-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mmg-data-toolbar button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
}

.mmg-data-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(24, 24, 28, 0.86);
  color: rgba(255, 255, 255, 0.9);
}

.mmg-data-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.mmg-data-select input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.mmg-data-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 34px;
  font-weight: 850;
  text-decoration: none;
}

.mmg-data-thumb img,
.mmg-data-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mmg-data-card-body {
  display: grid;
  gap: 6px;
  padding: 12px 12px 8px;
}

.mmg-data-card-body strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mmg-data-card-body span,
.mmg-data-note,
.mmg-data-empty span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.6;
}

.mmg-data-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.mmg-data-actions button,
.mmg-data-empty button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
}

.mmg-data-actions button:first-child,
.mmg-data-empty button {
  background: rgba(111, 74, 255, 0.92);
  color: #fff;
}

.mmg-data-empty {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 320px;
  padding: 32px;
  color: #fff;
  text-align: center;
}

.mmg-data-empty strong {
  font-size: 16px;
  font-weight: 850;
}

.mmg-floating-panel {
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 9999;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(18, 18, 22, 0.94);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.mmg-floating-panel[data-tone="error"] {
  border-color: rgba(255, 116, 116, 0.42);
}

.mmg-floating-panel[data-tone="success"] {
  border-color: rgba(112, 219, 167, 0.38);
}

.mmg-floating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1;
}

.mmg-floating-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.mmg-floating-form-stack {
  flex-direction: column;
}

.mmg-floating-form input {
  min-width: 0;
  flex: 1;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.mmg-floating-form button {
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(111, 74, 255, 0.94);
  color: #fff;
  font-weight: 700;
}

.mmg-floating-form button:disabled {
  opacity: 0.62;
}

.mmg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
}

.mmg-auth-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  width: min(804px, calc(100vw - 40px));
  min-height: 530px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.mmg-auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 56% 67%, rgba(113, 201, 255, 0.9), transparent 13%),
    radial-gradient(circle at 78% 38%, rgba(85, 69, 255, 0.75), transparent 24%),
    radial-gradient(circle at 33% 40%, rgba(89, 57, 255, 0.72), transparent 24%),
    linear-gradient(150deg, #15102a, #08091c 56%, #11173b);
}

.mmg-auth-brand img {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 44px 0 0 48px;
  filter: brightness(0) invert(1) opacity(0.84);
}

.mmg-auth-brand::before {
  content: "Baizeapp";
  position: absolute;
  left: 94px;
  top: 51px;
  z-index: 2;
  color: #f8fbff;
  font-size: 29px;
  font-weight: 850;
  line-height: 1;
}

.mmg-auth-orbit {
  position: absolute;
  left: 24px;
  right: -96px;
  bottom: 70px;
  height: 250px;
  border: 2px solid rgba(83, 67, 255, 0.9);
  border-right-color: transparent;
  border-bottom-color: rgba(111, 205, 255, 0.85);
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(85, 61, 255, 0.7));
  transform: rotate(-14deg);
}

.mmg-auth-orbit::after {
  content: "";
  position: absolute;
  left: 85px;
  bottom: -42px;
  width: 230px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(122, 82, 255, 0.24), rgba(132, 222, 255, 0.9), rgba(255, 215, 110, 0.34));
  filter: blur(3px);
}

.mmg-auth-content {
  position: relative;
  box-sizing: border-box;
  padding: 34px 112px 22px;
  color: #222;
}

.mmg-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #b7b7bd;
  font-size: 30px;
  line-height: 1;
}

.mmg-auth-content h2 {
  margin: 0 0 42px;
  text-align: center;
  color: #202026;
  font-size: 16px;
  font-weight: 500;
}

.mmg-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mmg-auth-line {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid #e4e4e8;
  color: #222;
  font-size: 14px;
}

.mmg-auth-line input {
  min-width: 0;
  border: 0;
  outline: none;
  color: #222;
  font: inherit;
}

.mmg-auth-line input::placeholder {
  color: #c0c0c6;
}

.mmg-auth-error {
  min-height: 18px;
  margin: 0;
  color: #e14c4c;
  font-size: 12px;
}

.mmg-auth-submit {
  height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: #b9b9be;
  color: #fff;
  font-size: 16px;
}

.mmg-auth-submit:not(:disabled) {
  background: #6c55ff;
}

.mmg-auth-submit:disabled {
  opacity: 0.72;
}

.mmg-auth-mode {
  display: block;
  margin: 13px auto 18px;
  border: 0;
  background: transparent;
  color: #4f5dff;
  font-size: 13px;
}

.mmg-auth-agreement {
  position: absolute;
  left: 74px;
  right: 74px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9a9aa1;
  font-size: 12px;
  line-height: 1.5;
}

.mmg-auth-agreement a {
  color: #4f5dff;
  text-decoration: none;
}

.mmg-dark-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(418px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #1f1f22;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.mmg-dark-dialog .mmg-modal-close {
  top: 9px;
  right: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.mmg-dark-dialog h2 {
  margin: 0 36px 22px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.mmg-invite-form input {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  background: #252528;
  color: #fff;
  outline: none;
}

.mmg-invite-form input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.mmg-settings-form,
.mmg-ticket-form,
.mmg-recharge-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mmg-settings-form label,
.mmg-recharge-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.mmg-settings-form input,
.mmg-settings-form select,
.mmg-recharge-form input,
.mmg-ticket-form input,
.mmg-ticket-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #252528;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  outline: none;
}

.mmg-settings-form input,
.mmg-settings-form select,
.mmg-recharge-form input,
.mmg-ticket-form input {
  height: 38px;
  padding: 0 12px;
}

.mmg-ticket-form textarea {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
}

.mmg-check-line {
  flex-direction: row !important;
  align-items: center;
}

.mmg-check-line input {
  width: 16px;
  height: 16px;
}

.mmg-invite-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #ff7070;
  font-size: 12px;
}

.mmg-invite-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.mmg-invite-footer button,
.mmg-invite-footer a,
.mmg-share-link,
.mmg-code-row button {
  display: inline-grid;
  place-items: center;
  height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: #6547ff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.mmg-invite-footer .mmg-invite-skip {
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
}

.mmg-share-link {
  position: absolute;
  top: 66px;
  right: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.mmg-share-dialog p,
.mmg-invite-result {
  margin: -8px 46px 18px;
  color: rgba(255, 255, 255, 0.46);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.mmg-recharge-balance {
  margin: -8px 0 16px;
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
  font-size: 13px;
}

.mmg-recharge-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mmg-recharge-paytypes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mmg-recharge-presets button,
.mmg-recharge-paytypes button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #2b2b2f;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.mmg-recharge-presets button.is-active,
.mmg-recharge-paytypes button.is-active {
  border-color: rgba(107, 83, 255, 0.92);
  background: rgba(101, 71, 255, 0.24);
  color: #fff;
}

.mmg-key-dialog {
  width: min(560px, calc(100vw - 24px));
}

.mmg-key-base,
.mmg-key-secret,
.mmg-key-row,
.mmg-key-empty,
.mmg-key-notice {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #252528;
}

.mmg-key-base,
.mmg-key-secret {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 11px 12px;
}

.mmg-key-base span,
.mmg-key-secret span,
.mmg-key-row span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.mmg-key-base code,
.mmg-key-secret code {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.88);
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mmg-key-secret {
  border-color: rgba(105, 229, 167, 0.28);
  background: rgba(29, 63, 45, 0.36);
}

.mmg-key-notice,
.mmg-key-empty {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.mmg-key-notice {
  border-color: rgba(105, 229, 167, 0.24);
}

.mmg-key-list {
  display: grid;
  gap: 10px;
}

.mmg-key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.mmg-key-row strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.mmg-key-row em {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-style: normal;
}

.mmg-key-revoke {
  height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 92, 92, 0.15);
  color: #ff8f8f;
  font-weight: 800;
}

.mmg-key-revoke:disabled,
.mmg-recharge-form button:disabled {
  opacity: 0.6;
}

.mmg-invite-code-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mmg-code-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
}

.mmg-code-row strong {
  display: grid;
  place-items: center;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #303033;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.mmg-code-row button {
  padding: 0;
}

.mmg-code-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.mmg-code-meta span {
  border-radius: 5px;
  padding: 2px 6px;
  background: #2b2b2f;
  color: #fff;
  font-size: 11px;
}

.mmg-account-menu {
  position: fixed;
  top: 52px;
  right: 16px;
  z-index: 10001;
  width: 200px;
  box-sizing: border-box;
  padding: 14px 0 8px;
  border-radius: 0 0 10px 10px;
  background: #171719;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.45);
}

.mmg-account-head,
.mmg-account-uid {
  padding: 0 16px;
}

.mmg-account-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
}

.mmg-account-uid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.33);
  font-size: 12px;
}

.mmg-account-uid button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.mmg-account-menu > button {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  padding: 0 18px 0 42px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  font: inherit;
  font-size: 14px;
}

.mmg-account-menu > button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mmg-account-separator {
  height: 1px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.07);
}

.mmg-account-menu .mmg-account-logout {
  padding-left: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 720px) {
  .mmg-auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mmg-auth-brand {
    display: none;
  }

  .mmg-auth-content {
    padding: 38px 28px 64px;
  }

  .mmg-auth-agreement {
    left: 28px;
    right: 28px;
  }
}
