:root {
  --mb-ink: #18221e;
  --mb-muted: #6b756f;
  --mb-line: #e4e8e6;
  --mb-surface: #ffffff;
  --mb-canvas: #f4f6f5;
  --mb-green: #c83232;
  --mb-green-dark: #a82626;
  --mb-green-soft: #fff0f0;
  --mb-amber: #d97706;
  --mb-amber-soft: #fff4df;
  --mb-danger: #c2413a;
}

.mb-app-body,
.mb-auth-page,
.mb-app-body button,
.mb-app-body input,
.mb-app-body select,
.mb-app-body textarea,
.mb-auth-page button,
.mb-auth-page input {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.mb-brand,
.mb-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--mb-ink);
  text-decoration: none;
}

.mb-brand:hover,
.mb-brand:focus,
.mb-auth-brand:hover,
.mb-auth-brand:focus {
  color: var(--mb-ink);
  text-decoration: none;
}

.mb-brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 5px;
  background: var(--mb-ink);
  border-radius: 8px;
}

.mb-brand-mark span {
  display: block;
  min-width: 0;
  background: #ffffff;
  border-radius: 1px;
}

.mb-brand-mark span:nth-child(2),
.mb-brand-mark span:nth-child(3) {
  background: #35a487;
}

.mb-brand-mark span:nth-child(4) {
  background: #f2a93b;
}

.mb-brand-mark--circle {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  background: #c83232;
  border-radius: 50%;
  font-family: STSong, SimSun, serif;
  font-size: 27px;
  line-height: 1;
}

.mb-brand-mark--image {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.mb-brand-mark--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mb-brand-tagline {
  margin-left: 14px;
  padding-left: 16px;
  color: #333333;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  border-left: 1px solid #c7cbc9;
}

.mb-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mb-brand-copy strong {
  color: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.mb-brand-copy small {
  margin-top: 2px;
  color: #84908a;
  font-size: 11px;
  line-height: 1;
}

/* Account pages */
.mb-auth-page {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--mb-ink);
  background: var(--mb-surface);
}

.mb-auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(460px, 1.08fr);
  min-height: 100vh;
}

.mb-auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 42px 48px;
  overflow: hidden;
  color: #ffffff;
  background: #202225 url("/static/home/images/media-box-generated/auth-background-v2.webp") center center / cover no-repeat;
}

.mb-auth-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(20, 22, 25, 0.7);
}

.mb-auth-visual > * {
  position: relative;
  z-index: 1;
}

.mb-auth-visual .mb-auth-brand {
  color: #ffffff;
}

.mb-auth-visual .mb-brand-copy small {
  color: rgba(255, 255, 255, 0.68);
}

.mb-auth-visual-copy {
  max-width: 520px;
  padding: 64px 0;
}

.mb-auth-kicker {
  display: block;
  margin-bottom: 17px;
  color: #ff9b9b;
  font-size: 13px;
  font-weight: 600;
}

.mb-auth-visual-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.35;
}

.mb-auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 520px;
  margin-top: 38px;
  background: rgba(255, 255, 255, 0.22);
}

.mb-auth-metric {
  min-width: 0;
  padding: 17px 18px;
  background: rgba(20, 22, 25, 0.78);
}

.mb-auth-metric strong,
.mb-auth-metric span {
  display: block;
}

.mb-auth-metric strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.mb-auth-metric span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  white-space: nowrap;
}

.mb-auth-visual-footer {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.mb-auth-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 52px 64px;
  background: #ffffff;
}

.mb-auth-home {
  position: absolute;
  top: 28px;
  right: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mb-muted);
  font-size: 13px;
}

.mb-auth-home:hover,
.mb-auth-home:focus {
  color: var(--mb-green);
  text-decoration: none;
}

.mb-auth-card {
  width: 100%;
  max-width: 420px;
}

.mb-auth-mobile-brand {
  display: none;
  margin-bottom: 42px;
}

.mb-auth-heading {
  margin-bottom: 31px;
}

.mb-auth-heading .mb-auth-kicker {
  margin-bottom: 9px;
  color: var(--mb-green);
}

.mb-auth-heading h2 {
  margin: 0;
  color: var(--mb-ink);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.35;
}

.mb-auth-heading p {
  margin: 9px 0 0;
  color: var(--mb-muted);
  font-size: 14px;
  line-height: 1.7;
}

.mb-field {
  margin-bottom: 18px;
}

.mb-field label {
  display: block;
  margin-bottom: 8px;
  color: #3d4843;
  font-size: 13px;
  font-weight: 600;
}

.mb-input-wrap {
  position: relative;
}

.mb-input-wrap > i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  width: 18px;
  color: #98a29d;
  font-size: 15px;
  text-align: center;
  transform: translateY(-50%);
}

.mb-input-wrap input,
.mb-auth-page .inputBox input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 15px 0 44px;
  color: var(--mb-ink);
  font-size: 14px;
  line-height: 48px;
  background: #ffffff;
  border: 1px solid #d9dfdc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mb-input-wrap input:focus,
.mb-auth-page .inputBox input:focus {
  border-color: var(--mb-green);
  box-shadow: 0 0 0 3px rgba(20, 122, 100, 0.1);
}

.mb-input-wrap input::placeholder,
.mb-auth-page .inputBox input::placeholder {
  color: #a1aaa5;
}

.mb-password-toggle {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  color: #84908a !important;
  cursor: pointer;
  transform: none !important;
}

.mb-captcha-row,
.mb-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.mb-captcha-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 48px;
  overflow: hidden;
  background: #f0f5f3;
  border: 1px solid #d9dfdc;
  border-radius: 6px;
}

.mb-captcha-box img {
  display: block;
  max-width: 118px;
  height: 40px;
  object-fit: contain;
}

.mb-code-button {
  width: 132px;
  height: 48px;
  margin: 0;
  padding: 0 10px;
  color: var(--mb-green);
  font-size: 13px;
  font-weight: 600;
  background: var(--mb-green-soft);
  border: 1px solid #c7ded6;
  border-radius: 6px;
  cursor: pointer;
}

.mb-code-button:disabled {
  color: #8b9690;
  background: #f1f3f2;
  border-color: #dfe4e1;
  cursor: not-allowed;
}

.mb-error-tip {
  min-height: 22px;
  margin: -3px 0 11px;
  color: var(--mb-danger);
  font-size: 12px;
  line-height: 1.6;
}

.mb-error-tip .tips {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mb-error-tip img {
  width: 14px;
  height: 14px;
  margin: 0;
}

.mb-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  background: var(--mb-green);
  border: 1px solid var(--mb-green);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mb-auth-submit:hover,
.mb-auth-submit:focus {
  color: #ffffff;
  background: var(--mb-green-dark);
  border-color: var(--mb-green-dark);
  text-decoration: none;
}

.mb-auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--mb-muted);
  font-size: 13px;
}

.mb-auth-links a {
  color: var(--mb-green);
  font-weight: 600;
}

.mb-auth-links a.mb-auth-muted-link {
  color: var(--mb-muted);
  font-weight: 400;
}

.mb-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 18px;
  color: var(--mb-muted);
  font-size: 12px;
  line-height: 1.6;
}

.mb-privacy input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--mb-green);
}

.mb-privacy label {
  margin: 0;
  font-weight: 400;
}

.mb-privacy a {
  color: var(--mb-green);
}

/* Member application shell */
.mb-app-body {
  color: var(--mb-ink);
  background: var(--mb-canvas);
}

.mb-app-body .mb-topbar {
  display: flex;
  align-items: center;
  min-height: 80px;
  height: 80px;
  margin: 0;
  padding: 0;
  color: var(--mb-ink);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--mb-line);
  box-shadow: none;
}

.mb-topbar-brand {
  display: flex;
  align-items: center;
  width: 300px;
  height: 80px;
  padding: 0 24px;
  flex: 0 0 300px;
  border-right: 1px solid var(--mb-line);
}

.mb-topbar-collapse {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 80px;
  padding: 0 18px 0 24px;
  flex: 1;
}

.mb-topbar-links,
.mb-user-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mb-topbar-links li,
.mb-user-nav li {
  height: 100%;
}

.mb-topbar-links a,
.mb-user-nav > li > a {
  display: flex !important;
  align-items: center;
  gap: 7px;
  height: 80px;
  padding: 0 14px !important;
  color: #59645e !important;
  font-size: 13px;
  background: transparent !important;
}

.mb-topbar-links a:hover,
.mb-user-nav > li > a:hover {
  color: var(--mb-green) !important;
}

.mb-topbar-links a .am-icon,
.mb-user-nav > li > a .am-icon {
  color: currentColor;
}

.mb-user-nav .mb-user-trigger {
  color: var(--mb-ink) !important;
  font-weight: 600;
}

.mb-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--mb-green-dark);
  background: var(--mb-green-soft);
  border-radius: 50%;
}

.mb-app-body .am-dropdown-content {
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(24, 34, 30, 0.12);
}

.mb-app-body .am-dropdown-content > li > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: #4f5a54;
  font-size: 13px;
  border-radius: 5px;
}

.mb-app-body .am-dropdown-content > li > a:hover {
  color: var(--mb-green-dark);
  background: var(--mb-green-soft);
}

.mb-mobile-topbar-button {
  margin: 0 16px 0 auto;
  color: var(--mb-ink) !important;
  background: #ffffff !important;
  border: 1px solid var(--mb-line) !important;
  border-radius: 6px !important;
}

.mb-mobile-topbar-button .am-icon-bars {
  display: inline-block;
  color: var(--mb-ink);
  font-size: 16px;
  line-height: 1;
}

.mb-app-body .admin-main {
  height: 100%;
  padding-top: 80px;
  background: var(--mb-canvas);
}

.mb-app-body .mb-sidebar {
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  z-index: 1200;
  width: 300px;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-right: 1px solid var(--mb-line);
}

.mb-app-body .mb-sidebar .admin-offcanvas-bar {
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 100%;
  padding: 18px 12px 14px;
  overflow-y: auto;
  color: var(--mb-ink);
  background: #ffffff;
}

.mb-sidebar-nav {
  flex: 1;
}

.mb-nav-section {
  margin-bottom: 18px;
}

.mb-nav-label {
  padding: 0 12px 7px;
  color: #9aa39e;
  font-size: 11px;
  font-weight: 600;
}

.mb-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  margin-bottom: 3px;
  padding: 9px 12px;
  color: #55605a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 6px;
}

.mb-nav-link i {
  width: 18px;
  color: #82908a;
  font-size: 15px;
  text-align: center;
}

.mb-nav-link:hover,
.mb-nav-link:focus {
  color: var(--mb-green-dark);
  background: #f0f6f3;
  text-decoration: none;
}

.mb-nav-link.is-active {
  color: var(--mb-green-dark);
  font-weight: 600;
  background: var(--mb-green-soft);
}

.mb-nav-link.is-active i {
  color: var(--mb-green);
}

.mb-sidebar-footer {
  margin: 8px 4px 0;
  padding: 14px 12px 4px;
  color: #929c97;
  font-size: 11px;
  line-height: 1.7;
  border-top: 1px solid var(--mb-line);
}

.mb-sidebar-footer strong {
  display: block;
  color: #59645e;
  font-size: 12px;
}

.mb-app-body .admin-content {
  height: 100%;
  margin: 0 0 0 300px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--mb-ink);
  background: var(--mb-canvas);
}

.mb-app-body .admin-content-body {
  min-width: 0;
  padding: 24px;
}

.mb-app-body .admin-content-body > .am-cf.am-padding {
  padding: 0 0 14px;
}

.mb-app-body .am-panel {
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  box-shadow: none;
}

.mb-app-body .am-panel-hd {
  color: var(--mb-ink);
  font-weight: 600;
  background: #f8faf9;
  border-color: var(--mb-line);
}

.mb-app-body .am-btn {
  border-radius: 6px;
}

.mb-app-body .am-btn-primary,
.mb-app-body .am-btn-success {
  color: #ffffff;
  background: var(--mb-green);
  border-color: var(--mb-green);
}

.mb-app-body .am-btn-primary:hover,
.mb-app-body .am-btn-success:hover {
  background: var(--mb-green-dark);
  border-color: var(--mb-green-dark);
}

.mb-app-body .am-btn-warning {
  color: #ffffff;
  background: var(--mb-amber);
  border-color: var(--mb-amber);
}

.mb-app-body .am-table > thead > tr > th,
.mb-app-body .layui-table thead tr {
  color: #4e5953;
  background: #f5f7f6;
}

.mb-app-body input[type="text"],
.mb-app-body input[type="password"],
.mb-app-body input[type="tel"],
.mb-app-body input[type="number"],
.mb-app-body select,
.mb-app-body textarea {
  border-color: #d6ddda;
  border-radius: 5px;
}

.mb-app-body input:focus,
.mb-app-body select:focus,
.mb-app-body textarea:focus {
  border-color: var(--mb-green) !important;
  box-shadow: 0 0 0 3px rgba(20, 122, 100, 0.09) !important;
}

/* Dashboard */
.mb-dashboard {
  max-width: 1420px;
  margin: 0 auto;
}

.mb-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.mb-dashboard-head h1 {
  margin: 4px 0 5px;
  color: var(--mb-ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.mb-dashboard-head p {
  margin: 0;
  color: var(--mb-muted);
  font-size: 13px;
}

.mb-eyebrow {
  color: var(--mb-green);
  font-size: 11px;
  font-weight: 700;
}

.mb-primary-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  background: var(--mb-green);
  border: 1px solid var(--mb-green);
  border-radius: 6px;
}

.mb-primary-command:hover,
.mb-primary-command:focus {
  color: #ffffff;
  background: var(--mb-green-dark);
  text-decoration: none;
}

.mb-overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 2fr);
  gap: 16px;
  margin-bottom: 18px;
}

.mb-balance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 24px;
  color: #ffffff;
  background: #1c2b25;
  border: 1px solid #1c2b25;
  border-radius: 8px;
}

.mb-balance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mb-balance-card-header span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.mb-level-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  color: #1c2b25 !important;
  font-size: 11px !important;
  font-weight: 700;
  background: #f3b34b;
  border-radius: 4px;
}

.mb-balance-number {
  margin: 17px 0 20px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-all;
}

.mb-balance-actions {
  display: flex;
  gap: 10px;
}

.mb-balance-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
}

.mb-balance-actions a:first-child {
  color: #17241f;
  font-weight: 600;
  background: #ffffff;
  border-color: #ffffff;
}

.mb-balance-actions a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.mb-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mb-quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 99px;
  padding: 18px;
  color: var(--mb-ink);
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mb-quick-card:hover,
.mb-quick-card:focus {
  color: var(--mb-ink);
  border-color: #b8d4ca;
  text-decoration: none;
  transform: translateY(-2px);
}

.mb-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--mb-green-dark);
  font-size: 18px;
  background: var(--mb-green-soft);
  border-radius: 7px;
}

.mb-quick-card:nth-child(2) .mb-quick-icon,
.mb-quick-card:nth-child(4) .mb-quick-icon {
  color: #945407;
  background: var(--mb-amber-soft);
}

.mb-quick-copy {
  min-width: 0;
}

.mb-quick-copy strong,
.mb-quick-copy span {
  display: block;
}

.mb-quick-copy strong {
  color: var(--mb-ink);
  font-size: 14px;
  font-weight: 650;
}

.mb-quick-copy span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--mb-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.mb-dashboard-panel {
  min-width: 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
}

.mb-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.mb-panel-heading h2 {
  margin: 0;
  color: var(--mb-ink);
  font-size: 16px;
  font-weight: 700;
}

.mb-panel-heading span,
.mb-panel-heading a {
  color: var(--mb-muted);
  font-size: 12px;
}

.mb-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px 0 2px;
}

.mb-workflow-step {
  position: relative;
  min-width: 0;
  padding: 0 14px;
  text-align: center;
}

.mb-workflow-step:not(:last-child)::after {
  position: absolute;
  top: 20px;
  left: calc(50% + 25px);
  width: calc(100% - 50px);
  height: 1px;
  content: "";
  background: #dce4e0;
}

.mb-workflow-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 13px;
  color: var(--mb-green-dark);
  font-size: 13px;
  font-weight: 700;
  background: var(--mb-green-soft);
  border: 1px solid #c9dfd7;
  border-radius: 50%;
}

.mb-workflow-step strong,
.mb-workflow-step span {
  display: block;
}

.mb-workflow-step strong {
  color: #34413b;
  font-size: 13px;
}

.mb-workflow-step span {
  margin-top: 5px;
  color: #8b9690;
  font-size: 11px;
  line-height: 1.5;
}

.mb-notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mb-notice-item {
  padding: 13px 0;
  border-bottom: 1px solid #edf0ee;
}

.mb-notice-item:first-child {
  padding-top: 0;
}

.mb-notice-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mb-notice-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #47534d;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mb-notice-item time {
  display: block;
  margin-top: 6px;
  color: #9ca59f;
  font-size: 11px;
}

.mb-empty-notice {
  padding: 30px 0;
  color: #96a09b;
  font-size: 12px;
  text-align: center;
}

.mb-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 18px;
  color: #59645e;
  font-size: 12px;
  background: #eef2f0;
  border: 1px solid #e0e5e2;
  border-radius: 7px;
}

.mb-contact-items {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mb-contact-items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mb-contact-strip > span {
  color: #8c9691;
}

@media only screen and (max-width: 1100px) {
  .mb-auth-shell {
    grid-template-columns: minmax(360px, 0.85fr) minmax(440px, 1.15fr);
  }

  .mb-auth-visual {
    padding: 36px;
  }

  .mb-auth-visual-copy h1 {
    font-size: 35px;
  }

  .mb-auth-main {
    padding: 50px 42px;
  }

  .mb-topbar-links li:nth-child(3) {
    display: none;
  }

  .mb-overview-grid,
  .mb-dashboard-lower {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 800px) {
  .mb-auth-shell {
    display: block;
  }

  .mb-auth-visual {
    display: none;
  }

  .mb-auth-main {
    align-items: flex-start;
    min-height: 100vh;
    padding: 34px 24px 48px;
  }

  .mb-auth-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .mb-auth-home {
    display: none;
  }

  .mb-auth-mobile-brand {
    display: flex;
  }
}

@media only screen and (max-width: 640px) {
  .mb-topbar-brand {
    width: auto;
    padding: 0 14px;
    flex: 1;
    border-right: 0;
  }

  .mb-topbar-brand .mb-brand-copy small {
    display: none;
  }

  .mb-topbar-collapse {
    display: none !important;
  }

  .mb-app-body .mb-sidebar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .mb-app-body .mb-sidebar .admin-offcanvas-bar {
    width: 272px;
    padding-top: 24px;
  }

  .mb-app-body .admin-content {
    margin-left: 0;
  }

  .mb-app-body .admin-content-body {
    padding: 18px 14px 88px;
  }

  .mb-dashboard-head {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .mb-dashboard-head h1 {
    font-size: 21px;
  }

  .mb-dashboard-head p,
  .mb-primary-command > span:last-child {
    display: none;
  }

  .mb-primary-command {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .mb-primary-command > .am-icon-plus {
    display: inline-block;
  }

  .mb-quick-grid {
    grid-template-columns: 1fr;
  }

  .mb-quick-card {
    min-height: 82px;
  }

  .mb-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }

  .mb-workflow-step::after {
    display: none;
  }

  .mb-contact-strip,
  .mb-contact-items {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media only screen and (max-width: 420px) {
  .mb-auth-main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .mb-auth-heading h2 {
    font-size: 25px;
  }

  .mb-captcha-row,
  .mb-code-row {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .mb-captcha-box,
  .mb-code-button {
    width: 116px;
  }

  .mb-auth-links {
    gap: 12px;
  }

  .mb-balance-actions {
    flex-wrap: wrap;
  }
}

/* Shared order workspace controls. */
.mb-app-body .mb-order-switch {
  display: inline-flex;
  gap: 0;
}

.mb-app-body .mb-order-switch .am-btn {
  min-width: 94px;
  height: 38px;
  line-height: 36px;
  border-radius: 0;
}

.mb-app-body .mb-order-switch .am-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.mb-app-body .mb-order-switch .am-btn:last-child {
  border-radius: 0 6px 6px 0;
}

.mb-app-body .mb-order-toolbar {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
}

.mb-app-body .mb-order-toolbar .am-form-group {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 7px;
}

.mb-app-body .mb-order-toolbar .am-form-label {
  padding: 0 !important;
  color: #5e6862;
  font-size: 12px;
  font-weight: 600;
}

.mb-app-body .mb-order-toolbar .am-form-field {
  width: 150px;
  height: 38px;
  padding: 0 11px;
  font-size: 13px;
  line-height: 38px;
}

.mb-app-body .mb-order-toolbar .am-btn-group {
  display: inline-flex;
  gap: 8px;
  margin: 0 !important;
}

.mb-app-body .mb-order-toolbar .am-btn {
  height: 38px;
  padding: 0 16px;
  line-height: 36px;
}

.mb-app-body .mb-status-tabs {
  display: flex;
  max-width: 100%;
  margin: 14px 0 0;
  overflow-x: auto;
  border: 1px solid var(--mb-line);
  border-radius: 7px;
  background: #ffffff;
}

.mb-app-body .mb-status-tabs .am-btn {
  min-width: 82px;
  height: 38px;
  padding: 0 14px;
  color: #68726c !important;
  background: #ffffff !important;
  border: 0;
  border-right: 1px solid var(--mb-line);
  border-radius: 0;
  line-height: 38px;
  white-space: nowrap;
}

.mb-app-body .mb-status-tabs .am-btn:last-child {
  border-right: 0;
}

.mb-app-body .mb-status-tabs .am-btn.am-btn-secondary,
.mb-app-body .mb-status-tabs .am-btn:hover,
.mb-app-body .mb-status-tabs .am-btn:focus {
  color: #ffffff !important;
  background: var(--mb-green) !important;
}

.mb-app-body #my_article_wrapper {
  margin-top: 14px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
}

.mb-app-body #my_article {
  min-width: 1120px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.mb-app-body #my_article > thead > tr > th {
  height: 52px;
  padding: 0 12px;
  color: #4b5650;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  background: #f8faf9;
  border: 0;
  border-bottom: 1px solid var(--mb-line);
}

.mb-app-body #my_article > tbody > tr > td {
  min-height: 58px;
  padding: 13px 12px;
  color: #55605a;
  font-size: 12px;
  line-height: 1.55;
  vertical-align: middle;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #edf0ee;
}

.mb-app-body #my_article > tbody > tr:last-child > td {
  border-bottom: 0;
}

.mb-app-body #my_article > tbody > tr:hover > td {
  background: #fff9f9;
}

.mb-app-body #my_article td a:not(.am-btn) {
  color: var(--mb-green-dark);
}

.mb-app-body #my_article td a:not(.am-btn):hover {
  color: var(--mb-green);
}

.mb-app-body #my_article .am-btn {
  min-height: 28px;
  margin: 2px 2px 2px 0;
  padding: 0 8px;
  font-size: 11px;
  line-height: 26px;
  white-space: nowrap;
}

.mb-app-body #my_article .price_td {
  color: #a82626;
  font-weight: 700;
}

.mb-app-body .dataTables_wrapper + div {
  margin: 16px 0 4px;
  text-align: right;
}

.mb-app-body .dataTables_wrapper + div .pagination {
  display: inline-flex;
  gap: 5px;
  margin: 0;
}

.mb-app-body .dataTables_wrapper + div .pagination a,
.mb-app-body .dataTables_wrapper + div .pagination li.active,
.mb-app-body .dataTables_wrapper + div .pagination li.disabled span {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #68726c;
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 5px;
}

.mb-app-body .dataTables_wrapper + div .pagination li.active,
.mb-app-body .dataTables_wrapper + div .pagination a:hover {
  color: #ffffff;
  background: var(--mb-green);
  border-color: var(--mb-green);
}

.mb-brand-tagline {
  color: #333333;
}

@media only screen and (max-width: 1100px) {
  .mb-brand-tagline {
    display: none;
  }

  .mb-topbar-brand {
    width: 232px;
    flex-basis: 232px;
  }

  .mb-app-body .mb-sidebar,
  .mb-app-body .mb-sidebar .admin-offcanvas-bar {
    width: 232px;
  }

  .mb-app-body .admin-content {
    margin-left: 232px;
  }
}

@media only screen and (max-width: 640px) {
  .mb-topbar-brand {
    width: auto;
    min-width: 0;
    flex-basis: auto;
  }

  .mb-brand-mark--circle,
  .mb-brand-mark--image {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 22px;
  }

  .mb-app-body .mb-sidebar {
    width: 100%;
  }

  .mb-app-body .mb-sidebar .admin-offcanvas-bar {
    width: 272px;
  }

  .mb-app-body .admin-content {
    width: 100%;
    margin-left: 0;
  }

  .mb-app-body .mb-order-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mb-app-body .mb-order-toolbar .am-form-group {
    width: 100%;
    align-items: center;
  }

  .mb-app-body .mb-order-toolbar .am-form-field {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .mb-app-body .mb-order-toolbar .am-btn-group {
    width: 100%;
  }

  .mb-app-body .mb-order-toolbar .am-btn-group .am-btn {
    flex: 1;
  }

  .mb-app-body .mb-status-tabs .am-btn {
    min-width: 74px;
  }

  .mb-app-body .dataTables_wrapper + div {
    margin-right: 0 !important;
    text-align: center;
  }
}

/* Legacy member workspaces: keep the older forms inside the Media Box system. */
.mb-app-body .am-text-warning {
  color: var(--mb-green) !important;
}

.mb-app-body .content-article .page-content {
  padding: 0 24px 48px;
}

.mb-app-body .content-article .page-content-area {
  max-width: 1180px;
  margin-left: 0 !important;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
}

.mb-app-body .content-article #MyForm,
.mb-app-body .content-article #MyForm .am-g {
  box-sizing: border-box;
}

.mb-app-body .content-article #MyForm .title_notice {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  color: var(--mb-danger);
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}

.mb-app-body .content-article #uploadstart {
  display: inline-flex;
  max-width: 100%;
  min-height: 38px;
  height: auto !important;
  align-items: center;
  line-height: 1.4 !important;
  white-space: normal;
}

.mb-app-body .content-article #MyForm > div[style*="height: 32px"] {
  min-height: 32px;
  height: auto !important;
  line-height: 1.4 !important;
}

.mb-app-body .content-article .edui-editor,
.mb-app-body .content-article .edui-editor-toolbarbox,
.mb-app-body .content-article .edui-editor-toolbarboxouter,
.mb-app-body .content-article .edui-editor-toolbarboxinner,
.mb-app-body .content-article .edui-toolbar,
.mb-app-body .content-article .edui-editor-iframeholder {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
}

.mb-app-body .content-article .edui-editor-toolbarbox {
  overflow-x: auto;
}

.mb-app-body .content-article .edui-toolbar {
  min-width: 520px;
}

.mb-app-body .content-article .edui-editor-iframeholder iframe {
  width: 100% !important;
}

/* Resource filters */
.mb-app-body .mb-resource-page .filter {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
}

.mb-app-body .mb-resource-page .filter-item {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: 13px 16px;
  clear: both;
  border-bottom: 1px solid #edf0ee;
}

.mb-app-body .mb-resource-page .filter-item:last-child {
  border-bottom: 0;
}

.mb-app-body .mb-resource-page .filter-label {
  flex: 0 0 78px;
  padding: 5px 12px 5px 0;
  color: #44504a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.mb-app-body .mb-resource-page .filter-list {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
}

.mb-app-body .mb-resource-page .filter-option {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin: 0 !important;
  padding: 4px 8px !important;
  color: #68746d;
  font-size: 12px;
  line-height: 1.35;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.mb-app-body .mb-resource-page .filter-option:hover {
  color: var(--mb-green-dark);
  background: var(--mb-green-soft);
}

.mb-app-body .mb-resource-page .filter-option.active {
  color: #ffffff !important;
  background: var(--mb-green) !important;
  border-color: var(--mb-green);
}

.mb-app-body .mb-resource-page .filter-option img {
  max-width: 16px;
  height: auto;
  margin-left: 3px;
}

.mb-app-body .mb-resource-page .am-margin-bottom-xs {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px !important;
}

.mb-app-body .mb-resource-page .am-margin-bottom-xs > .am-u-sm-6,
.mb-app-body .mb-resource-page .am-margin-bottom-xs > .am-u-md-5 {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

.mb-app-body .mb-resource-page #result {
  margin-top: 16px;
  padding: 0 !important;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  scrollbar-width: thin;
}

.mb-app-body .mb-resource-page .layui-table-view {
  margin: 0;
}

.mb-app-body .mb-filter-toggle {
  display: none;
}

/* Phone controls and cards. */
@media only screen and (max-width: 640px) {
  .mb-app-body .content-article .page-content {
    padding: 0 14px 36px;
  }

  .mb-app-body .content-article .page-content-area {
    padding: 14px;
  }

  .mb-app-body .content-article #MyForm .am-g {
    margin-right: 0;
    margin-left: 0;
  }

  .mb-app-body .content-article #MyForm #title,
  .mb-app-body .content-article #MyForm #beizhu,
  .mb-app-body .content-article #MyForm #article_customer,
  .mb-app-body .content-article #MyForm #starttime {
    width: 100% !important;
    max-width: 100%;
  }

  .mb-app-body .content-article #uploadstart + span {
    display: inline-block;
    padding: 6px 0 0 !important;
    color: var(--mb-danger) !important;
    line-height: 1.5;
  }

  .mb-app-body .content-article .edui-toolbar {
    min-width: 480px;
  }

  .mb-app-body .mb-resource-page .filter-item {
    padding: 11px 12px;
  }

  .mb-app-body .mb-resource-page .filter-label {
    flex-basis: 70px;
    padding-right: 8px;
  }

  .mb-app-body .mb-resource-page .filter-option {
    min-height: 27px;
    padding-right: 7px !important;
    padding-left: 7px !important;
  }

  .mb-app-body .mb-resource-page .filter.mb-filter-collapsed .filter-item:nth-child(n + 2) {
    display: none;
  }

  .mb-app-body .mb-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: -1px 0 0;
    padding: 0 12px;
    color: #5f6b65;
    background: #ffffff;
    border: 1px solid var(--mb-line);
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    cursor: pointer;
  }

  .mb-app-body .mb-filter-toggle i {
    margin-left: 6px;
    transition: transform .16s ease;
  }

  .mb-app-body .mb-filter-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  .mb-app-body .mb-resource-page .am-margin-bottom-xs {
    display: block;
  }

  .mb-app-body .mb-resource-page .am-margin-bottom-xs > .am-u-sm-6,
  .mb-app-body .mb-resource-page .am-margin-bottom-xs > .am-u-md-5 {
    width: 100%;
    margin-bottom: 12px;
  }

  .mb-app-body .mb-resource-page .am-margin-bottom-xs .am-btn {
    margin: 0 5px 6px 0;
  }

  .mb-app-body .mb-status-tabs {
    display: flex;
    overflow: visible;
    flex-wrap: wrap;
  }

  .mb-app-body .mb-status-tabs .am-btn {
    min-width: 0;
    flex: 1 1 33.333%;
    border-bottom: 1px solid var(--mb-line);
  }

  .mb-app-body #my_article_wrapper {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .mb-app-body #my_article {
    display: block;
    width: 100% !important;
    min-width: 0;
    background: transparent;
  }

  .mb-app-body #my_article thead {
    display: none;
  }

  .mb-app-body #my_article tbody,
  .mb-app-body #my_article tbody tr {
    display: block;
  }

  .mb-app-body #my_article tbody tr {
    margin: 12px 0;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid var(--mb-line);
    border-radius: 8px;
  }

  .mb-app-body #my_article tbody tr:empty {
    display: none;
  }

  .mb-app-body #my_article tbody tr > td,
  .mb-app-body #my_article tbody tr > td.am-hide-sm-only {
    display: flex !important;
    width: 100% !important;
    min-height: 0;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    color: #55605a;
    background: transparent;
    border-bottom: 1px solid #edf0ee;
  }

  .mb-app-body #my_article tbody tr > td::before {
    content: attr(data-label);
    flex: 0 0 58px;
    color: #8a958f;
    font-size: 11px;
    font-weight: 600;
  }

  .mb-app-body #my_article tbody tr > td:last-child {
    display: block !important;
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .mb-app-body #my_article tbody tr > td:last-child::before {
    display: block;
    margin-bottom: 5px;
  }

  .mb-app-body #my_article .am-btn {
    margin-right: 4px;
  }
}
