:root {
  --bg: #f7f8fb;
  --page: #ffffff;
  --card: #ffffff;
  --ink: #15161a;
  --muted: #767b87;
  --soft: #f5f6f8;
  --line: #e9ebef;
  --line-strong: #dfe3ea;
  --brand: #6b5cff;
  --brand-dark: #4b3cff;
  --brand-soft: #f1efff;
  --danger: #ef4444;
  --ok: #16a34a;
  --shadow: 0 12px 30px rgba(22, 28, 45, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 64px;
  padding: 0 48px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #16171b;
}
.brand-mark {
  display: grid;
  place-items: center;
  min-width: 32px;
  width: auto;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #101115, #6b5cff);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #565b66;
  font-size: 14px;
  white-space: nowrap;
}
nav a:hover { color: var(--ink); }
.userbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #565b66;
  font-size: 14px;
}
.userbar-name,
.userbar-balance,
.userbar .btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}
.userbar-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 160px;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(21, 22, 26, .96), rgba(45, 50, 68, .96));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
  font-weight: 850;
  letter-spacing: .01em;
}
.userbar-name > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.userbar-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: linear-gradient(135deg, #6b5cff, #23d6a5);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}
.userbar-balance {
  color: #15161a;
  background: linear-gradient(135deg, #fff36b, #ffd329);
  border: 1px solid rgba(255, 211, 41, .55);
  box-shadow: 0 10px 18px rgba(255, 211, 41, .18);
}
.userbar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.userbar .top-recharge-btn {
  gap: 8px;
}
.userbar .top-recharge-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  color: #fff;
  background: #15161a;
  box-shadow: 0 10px 24px rgba(21, 22, 26, .18);
}
.btn.ghost {
  color: #22242a;
  background: #fff;
  border: 1px solid var(--line-strong);
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
  padding: 0 0 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.site-page-alerts,
.site-maintenance-banner,
.site-notice-banner {
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
}
.site-maintenance-banner,
.site-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
  box-shadow: 0 10px 24px rgba(22, 28, 45, .045);
}
.site-maintenance-banner {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.site-notice-banner {
  color: #315141;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}
.site-maintenance-banner strong,
.site-notice-banner strong {
  flex: 0 0 auto;
  font-weight: 950;
}
.site-maintenance-banner span,
.site-notice-banner span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-page-alerts .site-maintenance-banner {
  width: 100%;
  margin: 0;
}
.site-popup-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(10px);
}
.site-popup-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  overflow: hidden;
  color: #182033;
  background: linear-gradient(145deg, #fff 0%, #f8fbff 58%, #eef5ff 100%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}
.site-popup-card::before {
  content: "";
  position: absolute;
  right: -72px;
  top: -72px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(60, 87, 255, .22), transparent 68%);
}
.site-popup-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-popup-card h3 {
  position: relative;
  margin: 0 36px 12px 0;
  font-size: 26px;
  line-height: 1.2;
}
.site-popup-card p,
.site-popup-content {
  position: relative;
  max-height: 42vh;
  overflow: auto;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
}
.site-popup-content > :first-child {
  margin-top: 0 !important;
}
.site-popup-content > :last-child {
  margin-bottom: 0 !important;
}
.site-popup-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.site-popup-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #64748b;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.site-popup-close:hover {
  color: #0f172a;
  border-color: rgba(60, 87, 255, .25);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}
.vip-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(10px);
}
.vip-modal-panel {
  position: relative;
  width: min(500px, calc(100vw - 28px));
  overflow: hidden;
  padding: 30px;
  color: #eef2ff;
  background: radial-gradient(circle at 18% 0%, rgba(255, 217, 138, .22), transparent 32%), linear-gradient(145deg, #111827, #171b2d 58%, #251f3f);
  border: 1px solid rgba(255, 217, 138, .24);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .46);
}
.vip-modal-panel::after {
  content: '';
  position: absolute;
  right: -56px;
  top: -64px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(107, 92, 255, .42), transparent 68%);
}
.vip-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(238, 242, 255, .68);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.vip-modal-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: #17110a;
  background: linear-gradient(135deg, #ffe08a, #ffb84d);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
}
.vip-modal-panel h3 {
  position: relative;
  z-index: 1;
  margin: 0 42px 10px 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
}
.vip-modal-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: #b8c2d8;
  font-size: 14px;
  line-height: 1.7;
}
.vip-benefit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.vip-benefit-grid div {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
}
.vip-benefit-grid strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}
.vip-benefit-grid span {
  color: #9aa8c4;
  font-size: 12px;
  line-height: 1.5;
}
.vip-modal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vip-modal-actions .btn.primary {
  color: #17110a;
  background: linear-gradient(135deg, #ffe08a, #ffb84d);
  box-shadow: 0 16px 34px rgba(255, 184, 77, .22);
}
.vip-modal-actions .btn.ghost {
  color: #e5e7eb;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}
.customer-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .18);
  backdrop-filter: blur(8px);
}
.customer-modal-panel {
  position: relative;
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  color: #111827;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .24);
}
.customer-modal-close {
  position: absolute;
  right: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #94a3b8;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}
.customer-modal-panel h3 {
  margin: 0 46px 6px 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}
.customer-modal-desc {
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}
.customer-modal-list {
  display: grid;
  gap: 12px;
}
.customer-modal-card {
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}
.customer-modal-card.group {
  background: linear-gradient(135deg, #eef4ff, #fbf7ff);
  border-color: #bfdbfe;
}
.customer-modal-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.customer-modal-badge {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #111827;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 950;
}
.customer-modal-card.group .customer-modal-badge {
  background: linear-gradient(135deg, #5561ff, #7c3aed);
}
.customer-modal-card-head strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}
.customer-modal-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}
.customer-modal-qr {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
}
.customer-modal-qr img {
  display: block;
  width: min(190px, 72vw);
  max-height: 210px;
  object-fit: contain;
}
.customer-modal-copy {
  width: 100%;
  min-height: 38px;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}
.customer-config-card {
  padding: 18px 20px;
}
.customer-config-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.customer-config-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-config-icon {
  width: 16px;
  height: 16px;
  border: 1.8px solid #94a3b8;
  border-radius: 4px;
}
.customer-config-form {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}
.customer-config-enable {
  display: grid;
  gap: 8px;
}
.customer-config-enable strong,
.customer-config-field,
.customer-config-grid label {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}
.customer-config-enable span,
.customer-config-hint {
  margin: -6px 0 2px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.customer-config-form .popup-notice-toggle-only {
  display: inline-flex !important;
  width: max-content;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.customer-config-field {
  display: grid;
  gap: 8px;
}
.customer-float-btn {
  position: fixed;
  right: 24px;
  top: auto;
  bottom: 26px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 82px;
  min-height: 42px;
  padding: 0 16px 0 14px;
  color: #0f172a;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(203, 213, 225, .88);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .82);
  transform: none;
  backdrop-filter: blur(10px);
}
.customer-float-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #111827;
}
.customer-float-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.customer-float-btn strong {
  max-width: 86px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-float-btn:hover {
  color: #0f172a;
  border-color: rgba(148, 163, 184, .95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-3px);
}
.app-use-body .customer-float-btn {
  bottom: 82px;
}
@media (max-width: 760px) {
  .site-popup-mask {
    align-items: end;
    padding: 14px;
  }
  .site-popup-card {
    padding: 24px 18px 18px;
    border-radius: 22px;
  }
  .site-popup-card h3 {
    font-size: 22px;
  }
  .site-popup-actions .btn {
    flex: 1 1 120px;
  }
  .vip-modal-mask {
    align-items: end;
    padding: 14px;
  }
  .vip-modal-panel {
    width: 100%;
    padding: 26px 18px 18px;
    border-radius: 22px;
  }
  .vip-modal-panel h3 {
    font-size: 24px;
  }
  .vip-modal-actions .btn {
    flex: 1 1 120px;
  }
  .customer-modal-mask {
    align-items: end;
    padding: 0;
  }
  .customer-modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 24px 18px 18px;
    border-radius: 16px 16px 0 0;
  }
  .customer-modal-qr {
    min-height: 176px;
  }
  .customer-modal-qr img {
    width: min(178px, 70vw);
  }
  .customer-float-btn {
    right: 14px;
    top: auto;
    bottom: 18px;
    min-width: 80px;
    min-height: 40px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    transform: none;
  }
  .customer-float-btn:hover {
    transform: translateY(-3px);
  }
  .app-use-history {
    right: 14px;
    bottom: 18px;
    min-height: 42px;
  }
  .app-use-body .customer-float-btn,
  .front-page-body .customer-float-btn {
    bottom: 74px;
  }
}
.top-recharge-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 18px 9px 12px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00, #ff4d6d 48%, #6b5cff);
  border: 1px solid rgba(255, 255, 255, .44);
  box-shadow: 0 12px 26px rgba(255, 77, 109, .24), 0 8px 18px rgba(107, 92, 255, .18);
}
.top-recharge-btn::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -35%;
  width: 80%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: rotate(22deg);
  transition: left .45s ease;
}
.top-recharge-btn:hover::after {
  left: 80%;
}
.top-recharge-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ff5f15;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}
.top-recharge-btn span:last-child {
  position: relative;
  z-index: 1;
}

.rh-page {
  background: #fff;
}
body.front-page-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff;
}
.front-page-body .topbar {
  padding: 0 32px;
}
.front-page-body .rh-page {
  width: 100%;
  min-height: calc(100vh - 64px);
}
.front-page-body .rh-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px 32px 10px;
}
.front-page-body .section {
  width: 100%;
  max-width: none;
  margin: 0 0 34px;
  padding: 0 32px;
}
.front-page-body .rh-app-row {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.front-page-body .task-list,
.front-page-body .wallet-layout,
.front-page-body .detail-layout {
  width: 100%;
}
body.profile-page-body {
  background: #f6f7fb;
}
.profile-page-body .rh-page {
  background: #f6f7fb;
}
.profile-page-body .profile-page {
  min-height: calc(100vh - 64px);
}
.profile-page-body .profile-page-section {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 28px 32px 40px;
}
.profile-page-head {
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f3f5ff);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.profile-page-head h1 {
  margin: 4px 0 8px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -.03em;
}
.section-kicker {
  display: inline-flex;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-page {
  padding-top: 0;
}
body.admin-page-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f6f7fb;
}
.admin-page-body .topbar {
  padding: 0 28px;
  background: rgba(255, 255, 255, .96);
}
.admin-page-body .rh-page.admin-page {
  width: 100%;
  min-height: calc(100vh - 64px);
  background: #f6f7fb;
}
.admin-page-body .admin-page > .section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 64px);
  margin: 0;
  padding: 20px;
}
.admin-page-body .admin-head {
  flex: 0 0 auto;
  margin-bottom: 0;
  border-radius: 20px;
}
.admin-page-body .admin-console {
  flex: 1;
  min-height: 0;
}
.admin-page-body .admin-workbench {
  height: 100%;
  min-height: 0;
  grid-template-columns: 300px minmax(0, 1fr);
}
.admin-page-body .admin-sidebar {
  height: 100%;
  min-height: 0;
  overflow: auto;
}
.admin-page-body .admin-main {
  min-height: 0;
  overflow: auto;
}
.rh-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 10px;
}
.rh-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 2px 16px;
}
.rh-titlebar h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -.03em;
}
.rh-titlebar p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.rh-total {
  flex: 0 0 auto;
  color: #4c5059;
  font-size: 15px;
  font-weight: 800;
}
.rh-total span { color: #11131a; }

.section {
  max-width: 1200px;
  margin: 0 auto 34px;
  padding: 0 24px;
}
.market-section { padding-top: 0; }
.rh-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.market-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search,
.sort-select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  outline: none;
}
.search {
  width: min(260px, 32vw);
  padding: 0 15px;
}
.sort-select {
  padding: 0 13px;
  color: #4b5563;
}
.search:focus,
.sort-select:focus { border-color: #c7c1ff; }
.category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 8px 11px;
  color: #4f5664;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.cat-chip em {
  font-style: normal;
  color: #9aa0aa;
  font-size: 12px;
}
.cat-chip-media-wrap {
  width: 24px;
  height: 24px;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 999px;
  flex: 0 0 auto;
}
.cat-chip-media-wrap img,
.cat-chip-media-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-chip.active {
  color: #11131a;
  background: #f1f2f5;
  border-color: #eceef2;
}
.cat-chip.active em { color: #6d7380; }

.app-grid.market-grid {
  display: block;
}
.app-section {
  margin: 0 0 34px;
}
.app-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -.02em;
}
.rh-app-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}
.app-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(21, 22, 26, .08);
}
.cover-wrap {
  position: relative;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #eef0f4;
}
.cover-wrap img,
.cover-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-body {
  padding: 10px 2px 2px;
}
.app-body h3 {
  margin: 0 0 8px;
  min-height: 42px;
  color: #15161a;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-category {
  color: #5e6470;
  font-size: 13px;
  font-weight: 700;
}
.app-body p { display: none; }
.rh-price {
  margin-top: 10px;
  color: #7b8290;
  font-size: 12px;
  font-weight: 800;
}
.price-row { display: none; }
.empty-state {
  padding: 42px;
  text-align: center;
  color: var(--muted);
  background: #fafbfc;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}

body.front-page-body:not(.profile-page-body) {
  background: #05070b;
  color: #f8fafc;
}
body.front-page-body:not(.profile-page-body) .topbar {
  min-height: 58px;
  padding: 0 16px;
  background: rgba(6, 8, 13, .92);
  border-bottom-color: rgba(255, 255, 255, .08);
}
body.front-page-body:not(.profile-page-body) .brand,
body.front-page-body:not(.profile-page-body) nav,
body.front-page-body:not(.profile-page-body) nav a,
body.front-page-body:not(.profile-page-body) .userbar {
  color: rgba(255, 255, 255, .82);
}
body.front-page-body:not(.profile-page-body) nav a:hover {
  color: #fff;
}
body.front-page-body:not(.profile-page-body) .btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}
body.front-page-body:not(.profile-page-body) .pill {
  color: #0f172a;
  background: #facc15;
}
body.front-page-body:not(.profile-page-body) .rh-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 56, 116, .15), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(75, 60, 255, .18), transparent 28%),
    #05070b;
}
body.front-page-body:not(.profile-page-body) .rh-hero {
  padding: 16px 14px 4px;
}
body.front-page-body:not(.profile-page-body) .rh-titlebar {
  padding: 18px 0 10px;
}
body.front-page-body:not(.profile-page-body) .rh-titlebar h1 {
  color: #fff;
  font-size: 28px;
}
body.front-page-body:not(.profile-page-body) .rh-titlebar p,
body.front-page-body:not(.profile-page-body) .rh-total {
  color: rgba(255, 255, 255, .58);
}
body.front-page-body:not(.profile-page-body) .rh-total span {
  color: #fff;
}
body.front-page-body:not(.profile-page-body) .section {
  padding: 0 14px;
}
body.front-page-body:not(.profile-page-body) .market-section {
  margin-bottom: 26px;
}
body.front-page-body:not(.profile-page-body) .rh-filterbar {
  margin-bottom: 10px;
  padding: 8px 0 10px;
}
body.front-page-body:not(.profile-page-body) .cat-chip {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .08);
}
body.front-page-body:not(.profile-page-body) .cat-chip em {
  color: rgba(255, 255, 255, .46);
}
body.front-page-body:not(.profile-page-body) .cat-chip.active {
  color: #0f172a;
  background: #facc15;
  border-color: #facc15;
}
body.front-page-body:not(.profile-page-body) .cat-chip.active em {
  color: rgba(15, 23, 42, .58);
}
body.front-page-body:not(.profile-page-body) .search,
body.front-page-body:not(.profile-page-body) .sort-select {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}
body.front-page-body:not(.profile-page-body) .search::placeholder {
  color: rgba(255, 255, 255, .45);
}
body.front-page-body:not(.profile-page-body) .sort-select option {
  color: #111827;
}
body.front-page-body:not(.profile-page-body) .poster-section {
  margin: 0 0 14px;
}
body.front-page-body:not(.profile-page-body) .poster-section h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}
body.front-page-body:not(.profile-page-body) .poster-wall {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
body.front-page-body:not(.profile-page-body) .poster-card {
  position: relative;
  display: block;
  min-height: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  box-shadow: none;
  transform: translateZ(0);
}
body.front-page-body:not(.profile-page-body) .poster-card:hover {
  z-index: 2;
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(250, 204, 21, .7);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .36);
}
body.front-page-body:not(.profile-page-body) .poster-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  background: #111827;
}
body.front-page-body:not(.profile-page-body) .poster-cover::before,
body.front-page-body:not(.profile-page-body) .poster-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
body.front-page-body:not(.profile-page-body) .poster-cover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .08) 48%, rgba(0, 0, 0, .42) 100%);
}
body.front-page-body:not(.profile-page-body) .poster-cover::after {
  top: auto;
  height: 18%;
  background: linear-gradient(180deg, rgba(18, 12, 10, 0) 0%, rgba(188, 163, 143, .26) 42%, rgba(167, 138, 118, .72) 100%);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
body.front-page-body:not(.profile-page-body) .poster-cover img,
body.front-page-body:not(.profile-page-body) .poster-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .22s ease;
}
body.front-page-body:not(.profile-page-body) .poster-card:hover .poster-cover img,
body.front-page-body:not(.profile-page-body) .poster-card:hover .poster-cover video {
  transform: scale(1.045);
}
.poster-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 5px 7px;
  color: #fff;
  background: #ff2f68;
  border-radius: 0 0 5px 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}
.poster-info {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 20, 24, .42), rgba(10, 10, 12, .64));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(7px) saturate(1.04);
  -webkit-backdrop-filter: blur(7px) saturate(1.04);
}
.poster-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.poster-title {
  overflow: hidden;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .48);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.poster-price {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  color: #241600;
  background: linear-gradient(135deg, rgba(255, 232, 115, .96), rgba(245, 158, 11, .9));
  border: 1px solid rgba(255, 244, 181, .58);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 0 18px rgba(245, 158, 11, .2);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.poster-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
  color: rgba(255, 255, 255, .68);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.poster-stats span {
  position: relative;
  display: inline-flex;
  flex: 1 1 0;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}
.poster-stats span + span::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: rgba(255, 255, 255, .14);
}
.poster-stats strong,
.poster-stats em {
  display: block;
  overflow: hidden;
  min-width: 0;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.poster-stats strong {
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}
.poster-stats em {
  color: rgba(255, 255, 255, .62);
  font-size: 15px;
  font-style: normal;
  font-weight: 850;
}
body.front-page-body:not(.profile-page-body) .app-body,
body.front-page-body:not(.profile-page-body) .app-category,
body.front-page-body:not(.profile-page-body) .rh-price {
  display: none;
}
body.front-page-body:not(.profile-page-body) .empty-state {
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}
body.front-page-body:not(.profile-page-body) .section-head h2,
body.front-page-body:not(.profile-page-body) .section-head p {
  color: #fff;
}

@media (max-width: 760px) {
  body.front-page-body:not(.profile-page-body) .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }
  body.front-page-body:not(.profile-page-body) nav {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
  }
  body.front-page-body:not(.profile-page-body) .rh-hero,
  body.front-page-body:not(.profile-page-body) .section {
    padding-left: 8px;
    padding-right: 8px;
  }
  body.front-page-body:not(.profile-page-body) .rh-titlebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  body.front-page-body:not(.profile-page-body) .rh-filterbar {
    align-items: stretch;
    flex-direction: column;
  }
  body.front-page-body:not(.profile-page-body) .market-actions {
    width: 100%;
  }
  body.front-page-body:not(.profile-page-body) .search {
    width: 100%;
    flex: 1;
  }
  body.front-page-body:not(.profile-page-body) .poster-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .poster-info {
    left: 7px;
    right: 7px;
    bottom: 7px;
    gap: 5px;
    padding: 8px;
    border-radius: 12px;
  }
  .poster-main-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .poster-title {
    font-size: 14px;
  }
  .poster-price {
    font-size: 15px;
    justify-self: start;
    min-height: 21px;
    padding: 0 7px;
  }
  .poster-stats {
    gap: 3px;
  }
  .poster-stats span {
    padding: 4px 2px;
    border-radius: 8px;
  }
  .poster-stats strong {
    font-size: 15px;
  }
  .poster-stats em {
    font-size: 15px;
  }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
}
.detail-info,
.runner,
.examples,
.task-list,
.admin-list,
.wallet-card,
.admin-order-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.app-detail-card img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}
.tag.hot { background: #fff1f2; color: #e11d48; }
.app-detail-card h2 {
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: -.03em;
}
.app-detail-card p {
  color: #5b6472;
  line-height: 1.8;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.detail-stats span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-weight: 900;
  color: #475569;
}
.runner {
  position: sticky;
  top: 86px;
  align-self: start;
}
.runner h3,
.wallet-card h3,
.admin-order-panel h3 { margin: 0 0 14px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.field label {
  font-weight: 900;
  font-size: 14px;
}
.field input,
.field textarea,
.field select,
.modal-card input,
.admin-form input,
.admin-form select,
.field-row input,
.field-row select,
.user-admin-row input {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  outline: none;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.run-btn { width: 100%; margin-top: 4px; }
.status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.outputs {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.outputs img,
.outputs video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.examples { margin-top: 18px; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.example-grid span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  color: #475569;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-head h2,
.section h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.section-head p,
.section p {
  margin: 0;
  color: var(--muted);
}
.task-item,
.admin-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.task-item { grid-template-columns: 1fr auto; }
.task-item:last-child,
.admin-item:last-child { border-bottom: 0; }
.task-meta {
  color: var(--muted);
  font-size: 13px;
}

.wallet-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}
.plan-list,
.mini-list,
.admin-users {
  display: grid;
  gap: 10px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px;
  cursor: pointer;
  text-align: left;
}
.plan-card:hover {
  border-color: #c7c1ff;
  background: var(--brand-soft);
}
.plan-card strong { font-size: 16px; }
.plan-card span { font-weight: 900; color: var(--brand-dark); }
.plan-card small,
.mini-item span,
.user-admin-main span {
  color: var(--muted);
  font-size: 13px;
}
.mini-item,
.user-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}
.mini-item strong,
.user-admin-main strong {
  display: block;
  margin-bottom: 4px;
}
.wallet-grid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(320px, 1fr) minmax(280px, .85fr);
  gap: 18px;
}
.wallet-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.wallet-card h3 {
  margin: 0 0 12px;
}
.plan-list,
.mini-list {
  display: grid;
  gap: 10px;
}
.pay-plan-card {
  padding: 0;
  overflow: hidden;
}
.plan-main {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan-title-row em,
.admin-plan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  color: #7c2d12;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  border-radius: 999px;
  background: #ffedd5;
}
.plan-bonus {
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}
.admin-recharge-plan-table td:first-child {
  min-width: 220px;
}
.admin-recharge-plan-table td:last-child {
  white-space: nowrap;
}
.admin-recharge-plan-modal {
  width: min(760px, 100%);
}
.recharge-plan-admin-shell {
  display: grid;
  gap: 16px;
}
.recharge-plan-stats .rh-status-card strong {
  word-break: break-word;
}
.pay-method-row {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  padding: 0 14px 14px;
}
.pay-plan-card.active .pay-method-row {
  display: grid;
}
.pay-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #c7c1ff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f7f5ff);
}
.pay-panel.paid {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #fff, #f0fdf4);
}
.pay-panel-head,
.pay-panel-body,
.pay-status {
  display: grid;
  gap: 6px;
}
.pay-panel-head span,
.pay-status span,
.pay-code p,
.mini-item small {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}
.pay-code {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #c7c1ff;
  border-radius: 14px;
  background: #fff;
}
.pay-code-layout {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.pay-qr-img {
  width: 116px;
  height: 116px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.recharge-simple-card {
  width: min(720px, calc(100vw - 28px));
  max-height: min(88vh, 780px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
}
.recharge-simple-head {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  padding-right: 42px;
}
.recharge-simple-head h3 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
}
.recharge-simple-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.recharge-simple-balance {
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding: 10px 14px;
  color: #fff;
  background: #15161a;
  border-radius: 16px;
  text-align: left;
  box-shadow: none;
}
.recharge-simple-balance small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 850;
}
.recharge-simple-balance strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
.recharge-simple-body {
  display: grid;
  gap: 14px;
}
.recharge-simple-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.recharge-simple-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.recharge-simple-section-head > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: #15161a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}
.recharge-simple-section-head strong,
.recharge-simple-section-head small {
  display: block;
}
.recharge-simple-section-head strong {
  color: #15161a;
  font-size: 16px;
}
.recharge-simple-section-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.recharge-plan-list {
  gap: 8px;
}
.recharge-plan-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  color: #15161a;
  background: #f8fafc;
  border-color: #e7eaf0;
  box-shadow: none;
}
.recharge-plan-card:hover,
.recharge-plan-card.active {
  color: #15161a;
  background: #fff;
  border-color: #15161a;
}
.recharge-plan-card.active {
  box-shadow: 0 0 0 2px rgba(21, 22, 26, .08);
}
.recharge-plan-card .plan-title-row strong {
  font-size: 15px;
}
.recharge-plan-card .plan-title-row em {
  color: #7c2d12;
  background: #ffedd5;
}
.recharge-plan-card small {
  color: var(--muted);
  line-height: 1.5;
}
.recharge-plan-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #15161a !important;
}
.recharge-plan-amount b {
  font-size: 18px;
}
.recharge-plan-amount i {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}
.recharge-method-box {
  display: grid;
  gap: 10px;
}
.recharge-method-empty,
.recharge-selected-plan {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}
.recharge-method-empty strong,
.recharge-selected-plan strong {
  color: #15161a;
  font-size: 14px;
}
.recharge-method-empty span,
.recharge-selected-plan span {
  color: var(--muted);
  font-size: 13px;
}
.recharge-method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.recharge-method-actions .btn {
  min-height: 38px;
}
.recharge-pay-box:empty {
  display: none;
}
.recharge-current-order {
  margin: 0;
  padding: 14px;
  border-color: var(--line-strong);
  border-radius: 16px;
  background: #fbfbfd;
}
.recharge-current-order.paid {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.recharge-current-order-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.recharge-current-order-body {
  gap: 10px;
}
.recharge-pay-code {
  padding: 10px;
  border-color: var(--line);
  background: #fff;
}
.recharge-pay-status strong {
  font-size: 15px;
}
.recharge-pay-note {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}
.recharge-order-section {
  padding-bottom: 14px;
}
.recharge-order-list {
  gap: 8px;
}
.recharge-order-item {
  align-items: center;
  padding: 10px 12px;
  background: #fbfbfd;
}
.recharge-order-item > div {
  min-width: 0;
}
.recharge-order-item span,
.recharge-order-item small {
  display: block;
  margin-top: 3px;
}
.recharge-simple-foot {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.recharge-grid-card {
  width: min(477px, calc(100vw - 28px));
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 28px 27px 28px;
  color: #111827;
  background: #fff;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}
.recharge-grid-close {
  top: 24px;
  right: 26px;
  width: 28px;
  height: 28px;
  color: #94a3b8;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.recharge-grid-head {
  padding-right: 44px;
}
.recharge-grid-head h3 {
  margin: 2px 0 24px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.02em;
}
.recharge-grid-body {
  position: relative;
  display: grid;
  gap: 18px;
}
.recharge-method-cache {
  display: none !important;
}
.recharge-pay-select {
  display: grid;
  gap: 8px;
}
.recharge-pay-select > span {
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 500;
}
.recharge-grid-card .recharge-pay-choice {
  display: grid;
  gap: 8px;
}
.recharge-grid-card .recharge-pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  width: 100%;
  padding: 0 16px;
  color: #2563eb;
  background: #e8f1ff;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.recharge-grid-card .recharge-pay-method:hover,
.recharge-grid-card .recharge-pay-method.active {
  background: #dbeafe;
  border-color: #cfe1ff;
}
.recharge-grid-card .recharge-pay-method:active {
  transform: translateY(1px);
}
.recharge-grid-card .recharge-pay-method span::before {
  content: '♜';
  margin-right: 7px;
  color: #1677ff;
  font-size: 13px;
}
.recharge-grid-card .recharge-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recharge-paying .recharge-grid-card .recharge-package-grid {
  display: none;
}
.recharge-grid-card .recharge-package-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 104px;
  padding: 18px 16px 16px;
  color: #101827;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.recharge-grid-card .recharge-package-card:hover,
.recharge-grid-card .recharge-package-card.active {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .16);
}
.recharge-grid-card .recharge-package-card:active {
  transform: translateY(1px);
}
.recharge-grid-card .recharge-package-card.is-loading {
  opacity: .72;
  cursor: wait;
}
.recharge-grid-card .recharge-package-card strong {
  padding-right: 46px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.3;
}
.recharge-grid-card .recharge-package-card b {
  color: #111827;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.recharge-grid-card .recharge-package-card span {
  color: #8ea0b8;
  font-size: 13px;
  font-weight: 700;
}
.recharge-grid-card .recharge-package-card em {
  position: absolute;
  top: 10px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 21px;
  padding: 0 8px;
  color: #fff;
  background: #0f172a;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .28);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.recharge-grid-card .recharge-package-empty {
  grid-column: 1 / -1;
}
.recharge-grid-card .recharge-pay-box {
  margin-top: 0;
}
.recharge-channel-picker[hidden] {
  display: none;
}
.recharge-channel-picker {
  position: absolute;
  inset: -8px;
  z-index: 8;
  display: grid;
  place-items: center;
}
.recharge-channel-mask {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(5px);
  border-radius: 14px;
}
.recharge-channel-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(330px, 92%);
  padding: 22px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .18);
  text-align: center;
}
.recharge-channel-panel > strong {
  font-size: 18px;
  font-weight: 950;
}
.recharge-channel-panel > span {
  color: #8ea0b8;
  font-size: 13px;
  line-height: 1.6;
}
.recharge-channel-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  color: #94a3b8;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.recharge-channel-actions {
  display: grid;
  gap: 10px;
}
.recharge-channel-btn {
  min-height: 44px;
  color: #2563eb;
  background: #e8f1ff;
  border: 1px solid #cfe1ff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
}
.recharge-channel-btn:hover {
  background: #dbeafe;
}
.recharge-qr-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 8px 0 0;
  text-align: center;
}
.recharge-qr-img {
  width: 220px;
  height: 220px;
  image-rendering: pixelated;
}
.recharge-qr-panel p {
  max-width: 330px;
  margin: 0;
  color: #8ea0b8;
  font-size: 14px;
  line-height: 1.8;
}
.recharge-open-pay {
  width: 100%;
  min-height: 44px;
  color: #fff;
  background: #0f172a;
  border-color: #0f172a;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 950;
}
.recharge-grid-card .recharge-current-order {
  margin-top: 2px;
  padding: 13px;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 12px;
}
.recharge-grid-card .recharge-current-order-head {
  grid-template-columns: 1fr;
  gap: 3px;
}
.recharge-grid-card .recharge-current-order-body {
  gap: 9px;
}
.recharge-grid-card .pay-code-layout {
  grid-template-columns: 96px minmax(0, 1fr);
}
.recharge-grid-card .pay-qr-img {
  width: 96px;
  height: 96px;
}
.recharge-grid-card .recharge-pay-note,
.recharge-grid-card .pay-status span,
.recharge-grid-card .pay-code p {
  font-size: 12px;
}
html[data-theme="dark"] .recharge-grid-card {
  color: #f8fafc;
  background: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .recharge-grid-card .recharge-grid-head h3,
html[data-theme="dark"] .recharge-grid-card .recharge-package-card strong,
html[data-theme="dark"] .recharge-grid-card .recharge-package-card b,
html[data-theme="dark"] .recharge-grid-card .recharge-current-order-head strong,
html[data-theme="dark"] .recharge-grid-card .recharge-pay-status strong {
  color: #f8fafc;
}
html[data-theme="dark"] .recharge-grid-card .recharge-grid-close,
html[data-theme="dark"] .recharge-grid-card .recharge-pay-select > span,
html[data-theme="dark"] .recharge-grid-card .recharge-package-card span {
  color: #94a3b8;
}
html[data-theme="dark"] .recharge-grid-card .recharge-pay-method {
  color: #bfdbfe;
  background: rgba(37, 99, 235, .2);
  border-color: rgba(96, 165, 250, .12);
}
html[data-theme="dark"] .recharge-grid-card .recharge-pay-method:hover,
html[data-theme="dark"] .recharge-grid-card .recharge-pay-method.active {
  background: rgba(37, 99, 235, .32);
  border-color: rgba(96, 165, 250, .32);
}
html[data-theme="dark"] .recharge-grid-card .recharge-package-card,
html[data-theme="dark"] .recharge-grid-card .recharge-current-order {
  background: #1f2937;
  border-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .recharge-grid-card .recharge-package-card:hover,
html[data-theme="dark"] .recharge-grid-card .recharge-package-card.active {
  background: #263244;
  border-color: rgba(96, 165, 250, .38);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
}
html[data-theme="dark"] .recharge-grid-card .recharge-package-card em {
  color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .recharge-grid-card .recharge-pay-code,
html[data-theme="dark"] .recharge-grid-card .pay-qr-img {
  background: #0f172a;
  border-color: rgba(255, 255, 255, .14);
}
@media (max-width: 520px) {
  .recharge-grid-card {
    width: min(100vw - 18px, 477px);
    padding: 24px 18px 22px;
    border-radius: 14px;
  }
  .recharge-grid-card .recharge-grid-close {
    top: 20px;
    right: 18px;
  }
  .recharge-grid-card .recharge-grid-head h3 {
    margin-bottom: 20px;
  }
  .recharge-grid-card .recharge-package-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .recharge-grid-card .recharge-package-card {
    min-height: 96px;
    padding: 15px 13px 13px;
  }
  .recharge-grid-card .recharge-package-card strong {
    padding-right: 40px;
    font-size: 13px;
  }
  .recharge-grid-card .recharge-package-card b {
    font-size: 19px;
  }
  .recharge-grid-card .recharge-package-card span {
    font-size: 12px;
  }
  .recharge-grid-card .recharge-package-card em {
    top: 8px;
    right: 7px;
    min-width: 30px;
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }
  .recharge-grid-card .pay-code-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .recharge-grid-card .recharge-package-grid {
    grid-template-columns: 1fr;
  }
}
.admin-order-pay-cell {
  min-width: 220px;
}
.admin-order-pay-meta {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}
.admin-order-pay-meta details {
  margin-top: 2px;
}
.admin-order-pay-meta summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 800;
}
.admin-order-pay-meta pre {
  max-width: 360px;
  max-height: 180px;
  overflow: auto;
  margin: 6px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  white-space: pre-wrap;
}
.user-admin-row { align-items: center; }

.profile-panel {
  display: grid;
  gap: 18px;
}
.profile-empty {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.profile-empty strong {
  font-size: 20px;
}
.profile-empty p {
  max-width: 560px;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, .55fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}
.profile-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.profile-record-grid #tasks,
.profile-record-grid #security {
  grid-column: 1 / -1;
}
.profile-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.profile-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-identity h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  word-break: break-all;
}
.profile-identity p,
.profile-balance-card p {
  margin: 0;
  color: var(--muted);
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.profile-balance-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #15161a, #4b3cff);
  color: #fff;
}
.profile-balance-card .profile-kicker,
.profile-balance-card p {
  color: rgba(255, 255, 255, .72);
}
.profile-balance-card strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.profile-stats div {
  min-width: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.profile-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.profile-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1;
}
.profile-wallet-card {
  scroll-margin-top: 84px;
  background: linear-gradient(135deg, #ffffff 0%, #fbf7ff 48%, #f4f7ff 100%);
  border-color: #ddd6fe;
}
.profile-wallet-head {
  align-items: flex-start;
}
.profile-wallet-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-wallet-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, #15161a, #6b5cff);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}
.profile-wallet-grid.wallet-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.profile-wallet-grid .wallet-card {
  border-color: rgba(107, 92, 255, .16);
}
.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.profile-card-head h3 {
  margin: 0;
  font-size: 18px;
}
.profile-card-head a {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}
.profile-list {
  display: grid;
  gap: 10px;
}
.profile-list p {
  margin: 0;
  color: var(--muted);
}
.profile-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.profile-list-item strong,
.profile-list-item span {
  display: block;
}
.profile-list-item strong {
  margin-bottom: 5px;
  font-size: 14px;
}
.profile-list-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.profile-action-apps {
  display: grid;
  gap: 12px;
}
.profile-action-app {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.profile-action-app:hover {
  background: #fff;
  border-color: rgba(107, 92, 255, .34);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.profile-action-cover {
  width: 84px;
  height: 72px;
  overflow: hidden;
  background: #eef2ff;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
}
.profile-action-cover img,
.profile-action-cover video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-action-app strong,
.profile-action-app span,
.profile-action-app small {
  display: block;
  min-width: 0;
}
.profile-action-app strong {
  overflow: hidden;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-action-app span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-action-app small {
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.profile-action-empty {
  padding: 18px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
}
.profile-password-card {
  scroll-margin-top: 84px;
}
.profile-card-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.profile-password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.profile-password-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}
.profile-password-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}
.profile-password-form input:focus {
  background: #fff;
  border-color: rgba(107, 92, 255, .55);
  box-shadow: 0 0 0 4px rgba(107, 92, 255, .1);
}
.profile-password-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
}
.profile-password-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.profile-page-body #favorites,
.profile-page-body #likes,
.profile-page-body #tasks,
.profile-page-body #wallet {
  scroll-margin-top: 84px;
}

@media (max-width: 1180px) {
  .profile-grid,
  .profile-record-grid,
  .profile-wallet-grid.wallet-grid,
  .recharge-modal-grid.wallet-grid {
    grid-template-columns: 1fr;
  }
  .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-password-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .front-page-body .topbar {
    flex-wrap: wrap;
    gap: 10px 14px;
    min-height: auto;
    padding: 12px 16px;
  }
  .front-page-body .userbar {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-recharge-btn {
    min-height: 36px;
    padding: 8px 14px 8px 10px;
  }
  .recharge-modal,
  .recharge-modal-card {
    max-height: 92vh;
  }
  .recharge-modal-card {
    padding: 18px;
  }
  .recharge-modal-head {
    align-items: stretch;
    flex-direction: column;
    padding-right: 34px;
  }
  .recharge-modal-head h3 {
    font-size: 22px;
  }
  .recharge-modal-grid .wallet-card {
    padding: 16px;
    border-radius: 18px;
  }
  .recharge-simple-card {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }
  .recharge-simple-head {
    gap: 12px;
    margin-bottom: 14px;
  }
  .recharge-simple-balance {
    width: 100%;
  }
  .recharge-simple-section {
    padding: 14px;
    border-radius: 16px;
  }
  .recharge-method-actions .btn,
  .recharge-current-order .btn {
    width: 100%;
  }
  .recharge-current-order-head {
    grid-template-columns: 1fr;
  }
  .recharge-pay-code .pay-code-layout {
    grid-template-columns: 1fr;
  }
  .recharge-pay-code .pay-qr-img {
    width: 132px;
    height: 132px;
  }
  .recharge-order-item {
    align-items: stretch;
    flex-direction: column;
  }
  .recharge-order-item .btn {
    width: 100%;
  }
  .recharge-simple-foot {
    text-align: left;
  }
  .profile-empty,
  .profile-card {
    padding: 16px;
    border-radius: 18px;
  }
  .profile-actions,
  .profile-list-item,
  .profile-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-action-app {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 82px;
  }
  .profile-action-cover {
    width: 72px;
    height: 62px;
  }
  .profile-password-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }
  .profile-balance-card strong {
    font-size: 38px;
  }
}

.user-admin-main { min-width: 260px; }
.user-admin-row input {
  height: 38px;
  padding: 0 10px;
  min-width: 0;
}
.order-admin { align-items: center; }

.admin-form {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr 100px 80px 120px 90px 86px 86px 86px 76px auto auto;
  gap: 10px;
  align-items: center;
}
.admin-form input,
.admin-form select {
  padding: 10px;
  min-width: 0;
}
.admin-check {
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
}
.admin-check input {
  width: auto;
  margin-right: 5px;
}
.field-editor {
  grid-column: 1 / -1;
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.field-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.field-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 90px 120px 90px 120px 1fr 74px 74px 86px auto;
  gap: 8px;
  align-items: center;
}
.field-row input,
.field-row select {
  width: 100%;
  padding: 9px;
  background: #fff;
}
.field-row label {
  font-size: 13px;
  color: #475569;
}
.field-row label input {
  width: auto;
  margin-right: 4px;
}
.field-row-enhanced {
  grid-template-columns: 86px 110px 92px 130px minmax(150px, 1fr) minmax(150px, 1fr) minmax(140px, 1fr) 90px 72px 70px 70px 70px auto;
}
.rh-admin-card {
  display: grid;
  gap: 16px;
}
.rh-admin-shell {
  display: grid;
  gap: 18px;
}
.rh-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rh-status-card {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.rh-status-card span,
.rh-status-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rh-status-card strong {
  overflow: hidden;
  color: #111318;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rh-status-card.ok { border-color: #bbf7d0; background: linear-gradient(180deg, #fff, #f0fdf4); }
.rh-status-card.warn { border-color: #fde68a; background: linear-gradient(180deg, #fff, #fffbeb); }
.rh-status-card.danger { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fef2f2); }
.rh-status-card.muted { background: #f8fafc; }
.rh-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: 18px;
  align-items: start;
}
.rh-panel {
  display: grid;
  gap: 16px;
}
.rh-config-form,
.rh-inspect-form {
  display: grid;
  gap: 16px;
}
.rh-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}
.rh-danger-panel {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
}
.rh-danger-panel strong {
  color: #9a3412;
}
.rh-danger-panel p {
  margin: 0;
  color: #9a3412;
  font-size: 12px;
}
.rh-field-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.rh-field-summary.empty {
  place-items: center;
  min-height: 210px;
  text-align: center;
}
.rh-empty-state {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.rh-empty-state strong {
  color: #111318;
}
.rh-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.rh-summary-head div {
  display: grid;
  gap: 5px;
}
.rh-summary-head strong {
  color: #111318;
}
.rh-summary-head span,
.rh-summary-more {
  color: var(--muted);
  font-size: 12px;
}
.rh-field-table {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.rh-field-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12px;
}
.rh-field-table th,
.rh-field-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.rh-field-table th {
  color: #667085;
  background: #f8fafc;
  font-weight: 900;
}
.rh-field-table tr:last-child td {
  border-bottom: 0;
}
.rh-raw-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rh-raw-panel summary {
  padding: 14px 16px;
  color: #475569;
  cursor: pointer;
  font-weight: 900;
}
.rh-raw-panel .rh-inspect-result {
  margin: 0 14px 14px;
}
.rh-config-status,
.admin-output-links,
.admin-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.rh-config-status {
  padding: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
}
.rh-inspect-result {
  padding: 14px;
  background: #0f172a;
  border-radius: 16px;
  color: #dbeafe;
  overflow: auto;
}
.rh-inspect-result pre {
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 0;
  white-space: pre-wrap;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.6;
}
.admin-check-line {
  position: relative;
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  padding: 0;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  vertical-align: middle;
}
.admin-check-line:hover {
  color: #111827;
}
.admin-check-line input[type="checkbox"] {
  position: absolute;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.admin-switch-ui {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .16);
  transition: background .18s ease, box-shadow .18s ease;
}
.admin-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .22);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.admin-switch-text {
  min-width: 0;
  line-height: 1.4;
}
.admin-check-line input[type="checkbox"]:checked + .admin-switch-ui {
  background: #3f4a5f;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .2);
}
.admin-check-line input[type="checkbox"]:checked + .admin-switch-ui::after {
  transform: translateX(22px);
}
.admin-check-line:has(input[type="checkbox"]:checked) {
  color: #1f2937;
}
.admin-check-line:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgba(63, 74, 95, .18);
  outline-offset: 3px;
}
.admin-check-line:has(input[type="checkbox"]:disabled) {
  cursor: not-allowed;
  opacity: .58;
}
.admin-check-line.danger {
  color: #9a3412;
}
.admin-check-line.danger:hover,
.admin-check-line.danger:has(input[type="checkbox"]:checked) {
  color: #7c2d12;
}
.admin-check-line.danger .admin-switch-ui {
  background: #fed7aa;
}
.admin-check-line.danger input[type="checkbox"]:checked + .admin-switch-ui {
  background: #f97316;
  box-shadow: inset 0 1px 2px rgba(124, 45, 18, .2);
}
.admin-check-line.danger:has(input[type="checkbox"]:focus-visible) {
  outline-color: rgba(249, 115, 22, .22);
}
.storage-config-form .storage-pill-switch {
  position: relative;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 14px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.storage-config-form .storage-pill-switch:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.storage-config-form .storage-pill-switch input[type="checkbox"] {
  position: absolute;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.storage-pill-switch-control {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
  height: 34px;
  padding: 3px;
  background: #e2e8f0;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .14);
  transition: background .18s ease, box-shadow .18s ease;
}
.storage-pill-switch-control::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 43px;
  height: 28px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
  transform: translateX(0);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.storage-pill-switch-control span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: color .18s ease;
}
.storage-pill-switch input[type="checkbox"]:checked + .storage-pill-switch-control {
  background: #243047;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .24);
}
.storage-pill-switch input[type="checkbox"]:checked + .storage-pill-switch-control::before {
  transform: translateX(43px);
}
.storage-pill-switch input[type="checkbox"]:checked + .storage-pill-switch-control span:last-child,
.storage-pill-switch input[type="checkbox"]:not(:checked) + .storage-pill-switch-control span:first-child {
  color: #111827;
}
.storage-pill-switch input[type="checkbox"]:checked + .storage-pill-switch-control span:first-child,
.storage-pill-switch input[type="checkbox"]:not(:checked) + .storage-pill-switch-control span:last-child {
  color: #94a3b8;
}
.storage-pill-switch-text {
  min-width: 0;
  line-height: 1.45;
}
.storage-pill-switch:has(input[type="checkbox"]:checked) {
  color: #111827;
}
.storage-pill-switch:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgba(36, 48, 71, .16);
  outline-offset: 3px;
}
.storage-test-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 16px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.storage-test-result[hidden] {
  display: none;
}
.storage-test-result a {
  color: var(--brand-dark);
  font-weight: 900;
}
.storage-test-result small {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.storage-test-result pre {
  overflow: auto;
  max-height: 240px;
  margin: 0;
  padding: 12px;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  white-space: pre-wrap;
}
.storage-test-result.loading {
  color: #475569;
  background: #f8fafc;
}
.storage-test-result.ok {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.storage-test-result.danger {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
@media (max-width: 760px) {
  .admin-check-line {
    gap: 8px;
  }
}
.admin-output-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.admin-task-card .admin-table td {
  vertical-align: top;
}
.admin-task-card small,
.admin-task-card span {
  color: #64748b;
}
.admin-content-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-content-stats div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.admin-content-stats span,
.admin-content-info span,
.admin-content-info small {
  color: #64748b;
  font-size: 12px;
}
.admin-content-stats strong {
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
}
.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.admin-content-item {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.admin-content-preview {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}
.admin-content-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.admin-content-type {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(15, 23, 42, .78);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.admin-content-type.video {
  background: rgba(79, 70, 229, .82);
}
.admin-content-info {
  display: grid;
  gap: 5px;
  padding: 14px 14px 0;
}
.admin-content-info strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-content-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-content-recommended {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.admin-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}
@media (max-width: 760px) {
  .admin-content-stats {
    grid-template-columns: 1fr;
  }
  .admin-content-grid {
    grid-template-columns: 1fr;
  }
}

.modal {
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 30px 100px rgba(15, 23, 42, .35);
}
.modal::backdrop { background: rgba(15, 23, 42, .45); }
.modal-card {
  width: min(420px, 92vw);
  padding: 26px;
  position: relative;
}
.recharge-modal {
  width: min(1080px, 94vw);
  max-height: 88vh;
  overflow: hidden;
}
.recharge-modal-card {
  width: 100%;
  max-height: 88vh;
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fbf7ff 50%, #f4f7ff 100%);
}
.recharge-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-right: 42px;
}
.recharge-modal-head h3 {
  margin: 5px 0 8px;
  font-size: 26px;
  line-height: 1.15;
}
.recharge-modal-head p {
  margin: 0;
  color: var(--muted);
}
.recharge-balance-card {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  min-height: 42px;
  padding: 4px 14px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .42), transparent 28%),
    radial-gradient(circle at 92% 86%, rgba(129, 140, 248, .34), transparent 34%),
    linear-gradient(135deg, #111827 0%, #27216b 48%, #6557ff 100%);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 13px;
  box-shadow: 0 10px 20px rgba(79, 70, 229, .18), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.recharge-balance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(255, 255, 255, .18), transparent 42%);
}
.recharge-balance-card::after {
  content: "";
  position: absolute;
  right: -13px;
  bottom: -18px;
  z-index: -1;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, .11);
  border-radius: 999px;
}
.recharge-balance-icon {
  display: none;
}
.recharge-balance-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  line-height: 1;
}
.recharge-balance-meta small {
  display: inline-block;
  color: rgba(255, 255, 255, .94);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}
.recharge-balance-value {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  line-height: 1;
}
.recharge-balance-value strong {
  display: inline-block;
  color: #fff36d;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255, 243, 109, .55), 0 1px 0 rgba(0, 0, 0, .12);
}
.recharge-modal-grid.wallet-grid {
  grid-template-columns: minmax(230px, .8fr) minmax(320px, 1fr) minmax(260px, .85fr);
}
.recharge-modal-grid .wallet-card {
  border-color: rgba(107, 92, 255, .16);
}
.recharge-modal-grid .mini-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}
#ledgerList .mini-item strong {
  flex: 0 0 auto;
  white-space: nowrap;
}
.recharge-modal-grid .pay-panel {
  margin-bottom: 12px;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}
.modal-card input {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 12px;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.modal-actions .btn {
  flex: 0 0 auto;
}
.auth-modal {
  width: min(394px, calc(100vw - 14px));
  max-height: min(680px, calc(100vh - 18px));
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 70px rgba(15, 23, 42, .16);
}
.auth-modal::backdrop {
  background: rgba(15, 23, 42, .08);
}
.auth-card {
  display: grid;
  width: 100%;
  gap: 15px;
  padding: 30px 30px 32px;
  color: #172033;
  background: #fff;
}
.auth-modal-close {
  display: none;
}
.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.auth-brand-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #111827;
}
.auth-brand-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-brand h3 {
  margin: 0;
  color: #121a2d;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .01em;
}
.auth-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  margin: 5px 0 6px;
  background: #f8fafc;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .03);
}
.auth-tabs button {
  min-width: 56px;
  height: 33px;
  padding: 0 14px;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.auth-tabs button.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .13);
}
.auth-tabs button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.auth-field {
  display: grid;
  gap: 9px;
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}
.auth-field[hidden],
.auth-forgot[hidden] {
  display: none !important;
}
.auth-field > span {
  line-height: 1;
}
.auth-card .auth-field input,
.modal-card.auth-card .auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin: 0;
  color: #0f172a;
  background: #eaf2ff;
  border: 0;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
}
.auth-card .auth-field input::placeholder {
  color: #8aa0bd;
  opacity: 1;
}
.auth-card .auth-field input:disabled {
  color: #94a3b8;
  background: #f4f4f5;
  cursor: not-allowed;
}
.auth-card .auth-field input:focus {
  background: #e5efff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .16);
}
.auth-code-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 9px;
}
.auth-code-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: stretch;
  margin: 0;
}
.auth-code-row[hidden] {
  display: none !important;
}
.modal-card.auth-card .auth-code-row input {
  height: 44px;
  margin: 0;
}
.auth-card .auth-code-btn,
.modal-card.auth-card .auth-code-btn,
body.front-page-body:not(.profile-page-body) .auth-card .auth-code-btn {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  color: #111827;
  background: #f4f4f5;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}
.auth-submit-row {
  margin-top: 1px;
}
.auth-submit-row .auth-submit-btn {
  width: 100%;
  height: 47px;
  justify-content: center;
  color: #fff;
  background: #10182b;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 950;
}
.auth-forgot {
  justify-self: center;
  padding: 0;
  margin-top: 1px;
  color: #8aa0bd;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.auth-error {
  min-height: 18px;
  margin-top: -2px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
}
.error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 12px;
}
.auth-code-btn:disabled,
.auth-tabs button:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  box-shadow: none;
}

@media (max-width: 430px) {
  .auth-modal {
    width: min(394px, 100vw);
    max-height: min(680px, 100vh);
  }
  .auth-card {
    padding: 30px 29px 31px;
  }
}

@media (max-width: 1100px) {
  .rh-app-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .runner { position: static; }
  .wallet-layout { grid-template-columns: 1fr; }
  .recharge-modal-grid.wallet-grid { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
  }
  .userbar {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .recharge-modal,
  .recharge-modal-card {
    max-height: 92vh;
  }
  .recharge-modal-card {
    padding: 18px;
  }
  .recharge-modal-head {
    align-items: stretch;
    flex-direction: column;
    padding-right: 34px;
  }
  .recharge-balance-card {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
  }
  .recharge-modal-head h3 {
    font-size: 22px;
  }
  .recharge-modal-grid .wallet-card {
    padding: 16px;
    border-radius: 18px;
  }
  .rh-hero { padding: 18px 14px 6px; }
  .rh-titlebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
  }
  .rh-titlebar h1 { font-size: 28px; }
  .section { padding: 0 14px; }
  .rh-filterbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .market-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .search,
  .sort-select { width: 100%; }
  .rh-app-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .app-body h3 { font-size: 14px; min-height: 40px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .task-item,
  .mini-item,
  .user-admin-row { flex-direction: column; display: flex; }
  .admin-form,
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .front-page-body .topbar {
    padding: 12px 16px;
  }
  .front-page-body .rh-hero {
    padding: 18px 14px 6px;
  }
  .front-page-body .section {
    padding: 0 14px;
  }
  .front-page-body .rh-app-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

@media (max-width: 430px) {
  .rh-app-row { grid-template-columns: 1fr; }
  .front-page-body .rh-app-row { grid-template-columns: 1fr; }
}

/* Admin console cleanup */
.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-head {
  align-items: center;
  padding: 24px 26px;
  background: linear-gradient(135deg, #f8f7ff, #fff);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.admin-console {
  display: grid;
  gap: 22px;
}
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.admin-stat-card {
  min-height: 118px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(22, 28, 45, .045);
}
.admin-stat-card span {
  display: block;
  color: #737987;
  font-size: 13px;
  font-weight: 800;
}
.admin-stat-card strong {
  display: block;
  margin: 10px 0 6px;
  color: #14161c;
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}
.admin-stat-card small {
  color: #9aa0aa;
  font-size: 12px;
}
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 18px;
  align-items: start;
}
.admin-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.admin-panel-wide { grid-column: 1 / -1; }
.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.admin-panel-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}
.admin-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.admin-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  color: #6b7280;
  background: #f8fafc;
  font-weight: 900;
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td span { color: var(--muted); }
.admin-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.admin-badge.ok { color: #047857; background: #ecfdf5; }
.admin-badge.warn { color: #b45309; background: #fffbeb; }
.admin-badge.danger { color: #b91c1c; background: #fef2f2; }
.admin-muted {
  color: #9aa0aa;
  font-size: 12px;
}
.btn.compact {
  padding: 7px 11px;
  font-size: 12px;
}
.admin-mini-input,
.admin-note-input {
  height: 36px;
  width: 100%;
  min-width: 96px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.admin-note-input { min-width: 150px; }
.admin-row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.admin-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}
.admin-app-list {
  display: grid;
  gap: 16px;
}
.admin-app-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.admin-app-side {
  position: relative;
}
.admin-app-side img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #eef0f4;
}
.admin-app-side .admin-badge {
  position: absolute;
  left: 10px;
  top: 10px;
}
.admin-app-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
}
.admin-app-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.admin-app-title-row strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}
.admin-app-title-row span {
  color: var(--muted);
  font-size: 13px;
}
.admin-app-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #5f6673;
  font-size: 12px;
  font-weight: 900;
}
.admin-form-grid input,
.admin-form-grid select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  color: #15161a;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.admin-form-grid .admin-featured {
  justify-content: flex-end;
  padding-bottom: 8px;
  flex-direction: row;
  align-items: center;
  color: #15161a;
}
.admin-form-grid .admin-featured input {
  width: auto;
  height: auto;
}
.admin-app-card .field-editor {
  grid-column: 1 / -1;
  margin-top: 0;
  background: #fff;
}

@media (max-width: 1100px) {
  .admin-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-panel { padding: 16px; }
  .admin-app-card { grid-template-columns: 1fr; }
  .admin-app-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-app-actions { flex-wrap: wrap; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* Admin workbench */
.admin-console {
  display: block;
}
.admin-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.admin-sidebar,
.admin-main,
.admin-card,
.admin-drawer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.admin-sidebar {
  position: sticky;
  top: 84px;
  align-self: stretch;
  padding: 16px;
}
.admin-sidebar-title {
  padding: 10px 10px 16px;
  border-bottom: 1px solid var(--line);
}
.admin-sidebar-title strong,
.admin-sidebar-title span {
  display: block;
}
.admin-sidebar-title strong {
  font-size: 17px;
}
.admin-sidebar-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.admin-nav-item {
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  color: #535b69;
  background: transparent;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
}
.admin-nav-item strong,
.admin-nav-item span {
  display: block;
}
.admin-nav-item strong {
  color: #17191f;
  font-size: 14px;
}
.admin-nav-item span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-nav-item:hover,
.admin-nav-item.active {
  background: #f3f6ff;
}
.admin-nav-item.active {
  box-shadow: inset 3px 0 0 var(--primary);
}
.admin-main {
  min-width: 0;
  padding: 18px;
}
.admin-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid var(--line);
}
.admin-main-head h3 {
  margin: 4px 0 6px;
  font-size: 24px;
}
.admin-main-head p {
  margin: 0;
  color: var(--muted);
}
.admin-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}
.admin-notice.ok {
  color: #047857;
  background: #ecfdf5;
}
.admin-notice.danger {
  color: #b91c1c;
  background: #fef2f2;
}
.admin-workspace {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-kpi {
  padding: 18px;
  text-align: left;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
}
.admin-kpi span,
.admin-kpi small,
.admin-count {
  color: var(--muted);
  font-size: 13px;
}
.admin-kpi strong {
  display: block;
  margin: 8px 0 5px;
  color: #111318;
  font-size: 28px;
}
.admin-card {
  padding: 18px;
  box-shadow: none;
}
.admin-card-head,
.admin-drawer-head,
.admin-module-toolbar,
.admin-action-row,
.admin-sticky-actions,
.admin-app-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.admin-card-head h4,
.admin-drawer-head h4,
.admin-form-section h5 {
  margin: 0 0 6px;
}
.admin-card-head p,
.admin-drawer-head p,
.admin-form-section p {
  margin: 0;
  color: var(--muted);
}
.admin-todo-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.admin-todo-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
}
.admin-todo-item span {
  color: var(--muted);
  font-size: 13px;
}
.admin-module-toolbar {
  flex-wrap: wrap;
  padding: 4px 0;
}
.admin-search,
.admin-select-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f6673;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.admin-content-toolbar .admin-select-label,
.admin-content-toolbar .admin-search {
  flex: 0 0 auto;
}
.admin-content-toolbar .admin-select-label select {
  width: 168px;
}
.admin-content-toolbar .admin-search input {
  width: 280px;
}
.admin-search input,
.admin-select-label select,
.admin-action-form input,
.admin-action-form select,
.admin-editor-form input,
.admin-editor-form select,
.admin-editor-form textarea,
.admin-field-editor input,
.admin-field-editor select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  outline: none;
}
.admin-search input,
.admin-select-label select,
.admin-action-form input,
.admin-action-form select,
.admin-editor-form input,
.admin-editor-form select,
.admin-field-editor input,
.admin-field-editor select {
  height: 40px;
  padding: 0 12px;
}
.admin-editor-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}
.admin-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  background: #f3f6fb;
  border-radius: 999px;
}
.admin-tab {
  padding: 8px 14px;
  color: #5f6673;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}
.admin-tab.active {
  color: #111318;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 27, 40, .08);
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.admin-app-split {
  grid-template-columns: minmax(0, 1fr) 430px;
}
.admin-app-single {
  grid-template-columns: minmax(0, 1fr);
}
.admin-list-card {
  overflow: hidden;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.admin-table th,
.admin-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table th {
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}
.admin-table td span {
  color: var(--muted);
}
.admin-click-table tr {
  cursor: pointer;
}
.admin-click-table tbody tr:hover,
.admin-click-table tbody tr.active {
  background: #f7f9ff;
}
.admin-drawer {
  position: sticky;
  top: 86px;
  padding: 18px;
  box-shadow: none;
}
.admin-drawer-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}
.admin-drawer-empty strong {
  color: #111318;
}
.admin-user-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
}
.admin-user-balance span {
  color: var(--muted);
}
.admin-user-balance strong {
  font-size: 26px;
}
.admin-user-toolbar {
  align-items: flex-end;
}
.admin-user-split {
  grid-template-columns: minmax(0, 1fr) 430px;
}
.admin-user-single {
  grid-template-columns: minmax(0, 1fr);
}
.admin-user-drawer {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.admin-user-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(10px);
}
.admin-user-modal {
  width: min(1180px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}
.admin-user-create-modal {
  width: min(680px, 100%);
}
.admin-manage-modal {
  width: min(980px, 100%);
}
.admin-category-modal {
  width: min(760px, 100%);
}
.admin-app-modal {
  width: min(1040px, 100%);
}
.admin-manage-modal .admin-form-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.admin-user-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.admin-user-modal-head h4 {
  margin: 0 0 6px;
  color: #111318;
  font-size: 20px;
}
.admin-user-modal-head p {
  margin: 0;
  color: var(--muted);
}
.admin-user-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user-modal-body {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 146px);
  overflow: auto;
  padding: 18px 22px 22px;
}
.admin-user-modal-summary {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.admin-user-modal-summary .admin-user-balance {
  margin: 0;
}
.admin-user-settings-grid,
.admin-user-history-grid {
  display: grid;
  gap: 14px;
}
.admin-user-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
}
.admin-user-settings-grid .admin-user-action-panel,
.admin-user-settings-grid .admin-user-status-panel {
  margin: 0;
  min-height: 100%;
}
.admin-user-history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.admin-user-table {
  min-width: 860px;
}
.admin-user-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-user-stat-grid div {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-user-stat-grid span,
.admin-mini-item span,
.admin-mini-item small {
  color: var(--muted);
  font-size: 12px;
}
.admin-user-stat-grid strong {
  color: #111318;
  font-size: 14px;
}
.admin-user-action-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}
.admin-user-action-panel h5,
.admin-user-detail-section h5 {
  margin: 0;
  color: #111318;
  font-size: 14px;
}
.admin-user-detail-section {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.admin-user-profile-modal {
  width: min(1120px, 100%);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}
.admin-user-profile-head {
  padding: 18px 22px 16px;
  background: #fff;
}
.admin-user-profile-head h4 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}
.admin-user-profile-head p {
  color: #8a93a3;
  font-size: 13px;
}
.admin-user-profile-body {
  gap: 16px;
  padding: 18px 22px 22px;
  background: #fff;
}
.admin-user-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.admin-user-profile-stat {
  display: grid;
  gap: 8px;
  min-height: 68px;
  padding: 15px 16px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid #e8edf4;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}
.admin-user-profile-stat span {
  color: #8b94a3;
  font-size: 12px;
  font-weight: 800;
}
.admin-user-profile-stat strong {
  overflow: hidden;
  color: #111318;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-profile-stat.balance strong {
  font-size: 30px;
  line-height: 1;
  text-align: right;
}
.admin-user-control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.admin-user-control-card,
.admin-user-status-card {
  min-height: 196px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}
.admin-user-control-card h5,
.admin-user-status-card h5 {
  margin: 0 0 8px;
  color: #151821;
  font-size: 14px;
  font-weight: 950;
}
.admin-user-control-card input,
.admin-user-control-card select {
  width: 100%;
  min-height: 38px;
  padding: 10px 12px;
  background: #fbfcfe;
  border-color: #e3e8f0;
  border-radius: 12px;
  font-weight: 800;
}
.admin-user-control-card input:disabled {
  color: #151821;
  background: #eef4ff;
  opacity: 1;
}
.admin-user-control-card .btn,
.admin-user-status-card .btn {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 950;
}
.admin-user-control-card > .btn,
.admin-user-status-card > .btn {
  align-self: end;
  width: 100%;
}
.admin-user-control-card .admin-action-row {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-user-control-card .admin-action-row .btn {
  width: 100%;
}
.admin-user-status-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
  background: #fff8ed;
  border-color: #f6dfbd;
}
.admin-user-status-card.ok {
  background: #f2fbf5;
  border-color: #c9efd4;
}
.admin-user-status-card p {
  margin: 0;
  color: #9a5b1b;
  font-size: 13px;
  line-height: 1.6;
}
.admin-user-status-card.ok p {
  color: #14733d;
}
.admin-user-profile-history {
  grid-template-columns: 1fr 1fr .95fr;
  gap: 14px;
}
.admin-user-profile-history .admin-user-detail-section {
  min-height: 120px;
  padding: 0;
}
.admin-user-profile-history .admin-user-detail-section h5 {
  margin-bottom: 2px;
  font-size: 13px;
}
.admin-user-profile-history .admin-mini-item,
.admin-user-profile-history .admin-mini-empty {
  border-radius: 14px;
}
@media (max-width: 1180px) {
  .admin-user-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-user-status-card {
    min-height: 160px;
  }
}
@media (max-width: 820px) {
  .admin-user-profile-stats,
  .admin-user-control-grid,
  .admin-user-profile-history {
    grid-template-columns: 1fr;
  }
  .admin-user-profile-modal {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }
  .admin-user-profile-head {
    align-items: flex-start;
    padding: 16px;
  }
  .admin-user-profile-body {
    padding: 14px 16px 18px;
  }
}
.admin-category-split {
  grid-template-columns: minmax(0, 1fr) 420px;
}
.admin-category-single {
  grid-template-columns: minmax(0, 1fr);
}
.admin-category-table {
  min-width: 760px;
}
.admin-category-table td:first-child strong {
  color: #111318;
}
.admin-category-editor {
  display: grid;
  gap: 14px;
}
.admin-category-bind-count {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-category-bind-count div {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-category-bind-count span {
  color: var(--muted);
  font-size: 12px;
}
.admin-category-bind-count strong {
  color: #111318;
  font-size: 24px;
}
.admin-mini-list {
  display: grid;
  gap: 8px;
}
.admin-mini-item {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-mini-item strong {
  color: #111318;
  font-size: 13px;
}
.admin-mini-empty {
  padding: 12px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}
.admin-action-form {
  display: grid;
  gap: 12px;
}
.admin-action-form label,
.admin-editor-form label,
.admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #5f6673;
  font-size: 12px;
  font-weight: 900;
}
.admin-danger-zone {
  margin-top: 18px;
  padding: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
}
.admin-danger-zone p {
  margin: 6px 0 12px;
  color: #9a3412;
  font-size: 13px;
}
.admin-app-master {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.admin-app-list-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}
.admin-app-list-item.active,
.admin-app-list-item:hover {
  border-color: #b9c6ff;
  background: #f7f9ff;
}
.admin-app-list-media {
  width: 96px;
  height: 68px;
  overflow: hidden;
  background: #eef0f4;
  border-radius: 14px;
}
.admin-app-list-media img,
.admin-app-list-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-app-list-item strong,
.admin-app-list-item span,
.admin-app-list-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app-list-item span,
.admin-app-list-item small {
  margin-top: 4px;
  color: var(--muted);
}
.admin-app-list-actions {
  justify-content: flex-end;
}
.admin-editor-form {
  display: grid;
  gap: 16px;
}
.admin-form-section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.admin-form-grid {
  display: grid;
  gap: 12px;
}
.admin-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-form-grid .wide {
  grid-column: 1 / -1;
}
.admin-check {
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  color: #111318 !important;
}
.admin-check input {
  width: auto;
  height: auto;
}
.admin-sticky-actions {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), #fff 50%);
}
.site-admin-shell,
.site-config-form,
.site-setting-grid {
  display: grid;
  gap: 18px;
}
.site-config-form .admin-form-grid .admin-check-line,
.site-config-form .admin-check-line {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: #334155;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.site-config-form .admin-check-line:hover {
  color: #111827;
  transform: none !important;
}
.site-config-form .admin-check-line .admin-switch-ui {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 24px !important;
}
.site-config-form .admin-check-line .admin-switch-ui::after {
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
}
.site-config-form .admin-check-line input[type="checkbox"]:checked + .admin-switch-ui::after {
  transform: translateX(22px) !important;
}
.site-config-form .admin-check-line .admin-switch-text {
  min-width: 0;
  line-height: 1.4;
}
.rh-config-form .admin-form-grid .admin-check-line,
.rh-config-form .admin-check-line {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: #334155;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.rh-config-form .admin-check-line:hover {
  color: #111827;
  transform: none !important;
}
.rh-config-form .admin-check-line .admin-switch-ui {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 24px !important;
}
.rh-config-form .admin-check-line .admin-switch-ui::after {
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
}
.rh-config-form .admin-check-line input[type="checkbox"]:checked + .admin-switch-ui::after {
  transform: translateX(22px) !important;
}
.rh-config-form .admin-check-line .admin-switch-text {
  min-width: 0;
  line-height: 1.4;
}
#adminRechargePlanForm .admin-form-grid .admin-check-line,
#adminRechargePlanForm .admin-check-line {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: #334155;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#adminRechargePlanForm .admin-check-line:hover {
  color: #111827;
  transform: none !important;
}
#adminRechargePlanForm .admin-check-line .admin-switch-ui {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 24px !important;
}
#adminRechargePlanForm .admin-check-line .admin-switch-ui::after {
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
}
#adminRechargePlanForm .admin-check-line input[type="checkbox"]:checked + .admin-switch-ui::after {
  transform: translateX(22px) !important;
}
#adminRechargePlanForm .admin-check-line .admin-switch-text {
  min-width: 0;
  line-height: 1.4;
}
#adminPaymentConfigForm .admin-form-grid .admin-check-line,
#adminPaymentConfigForm .admin-check-line {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: #334155;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#adminPaymentConfigForm .admin-check-line:hover {
  color: #111827;
  transform: none !important;
}
#adminPaymentConfigForm .admin-check-line .admin-switch-ui {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 24px !important;
}
#adminPaymentConfigForm .admin-check-line .admin-switch-ui::after {
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
}
#adminPaymentConfigForm .admin-check-line input[type="checkbox"]:checked + .admin-switch-ui::after {
  transform: translateX(22px) !important;
}
#adminPaymentConfigForm .admin-check-line .admin-switch-text {
  min-width: 0;
  line-height: 1.4;
}
#adminAppForm .admin-form-grid .admin-check-line,
#adminAppForm .admin-check-line {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 24px !important;
  padding: 0 !important;
  color: #334155;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#adminAppForm .admin-check-line:hover {
  color: #111827;
  transform: none !important;
}
#adminAppForm .admin-check-line .admin-switch-ui {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 24px !important;
}
#adminAppForm .admin-check-line .admin-switch-ui::after {
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
}
#adminAppForm .admin-check-line input[type="checkbox"]:checked + .admin-switch-ui::after {
  transform: translateX(22px) !important;
}
#adminAppForm .admin-check-line .admin-switch-text {
  min-width: 0;
  line-height: 1.4;
}
.site-setting-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.site-setting-card {
  min-width: 0;
}
.site-setting-card .admin-card-head {
  margin-bottom: 16px;
}
.popup-notice-config-card {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-color: #e5e7eb;
  border-radius: 22px;
}
.popup-notice-card-head {
  min-height: 58px;
  margin-bottom: 0 !important;
  padding: 20px 18px 16px;
  border-bottom: 1px solid #eef0f3;
}
.popup-notice-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.popup-notice-title h4 {
  margin: 0;
  color: #101820;
  font-size: 18px;
  font-weight: 950;
}
.popup-notice-head-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.8px solid #94a3b8;
  border-radius: 4px;
}
.popup-notice-head-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  background: #fff;
  border-left: 1.8px solid #94a3b8;
  border-bottom: 1.8px solid #94a3b8;
  transform: skew(-24deg);
}
.popup-notice-body {
  display: grid;
  gap: 20px;
  padding: 20px 18px 40px;
}
.popup-notice-setting-block,
.popup-notice-field {
  display: grid;
  gap: 9px;
  color: #303a34;
  font-size: 14px;
  font-weight: 950;
}
.popup-notice-setting-block {
  justify-items: start;
  gap: 8px;
}
.popup-notice-setting-block > span {
  color: #8c968e;
  font-size: 13px;
  font-weight: 800;
}
.popup-notice-toggle-only {
  min-height: 24px;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}
.popup-notice-toggle-only:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.popup-notice-toggle-only .admin-switch-text {
  display: none;
}
.popup-notice-toggle-only:has(input[type="checkbox"]:checked) {
  background: transparent;
  border-color: transparent;
}
.popup-notice-toggle-only .admin-switch-ui {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  background: #cbd5e1;
  border-radius: 999px;
}
.popup-notice-toggle-only .admin-switch-ui::after {
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px;
}
.popup-notice-toggle-only input[type="checkbox"]:checked + .admin-switch-ui {
  background: #3f4a5f;
}
.popup-notice-toggle-only input[type="checkbox"]:checked + .admin-switch-ui::after {
  transform: translateX(22px) !important;
}
.popup-notice-field input,
.popup-notice-field select,
.popup-notice-field textarea {
  width: 100%;
  color: #263238;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  outline: none;
}
.popup-notice-field input,
.popup-notice-field select {
  height: 42px;
  padding: 0 14px;
}
.popup-notice-field textarea {
  min-height: 86px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}
.popup-notice-field input:focus,
.popup-notice-field select:focus,
.popup-notice-field textarea:focus {
  border-color: #b8c0cc;
  box-shadow: 0 0 0 3px rgba(63, 74, 95, .08);
}
.site-config-form textarea {
  line-height: 1.6;
}
.email-config-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #eef7ff 100%);
  border-color: #dbeafe;
}
.email-config-card::before {
  content: "";
  position: absolute;
  right: -64px;
  top: -78px;
  width: 174px;
  height: 174px;
  background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 66%);
  pointer-events: none;
}
.email-config-card > * {
  position: relative;
}
.email-config-head h4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.email-config-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  border: 2px solid #2563eb;
  border-radius: 5px;
  background: #eff6ff;
}
.email-config-icon::before,
.email-config-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 9px;
  height: 2px;
  background: #2563eb;
}
.email-config-icon::before {
  left: 1px;
  transform: rotate(35deg);
  transform-origin: left center;
}
.email-config-icon::after {
  right: 1px;
  transform: rotate(-35deg);
  transform-origin: right center;
}
.email-config-grid {
  padding: 14px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(191, 219, 254, .8);
  border-radius: 18px;
}
.site-config-form .email-config-card .admin-check-line {
  align-self: start;
  margin-bottom: 2px;
}
.email-config-card input,
.email-config-card select {
  border-color: #dbeafe;
  background: #fff;
}
.email-config-card input:focus,
.email-config-card select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}
.email-test-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px dashed #bfdbfe;
  border-radius: 18px;
}
.email-test-row input {
  margin: 0;
}
.email-test-row .btn {
  min-height: 40px;
}
.email-test-status {
  min-width: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}
.email-test-status.loading {
  color: #1d4ed8;
}
.email-test-status.ok {
  color: #047857;
}
.email-test-status.danger {
  color: #b91c1c;
}
.site-setting-actions {
  justify-content: flex-start;
}
.site-setting-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.site-setting-actions .site-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.site-setting-actions .site-save-status.loading {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.site-setting-actions .site-save-status.ok {
  color: #047857;
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.site-setting-actions .site-save-status.danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}
.admin-check-line input[type="checkbox"] {
  width: 1px !important;
  height: 1px !important;
}
.admin-warning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 18px;
}
.admin-warning span {
  font-size: 13px;
}
.admin-fields-shell {
  display: grid;
  gap: 16px;
}
.admin-fields-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #111827, #1e293b 58%, #334155);
  border-radius: 22px;
  color: #e5edf7;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.admin-fields-hero-main {
  display: grid;
  align-content: start;
  gap: 12px;
}
.admin-fields-hero-main h4 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}
.admin-fields-hero-main p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
}
.admin-fields-hero-main .admin-select-label {
  max-width: 520px;
  color: #e2e8f0;
}
.admin-fields-hero-main .admin-select-label select {
  background: rgba(255,255,255,.1);
  border-color: rgba(226,232,240,.22);
  color: #fff;
}
.admin-fields-hero-main .admin-select-label option {
  color: #111318;
}
.admin-fields-hero-side {
  display: grid;
  gap: 12px;
}
.admin-fields-rh-card,
.admin-fields-stat-grid div {
  min-width: 0;
  padding: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(226,232,240,.16);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}
.admin-fields-rh-card {
  display: grid;
  gap: 6px;
}
.admin-fields-rh-card span,
.admin-fields-rh-card small,
.admin-fields-stat-grid span {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-fields-rh-card strong {
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
}
.admin-fields-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-fields-stat-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
}
.admin-fields-stat-grid strong {
  color: #fff;
  font-size: 20px;
}
.admin-fields-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 18px;
  align-items: start;
}
.admin-fields-card,
.admin-field-preview-card {
  min-width: 0;
}
.admin-field-preview-card {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.admin-field-preview-form {
  display: grid;
  gap: 12px;
}
.admin-field-preview-result {
  display: grid;
  gap: 12px;
}
.admin-field-editor {
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}
.admin-field-editor .field-rows {
  gap: 14px;
  margin-bottom: 0;
}
.admin-field-editor .field-row,
.admin-field-editor .field-row-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.admin-field-card.disabled {
  background: #f8fafc;
  opacity: .78;
}
.admin-field-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-field-card-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.admin-field-card-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.admin-field-card-title strong {
  overflow: hidden;
  color: #111318;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-field-card-title small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-field-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-field-type-pill,
.admin-field-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.admin-field-type-pill {
  color: #1e3a8a;
  background: #dbeafe;
}
.admin-field-state-pill.warn {
  color: #92400e;
  background: #fef3c7;
}
.admin-field-state-pill.muted {
  color: #475569;
  background: #e2e8f0;
}
.admin-field-state-pill.danger {
  color: #991b1b;
  background: #fee2e2;
}
.admin-field-card-grid {
  display: grid;
  gap: 12px;
}
.admin-field-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-field-card-grid.three {
  grid-template-columns: minmax(120px, .9fr) minmax(140px, 1fr) minmax(120px, .7fr);
}
.admin-field-card-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}
.admin-field-card input,
.admin-field-card select {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
}
.admin-field-default-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.admin-field-default-row .admin-field-upload-btn {
  height: 42px;
  margin: 0;
  white-space: nowrap;
}
.admin-field-card input:focus,
.admin-field-card select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .16);
}
.admin-field-advanced {
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
}
.admin-field-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #334155;
  cursor: pointer;
  font-weight: 900;
}
.admin-field-advanced summary small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.admin-field-advanced .admin-field-card-grid {
  padding: 0 14px 14px;
}
.admin-field-switches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-fields-card .admin-empty {
  margin-top: 14px;
}

@media (max-width: 1280px) {
  .admin-fields-layout,
  .admin-fields-hero {
    grid-template-columns: 1fr;
  }
  .admin-field-preview-card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1180px) {
  .admin-workbench,
  .admin-split,
  .admin-app-split,
  .site-setting-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar,
  .admin-drawer {
    position: static;
  }
  .admin-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .admin-nav-item span {
    white-space: normal;
  }
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-main,
  .admin-card,
  .admin-drawer,
  .admin-sidebar {
    padding: 14px;
    border-radius: 18px;
  }
  .admin-main-head,
  .admin-card-head,
  .admin-drawer-head,
  .admin-module-toolbar,
  .admin-action-row,
  .admin-sticky-actions,
  .admin-app-list-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-nav {
    grid-template-columns: 1fr;
  }
  .admin-kpi-grid,
  .admin-form-grid.two,
  .admin-form-grid.three {
    grid-template-columns: 1fr;
  }
  .admin-todo-item,
  .admin-app-list-item {
    grid-template-columns: 1fr;
  }
  .admin-app-list-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6 / 1;
  }
  .admin-table {
    min-width: 680px;
  }
  .admin-fields-hero {
    padding: 14px;
    border-radius: 18px;
  }
  .admin-fields-hero-main h4 {
    font-size: 20px;
  }
  .admin-fields-stat-grid,
  .admin-field-card-grid.two,
  .admin-field-card-grid.three {
    grid-template-columns: 1fr;
  }
  .admin-fields-action-bar,
  .admin-field-card-head,
  .admin-field-card-actions,
  .admin-field-switches {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-field-editor .field-row {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .admin-field-card-title strong,
  .admin-field-card-title small {
    white-space: normal;
  }
  .admin-field-advanced summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .email-test-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .email-test-row .btn {
    width: 100%;
  }
  .auth-code-row {
    grid-template-columns: 1fr;
  }
  .auth-code-btn {
    width: 100%;
  }
  .admin-user-modal-backdrop {
    padding: 10px;
  }
  .admin-user-modal {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }
  .admin-user-modal-head,
  .admin-user-modal-head-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-user-modal-body {
    max-height: calc(100vh - 124px);
    padding: 14px;
  }
  .admin-user-modal-summary,
  .admin-user-settings-grid,
  .admin-user-history-grid,
  .admin-user-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .admin-page-body .admin-workbench {
    height: auto;
    grid-template-columns: 1fr;
  }
  .admin-page-body .admin-sidebar,
  .admin-page-body .admin-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .admin-page-body .topbar {
    padding: 0 14px;
  }
  .admin-page-body .admin-page > .section {
    padding: 12px;
  }
}

body.app-use-body {
  min-height: 100vh;
  overflow: hidden;
  color: #e7eef4;
  background: #0a0d12;
}
.app-use-loading .app-use-page {
  position: relative;
  background: #f8fafc;
}
.app-use-loading .app-use-sidebar,
.app-use-loading .app-use-stage {
  opacity: 0;
  pointer-events: none;
}
.app-use-loading .app-use-page::after {
  content: '正在加载应用...';
  position: absolute;
  left: 50%;
  top: 44%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #334155;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  font-size: 14px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}
html[data-theme="dark"] .app-use-loading .app-use-page {
  background: #050505;
}
html[data-theme="dark"] .app-use-loading .app-use-page::after {
  color: #f5f5f5;
  background: rgba(17, 17, 17, .96);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}
.app-use-ready .app-use-sidebar,
.app-use-ready .app-use-stage {
  opacity: 1;
}
.app-use-body .app-use-topbar {
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  color: #d7e0e8;
  background: rgba(14, 18, 24, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px);
}
.app-use-body .brand,
.app-use-body nav,
.app-use-body .userbar {
  color: #d7e0e8;
}
.app-use-body nav a:hover {
  color: #fff;
}
.app-use-body .brand-mark {
  background: linear-gradient(135deg, #28f0c7, #4b7cff);
}
.app-use-body .btn.ghost {
  color: #d7e0e8;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
}
.app-use-body .pill {
  color: #53f3d0;
  background: rgba(83, 243, 208, .1);
}
.app-use-page {
  display: grid;
  grid-template-columns: clamp(420px, 36vw, 500px) minmax(0, 1fr);
  height: calc(100vh - 56px);
  min-height: 0;
  background: radial-gradient(circle at 68% 28%, rgba(24, 74, 92, .14), transparent 32%), #0a0d12;
}
.app-use-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 24px 28px;
  background: #14191f;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.app-use-info-card,
.app-use-panel {
  background: #171d23;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 5px;
}
.app-use-info-card {
  padding: 12px 12px 14px;
}
.app-use-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.app-use-title-row h1 {
  margin: 0;
  color: #f7fbff;
  font-size: 15px;
  line-height: 1.35;
}
.app-use-title-row span {
  flex: 0 0 auto;
  color: #9daab6;
  font-size: 12px;
}
.app-use-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.app-use-tags span {
  padding: 5px 8px;
  color: #dce6ed;
  background: #1f2730;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.app-use-info-card p {
  margin: 0;
  color: #aab6c2;
  font-size: 12px;
  line-height: 1.7;
}
.app-use-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.app-use-author strong {
  color: #f7fbff;
  font-size: 12px;
}
.app-use-author span {
  color: #8c98a5;
  font-size: 12px;
}
.app-use-panel {
  padding: 12px 8px;
}
.app-use-panel h3 {
  margin: 0 4px 12px;
  color: #f7fbff;
  font-size: 14px;
}
.app-use-form .field {
  margin-bottom: 8px;
  padding: 10px 8px 12px;
  background: #11161c;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 4px;
}
.app-use-form .field label {
  color: #dce6ed;
  font-size: 12px;
}
.app-use-form .field input,
.app-use-form .field textarea,
.app-use-form .field select {
  color: #e9f0f5;
  background: #0e1218;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 3px;
}
.app-use-form .field input[type="file"] {
  padding: 10px;
  color: #9dabb7;
  background: #101821;
  border-style: dashed;
}
.app-use-form .field textarea {
  min-height: 86px;
}
.app-use-form .run-btn {
  height: 42px;
  margin-top: 10px;
  color: #07120f;
  background: linear-gradient(90deg, #3cf5c7, #d8ff58);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(76, 255, 197, .2);
}
.app-use-empty-fields {
  margin: 4px 4px 12px;
  padding: 10px;
  color: #facc15;
  background: rgba(250, 204, 21, .1);
  border: 1px solid rgba(250, 204, 21, .25);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
}
.app-use-status {
  min-height: 20px;
  margin: 10px 4px 0;
  color: #76e7ce;
  font-size: 12px;
}
.app-use-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 24px 18px;
}
.app-use-prompt {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto 22px;
  padding: 18px 58px 18px 22px;
  overflow: hidden;
  color: #b9c5ce;
  background: linear-gradient(135deg, rgba(55, 234, 196, .12), rgba(120, 166, 255, .08)), #1b252a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.app-use-prompt strong,
.app-use-prompt span {
  display: block;
  position: relative;
  z-index: 1;
}
.app-use-prompt strong {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: #f6fbff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}
.app-use-prompt strong::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #37eac4, #d8ff58);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(55, 234, 196, .12);
}
.app-use-prompt span {
  overflow: hidden;
  color: #a9b8c6;
  font-size: 13px;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-use-prompt.expanded {
  overflow: visible;
}
.app-use-prompt.expanded span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.app-use-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 58vh, 720px);
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
}
.app-use-cover-img {
  display: block;
  max-width: min(72vw, 680px);
  max-height: clamp(340px, 56vh, 700px);
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  cursor: zoom-in;
  transition: transform .16s ease, box-shadow .16s ease;
}
.app-use-cover-img:hover {
  box-shadow: 0 28px 90px rgba(0, 0, 0, .54);
  transform: translateY(-2px);
}
.app-use-preview .app-use-outputs {
  display: none;
  width: min(82vw, 980px);
  max-height: clamp(340px, 56vh, 700px);
  overflow: auto;
  place-items: center;
  margin: 0;
}
.app-use-preview.has-output .app-use-cover-img {
  display: none;
}
.app-use-preview.has-output .app-use-outputs {
  display: grid;
}
.app-use-preview .app-use-outputs img,
.app-use-preview .app-use-outputs video {
  width: auto;
  max-width: 100%;
  max-height: clamp(340px, 56vh, 700px);
  object-fit: contain;
  background: #05070a;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 4px;
}
.app-use-preview .app-use-outputs img {
  cursor: zoom-in;
}
.app-preview-lightbox-open {
  overflow: hidden;
}
.app-preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow: hidden;
  background: rgba(0, 0, 0, .82);
  opacity: 0;
  transition: opacity .18s ease;
}
.app-preview-lightbox.open {
  opacity: 1;
}
.app-preview-lightbox-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .38;
  transform: scale(1.08);
}
.app-preview-lightbox-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(.82) brightness(.45);
}
.app-preview-lightbox::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .12), rgba(0, 0, 0, .78));
  pointer-events: none;
}
.app-preview-lightbox-frame {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  max-width: min(82vw, 980px);
  max-height: min(86vh, 860px);
  margin: 0;
  transform: scale(.96);
  transition: transform .18s ease;
}
.app-preview-lightbox.open .app-preview-lightbox-frame {
  transform: scale(1);
}
.app-preview-lightbox-frame img {
  display: block;
  max-width: min(82vw, 980px);
  max-height: min(86vh, 860px);
  object-fit: contain;
  background: #05070a;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .58);
}
.app-preview-lightbox-close {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(12px);
}
@media (max-width: 760px) {
  .app-preview-lightbox {
    padding: 18px;
  }
  .app-preview-lightbox-frame,
  .app-preview-lightbox-frame img {
    max-width: 94vw;
    max-height: 82vh;
  }
  .app-preview-lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}
.app-use-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #8fa1ad;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  transform: translateY(-50%);
}
.app-use-arrow.left { left: 18px; }
.app-use-arrow.right { right: 18px; }
.app-use-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  padding: 3px 8px;
  color: #dfe7ed;
  background: rgba(0, 0, 0, .45);
  border-radius: 999px;
  font-size: 12px;
  transform: translateX(-50%);
}
.app-use-history {
  position: fixed;
  right: 24px;
  top: auto;
  bottom: 26px;
  z-index: 901;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px 0 18px;
  color: #17223b;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(104, 123, 255, .22);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(20, 36, 90, .14), 0 0 0 1px rgba(255, 255, 255, .78) inset;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.app-use-history:hover {
  border-color: rgba(91, 92, 255, .34);
  box-shadow: 0 18px 42px rgba(20, 36, 90, .2), 0 0 0 1px rgba(255, 255, 255, .9) inset;
  transform: translateY(-1px);
}
.app-use-history span {
  white-space: nowrap;
}
.app-use-history em {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  color: #fff;
  background: linear-gradient(135deg, #4f6bff, #7b5cff);
  border-radius: 999px;
  font-style: normal;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(91, 92, 255, .28);
}
.front-page-body .home-task-float {
  bottom: 26px;
}
.front-page-body .customer-float-btn {
  bottom: 82px;
}
@media (max-width: 760px) {
  .app-use-body .app-use-history,
  .front-page-body .home-task-float {
    right: 14px;
    bottom: 18px;
    min-height: 42px;
  }
  .app-use-body .customer-float-btn,
  .front-page-body .customer-float-btn {
    right: 14px;
    bottom: 74px;
  }
}
.app-task-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  background: rgba(2, 6, 23, .18);
  opacity: 0;
  transition: opacity .18s ease;
}
.app-task-modal-mask.open {
  opacity: 1;
}
.app-task-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 16px));
  height: calc(100vh - 16px);
  overflow: hidden;
  color: #d7dee8;
  background: #151a20;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 14px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .42);
  transform: translateX(20px);
  transition: transform .2s ease;
}
.app-task-modal-mask.open .app-task-modal-panel {
  transform: translateX(0);
}
.app-task-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}
.app-task-modal-head h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}
.app-task-modal-head h3::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 18px;
  margin-right: 8px;
  background: linear-gradient(135deg, #36ffd7, #78a6ff);
  border-radius: 5px;
  vertical-align: -3px;
  box-shadow: -5px 0 0 rgba(54, 255, 215, .25);
}
.app-task-modal-head p {
  margin: 0;
  color: #8f9aa8;
  font-size: 12px;
  line-height: 1.5;
}
.app-task-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-task-modal-actions span {
  padding: 7px 12px;
  color: #dbeafe;
  background: #263241;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.app-task-modal-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #9aa6b5;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.app-task-modal-list {
  flex: 1;
  overflow: auto;
  padding: 0 18px 22px;
}
.app-task-card {
  display: grid;
  gap: 10px;
  padding: 18px 4px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}
.app-task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.app-task-title-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.app-task-title-line strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-task-mode {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #071114;
  background: #11d7c8;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 950;
}
.app-task-status {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}
.app-task-status.success { color: #34d399; }
.app-task-status.failed { color: #fb7185; }
.app-task-status.running,
.app-task-status.queued,
.app-task-status.submitting,
.app-task-status.created,
.app-task-status.unknown { color: #fbbf24; }
.app-task-meta {
  display: grid;
  gap: 4px;
  color: #8b96a5;
  font-size: 12px;
  line-height: 1.35;
}
.app-task-progress {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, .46);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
}
.app-task-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b7c2d2;
  font-size: 12px;
  font-weight: 900;
}
.app-task-progress-top strong {
  flex: 0 0 auto;
  color: #f8fafc;
  font-size: 13px;
}
.app-task-progress-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  background: rgba(51, 65, 85, .72);
  border-radius: 999px;
}
.app-task-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #28f4d6, #78a6ff 58%, #a78bfa);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(120, 166, 255, .34);
  transition: width .45s ease;
}
.app-task-progress.success .app-task-progress-track span { background: linear-gradient(90deg, #22c55e, #86efac); }
.app-task-progress.failed .app-task-progress-track span { background: linear-gradient(90deg, #fb7185, #f97316); }
.app-task-progress.success .app-task-progress-top strong { color: #86efac; }
.app-task-progress.failed .app-task-progress-top strong { color: #fb7185; }
.app-task-preview {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  background: #0d1117;
  border-radius: 10px;
}
.app-task-work {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.app-task-preview-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  background: linear-gradient(180deg, transparent, rgba(136, 10, 26, .92));
}
.app-task-preview-actions a,
.app-task-preview-actions button {
  padding: 6px 9px;
  color: #fff;
  background: rgba(120, 0, 18, .78);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}
.app-task-output-links {
  display: grid;
  gap: 8px;
}
.app-task-output-links a {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-task-empty-output,
.app-task-loading,
.app-task-empty,
.app-task-hint {
  color: #9aa6b5;
  font-size: 13px;
  line-height: 1.6;
}
.app-task-loading,
.app-task-empty {
  padding: 26px 4px;
}
.app-task-hint {
  margin: 0;
  color: #fbbf24;
}
@media (max-width: 760px) {
  .app-task-modal-mask {
    padding: 0;
  }
  .app-task-modal-panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .app-task-modal-head {
    padding: 18px 16px 12px;
  }
  .app-task-modal-list {
    padding: 0 14px 20px;
  }
}
.app-use-tabs {
  display: flex;
  gap: 18px;
  width: min(820px, 100%);
  margin: 14px auto 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.app-use-tabs button {
  position: relative;
  padding: 10px 0 12px;
  color: #8795a1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}
.app-use-tabs button.active {
  color: #fff;
}
.app-use-tabs button.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #37eac4;
}
.app-recommended-works {
  width: min(620px, 100%);
  margin: 16px auto 0;
}
.app-recommended-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.app-recommended-head div {
  display: grid;
  gap: 4px;
}
.app-recommended-head strong {
  color: #f7fbff;
  font-size: 16px;
  font-weight: 950;
}
.app-recommended-head span,
.app-recommended-head em {
  color: #8795a1;
  font-size: 12px;
  font-style: normal;
}
.app-recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 200px));
  justify-content: center;
  gap: 14px;
}
.app-recommended-item {
  min-width: 0;
  overflow: hidden;
  background: #050a10;
  border: 1px solid rgba(216, 255, 88, .72);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}
.app-recommended-preview {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #050a10;
}
.app-recommended-preview::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0), rgba(5, 10, 16, .78) 46%, rgba(5, 10, 16, .96));
  pointer-events: none;
}
.app-recommended-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-same-style-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  color: #0f172a;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  backdrop-filter: blur(12px);
}
.app-same-style-btn:hover {
  color: #06121f;
  background: #37eac4;
  border-color: rgba(55, 234, 196, .9);
  transform: translateY(-1px);
}
.app-same-style-btn:disabled {
  color: rgba(255, 255, 255, .68);
  background: rgba(15, 23, 42, .58);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.app-recommended-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 9px;
  color: #fff;
}
.app-recommended-author {
  display: none;
}
.app-recommended-avatar {
  display: none;
}
.app-recommended-overlay h4 {
  display: -webkit-box;
  max-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.32;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .52);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.app-recommended-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .48);
}
.app-recommended-stats strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-recommended-stats span {
  flex: 0 0 auto;
}
.app-recommended-stats span:first-child {
  margin-left: 0;
}
.app-recommended-empty {
  padding: 20px;
  color: #8795a1;
  background: #121923;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 18px;
  text-align: center;
}
@media (max-width: 760px) {
  .app-recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .app-recommended-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.app-use-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.app-use-head-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #dce7ee;
  background: #131a23;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.app-use-head-btn:hover {
  color: #fff;
  border-color: rgba(83, 243, 208, .36);
}
.app-use-head-btn.credit {
  color: #53f3d0;
  background: rgba(83, 243, 208, .08);
}
.app-use-head-btn.vip {
  color: #ffd98a;
  background: rgba(255, 217, 138, .08);
}
.app-use-body .userbar {
  flex: 0 0 auto;
  margin-left: 0;
  font-size: 12px;
}
.app-use-body .userbar-name,
.app-use-body .userbar-balance,
.app-use-body .userbar .btn {
  font-size: 12px;
}
.app-use-stats-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  color: #d7e0e8;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
}
.app-use-tips-title {
  margin-bottom: 2px;
  color: #f7fbff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
}
body.app-use-body.theme-light .app-use-stats-list,
html[data-theme="light"] body.app-use-body .app-use-stats-list {
  color: #334155;
  border-top-color: #e2e8f0;
}
body.app-use-body.theme-light .app-use-tips-title,
html[data-theme="light"] body.app-use-body .app-use-tips-title {
  color: #0f172a;
}
.app-use-stats-list span {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.45;
}
.app-use-stats-list span::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #07120f;
  background: #37eac4;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}
.app-use-stats-list .app-use-stat-time::before {
  content: '⌛';
  width: 14px;
  height: 14px;
  color: #fbbf24;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}
.app-use-market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.app-use-market-stats button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px;
  color: #d7e0e8;
  background: #11161c;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.app-use-market-stats button:hover {
  color: #fff;
  background: #17212b;
  border-color: rgba(55, 234, 196, .34);
  transform: translateY(-1px);
}
.app-use-market-stats button.active {
  color: #0f172a;
  background: rgba(55, 234, 196, .92);
  border-color: rgba(55, 234, 196, .9);
}
.app-use-market-stats button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}
.app-use-market-stats em {
  flex: 0 0 auto;
  color: #37eac4;
  font-style: normal;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}
.app-use-market-stats strong {
  min-width: 0;
  color: #9daab6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.app-use-market-stats b {
  color: #f7fbff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
}
body.app-use-body.theme-light .app-use-market-stats,
html[data-theme="light"] body.app-use-body .app-use-market-stats {
  border-top-color: #e2e8f0;
}
body.app-use-body.theme-light .app-use-market-stats button,
html[data-theme="light"] body.app-use-body .app-use-market-stats button {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
}
body.app-use-body.theme-light .app-use-market-stats button:hover,
html[data-theme="light"] body.app-use-body .app-use-market-stats button:hover {
  background: #eefdf9;
  border-color: rgba(20, 184, 166, .36);
}
body.app-use-body.theme-light .app-use-market-stats button.active,
html[data-theme="light"] body.app-use-body .app-use-market-stats button.active {
  color: #042f2e;
  background: #ccfbf1;
  border-color: #5eead4;
}
body.app-use-body.theme-light .app-use-market-stats strong,
html[data-theme="light"] body.app-use-body .app-use-market-stats strong {
  color: #64748b;
}
body.app-use-body.theme-light .app-use-market-stats b,
html[data-theme="light"] body.app-use-body .app-use-market-stats b {
  color: #0f172a;
}
.app-use-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #07120f;
  background: linear-gradient(135deg, #37eac4, #d8ff58);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}
.app-use-author-card strong,
.app-use-author-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-use-author-card strong {
  color: #f7fbff;
  font-size: 12px;
}
.app-use-author-card small {
  margin-top: 3px;
  color: #8c98a5;
  font-size: 11px;
}
.app-use-follow {
  padding: 6px 10px;
  color: #dce6ed;
  background: #222b34;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.app-use-prompt {
  position: relative;
}
.app-use-prompt-toggle {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #4fe8cd;
  background: rgba(79, 232, 205, .1);
  border: 1px solid rgba(79, 232, 205, .22);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.app-use-prompt-toggle:hover {
  background: rgba(79, 232, 205, .16);
  border-color: rgba(79, 232, 205, .38);
  transform: translateY(-50%) scale(1.04);
}
.app-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.app-field-collapse {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #d8e7ef;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.app-field-collapse::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}
.app-field-collapse:hover {
  color: #f7fffb;
  background: rgba(63, 241, 193, .16);
  border-color: rgba(63, 241, 193, .38);
  box-shadow: 0 8px 18px rgba(63, 241, 193, .12);
}
.app-field-group {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
}
.app-field-group h4 {
  margin: 0;
  color: #dce6ed;
  font-size: 13px;
  font-weight: 900;
}
.app-field-hint {
  margin: -2px 0 10px;
  color: #8794a0;
  font-size: 12px;
  line-height: 1.55;
}
.app-use-form .field.collapsed > :not(.app-field-head) {
  display: none;
}
.app-use-form .field.collapsed .app-field-collapse {
  transform: rotate(180deg);
}
.app-upload-box {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  background: #0e1218;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
}
.app-upload-preview {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}
.app-upload-preview[hidden] {
  display: none;
}
.app-upload-pick {
  display: grid;
  place-items: center;
  min-height: 86px;
  color: #dce6ed;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.app-upload-preview:not([hidden]) + .app-upload-pick {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 0;
  padding: 5px 8px;
  background: rgba(0, 0, 0, .54);
  border-radius: 3px;
}
.app-upload-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.app-upload-clear {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}
.app-number-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  overflow: hidden;
  background: #0e1218;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 3px;
}
.app-number-row button {
  color: #aebbc6;
  background: #151b23;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}
.app-number-row input {
  text-align: center;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, .06) !important;
  border-right: 1px solid rgba(255, 255, 255, .06) !important;
  border-radius: 0 !important;
}
.app-select-field select {
  height: 40px;
}
.app-text-field {
  position: relative;
}
.app-text-field textarea {
  padding-bottom: 32px !important;
}
.app-text-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: #8794a0;
  font-size: 11px;
}
.app-use-form .run-btn {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  text-align: center;
}
.app-use-form .run-btn span,
.app-use-form .run-btn small {
  grid-column: 1;
  color: #07120f;
  line-height: 1;
}
.app-use-form .run-btn span {
  font-size: 14px;
  font-weight: 950;
}
.app-use-form .run-btn small {
  margin-top: -2px;
  font-size: 11px;
  font-weight: 900;
}
.app-use-form .run-btn em {
  position: absolute;
  right: 0;
  top: -9px;
  padding: 2px 5px;
  color: #fff;
  background: #ff4c6a;
  border-radius: 2px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}
@media (max-width: 980px) {
  body.app-use-body {
    overflow: auto;
  }
  .app-use-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 56px);
  }
  .app-use-sidebar {
    order: 2;
    width: min(100%, 500px);
    max-height: none;
    margin: 0 auto;
    overflow: visible;
    padding: 12px 24px 28px;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .app-use-stage {
    order: 1;
    min-height: 62vh;
    padding: 12px 12px 18px;
  }
  .app-use-cover-img,
  .app-use-preview .app-use-outputs img,
  .app-use-preview .app-use-outputs video {
    max-width: 92vw;
    max-height: 54vh;
  }
}

@media (max-width: 760px) {
  .app-use-body .app-use-topbar {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
  }
  .app-use-body nav {
    order: 3;
    width: 100%;
  }
  .app-use-body .userbar {
    gap: 8px;
    font-size: 12px;
  }
  .app-use-sidebar {
    width: 100%;
    padding: 12px 16px 24px;
  }
  .app-use-stage {
    min-height: 55vh;
  }
  .app-use-prompt span {
    white-space: normal;
  }
  .app-use-arrow {
    display: none;
  }
}

.app-use-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.app-use-panel h3 {
  margin: 8px 8px 10px;
  color: #f5fbff;
  font-size: 14px;
  font-weight: 950;
}
.app-use-form {
  display: grid;
  gap: 10px;
}
.app-use-form .app-param-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #171c22;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 5px;
}
.app-use-form .app-param-card .app-field-head {
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.app-use-form .app-param-card .app-field-head label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}
.app-use-form .app-field-collapse {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  color: #d8e2ea;
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .14);
}
.app-use-form .app-field-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-use-form .app-text-clear {
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  color: #d8e2ea;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.app-use-form .app-text-clear:hover {
  color: #fff;
  background: rgba(79, 232, 205, .18);
  border-color: rgba(79, 232, 205, .36);
}
.app-use-form .app-text-clear[hidden] {
  display: none;
}
.app-use-form .app-upload-field .app-upload-box {
  min-height: 142px;
  padding: 16px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.app-use-form .app-upload-field .app-upload-preview {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 7px;
  background: #0d1218;
}
.app-use-form .app-upload-field .app-upload-pick {
  display: inline-grid;
  place-items: center;
  width: 108px;
  height: 108px;
  min-height: 0;
  color: #e7eff6;
  background: #10161d;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 7px;
}
.app-use-form .app-upload-field .app-upload-preview:not([hidden]) + .app-upload-pick {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 108px;
  height: 108px;
  padding: 0;
  opacity: 0;
}
.app-use-form .app-upload-edit,
.app-use-form .app-upload-clear {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #c6d1db;
  background: rgba(72, 82, 94, .9);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
}
.app-use-form .app-upload-edit {
  right: 14px;
  bottom: 18px;
}
.app-use-form .app-upload-clear {
  left: 92px;
  bottom: 18px;
  padding: 0;
}
.app-use-form .app-number-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(188px, 42%);
  align-items: center;
  min-height: 52px;
}
.app-use-form .app-number-field .app-field-head {
  min-height: 52px;
  border-bottom: 0;
}
.app-use-form .app-number-row {
  grid-template-columns: 46px minmax(88px, 1fr) 46px;
  height: 52px;
  background: #121820;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .09);
  border-radius: 0;
}
.app-use-form .app-number-row button {
  display: grid;
  place-items: center;
  color: #9aa7b2;
  background: #1d232c;
  font-size: 20px;
  line-height: 1;
}
.app-use-form .app-number-row input {
  min-width: 0;
  padding: 0 8px;
  overflow: visible;
  color: #fff;
  background: #111821;
  font-size: 17px;
  font-weight: 950;
  line-height: 52px;
  -moz-appearance: textfield;
}
.app-use-form .app-number-row input::-webkit-outer-spin-button,
.app-use-form .app-number-row input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.app-use-form .app-select-field select {
  width: calc(100% - 28px);
  height: 50px;
  margin: 16px 14px;
  padding: 0 14px;
  color: #f6fbff;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  font-weight: 900;
}
.app-use-form .app-text-field textarea {
  width: calc(100% - 28px);
  min-height: 168px;
  margin: 16px 14px 14px;
  padding: 14px;
  color: #bcd2e3;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.72;
}
.app-use-form .app-text-count {
  right: 24px;
  bottom: 20px;
}
.app-use-form .run-btn {
  height: 52px;
  margin: 8px 0 0;
  color: #07120f;
  background: linear-gradient(90deg, #3ff1c1 0%, #d7ff5d 100%);
  border-radius: 7px;
  box-shadow: 0 18px 34px rgba(61, 244, 192, .18);
}
.app-use-form .run-btn span {
  font-size: 17px;
}
.app-use-form .run-btn small {
  font-size: 12px;
}
.app-use-form .run-btn em {
  right: 0;
  top: 0;
  padding: 4px 6px;
  border-radius: 0 7px 0 4px;
}
.app-use-form .field.collapsed {
  min-height: 48px;
}
.app-use-form .field.collapsed > :not(.app-field-head) {
  display: none !important;
}
.app-use-form .app-upload-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.app-use-form .app-upload-item {
  position: relative;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
}
.app-use-form .app-upload-item .app-upload-preview,
.app-use-form .app-upload-item .app-upload-pick {
  width: 108px;
  height: 108px;
}
.app-use-form .app-upload-item .app-upload-pick span {
  display: -webkit-box;
  overflow: hidden;
  max-width: 92px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: center;
  line-height: 1.35;
}
.app-use-form .app-upload-item .app-upload-preview:not([hidden]) + .app-upload-pick {
  left: 0;
  top: 0;
}
.app-use-form .app-upload-item .app-upload-edit {
  right: -4px;
  bottom: -4px;
}
.app-use-form .app-upload-item .app-upload-clear {
  left: 78px;
  bottom: 0;
}

.app-use-form .app-upload-field .app-upload-box {
  min-height: 144px;
  padding: 16px 14px;
  overflow: visible;
}
.app-use-form .app-upload-field .app-upload-items {
  gap: 10px;
}
.app-use-form .app-upload-field .app-upload-item {
  width: 112px;
  height: 112px;
  flex-basis: 112px;
}
.app-use-form .app-upload-field .app-upload-preview,
.app-use-form .app-upload-field .app-upload-pick,
.app-use-form .app-upload-item .app-upload-preview,
.app-use-form .app-upload-item .app-upload-pick {
  width: 112px;
  height: 112px;
}
.app-use-form .app-upload-field .app-upload-preview {
  position: relative;
  z-index: 1;
  display: block;
  object-fit: cover;
  background: #151a20;
  border: 1px dashed rgba(38, 229, 191, .9);
  border-radius: 8px;
}
.app-use-form .app-upload-field .app-upload-preview[hidden] {
  display: none;
}
.app-use-form .app-upload-field .app-upload-pick {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-height: 0;
  color: #8f98a1;
  background: #171b21;
  border: 1px dashed rgba(38, 229, 191, .95);
  border-radius: 8px;
  cursor: pointer;
}
.app-use-form .app-upload-field .app-upload-pick:hover {
  border-color: #39f0c8;
  background: #1a2027;
}
.app-use-form .app-upload-field .app-upload-pick span,
.app-use-form .app-upload-item .app-upload-pick span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  color: #8f98a1;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.app-use-form .app-upload-field .app-upload-preview:not([hidden]) + .app-upload-pick {
  position: absolute;
  left: 14px;
  top: 16px;
  z-index: 2;
  width: 112px;
  height: 112px;
  padding: 0;
  opacity: 0;
  border: 0;
}
.app-use-form .app-upload-item .app-upload-preview:not([hidden]) + .app-upload-pick {
  left: 0;
  top: 0;
}
.app-use-form .app-upload-edit {
  display: none !important;
}
.app-use-form .app-upload-clear {
  position: absolute;
  left: 96px;
  right: auto;
  top: auto;
  bottom: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: transparent;
  background: rgba(40, 43, 47, .84);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
}
.app-use-form .app-upload-clear[hidden] {
  display: none;
}
.app-use-form .app-upload-clear::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 10px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-top: 0;
  border-radius: 1px 1px 2px 2px;
  transform: translate(-50%, -34%);
}
.app-use-form .app-upload-clear::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 1.5px;
  background: rgba(255, 255, 255, .95);
  border-radius: 999px;
  box-shadow: 0 -3px 0 -1px rgba(255, 255, 255, .95);
  transform: translateX(-50%);
}
.app-use-form .app-upload-item .app-upload-clear {
  left: auto;
  right: -4px;
  bottom: -4px;
}

@media (max-width: 1280px) {
  .rh-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rh-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .rh-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rh-summary-head,
  .rh-action-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .rh-action-bar .btn {
    width: 100%;
  }
}

.admin-task-toolbar {
  align-items: end;
}
.admin-task-toolbar .admin-search input {
  min-width: 180px;
}
.admin-flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.task-hint {
  margin-top: 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}
.admin-task-modal {
  width: min(1180px, 96vw);
}
.admin-task-detail-body {
  display: grid;
  gap: 16px;
}
.admin-task-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-task-summary-grid > div,
.admin-kv-list > div,
.admin-check-summary,
.admin-check-item {
  padding: 13px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-task-summary-grid span,
.admin-kv-list strong,
.admin-check-summary span,
.admin-check-item span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.admin-task-summary-grid strong,
.admin-kv-list span,
.admin-check-summary strong,
.admin-check-item strong {
  display: block;
  margin-top: 5px;
  color: #111318;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.admin-task-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-task-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-kv-list,
.admin-event-list,
.admin-check-list {
  display: grid;
  gap: 8px;
}
.admin-event-list > div {
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-event-list strong,
.admin-event-list span {
  display: inline-flex;
  margin-right: 8px;
  color: #475569;
  font-size: 12px;
}
.admin-event-list p {
  margin: 6px 0 0;
  color: #111318;
  font-size: 13px;
}
.compact-form textarea,
.admin-field-preview-card textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}
.admin-raw-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-raw-panel summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
}
.admin-raw-panel pre {
  max-height: 360px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #dbeafe;
  background: #0f172a;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.admin-check-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.admin-check-panel.empty {
  color: #64748b;
  background: #f8fafc;
  font-size: 13px;
}
.admin-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-check-item.ok { border-color: #bbf7d0; background: #f0fdf4; }
.admin-check-item.warning { border-color: #fde68a; background: #fffbeb; }
.admin-check-item.blocker { border-color: #fecaca; background: #fef2f2; }
.admin-field-preview-card {
  display: grid;
  gap: 14px;
}
.admin-field-preview-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.admin-field-preview-form .field {
  margin: 0;
}
.admin-field-preview-result {
  display: grid;
  gap: 12px;
}
.admin-warning.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.admin-warning.danger {
  border-color: #fecaca;
  background: #fef2f2;
}
.admin-field-preview-form .app-param-card {
  min-width: 0;
  padding: 14px;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.admin-field-preview-form .app-field-head {
  min-height: auto;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
.admin-field-preview-form .app-field-head label {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}
.admin-field-preview-form .app-field-collapse {
  color: #94a3b8;
}
.admin-field-preview-form .app-upload-box {
  min-height: 118px;
  padding: 12px;
  overflow: visible;
  background: #0f131a;
  border: 0;
  border-radius: 10px;
}
.admin-field-preview-form .app-upload-pick {
  min-height: 94px;
  border-radius: 8px;
}
.admin-field-preview-form .app-number-row {
  grid-template-columns: 40px minmax(80px, 1fr) 40px;
  height: 48px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.admin-field-preview-form .app-number-row button {
  color: #dbeafe;
  background: #111827;
  border: 0;
  font-size: 18px;
}
.admin-field-preview-form .app-number-row input {
  min-width: 0;
  height: 48px;
  color: #111827;
  background: #fff;
  border: 0 !important;
  border-left: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  text-align: center;
}
.admin-field-preview-form .app-select-field select {
  width: 100%;
  height: 48px;
  margin: 0;
  color: #111827;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.admin-field-preview-form .app-text-field {
  grid-column: 1 / -1;
  position: relative;
}
.admin-field-preview-form .app-text-field textarea {
  width: 100%;
  min-height: 120px;
  height: auto;
  margin: 0;
  padding: 13px 14px 30px !important;
  overflow: hidden;
  color: #111827;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  resize: none;
  line-height: 1.65;
  white-space: pre-wrap;
}
.admin-field-preview-form .app-text-count {
  right: 14px;
  bottom: 10px;
}
.admin-category-media-field,
.admin-app-cover-field {
  display: grid;
  gap: 10px;
}
.admin-category-media-top,
.admin-app-cover-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.admin-category-media-actions,
.admin-app-cover-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 1px;
}
.admin-category-media-actions label.btn,
.admin-app-cover-actions label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
}
.admin-category-media-preview,
.admin-app-cover-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}
.admin-category-media-preview.empty,
.admin-app-cover-preview.empty {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}
.admin-category-media-preview img,
.admin-category-media-preview video,
.admin-app-cover-preview img,
.admin-app-cover-preview video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.admin-category-media-status,
.admin-app-cover-status {
  min-height: 18px;
  color: #64748b;
  font-size: 12px;
}
.admin-category-list-media {
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-category-list-media img,
.admin-category-list-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .admin-category-media-top,
  .admin-app-cover-top {
    grid-template-columns: 1fr;
  }
  .admin-category-media-actions,
  .admin-app-cover-actions {
    padding-bottom: 0;
  }
}
@media (max-width: 980px) {
  .admin-field-preview-form {
    grid-template-columns: 1fr;
  }
}

.admin-app-inline-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc, #eef6ff);
  border: 1px solid #dbeafe;
  border-radius: 20px;
}
.admin-app-inline-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.admin-app-inline-head div {
  display: grid;
  gap: 4px;
}
.admin-app-inline-head strong {
  color: #0f172a;
  font-size: 15px;
}
.admin-app-inline-head span {
  color: #64748b;
  font-size: 12px;
}
.admin-app-inline-rh-grid {
  margin: 0;
}
.admin-app-inline-field-area {
  display: grid;
  gap: 14px;
}
.admin-app-inline-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #64748b;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}
.admin-app-inline-empty strong {
  color: #0f172a;
}
.admin-app-inline-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.admin-app-inline-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.admin-app-inline-stats span,
.admin-app-inline-stats small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.admin-app-inline-stats strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.admin-app-inline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 14px;
  align-items: start;
}
.admin-app-inline-editor-card,
.admin-app-inline-preview-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}
.admin-app-inline-field-editor .field-rows {
  display: grid;
  gap: 12px;
}
.admin-app-inline-preview-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  color: #e5f6ff;
  background: #0b0f16;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
}
.admin-app-inline-preview-form .admin-empty {
  color: #94a3b8;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
.admin-app-inline-preview-form .app-param-card {
  color: #f8fafc;
  background: #171c23;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 9px;
}
.admin-app-inline-preview-form .app-field-head label {
  color: #f8fafc;
}
.admin-app-inline-preview-form input,
.admin-app-inline-preview-form select,
.admin-app-inline-preview-form textarea {
  color: #eef6ff !important;
  background: #0d1117 !important;
  border-color: rgba(255,255,255,.14) !important;
}
.admin-app-inline-preview-form .app-number-row button,
.admin-app-inline-preview-form .app-upload-pick {
  color: #cbd5e1;
  background: #222932;
  border-color: rgba(255,255,255,.12);
}
.admin-app-inline-preview-form .run-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  margin-top: 4px;
  color: #052e16;
  background: linear-gradient(135deg, #40f3c2, #d7ff72);
  border: 0;
  border-radius: 10px;
}
.admin-app-inline-preview-form .run-btn span {
  display: none;
}
.admin-app-inline-preview-form .run-btn small {
  justify-self: center;
  color: #052e16;
  font-size: 16px;
  font-weight: 700;
}
.admin-app-inline-preview-form .run-btn em {
  justify-self: end;
  padding: 3px 7px;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  background: #ff4d35;
  border-radius: 4px;
}
@media (max-width: 1180px) {
  .admin-app-inline-layout,
  .admin-app-inline-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .admin-app-inline-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .admin-task-summary-grid,
  .admin-task-panel-grid,
  .admin-field-preview-form {
    grid-template-columns: 1fr;
  }
  .task-actions {
    justify-content: flex-start;
  }
}

.theme-toggle-btn {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 902;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #0f172a;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 11px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .86);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.theme-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, .98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle-btn.is-dark {
  color: #f8fafc;
  background: rgba(5, 5, 5, .94);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .08);
}
body.front-page-body:not(.profile-page-body) .theme-toggle-btn {
  bottom: 138px;
}
.app-use-body .app-use-actions .theme-toggle-btn,
.app-use-body .userbar .theme-toggle-btn {
  position: static;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 999px;
}
html:not([data-theme="dark"]) body.app-use-body {
  color: #0f172a;
  background: #f6f8fb;
}
html:not([data-theme="dark"]) .app-use-body .app-use-topbar {
  color: #0f172a;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #e5e7eb;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
html:not([data-theme="dark"]) .app-use-body .brand,
html:not([data-theme="dark"]) .app-use-body nav,
html:not([data-theme="dark"]) .app-use-body .userbar {
  color: #334155;
}
html:not([data-theme="dark"]) .app-use-body nav a:hover {
  color: #0f172a;
}
html:not([data-theme="dark"]) .app-use-body .btn.ghost,
html:not([data-theme="dark"]) .app-use-body .userbar .btn,
html:not([data-theme="dark"]) .app-use-head-btn {
  color: #334155;
  background: #ffffff;
  border-color: #dbe3ee;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
html:not([data-theme="dark"]) .app-use-body .btn.ghost:hover,
html:not([data-theme="dark"]) .app-use-body .userbar .btn:hover,
html:not([data-theme="dark"]) .app-use-head-btn:hover {
  color: #0f172a;
  border-color: #aab7c6;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
}
html:not([data-theme="dark"]) .app-use-head-btn.credit {
  color: #047857;
  background: #ecfdf5;
  border-color: #bbf7d0;
}
html:not([data-theme="dark"]) .app-use-head-btn.vip {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}
html:not([data-theme="dark"]) .app-use-body .userbar-name {
  color: #0f172a;
  background: #ffffff;
  border-color: #dbe3ee;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
html:not([data-theme="dark"]) .app-use-body .theme-toggle-btn {
  color: #0f172a;
  background: #ffffff;
  border-color: #dbe3ee;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
html:not([data-theme="dark"]) .app-use-body .pill {
  color: #047857;
  background: #ecfdf5;
}
html:not([data-theme="dark"]) .app-use-page {
  color: #0f172a;
  background: radial-gradient(circle at 68% 28%, rgba(59, 130, 246, .08), transparent 34%), #f6f8fb;
}
html:not([data-theme="dark"]) .app-use-sidebar {
  background: #ffffff;
  border-right-color: #e5e7eb;
  box-shadow: 1px 0 0 rgba(15, 23, 42, .02);
}
html:not([data-theme="dark"]) .app-use-info-card,
html:not([data-theme="dark"]) .app-use-form .app-param-card {
  color: #0f172a;
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
html:not([data-theme="dark"]) .app-use-title-row h1,
html:not([data-theme="dark"]) .app-use-panel h3,
html:not([data-theme="dark"]) .app-use-author strong,
html:not([data-theme="dark"]) .app-use-author-card strong,
html:not([data-theme="dark"]) .app-use-form .app-param-card .app-field-head label,
html:not([data-theme="dark"]) .app-recommended-head strong {
  color: #0f172a;
}
html:not([data-theme="dark"]) .app-use-title-row span,
html:not([data-theme="dark"]) .app-use-info-card p,
html:not([data-theme="dark"]) .app-use-author span,
html:not([data-theme="dark"]) .app-use-author-card small,
html:not([data-theme="dark"]) .app-use-stats-list,
html:not([data-theme="dark"]) .app-recommended-head span,
html:not([data-theme="dark"]) .app-recommended-head em,
html:not([data-theme="dark"]) .app-text-count {
  color: #64748b;
}
html:not([data-theme="dark"]) .app-use-tags span {
  color: #334155;
  background: #eef2f7;
}
html:not([data-theme="dark"]) .app-use-author,
html:not([data-theme="dark"]) .app-use-author-card,
html:not([data-theme="dark"]) .app-use-stats-list,
html:not([data-theme="dark"]) .app-use-form .app-param-card .app-field-head {
  border-color: #e5e7eb;
}
html:not([data-theme="dark"]) .app-use-follow {
  color: #334155;
  background: #eef2f7;
}
html:not([data-theme="dark"]) .app-use-form .field {
  color: #0f172a;
  background: #ffffff;
  border-color: #e5e7eb;
}
html:not([data-theme="dark"]) .app-use-form .field label,
html:not([data-theme="dark"]) .app-use-form .app-field-collapse {
  color: #334155;
}
html:not([data-theme="dark"]) .app-use-form .field input,
html:not([data-theme="dark"]) .app-use-form .field textarea,
html:not([data-theme="dark"]) .app-use-form .field select {
  color: #111827;
  background: #f8fafc;
  border-color: #cbd5e1;
}
html:not([data-theme="dark"]) .app-use-form .field input::placeholder,
html:not([data-theme="dark"]) .app-use-form .field textarea::placeholder {
  color: #94a3b8;
}
html:not([data-theme="dark"]) .app-upload-box,
html:not([data-theme="dark"]) .app-number-row,
html:not([data-theme="dark"]) .app-use-form .field input[type="file"] {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}
html:not([data-theme="dark"]) .app-number-row button {
  color: #334155;
  background: #e2e8f0;
}
html:not([data-theme="dark"]) .app-number-row input {
  border-left-color: #cbd5e1 !important;
  border-right-color: #cbd5e1 !important;
}
html:not([data-theme="dark"]) .app-use-form .app-upload-field .app-upload-preview,
html:not([data-theme="dark"]) .app-use-form .app-upload-field .app-upload-pick {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}
html:not([data-theme="dark"]) .app-upload-pick {
  color: #334155;
}
html:not([data-theme="dark"]) .app-use-status,
html:not([data-theme="dark"]) .app-use-prompt-toggle {
  color: #0f766e;
}
html:not([data-theme="dark"]) .app-use-stage,
html:not([data-theme="dark"]) .app-use-preview {
  background: transparent;
}
html:not([data-theme="dark"]) .app-use-prompt {
  color: #475569;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 62%, #eefdf8 100%);
  border-color: #dbeafe;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .96);
}
html:not([data-theme="dark"]) .app-use-prompt strong {
  color: #0f172a;
}
html:not([data-theme="dark"]) .app-use-prompt span {
  color: #64748b;
}
html:not([data-theme="dark"]) .app-use-prompt-toggle {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #bbf7d0;
  box-shadow: 0 8px 18px rgba(20, 184, 166, .12);
}
html:not([data-theme="dark"]) .app-use-cover-img {
  box-shadow: 0 22px 58px rgba(15, 23, 42, .18);
}
html:not([data-theme="dark"]) .app-use-preview .app-use-outputs img,
html:not([data-theme="dark"]) .app-use-preview .app-use-outputs video {
  background: #ffffff;
  border-color: #e5e7eb;
}
html:not([data-theme="dark"]) .app-use-arrow {
  color: #475569;
  background: rgba(255, 255, 255, .92);
  border-color: #e2e8f0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}
html:not([data-theme="dark"]) .app-use-tabs {
  border-bottom-color: #e5e7eb;
}
html:not([data-theme="dark"]) .app-use-tabs button {
  color: #64748b;
}
html:not([data-theme="dark"]) .app-use-tabs button.active {
  color: #0f172a;
}
html:not([data-theme="dark"]) .app-use-tabs button.active::after {
  background: #14b8a6;
}
html:not([data-theme="dark"]) .app-recommended-item,
html:not([data-theme="dark"]) .app-recommended-preview {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}
html:not([data-theme="dark"]) .app-recommended-empty {
  color: #64748b;
  background: #ffffff;
  border-color: #cbd5e1;
}
@media (max-width: 980px) {
  html:not([data-theme="dark"]) .app-use-sidebar {
    border-top-color: #e5e7eb;
  }
}
html[data-theme="dark"] {
  --bg: #050505;
  --page: #050505;
  --card: #111111;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --soft: #171717;
  --line: #242424;
  --line-strong: #333333;
  --brand: #f5f5f5;
  --brand-dark: #ffffff;
  --brand-soft: #171717;
  --shadow: 0 16px 42px rgba(0, 0, 0, .38);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .rh-page,
html[data-theme="dark"] body.front-page-body,
html[data-theme="dark"] body.profile-page-body,
html[data-theme="dark"] body.admin-page-body,
html[data-theme="dark"] .profile-page-body .rh-page,
html[data-theme="dark"] .admin-page-body .rh-page.admin-page {
  color: var(--ink);
  background: #050505;
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .front-page-body .topbar,
html[data-theme="dark"] .admin-page-body .topbar,
html[data-theme="dark"] .app-use-topbar {
  color: #f5f5f5;
  background: rgba(5, 5, 5, .9);
  border-bottom-color: rgba(255, 255, 255, .1);
}
html[data-theme="dark"] .brand,
html[data-theme="dark"] nav,
html[data-theme="dark"] .userbar,
html[data-theme="dark"] .rh-titlebar p,
html[data-theme="dark"] .section p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .task-meta,
html[data-theme="dark"] .mini-item span,
html[data-theme="dark"] .mini-item small,
html[data-theme="dark"] .profile-list-item span,
html[data-theme="dark"] .profile-action-app span,
html[data-theme="dark"] .profile-action-app small,
html[data-theme="dark"] .profile-action-empty,
html[data-theme="dark"] .profile-card-head > span,
html[data-theme="dark"] .profile-password-actions span,
html[data-theme="dark"] .admin-muted,
html[data-theme="dark"] .admin-table td span,
html[data-theme="dark"] .admin-table td small {
  color: #a3a3a3;
}
html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] .brand span:last-child,
html[data-theme="dark"] .rh-titlebar h1,
html[data-theme="dark"] .section-head h1,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .wallet-card h3,
html[data-theme="dark"] .profile-card h3,
html[data-theme="dark"] .admin-card h3,
html[data-theme="dark"] .admin-card h4,
html[data-theme="dark"] .admin-card h5,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] .modal-card h3 {
  color: #f5f5f5;
}
html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .userbar .btn,
html[data-theme="dark"] .link-btn,
html[data-theme="dark"] .sort-select,
html[data-theme="dark"] .search,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .modal-card input,
html[data-theme="dark"] .profile-password-form input,
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form select,
html[data-theme="dark"] .field-row input,
html[data-theme="dark"] .field-row select,
html[data-theme="dark"] .user-admin-row input {
  color: #f5f5f5;
  background: #111111;
  border-color: #2f2f2f;
}
html[data-theme="dark"] .btn.primary {
  color: #050505;
  background: #f5f5f5;
  box-shadow: 0 12px 28px rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .userbar-name {
  color: #050505;
  background: #f5f5f5;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .32);
}
html[data-theme="dark"] .userbar-avatar {
  color: #f5f5f5;
  background: #050505;
}
html[data-theme="dark"] .userbar-balance,
html[data-theme="dark"] .pill {
  color: #050505;
  background: #f5f5f5;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
}
html[data-theme="dark"] .site-maintenance-banner,
html[data-theme="dark"] .site-notice-banner,
html[data-theme="dark"] .rh-total,
html[data-theme="dark"] .category-tabs,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .detail-info,
html[data-theme="dark"] .runner,
html[data-theme="dark"] .examples,
html[data-theme="dark"] .task-list,
html[data-theme="dark"] .admin-list,
html[data-theme="dark"] .wallet-card,
html[data-theme="dark"] .admin-order-panel,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .profile-empty,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-item,
html[data-theme="dark"] .admin-user-detail-section,
html[data-theme="dark"] .admin-user-control-card,
html[data-theme="dark"] .admin-action-form,
html[data-theme="dark"] .admin-user-status-card,
html[data-theme="dark"] .site-setting-card,
html[data-theme="dark"] .popup-notice-config-card,
html[data-theme="dark"] .admin-app-inline-editor-card,
html[data-theme="dark"] .admin-app-inline-preview-card,
html[data-theme="dark"] .admin-app-inline-stats div {
  color: #f5f5f5;
  background: #111111;
  border-color: #252525;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}
html[data-theme="dark"] .profile-page-head,
html[data-theme="dark"] .profile-wallet-card,
html[data-theme="dark"] .pay-panel,
html[data-theme="dark"] .pay-panel.paid,
html[data-theme="dark"] .recharge-simple-section,
html[data-theme="dark"] .recharge-current-order,
html[data-theme="dark"] .recharge-current-order.paid,
html[data-theme="dark"] .site-popup-card,
html[data-theme="dark"] .customer-modal-panel,
html[data-theme="dark"] .vip-modal-panel {
  color: #f5f5f5;
  background: linear-gradient(135deg, #121212, #070707);
  border-color: #2a2a2a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .recharge-plan-card,
html[data-theme="dark"] .recharge-plan-card:hover,
html[data-theme="dark"] .recharge-plan-card.active,
html[data-theme="dark"] .recharge-method-empty,
html[data-theme="dark"] .recharge-selected-plan,
html[data-theme="dark"] .recharge-order-item,
html[data-theme="dark"] .mini-item,
html[data-theme="dark"] .user-admin-row,
html[data-theme="dark"] .task-item,
html[data-theme="dark"] .profile-list-item,
html[data-theme="dark"] .profile-action-app,
html[data-theme="dark"] .profile-action-empty,
html[data-theme="dark"] .profile-stats div,
html[data-theme="dark"] .detail-stats span,
html[data-theme="dark"] .example-grid span,
html[data-theme="dark"] .pay-code,
html[data-theme="dark"] .admin-mini-item,
html[data-theme="dark"] .admin-empty,
html[data-theme="dark"] .admin-stat,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .admin-table tr,
html[data-theme="dark"] .field-row,
html[data-theme="dark"] .admin-field-card {
  color: #f5f5f5;
  background: #171717;
  border-color: #2a2a2a;
}
html[data-theme="dark"] .recharge-simple-section-head strong,
html[data-theme="dark"] .recharge-method-empty strong,
html[data-theme="dark"] .recharge-selected-plan strong,
html[data-theme="dark"] .recharge-plan-card,
html[data-theme="dark"] .recharge-plan-card:hover,
html[data-theme="dark"] .recharge-plan-card.active,
html[data-theme="dark"] .recharge-plan-amount {
  color: #f5f5f5 !important;
}
html[data-theme="dark"] .recharge-simple-balance,
html[data-theme="dark"] .recharge-simple-section-head > span {
  color: #050505;
  background: #f5f5f5;
}
html[data-theme="dark"] .recharge-simple-balance small {
  color: rgba(5, 5, 5, .68);
}
html[data-theme="dark"] .recharge-simple-balance strong {
  color: #050505;
}
html[data-theme="dark"] .recharge-pay-note {
  color: #d4d4d4;
}
html[data-theme="dark"] .admin-sidebar,
html[data-theme="dark"] .admin-main,
html[data-theme="dark"] .admin-workbench,
html[data-theme="dark"] .admin-console {
  color: #f5f5f5;
  background: #0b0b0b;
  border-color: #252525;
}
html[data-theme="dark"] .admin-tab,
html[data-theme="dark"] .cat-chip,
html[data-theme="dark"] .customer-float-btn,
html[data-theme="dark"] .app-use-history {
  color: #f5f5f5;
  background: rgba(17, 17, 17, .96);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
}
html[data-theme="dark"] .admin-tab.active,
html[data-theme="dark"] .cat-chip.active {
  color: #050505;
  background: #f5f5f5;
  border-color: #f5f5f5;
}
html[data-theme="dark"] .customer-float-icon,
html[data-theme="dark"] .customer-float-btn strong {
  color: #f5f5f5;
}
html[data-theme="dark"] .app-use-body,
html[data-theme="dark"] body.app-use-body,
html[data-theme="dark"] .app-use-page {
  color: #f5f5f5;
  background: #050505;
}
html[data-theme="dark"] .app-use-sidebar,
html[data-theme="dark"] .app-use-panel,
html[data-theme="dark"] .app-use-info-card,
html[data-theme="dark"] .app-use-prompt,
html[data-theme="dark"] .app-use-form .field {
  color: #f5f5f5;
  background: #111111;
  border-color: rgba(255, 255, 255, .1);
}
html[data-theme="dark"] .app-use-stage,
html[data-theme="dark"] .app-use-preview {
  background: #050505;
}
html[data-theme="dark"] .app-use-form .field input,
html[data-theme="dark"] .app-use-form .field textarea,
html[data-theme="dark"] .app-use-form .field select {
  color: #f5f5f5;
  background: #050505;
  border-color: rgba(255, 255, 255, .14);
}
html[data-theme="dark"] .profile-action-app:hover {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
}
html[data-theme="dark"] .profile-action-app strong,
html[data-theme="dark"] .profile-password-form label {
  color: #f5f5f5;
}
html[data-theme="dark"] .profile-action-cover {
  background: #0b0b0b;
  border-color: rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .profile-password-form input:focus {
  background: #050505;
  border-color: rgba(255, 255, 255, .38);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-card,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-cover {
  background: #0b0b0b;
  border-color: rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .poster-info {
  color: #f5f5f5;
  background: linear-gradient(180deg, rgba(10, 10, 10, .54), rgba(0, 0, 0, .76));
  border-color: rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .modal,
html[data-theme="dark"] .site-popup-mask,
html[data-theme="dark"] .customer-modal-mask,
html[data-theme="dark"] .vip-modal-mask,
html[data-theme="dark"] .app-task-modal-mask {
  background: rgba(0, 0, 0, .72);
}
html[data-theme="dark"] ::placeholder {
  color: #737373;
}
@media (max-width: 760px) {
  .theme-toggle-btn {
    right: 14px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
  body.front-page-body:not(.profile-page-body) .theme-toggle-btn {
    bottom: 130px;
  }
  .app-use-body .app-use-actions .theme-toggle-btn,
  .app-use-body .userbar .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
}

body.front-page-body:not(.profile-page-body) {
  min-height: 100vh;
  color: #111827;
  background: #f5f6f8;
}
body.front-page-body:not(.profile-page-body) .home-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  min-height: 52px;
  padding: 0 16px 0 12px;
  color: #111827;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #eceff3;
  box-shadow: 0 1px 10px rgba(15, 23, 42, .04);
}
body.front-page-body:not(.profile-page-body) .home-brand {
  gap: 7px;
  min-width: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}
body.front-page-body:not(.profile-page-body) .home-brand-mark {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-radius: 7px;
  font-size: 10px;
}
.home-global-search {
  justify-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  width: min(590px, 44vw);
  min-height: 54px;
  padding: 8px;
  color: #8ea0b8;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #eef1f6;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.home-search-field {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
}
.home-search-field span {
  color: #8aa0bd;
  line-height: 1;
}
.home-search-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}
.home-search-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-global-search .search {
  width: 100% !important;
  height: 38px;
  padding: 0;
  color: #111827 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  font-size: 14px;
}
.home-global-search .search::placeholder {
  color: #9aa9bd !important;
}
.home-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: #0f172a;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}
.home-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.home-top-actions .userbar {
  margin-left: 0;
  gap: 8px;
}
.home-top-actions .userbar-name,
.home-top-actions .userbar-balance,
.home-top-actions .userbar .btn {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}
.home-top-actions .userbar-name {
  max-width: 120px;
}
.home-vip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
body.front-page-body:not(.profile-page-body) .home-shell {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 52px);
  background: #f5f6f8;
}
.home-sidebar {
  position: sticky;
  top: 52px;
  align-self: start;
  height: calc(100vh - 52px);
  overflow: auto;
  padding: 10px 8px 18px;
  background: #fff;
  border-right: 1px solid #eceff3;
}
.home-side-nav {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}
.home-side-group {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}
@media (min-width: 861px) {
  .home-side-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
  }
  .home-side-group:nth-child(2) {
    margin-top: auto;
  }
}
.home-side-title {
  display: block;
  padding: 0 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: left;
}
.home-side-nav a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #334155;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.home-side-nav a.active,
.home-side-nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #e5e7eb;
}
.home-side-nav a:hover {
  transform: translateY(-1px);
}
.home-side-nav a > span {
  display: none;
}
.home-side-nav strong {
  display: block;
  overflow: visible;
  min-width: 0;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: clip;
}
.home-side-nav em {
  color: #94a3b8;
  font-style: normal;
}
.home-sub-nav {
  display: grid;
  gap: 2px;
  margin: 0 0 4px 27px;
}
.home-sub-nav a {
  grid-template-columns: 1fr;
  min-height: 24px;
  padding: 0 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}
.home-workspace {
  min-width: 0;
  padding: 10px 18px 28px;
}
.home-workspace .site-maintenance-banner,
.home-workspace .site-notice-banner {
  width: 100%;
  margin: 0 0 10px;
  box-shadow: none;
}
.home-market-head {
  position: sticky;
  top: 52px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  margin: 0 -18px 0;
  padding: 0 18px;
  background: rgba(245, 246, 248, .94);
  border-bottom: 1px solid #eceff3;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-model-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
}
.home-model-tabs::-webkit-scrollbar { display: none; }
.home-model-tabs button {
  position: relative;
  min-height: 48px;
  padding: 0 0 2px;
  color: #475569;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.home-model-tabs button.active {
  color: #0f172a;
}
.home-model-tabs button.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #2563eb;
  border-radius: 999px;
}
.home-market-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.home-total {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.home-total strong {
  color: #0f172a;
}
body.front-page-body:not(.profile-page-body) .home-market-tools .sort-select {
  width: 86px;
  height: 30px;
  padding: 0 10px;
  color: #334155;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
}
body.front-page-body:not(.profile-page-body) .home-filterbar {
  margin: 0;
  padding: 12px 0 10px;
}
body.front-page-body:not(.profile-page-body) .home-filterbar .category-tabs {
  gap: 10px;
  padding: 0;
}
body.front-page-body:not(.profile-page-body) .cat-chip {
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
body.front-page-body:not(.profile-page-body) .cat-chip::before {
  content: '';
  display: none;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 999px;
}
body.front-page-body:not(.profile-page-body) .cat-chip.active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}
body.front-page-body:not(.profile-page-body) .cat-chip.active::before {
  display: block;
}
body.front-page-body:not(.profile-page-body) .cat-chip em {
  color: #94a3b8;
  font-size: 11px;
}
body.front-page-body:not(.profile-page-body) .cat-chip-media-wrap {
  width: 18px;
  height: 18px;
}
body.front-page-body:not(.profile-page-body) .home-model-grid {
  display: block;
}
body.front-page-body:not(.profile-page-body) .poster-section {
  margin: 0 0 18px;
}
body.front-page-body:not(.profile-page-body) .poster-section h2 {
  display: none;
}
body.front-page-body:not(.profile-page-body) .poster-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 10px;
}
body.front-page-body:not(.profile-page-body) .poster-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}
body.front-page-body:not(.profile-page-body) .poster-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}
body.front-page-body:not(.profile-page-body) .poster-cover {
  position: relative;
  aspect-ratio: 1 / 1.28;
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, .08);
}
body.front-page-body:not(.profile-page-body) .poster-cover::before,
body.front-page-body:not(.profile-page-body) .poster-cover::after {
  content: none;
  display: none;
}
body.front-page-body:not(.profile-page-body) .poster-cover img,
body.front-page-body:not(.profile-page-body) .poster-cover video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform .18s ease;
}
body.front-page-body:not(.profile-page-body) .poster-card:hover .poster-cover img,
body.front-page-body:not(.profile-page-body) .poster-card:hover .poster-cover video {
  transform: scale(1.035);
}
.poster-tag-row {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.poster-tag-row span,
.poster-tag-row em {
  display: inline-flex;
  align-items: center;
  max-width: 72%;
  min-height: 18px;
  padding: 0 5px;
  overflow: hidden;
  color: #fff;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.poster-tag-row em {
  max-width: 52px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .52);
}
.poster-metric-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 26px;
  padding: 0 6px;
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}
.poster-metric-bar span {
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.poster-card-caption {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.poster-card-caption strong {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.poster-card-caption span {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.front-page-body:not(.profile-page-body) .empty-state {
  color: #64748b;
  background: #fff;
  border-color: #e5e7eb;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body),
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-shell {
  color: #f5f5f5;
  background: #050505;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-topbar,
html[data-theme="dark"] .home-sidebar {
  color: #f5f5f5;
  background: #0d0d0d;
  border-color: #242424;
}
html[data-theme="dark"] .home-global-search,
html[data-theme="dark"] .home-market-head,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .cat-chip.active,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-market-tools .sort-select {
  color: #f5f5f5;
  background: #111111;
  border-color: #2a2a2a;
}
html[data-theme="dark"] .home-global-search .search {
  color: #f5f5f5 !important;
}
html[data-theme="dark"] .home-side-nav a,
html[data-theme="dark"] .home-model-tabs button,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .cat-chip,
html[data-theme="dark"] .home-total,
html[data-theme="dark"] .poster-card-caption span {
  color: #a3a3a3;
}
html[data-theme="dark"] .home-side-nav a.active,
html[data-theme="dark"] .home-side-nav a:hover {
  color: #f5f5f5;
  background: #1a1a1a;
}
html[data-theme="dark"] .home-model-tabs button.active,
html[data-theme="dark"] .home-total strong,
html[data-theme="dark"] .poster-card-caption strong,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .cat-chip.active {
  color: #f5f5f5;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-cover {
  background: #111111;
  border-color: #242424;
}
@media (max-width: 1180px) {
  body.front-page-body:not(.profile-page-body) .poster-wall {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  }
  body.front-page-body:not(.profile-page-body) .home-topbar {
    grid-template-columns: 116px minmax(220px, 1fr) auto;
  }
}
@media (max-width: 860px) {
  body.front-page-body:not(.profile-page-body) .home-topbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: auto;
    padding: 8px 10px;
  }
  .home-global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    order: 3;
  }
  .home-top-actions {
    justify-content: flex-end;
  }
  .home-vip-link {
    display: none;
  }
  body.front-page-body:not(.profile-page-body) .home-shell {
    grid-template-columns: 1fr;
  }
  .home-sidebar {
    position: static;
    height: auto;
    padding: 8px 10px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #eceff3;
  }
  .home-side-nav {
    display: flex;
    gap: 8px;
    overflow: auto;
    scrollbar-width: none;
  }
  .home-side-nav::-webkit-scrollbar { display: none; }
  .home-side-nav a {
    flex: 0 0 auto;
    min-width: auto;
    padding: 0 10px;
  }
  .home-side-nav a em,
  .home-sub-nav {
    display: none;
  }
  .home-workspace {
    padding: 8px 10px 24px;
  }
  .home-market-head {
    top: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    margin: 0 -10px;
    padding: 8px 10px;
  }
  .home-market-tools {
    justify-content: space-between;
  }
  body.front-page-body:not(.profile-page-body) .poster-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }
}

body.front-page-body:not(.profile-page-body) .home-topbar {
  grid-template-columns: 178px minmax(280px, 1fr) auto;
}
body.front-page-body:not(.profile-page-body) .home-brand,
body.front-page-body:not(.profile-page-body) .home-brand span:last-child {
  min-width: 0;
  overflow: hidden;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.front-page-body:not(.profile-page-body) .home-shell {
  grid-template-columns: 148px minmax(0, 1fr);
}
body.front-page-body:not(.profile-page-body) .home-sidebar {
  width: 148px;
}
body.front-page-body:not(.profile-page-body) .home-side-nav a {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  min-height: 36px;
}
body.front-page-body:not(.profile-page-body) .home-sub-nav {
  margin-left: 31px;
}
body.front-page-body:not(.profile-page-body) .home-workspace {
  background: #f5f6f8;
}
body.front-page-body:not(.profile-page-body) .home-market-head,
body.front-page-body:not(.profile-page-body) .home-sidebar,
body.front-page-body:not(.profile-page-body) .home-topbar {
  box-shadow: none;
}
body.front-page-body:not(.profile-page-body) .home-model-tabs button,
body.front-page-body:not(.profile-page-body) .home-side-nav a,
body.front-page-body:not(.profile-page-body) .home-sub-nav a,
body.front-page-body:not(.profile-page-body) .poster-card-caption strong,
body.front-page-body:not(.profile-page-body) .home-global-search .search {
  text-rendering: geometricPrecision;
}
body.front-page-body:not(.profile-page-body) .home-topbar,
body.front-page-body:not(.profile-page-body) .home-sidebar,
body.front-page-body:not(.profile-page-body) .home-market-head {
  color: #111827;
  background: #ffffff;
  border-color: #eceff3;
}
body.front-page-body:not(.profile-page-body) .home-brand,
body.front-page-body:not(.profile-page-body) .home-brand span:last-child,
body.front-page-body:not(.profile-page-body) .home-side-nav a.active,
body.front-page-body:not(.profile-page-body) .home-side-nav a:hover,
body.front-page-body:not(.profile-page-body) .home-model-tabs button.active,
body.front-page-body:not(.profile-page-body) .poster-card-caption strong,
body.front-page-body:not(.profile-page-body) .home-total strong {
  color: #0f172a;
}
body.front-page-body:not(.profile-page-body) .home-side-nav a,
body.front-page-body:not(.profile-page-body) .home-sub-nav a,
body.front-page-body:not(.profile-page-body) .home-model-tabs button,
body.front-page-body:not(.profile-page-body) .poster-card-caption span,
body.front-page-body:not(.profile-page-body) .home-total {
  color: #475569;
}
body.front-page-body:not(.profile-page-body) .home-side-nav span,
body.front-page-body:not(.profile-page-body) .home-side-nav em {
  color: #64748b;
}
body.front-page-body:not(.profile-page-body) .home-side-nav a.active,
body.front-page-body:not(.profile-page-body) .home-side-nav a:hover {
  background: #f1f5f9;
}
body.front-page-body:not(.profile-page-body) .home-global-search,
body.front-page-body:not(.profile-page-body) .home-market-tools .sort-select,
body.front-page-body:not(.profile-page-body) .cat-chip.active,
body.front-page-body:not(.profile-page-body) .empty-state {
  color: #0f172a;
  background: #ffffff;
  border-color: #e5e7eb;
}
body.front-page-body:not(.profile-page-body) .home-global-search .search {
  color: #111827 !important;
  background: transparent !important;
}
body.front-page-body:not(.profile-page-body) .home-global-search .search::placeholder {
  color: #94a3b8 !important;
}
body.front-page-body:not(.profile-page-body) .poster-card,
body.front-page-body:not(.profile-page-body) .poster-card-caption {
  background: transparent;
}
body.front-page-body:not(.profile-page-body) .home-top-actions {
  min-width: max-content;
  overflow: visible;
}
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar {
  flex: 0 0 auto;
  gap: 6px;
  min-width: max-content;
  overflow: visible;
  white-space: nowrap;
}
body.front-page-body:not(.profile-page-body) .home-vip-link,
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-name,
body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn,
body.front-page-body:not(.profile-page-body) .home-top-actions [data-open-auth],
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 76px;
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  color: #1f2937 !important;
  background: #ffffff !important;
  border: 1px solid #dbe2ea !important;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}
body.front-page-body:not(.profile-page-body) .home-vip-link:hover,
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-name:hover,
body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn:hover,
body.front-page-body:not(.profile-page-body) .home-top-actions [data-open-auth]:hover,
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-action:hover {
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-name {
  gap: 6px;
  max-width: 116px;
}
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-name > span:last-child {
  color: inherit;
}
body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-balance {
  min-width: 76px;
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  color: #15161a;
  background: linear-gradient(135deg, #fff36b, #ffd329);
  border: 1px solid rgba(255, 211, 41, .55);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 211, 41, .18);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn {
  gap: 6px;
  overflow: visible;
}
body.front-page-body:not(.profile-page-body) .home-top-actions [data-open-auth] {
  flex: 0 0 auto;
  min-width: 86px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #101827, #25304a) !important;
  border-color: rgba(15, 23, 42, .92) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
}
body.front-page-body:not(.profile-page-body) .home-top-actions [data-open-auth]:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #020617, #1e293b) !important;
  border-color: #020617 !important;
}
body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn::after {
  content: none;
  display: none;
}
body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-icon {
  width: 20px;
  height: 20px;
  color: #ef4444;
  background: #fee2e2;
  box-shadow: none;
  font-size: 11px;
}
body.front-page-body:not(.profile-page-body) .home-market-tools .home-global-search {
  width: min(590px, 44vw);
}
body.front-page-body:not(.profile-page-body) .theme-toggle-btn {
  position: static;
  flex: 0 0 auto;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  z-index: auto;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
body.front-page-body:not(.profile-page-body) .theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-workspace {
  background: #050505;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-topbar,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-sidebar,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-market-head {
  color: #f5f5f5;
  background: #0b0b0b;
  border-color: #242424;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-brand,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-brand span:last-child,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .userbar,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-nav a.active,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-model-tabs button.active,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-card-caption strong {
  color: #f5f5f5;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-nav a,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-sub-nav a,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-model-tabs button,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-card-caption span,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-total {
  color: #a3a3a3;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-global-search,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-market-tools .sort-select,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .cat-chip.active {
  color: #f5f5f5;
  background: #111111;
  border-color: #2a2a2a;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-search-field {
  background: #0b0b0b;
  border-color: #2a2a2a;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-search-icon {
  color: #cbd5e1;
  background: #151515;
  border-color: #2a2a2a;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-search-btn {
  color: #0f172a;
  background: #f8fafc;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-global-search .search {
  color: #f5f5f5 !important;
  background: transparent !important;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-global-search .search::placeholder {
  color: #6b7280 !important;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-nav a.active,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-nav a:hover {
  background: #181818;
  border-color: #2a2a2a;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-title {
  color: #6b7280;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-card {
  background: transparent;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-card-caption {
  background: transparent;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-vip-link,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-name,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-action,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .theme-toggle-btn {
  color: #f5f5f5 !important;
  background: #151515 !important;
  border-color: #2a2a2a !important;
  box-shadow: none;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-vip-link:hover,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-name:hover,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn:hover,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .userbar-action:hover,
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .theme-toggle-btn:hover {
  color: #ffffff !important;
  background: #1f1f1f !important;
  border-color: #3a3a3a !important;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-icon {
  color: #fecaca;
  background: #3b1717;
}
@media (max-width: 1180px) {
  body.front-page-body:not(.profile-page-body) .home-topbar {
    grid-template-columns: 168px minmax(220px, 1fr) auto;
  }
  body.front-page-body:not(.profile-page-body) .poster-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 8px;
  }
}
@media (max-width: 860px) {
  body.front-page-body:not(.profile-page-body) .home-topbar {
    grid-template-columns: 1fr auto;
  }
  body.front-page-body:not(.profile-page-body) .home-shell {
    grid-template-columns: 1fr;
  }
  body.front-page-body:not(.profile-page-body) .home-sidebar {
    width: auto;
  }
  body.front-page-body:not(.profile-page-body) .theme-toggle-btn {
    position: static;
    width: 34px;
    height: 34px;
  }
  html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-sidebar {
    border-bottom-color: #242424;
  }
}

body.front-page-body:not(.profile-page-body) .poster-wall {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 10px;
}
body.front-page-body:not(.profile-page-body) .poster-card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #020617;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .16);
  transform: translateZ(0);
}
body.front-page-body:not(.profile-page-body) .poster-card:hover {
  z-index: 2;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .24);
  transform: translateY(-3px);
}
body.front-page-body:not(.profile-page-body) .poster-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.12;
  overflow: hidden;
  background: #020617;
  border: 0;
  border-radius: 7px 7px 0 0;
  box-shadow: none;
}
body.front-page-body:not(.profile-page-body) .poster-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(0, 0, 0, .08) 100%);
}
body.front-page-body:not(.profile-page-body) .poster-cover::after {
  content: none;
}
body.front-page-body:not(.profile-page-body) .poster-cover img,
body.front-page-body:not(.profile-page-body) .poster-cover video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .22s ease;
}
body.front-page-body:not(.profile-page-body) .poster-card:hover .poster-cover img,
body.front-page-body:not(.profile-page-body) .poster-card:hover .poster-cover video {
  transform: scale(1.035);
}
body.front-page-body:not(.profile-page-body) .poster-metric-bar,
body.front-page-body:not(.profile-page-body) .poster-card-caption,
body.front-page-body:not(.profile-page-body) .poster-tag-row,
body.front-page-body:not(.profile-page-body) .poster-badge,
body.front-page-body:not(.profile-page-body) .poster-info {
  display: none !important;
}
body.front-page-body:not(.profile-page-body) .poster-corner-ribbon {
  display: none !important;
}
body.front-page-body:not(.profile-page-body) .poster-reference-caption {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 10px 9px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
body.front-page-body:not(.profile-page-body) .poster-card-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.front-page-body:not(.profile-page-body) .poster-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-top: 7px;
  color: rgba(255, 255, 255, .82);
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-shadow: none;
}
body.front-page-body:not(.profile-page-body) .poster-author-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.front-page-body:not(.profile-page-body) .poster-stat-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .88);
}
body.front-page-body:not(.profile-page-body) .poster-stat {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 18px;
  padding: 0 5px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  white-space: nowrap;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .poster-card {
  background: #020617;
  border-color: transparent;
}
@media (max-width: 1180px) {
  body.front-page-body:not(.profile-page-body) .poster-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 8px;
  }
  body.front-page-body:not(.profile-page-body) .poster-card-title {
    font-size: 15px;
  }
  body.front-page-body:not(.profile-page-body) .poster-footer-row {
    font-size: 12px;
  }
  body.front-page-body:not(.profile-page-body) .poster-stat-list {
    gap: 4px;
  }
}
@media (max-width: 860px) {
  body.front-page-body:not(.profile-page-body) .poster-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }
  body.front-page-body:not(.profile-page-body) .poster-card-title {
    font-size: 14px;
  }
  body.front-page-body:not(.profile-page-body) .poster-footer-row {
    font-size: 11px;
  }
}
@media (max-width: 380px) {
  body.front-page-body:not(.profile-page-body) .poster-reference-caption {
    gap: 6px;
    padding: 9px 8px 8px;
  }
  body.front-page-body:not(.profile-page-body) .poster-stat-list {
    gap: 4px;
  }
}

body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs {
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  padding: 0;
}
body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip {
  min-height: 38px;
  padding: 0 16px;
  color: #475569;
  background: rgba(255, 255, 255, .74);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}
body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip.active {
  position: relative;
  color: #0f172a;
  background: linear-gradient(135deg, #eef5ff, #ffffff);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .10);
}
body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip.active::after {
  content: none;
  display: none;
}
body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip::before {
  content: none;
  display: none;
}
body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip em {
  color: #94a3b8;
  font-size: 18px;
}
body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip-media-wrap {
  width: 18px;
  height: 18px;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip {
  color: #a3a3a3;
  background: #111111;
  border-color: #2a2a2a;
  box-shadow: none;
}
html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip.active {
  color: #f5f5f5;
  background: linear-gradient(135deg, #171717, #111827);
  border-color: #334155;
}
@media (max-width: 860px) {
  body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs {
    gap: 10px;
  }
  body.front-page-body:not(.profile-page-body) .home-market-head > .category-tabs .cat-chip {
    min-height: 34px;
    padding: 0 13px;
    font-size: 15px;
  }
}

@media (max-width: 860px) {
  body.front-page-body:not(.profile-page-body) .home-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  body.front-page-body:not(.profile-page-body) .home-brand {
    flex: 0 1 auto;
    max-width: 92px;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn {
    min-width: 68px;
    padding: 0 10px;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions [data-open-auth] {
    min-width: 76px;
    padding: 0 12px;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions::-webkit-scrollbar {
    display: none;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions .userbar {
    flex: 0 0 auto;
    min-width: max-content;
    overflow: visible;
  }
  body.front-page-body:not(.profile-page-body) .home-shell {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 0;
  }
  body.front-page-body:not(.profile-page-body) .home-sidebar {
    width: auto;
    height: auto;
    padding: 8px 10px;
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav::-webkit-scrollbar {
    display: none;
  }
  body.front-page-body:not(.profile-page-body) .home-side-group {
    display: contents;
  }
  body.front-page-body:not(.profile-page-body) .home-side-title {
    display: none;
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav a {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 0 12px;
  }
  body.front-page-body:not(.profile-page-body) .home-market-head {
    align-items: stretch;
    gap: 10px;
    margin: 0 -10px;
    padding: 8px 10px;
  }
  body.front-page-body:not(.profile-page-body) .home-market-tools {
    width: 100%;
  }
  body.front-page-body:not(.profile-page-body) .home-market-tools .home-global-search {
    width: 100%;
    min-height: 48px;
    padding: 6px;
  }
  body.front-page-body:not(.profile-page-body) .home-search-field {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 36px;
    padding: 0 10px;
  }
  body.front-page-body:not(.profile-page-body) .home-search-icon {
    width: 22px;
    height: 22px;
  }
  body.front-page-body:not(.profile-page-body) .home-search-icon svg {
    width: 13px;
    height: 13px;
  }
  body.front-page-body:not(.profile-page-body) .home-search-btn {
    min-height: 40px;
    min-width: 64px;
    padding: 0 14px;
  }
}
@media (max-width: 420px) {
  body.front-page-body:not(.profile-page-body) .home-topbar {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  body.front-page-body:not(.profile-page-body) .home-brand {
    max-width: 96px;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions .userbar {
    gap: 5px;
  }
  body.front-page-body:not(.profile-page-body) .theme-toggle-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-btn {
    min-width: 66px;
    height: 32px;
    min-height: 32px;
    padding: 0 9px;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions .top-recharge-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  body.front-page-body:not(.profile-page-body) .home-top-actions [data-open-auth] {
    min-width: 70px;
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}

body.front-page-body:not(.profile-page-body) .home-model-grid {
  display: block;
}
body.front-page-body:not(.profile-page-body) .home-model-grid .poster-section {
  display: block;
  margin: 0 0 18px;
}
body.front-page-body:not(.profile-page-body) .home-model-grid .poster-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 10px;
}
body.front-page-body:not(.profile-page-body) .home-model-grid .empty-state {
  grid-column: 1 / -1;
}
@media (max-width: 1180px) {
  body.front-page-body:not(.profile-page-body) .home-model-grid .poster-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 8px;
  }
}
@media (max-width: 860px) {
  body.front-page-body:not(.profile-page-body) .home-model-grid .poster-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }
}

@media (min-width: 861px) {
  body.front-page-body:not(.profile-page-body) .home-shell {
    grid-template-columns: 168px minmax(0, 1fr);
  }
  body.front-page-body:not(.profile-page-body) .home-sidebar {
    width: 168px;
    padding: 14px 10px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid #e5eaf2;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7);
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav {
    gap: 16px;
  }
  body.front-page-body:not(.profile-page-body) .home-side-group {
    gap: 8px;
    padding: 10px 8px 8px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .72);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
  }
  body.front-page-body:not(.profile-page-body) .home-side-group:nth-child(2) {
    margin-top: auto;
  }
  body.front-page-body:not(.profile-page-body) .home-side-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-height: 28px;
    padding: 0 12px;
    color: #475569;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .045);
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .02em;
  }
  body.front-page-body:not(.profile-page-body) .home-side-title::before {
    content: '';
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav a {
    position: relative;
    min-height: 40px;
    padding: 0 12px 0 14px;
    color: #334155;
    border-radius: 14px;
    border-color: transparent;
    background: transparent;
    font-size: 14px;
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav a::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 999px;
    transform: translateY(-50%);
    transition: height .16s ease;
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav a.active,
  body.front-page-body:not(.profile-page-body) .home-side-nav a:hover {
    color: #0f172a;
    background: linear-gradient(135deg, #eef5ff, #f8fbff);
    border-color: #dbeafe;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .08);
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav a.active::before,
  body.front-page-body:not(.profile-page-body) .home-side-nav a:hover::before {
    height: 18px;
  }
  body.front-page-body:not(.profile-page-body) .home-side-nav strong {
    padding-left: 4px;
    font-size: 14px;
  }
  html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-sidebar {
    background: linear-gradient(180deg, #0b0b0b 0%, #101010 100%);
    border-color: #242424;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .03);
  }
  html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-group {
    background: rgba(20, 20, 20, .74);
    border-color: #242424;
    box-shadow: none;
  }
  html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-title {
    color: #d4d4d4;
    background: linear-gradient(135deg, #171717, #111827);
    border-color: #2a2a2a;
    box-shadow: none;
  }
  html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-title::before {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .14);
  }
  html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-nav a.active,
  html[data-theme="dark"] body.front-page-body:not(.profile-page-body) .home-side-nav a:hover {
    background: linear-gradient(135deg, #171717, #111827);
    border-color: #2a2a2a;
    box-shadow: none;
  }
}

@media (min-width: 861px) {
  body.front-page-body:not(.profile-page-body) .home-model-grid {
    display: block !important;
  }
  body.front-page-body:not(.profile-page-body) .home-model-grid .poster-section {
    display: block !important;
  }
  body.front-page-body:not(.profile-page-body) .home-model-grid .poster-wall {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .app-use-form .app-number-field {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .app-use-form .app-number-field .app-field-head {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .app-use-form .app-number-row {
    grid-template-columns: 52px minmax(120px, 1fr) 52px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
}