:root {
  --bg: #f5f7fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --surface: #f8fafc;
  --text: #111827;
  --muted: #667085;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(15, 23, 42, 0.12);
  --red: #e84b5f;
  --orange: #ff7a2f;
  --gold: #f5b841;
  --teal: #0f9f8f;
  --blue: #3275f6;
  --green: #17a56b;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --glass: rgba(255, 255, 255, 0.68);
}

/* Premium UI refresh: quiet SaaS shell + high-trust mobile campaign page. */
:root {
  --bg: #f4f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --surface: #f7f8fa;
  --text: #15171c;
  --muted: #737985;
  --line: rgba(28, 31, 37, 0.08);
  --line-strong: rgba(28, 31, 37, 0.14);
  --red: #e45545;
  --orange: #c98335;
  --gold: #b98a3f;
  --teal: #21877d;
  --blue: #2f6fed;
  --green: #21875d;
  --dark: #17191f;
  --shadow: 0 18px 48px rgba(20, 24, 32, 0.08);
  --shadow-soft: 0 10px 28px rgba(20, 24, 32, 0.06);
  --glass: rgba(255, 255, 255, 0.7);
  --premium-accent: #2f6fed;
  --premium-warm: #d98b3d;
  --premium-danger: #d94c4c;
}

body {
  background:
    linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 42%, #eef1f5 100%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

.app-shell {
  grid-template-columns: 224px minmax(560px, 1fr) 414px;
  gap: 16px;
  padding: 16px;
}

.sidebar,
.workspace-header,
.preview-head,
.stat-card,
.plain-section,
.compact-table,
.orders-table,
.config-card,
.settlement-card,
.douyin-card-editor,
.theme-option,
.modal {
  border-color: var(--line);
  border-radius: 8px;
}

.sidebar {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 52px rgba(18, 22, 30, 0.08);
}

.brand {
  padding: 4px 2px 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    #17191f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(20, 24, 32, 0.2);
}

.brand strong {
  color: #17191f;
  font-size: 16px;
  letter-spacing: 0;
}

.brand span,
.sidebar-note span {
  color: #8a909b;
}

.nav-list {
  gap: 4px;
  margin-top: 16px;
}

.nav-item {
  position: relative;
  min-height: 38px;
  padding: 9px 12px 9px 14px;
  color: #686f7a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-item.active,
.nav-item:hover {
  border-color: rgba(28, 31, 37, 0.06);
  background: rgba(255, 255, 255, 0.86);
  color: #17191f;
  box-shadow: 0 8px 20px rgba(20, 24, 32, 0.06);
}

.nav-item.active::before {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 3px;
  height: 18px;
  margin: 0;
  border-radius: 999px;
  background: #17191f;
  transform: translateY(-50%);
}

.sidebar-note {
  padding: 12px;
  background: rgba(247, 248, 250, 0.82);
}

.sidebar-note strong {
  color: #20242b;
  font-size: 13px;
  line-height: 1.45;
}

.workspace-header {
  top: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(20, 24, 32, 0.07);
}

.eyebrow {
  color: #6d7480;
  font-size: 12px;
  font-weight: 650;
}

h1 {
  color: #111318;
  font-size: 26px;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  color: #17191f;
  font-size: 16px;
  font-weight: 760;
}

.section-title span,
.toolbar span,
.hint-text,
.empty-state {
  color: #777f8c;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.mini-btn {
  border-radius: 8px;
  font-weight: 750;
  letter-spacing: 0;
}

.primary-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #17191f;
  box-shadow: 0 12px 28px rgba(20, 24, 32, 0.16);
}

.primary-btn:hover {
  box-shadow: 0 16px 36px rgba(20, 24, 32, 0.2);
}

.ghost-btn {
  border-color: rgba(28, 31, 37, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #272b33;
}

.mini-btn {
  border-color: rgba(47, 111, 237, 0.16);
  background: rgba(47, 111, 237, 0.08);
  color: #245ec9;
}

.danger-btn {
  border-color: rgba(217, 76, 76, 0.18);
  background: rgba(217, 76, 76, 0.08);
  color: #b93636;
}

.stats-grid {
  gap: 12px;
}

.stat-card,
.plain-section {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(20, 24, 32, 0.06);
}

.stat-card {
  min-height: 132px;
  padding: 17px;
}

.stat-card::after {
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 25, 31, 0.42), rgba(47, 111, 237, 0.26), rgba(217, 139, 61, 0.22));
}

.stat-card:hover,
.plain-section:hover {
  border-color: rgba(28, 31, 37, 0.12);
  box-shadow: 0 18px 44px rgba(20, 24, 32, 0.08);
}

.stat-card span {
  color: #7d8490;
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  margin-top: 10px;
  color: #111318;
  font-size: 30px;
  font-weight: 760;
}

.stat-card em {
  color: #858c97;
  line-height: 1.45;
}

.plain-section {
  padding: 18px;
}

.funnel div,
.rank-item,
.feature-item,
.feature-card,
.template-card,
.finance-card,
.role-card,
.edit-row,
.launch-card,
.account-row,
.permission-grid article,
.login-flow-grid article,
.account-hero,
.phone-login-panel,
.douyin-card-editor {
  border-color: rgba(28, 31, 37, 0.08);
  background: rgba(248, 249, 251, 0.72);
  border-radius: 8px;
}

.funnel div:hover,
.rank-item:hover,
.feature-item:hover,
.feature-card:hover,
.template-card:hover,
.finance-card:hover,
.role-card:hover,
.activity-card:hover,
.edit-row:hover,
.douyin-card-editor:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 24, 32, 0.06);
}

.funnel b {
  font-size: 25px;
  font-weight: 760;
}

.role-card.active,
.template-card.active,
.activity-card.active {
  border-color: rgba(47, 111, 237, 0.28);
  background:
    linear-gradient(180deg, rgba(47, 111, 237, 0.08), rgba(255, 255, 255, 0.72)),
    #fff;
}

.activity-card {
  border-color: rgba(28, 31, 37, 0.08);
  background: rgba(248, 249, 251, 0.72);
}

.activity-card b,
.role-card b,
.template-card b,
.feature-card b,
.feature-item b {
  color: #17191f;
}

/* Douyin workbench redesign */
.douyin-workbench {
  display: grid;
  gap: 16px;
}

.douyin-overview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.douyin-overview article {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(28, 31, 37, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(20, 24, 32, 0.04);
}

.douyin-overview span,
.douyin-editor-title span,
.douyin-entry-tab small,
.douyin-stats-row small {
  color: #7a8291;
}

.douyin-overview span {
  display: block;
  font-size: 12px;
}

.douyin-overview b {
  display: block;
  margin-top: 6px;
  color: #17191f;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
}

.douyin-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 14px;
}

.douyin-preview-panel,
.douyin-control-panel,
.douyin-config-card,
.douyin-card-editor.focused {
  border: 1px solid rgba(28, 31, 37, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(20, 24, 32, 0.05);
}

.douyin-preview-panel {
  min-height: 400px;
  padding: 18px;
}

.douyin-control-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.douyin-control-panel .toolbar {
  justify-content: flex-start;
}

.douyin-control-panel label {
  display: grid;
  gap: 8px;
}

.douyin-control-panel input[readonly] {
  color: #4b5563;
  background: #f7f8fa;
}

.douyin-builder {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.douyin-entry-list {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

.douyin-entry-tab {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(28, 31, 37, 0.08);
  border-radius: 8px;
  background: rgba(248, 249, 251, 0.74);
  color: #17191f;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.douyin-entry-tab:hover,
.douyin-entry-tab.active {
  border-color: rgba(47, 111, 237, 0.28);
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 24, 32, 0.06);
}

.douyin-entry-tab img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.douyin-entry-tab b,
.douyin-entry-tab small,
.douyin-editor-title b,
.douyin-editor-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.douyin-entry-tab b {
  font-size: 13px;
  font-weight: 720;
}

.douyin-entry-tab small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.douyin-card-editor.focused {
  gap: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 24, 32, 0.06);
}

.douyin-editor-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.douyin-editor-header .edit-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.douyin-editor-title b {
  color: #17191f;
  font-size: 18px;
  font-weight: 760;
}

.douyin-editor-title span {
  margin-top: 5px;
  font-size: 13px;
}

.douyin-editor-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.douyin-editor-kpis span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 31, 37, 0.07);
  border-radius: 8px;
  background: #f7f8fa;
  color: #7a8291;
  font-size: 12px;
}

.douyin-editor-kpis b {
  color: #17191f;
  font-size: 18px;
  font-weight: 760;
}

.douyin-card-actions {
  gap: 8px;
}

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

.douyin-config-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.mini-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-section-head b {
  color: #17191f;
  font-size: 15px;
  font-weight: 760;
}

.douyin-config-card .douyin-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.douyin-risk {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.douyin-risk span {
  display: inline;
}

.douyin-reception-card {
  background: #fbfbfc;
}

.douyin-reception-card .douyin-qr-list {
  gap: 8px;
}

.douyin-qr-item {
  grid-template-columns: 60px repeat(5, minmax(112px, 1fr)) minmax(116px, 0.7fr) auto;
  gap: 8px;
  padding: 10px;
  border-style: solid;
  border-color: rgba(28, 31, 37, 0.08);
  background: #fff;
}

.douyin-qr-item img {
  width: 60px;
  height: 60px;
}

.douyin-qr-item label,
.douyin-config-card label,
.douyin-control-panel label {
  min-width: 0;
}

.douyin-qr-item small {
  align-self: center;
  font-size: 12px;
}

.douyin-stats-head,
.douyin-stats-row {
  grid-template-columns: 1.25fr 0.85fr 0.55fr 0.55fr 0.55fr 1.15fr;
}

@media (max-width: 1180px) {
  .douyin-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .douyin-layout,
  .douyin-builder,
  .douyin-editor-grid {
    grid-template-columns: 1fr;
  }

  .douyin-entry-list {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .douyin-qr-item {
    grid-template-columns: 60px repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 720px) {
  .douyin-overview,
  .douyin-editor-kpis,
  .douyin-config-card .douyin-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .douyin-editor-header {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .douyin-editor-header .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .douyin-risk,
  .douyin-qr-item {
    grid-template-columns: 1fr;
  }

  .douyin-qr-item img {
    width: 72px;
    height: 72px;
  }
}

.activity-card-side strong,
.rank-item b {
  color: var(--premium-warm);
}

.table-head {
  background: rgba(244, 246, 248, 0.9);
  color: #7b828d;
  font-weight: 760;
}

.table-row {
  background: rgba(255, 255, 255, 0.56);
}

.table-row:hover {
  background: #fff;
}

.status-pill,
.verify-code,
.section-tag,
.activity-time-pill,
.launch-card b,
.check-item b,
.check-progress b {
  border-radius: 8px;
}

.status-pill {
  background: rgba(33, 135, 93, 0.1);
  color: #176c49;
}

.status-pill.pending {
  background: rgba(217, 139, 61, 0.12);
  color: #986021;
}

.status-pill.used {
  background: rgba(47, 111, 237, 0.1);
  color: #245ec9;
}

.status-pill.danger,
.status-pill.bad {
  background: rgba(217, 76, 76, 0.1);
  color: #b93636;
}

input,
textarea,
select {
  border-color: rgba(28, 31, 37, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #17191f;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(47, 111, 237, 0.56);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.1);
}

label {
  color: #737985;
  font-weight: 720;
}

.verify-station {
  border-color: rgba(47, 111, 237, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 249, 252, 0.86)),
    #fff;
  box-shadow: 0 14px 34px rgba(20, 24, 32, 0.06);
}

.preview-panel {
  top: 16px;
  height: calc(100vh - 32px);
}

.preview-head {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(20, 24, 32, 0.06);
}

.phone-frame {
  width: 390px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    #12151b;
  border-radius: 30px;
  box-shadow: 0 30px 76px rgba(16, 20, 28, 0.28);
}

.phone-screen {
  border-radius: 22px;
  background: #f6f7f9;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.88) 42%, rgba(250, 250, 252, 0.98)),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-mode {
  overflow-x: hidden;
}

.client-page-root {
  display: none;
}

.client-mode {
  background: #f3f4f6;
}

.client-mode .app-shell {
  display: none;
}

.client-mode .client-page-root {
  display: block;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #f3f4f6;
}

.client-mode .mobile-page {
  min-height: 100vh;
}

.login-gate {
  display: none;
}

.logged-out {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(50, 117, 246, 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(23, 165, 107, 0.12), transparent 24%),
    linear-gradient(135deg, #f8fafc, #eef2f7 52%, #ffffff);
}

.logged-out .app-shell,
.logged-out .client-page-root {
  display: none;
}

.logged-out .login-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
}

.login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(24px) saturate(160%);
}

.login-brand,
.login-copy,
.login-form {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.login-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.login-brand strong,
.login-brand span,
.login-copy h1,
.login-copy p {
  display: block;
}

.login-brand span,
.login-copy p {
  color: var(--muted);
}

.login-copy {
  padding: 24px;
}

.login-copy h1 {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.18;
}

.login-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.9);
}

.login-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.login-tabs button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.login-mode-panel {
  display: none;
  gap: 12px;
}

.login-mode-panel.active {
  display: grid;
}

.login-form label,
.account-create-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

#gatePasswordPanel .login-actions {
  grid-template-columns: 1fr;
}

.login-form small {
  color: var(--muted);
  line-height: 1.5;
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.login-legal-links a,
.mobile-legal-links a,
.agreement-check a {
  color: #2563eb;
  text-decoration: none;
}

.login-legal-links a:hover,
.mobile-legal-links a:hover,
.agreement-check a:hover {
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

button:active {
  transform: scale(0.98);
}

.is-disabled,
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-shell {
  display: grid;
  grid-template-columns: 218px minmax(520px, 1fr) 410px;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--dark), #475569);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px rgba(15, 23, 42, 0.18);
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  text-align: left;
  font-weight: 700;
}

.nav-item.active,
.nav-item:hover {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.nav-item.active::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: 1px;
}

.sidebar-note {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.78);
  border-radius: 8px;
}

.sidebar-note strong {
  display: block;
  margin-top: 6px;
}

.workspace {
  min-width: 0;
}

.workspace *,
.preview-panel * {
  min-width: 0;
}

.workspace-header,
.preview-head,
.section-title,
.toolbar,
.poster-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-header {
  position: sticky;
  top: 18px;
  z-index: 8;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(160%);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.18;
}

h2 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.3;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.account-name-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.mini-btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.primary-btn {
  padding: 0 18px;
  background: linear-gradient(135deg, var(--dark), #334155);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.primary-btn:hover {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

.ghost-btn {
  padding: 0 16px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.ghost-btn:hover,
.mini-btn:hover {
  border-color: rgba(15, 23, 42, 0.18);
  background: #fff;
  transform: translateY(-1px);
}

.danger-btn {
  padding: 0 12px;
  border-color: rgba(225, 29, 72, 0.18);
  background: #fff1f2;
  color: #be123c;
}

.mini-btn {
  min-height: 32px;
  padding: 0 10px;
  border-color: rgba(50, 117, 246, 0.18);
  background: #eff6ff;
  color: #1d4ed8;
}

.small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 16px;
  animation: panelIn 0.22s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.plain-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(150%);
}

.stat-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--orange));
  opacity: 0.88;
}

.stat-card:hover,
.plain-section:hover {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 27px;
  letter-spacing: 0;
}

.plain-section {
  padding: 18px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-title {
  margin-bottom: 16px;
}

.section-title span,
.toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.section-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.funnel div,
.rank-item {
  padding: 14px;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.funnel div:hover,
.rank-item:hover {
  background: #fff;
  transform: translateY(-1px);
}

.funnel b,
.funnel span {
  display: block;
}

.funnel b {
  font-size: 24px;
}

.funnel span {
  color: var(--muted);
  font-size: 13px;
}

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

.feature-grid,
.template-grid,
.finance-summary,
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-item,
.template-card,
.config-card,
.finance-card,
.role-card {
  padding: 14px;
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-item:hover,
.template-card:hover,
.config-card:hover,
.finance-card:hover,
.role-card:hover,
.activity-card:hover {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.feature-item b,
.feature-item span,
.template-card b,
.template-card span,
.finance-card span,
.finance-card strong,
.finance-card em {
  display: block;
}

.feature-item b,
.template-card b {
  margin-bottom: 6px;
}

.feature-item span,
.template-card span,
.finance-card span,
.finance-card em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.role-card.active {
  border-color: rgba(50, 117, 246, 0.28);
  background: #eff6ff;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(50, 117, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.9)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.account-hero span,
.account-hero p,
.permission-grid span,
.account-row span,
.account-row em {
  color: var(--muted);
}

.account-hero h3 {
  margin: 4px 0;
  font-size: 22px;
}

.account-scope {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}

.account-scope b {
  font-size: 30px;
}

.account-scope span {
  color: rgba(255, 255, 255, 0.76);
}

.account-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 12px;
  margin-bottom: 14px;
}

.account-profile-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.account-profile-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.account-profile-card input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
}

.section-title.compact {
  margin-bottom: 2px;
}

.section-title.compact h3 {
  margin: 0;
  font-size: 16px;
}

.permission-summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}

.permission-summary span {
  color: var(--muted);
  font-size: 12px;
}

.permission-summary b {
  font-size: 13px;
  line-height: 1.45;
}

.phone-login-panel {
  display: grid;
  grid-template-columns: 1.15fr repeat(2, minmax(130px, 0.8fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(50, 117, 246, 0.18);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.76);
}

.phone-login-panel > div,
.phone-login-panel small {
  display: grid;
  gap: 5px;
}

.phone-login-panel b,
.phone-login-panel span {
  display: block;
}

.phone-login-panel span,
.phone-login-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.phone-login-panel small {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.login-log-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.login-log-list span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
  color: var(--muted);
  font-size: 12px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.login-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.account-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(50, 117, 246, 0.18);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.62);
}

.account-create-card {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.account-create-card b,
.account-create-card span {
  display: block;
}

.account-create-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.permission-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
}

.permission-checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  font-size: 12px;
  color: var(--text);
}

.permission-checks input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.platform-ad-row {
  align-items: start;
}

.ad-scope-box {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.ad-scope-box > b {
  font-size: 12px;
  color: var(--text);
}

.ad-scope-box small {
  color: var(--muted);
  line-height: 1.45;
}

.ad-scope-box .permission-checks {
  max-height: 150px;
  overflow: auto;
}

.ad-scope-box .permission-checks label {
  align-items: flex-start;
}

.ad-scope-box .permission-checks small {
  display: block;
  width: 100%;
  margin-left: 22px;
  color: var(--muted);
  font-size: 11px;
}

.permission-grid article,
.login-flow-grid article,
.account-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
}

.permission-grid article,
.login-flow-grid article {
  padding: 12px;
}

.permission-grid b,
.permission-grid span,
.login-flow-grid b,
.login-flow-grid span {
  display: block;
}

.permission-grid b,
.login-flow-grid b {
  margin-bottom: 6px;
}

.login-flow-grid span,
.account-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-table {
  display: grid;
  gap: 10px;
}

.account-management {
  display: grid;
  gap: 12px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-stat-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.account-stat-grid span,
.account-stat-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.account-stat-grid b {
  font-size: 24px;
}

.account-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.84);
}

.account-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.account-toolbar input,
.account-toolbar select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.account-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.account-row.active {
  border-color: rgba(22, 163, 74, 0.26);
  background: #ecfdf5;
}

.account-pagination {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.account-pagination span {
  color: var(--muted);
  font-size: 12px;
}

.role-card b,
.role-card span,
.role-card em {
  display: block;
}

.role-card span,
.role-card em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.activity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.activity-board {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(220px, 0.8fr);
  gap: 12px;
}

.activity-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.lane-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
}

.lane-title b,
.lane-title span,
.new-activity-box strong,
.new-activity-box span {
  display: block;
}

.lane-title span,
.new-activity-box span {
  color: var(--muted);
  font-size: 12px;
}

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

.new-activity-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(50, 117, 246, 0.18);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.76);
}

.activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.activity-card.active {
  border-color: rgba(23, 165, 107, 0.32);
  background: #ecfdf5;
}

.activity-card.ended {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.72);
}

.activity-card b,
.activity-card span,
.activity-card small,
.activity-card-side strong,
.activity-card-side span {
  display: block;
}

.activity-card span,
.activity-card small,
.activity-card-side span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.activity-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.campaign-ops {
  display: grid;
  gap: 12px;
}

.campaign-main-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(50, 117, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.86)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.campaign-main-card h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.campaign-main-card span,
.campaign-main-card p,
.campaign-link-box,
.campaign-metric-grid em {
  color: var(--muted);
}

.campaign-link-box {
  padding: 10px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.9);
  font-size: 12px;
  word-break: break-all;
}

.campaign-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.campaign-metric-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
}

.campaign-metric-grid span,
.campaign-metric-grid b,
.campaign-metric-grid em {
  display: block;
}

.campaign-metric-grid b {
  margin: 5px 0;
  font-size: 21px;
}

.activity-card-side strong {
  color: var(--green);
  font-size: 22px;
}

.template-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.template-card.active {
  border-color: rgba(50, 117, 246, 0.28);
  background: #eff6ff;
}

.wechat-layout,
.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.share-tools {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hint-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.wechat-link-card {
  padding: 18px;
  background: #eef0f3;
  border-radius: 8px;
}

.chat-meta,
.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-meta {
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

.chat-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-weight: 800;
}

.profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.link-card {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.link-card b,
.link-card span,
.profile-card b,
.profile-card span,
.capability-list b,
.capability-list span {
  display: block;
}

.link-card b {
  font-size: 17px;
  line-height: 1.45;
}

.link-card span,
.profile-card span,
.capability-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.link-card img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.wechat-link-card small {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: #8b95a5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-status {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}

.share-status.not-started,
.share-status.ended {
  background: #fff1f2;
  color: #be123c;
}

.profile-card {
  margin-bottom: 14px;
}

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

.capability-list div {
  padding: 10px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.finance-card strong {
  margin: 8px 0 4px;
  font-size: 26px;
}

.settlement-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.settlement-card.ready {
  border-color: rgba(22, 163, 74, 0.2);
}

.settlement-card.warn {
  border-color: rgba(245, 158, 11, 0.28);
}

.settlement-preview {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.settlement-preview img,
.settlement-preview .fake-qr {
  width: 152px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.settlement-preview .fake-qr {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
  background: #f8fafc;
}

.settlement-fields .form-grid {
  margin-bottom: 10px;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rank-item b {
  color: var(--orange);
}

.compact-table,
.orders-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.order-search-box {
  min-width: min(360px, 100%);
  flex: 1;
}

.order-search-box input {
  width: 100%;
}

.search-result-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table-row,
.table-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}

.table-head {
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-row {
  background: rgba(255, 255, 255, 0.62);
  transition: background 0.18s ease;
}

.table-row:hover {
  background: #fff;
}

.table-row.search-hit {
  background: rgba(255, 251, 235, 0.86);
}

.table-row small {
  color: var(--muted);
}

.code-cell {
  display: grid;
  gap: 4px;
  align-items: center;
}

.verify-code {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(50, 117, 246, 0.18);
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.table-row:last-child,
.table-head:last-child {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}

.status-pill.pending {
  background: #fff7ed;
  color: #c2410c;
}

.status-pill.used {
  background: #eef2ff;
  color: #4338ca;
}

.status-pill.danger {
  background: #fff1f2;
  color: #be123c;
}

.status-pill.good {
  background: #ecfdf5;
  color: #047857;
}

.status-pill.bad {
  background: #fff1f2;
  color: #be123c;
}

.verify-station {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.2fr) auto minmax(150px, 0.8fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(50, 117, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.verify-station b,
.verify-station span {
  display: block;
}

.verify-station span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.verify-result-text {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(50, 117, 246, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(50, 117, 246, 0.13);
}

.wide-field {
  grid-column: 1 / -1;
}

.editor-list {
  display: grid;
  gap: 12px;
}

.edit-row {
  display: grid;
  grid-template-columns: 92px repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.edit-row:hover {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.gift-row {
  grid-template-columns: 92px repeat(5, minmax(120px, 1fr)) auto;
}

.marketing-row {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.marketing-row .edit-thumb {
  width: 64px;
  height: 52px;
}

.compact-editor .edit-row {
  align-items: end;
}

.edit-thumb {
  width: 92px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.image-editor {
  gap: 6px;
}

.upload-line {
  display: grid;
  gap: 4px;
}

.upload-line input[type="file"] {
  padding: 8px;
  font-size: 12px;
}

.upload-line small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-progress,
.check-item {
  display: grid;
  grid-template-columns: 84px 1fr 2fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-progress {
  grid-template-columns: 84px 1fr;
  background: #fff7ed;
  border-color: #fed7aa;
}

.check-progress b,
.check-item b {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.check-item.pass b {
  background: #ecfdf5;
  color: #047857;
}

.check-item.fail b {
  background: #fff1f2;
  color: #be123c;
}

.check-item em {
  color: var(--muted);
  font-style: normal;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.launch-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
}

.launch-card b,
.launch-card span,
.launch-card em {
  display: block;
}

.launch-card b {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.launch-card span {
  color: var(--text);
  font-weight: 800;
}

.launch-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.launch-card.pass {
  border-color: rgba(22, 163, 74, 0.18);
  background: #ecfdf5;
}

.launch-card.pass b {
  background: rgba(22, 163, 74, 0.12);
  color: #047857;
}

.launch-card.fail {
  border-color: rgba(245, 158, 11, 0.24);
  background: #fff7ed;
}

.launch-card.fail b {
  background: rgba(245, 158, 11, 0.14);
  color: #c2410c;
}

.sms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.success-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.success-box b,
.success-box span {
  display: block;
}

.ad-modal-card {
  display: grid;
  gap: 12px;
  text-align: center;
}

.ad-modal-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.fake-qr {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 8px solid #fff;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #111827 0 6px, #fff 6px 12px);
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.call-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.douyin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 16px;
  align-items: start;
}

.douyin-tools {
  display: grid;
  gap: 14px;
}

.douyin-preview {
  min-height: 360px;
}

.douyin-phone {
  max-width: 320px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.douyin-chat-title {
  margin-bottom: 14px;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.douyin-chat-bubble {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.douyin-chat-bubble img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.douyin-chat-bubble b,
.douyin-chat-bubble span,
.douyin-chat-bubble em {
  display: block;
}

.douyin-chat-bubble span,
.douyin-chat-bubble em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.douyin-landing-mini {
  display: grid;
  gap: 8px;
  place-items: center;
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.douyin-landing-mini img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
}

.douyin-landing-mini small {
  color: var(--muted);
  font-size: 12px;
}

.douyin-preview-warn {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  font-size: 12px;
}

.douyin-card-editor {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.douyin-card-editor.active {
  border-color: rgba(50, 117, 246, 0.34);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(50, 117, 246, 0.1), var(--shadow-soft);
}

.douyin-card-editor:hover {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.douyin-card-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.douyin-card-head b,
.douyin-card-head small,
.douyin-card-head em {
  display: block;
}

.douyin-card-head small,
.douyin-card-head em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.douyin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.toggle-line {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.toggle-line input {
  width: auto;
}

.douyin-risk {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.douyin-risk.ok {
  border: 1px solid rgba(23, 165, 107, 0.16);
  background: #ecfdf5;
  color: #047857;
}

.douyin-risk.warn {
  border: 1px solid rgba(194, 65, 12, 0.16);
  background: #fff7ed;
  color: #c2410c;
}

.douyin-risk b,
.douyin-risk span {
  display: block;
}

.douyin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.douyin-qr-list {
  display: grid;
  gap: 10px;
}

.douyin-qr-item {
  display: grid;
  grid-template-columns: 72px repeat(5, minmax(110px, 1fr)) minmax(150px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.douyin-qr-item:hover {
  border-color: rgba(50, 117, 246, 0.32);
  background: #fff;
}

.douyin-qr-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.douyin-qr-item small {
  color: var(--muted);
  line-height: 1.5;
}

.douyin-stats-head,
.douyin-stats-row {
  grid-template-columns: 1.2fr 0.8fr 0.6fr 1fr 0.6fr 1.2fr;
}

.douyin-action-modal {
  width: min(760px, 100%);
}

.douyin-created-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.douyin-created-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.84);
}

.douyin-created-list b,
.douyin-created-list span,
.douyin-created-list small {
  display: block;
}

.douyin-created-list span {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}

.guide-tabs {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.guide-tabs span {
  padding: 9px 12px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.guide-steps article {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.guide-steps article > b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
}

.guide-steps span,
.guide-copy-box span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guide-qr svg {
  width: 150px;
  height: auto;
}

.guide-copy-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.guide-copy-box span {
  overflow-wrap: anywhere;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.theme-option {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
}

.theme-option.active {
  border-color: rgba(50, 117, 246, 0.28);
  background: #eff6ff;
}

.theme-swatch {
  height: 54px;
  border-radius: 8px;
}

.preview-panel {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-width: 0;
}

.preview-head {
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(160%);
}

.preview-head strong,
.preview-head span {
  display: block;
}

.preview-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.phone-frame {
  width: 380px;
  max-width: 100%;
  min-height: 0;
  padding: 12px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #0f172a, #1f2937);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.phone-screen {
  position: relative;
  height: calc(100vh - 116px);
  min-height: 680px;
  overflow-y: auto;
  background: #f3f4f6;
  border-radius: 20px;
  transform: translateZ(0);
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.36) transparent;
}

.phone-screen::-webkit-scrollbar {
  width: 6px;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.36);
  border-radius: 8px;
}

.mobile-page {
  --theme-main: #e82f4b;
  --theme-second: #ff6a1a;
  min-height: 100%;
  padding-bottom: 90px;
  background: #f3f4f6;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  height: 54px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.mobile-topbar b {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-topbar span {
  display: block;
  color: #6b7280;
  font-size: 11px;
}

.hero {
  position: relative;
  padding: 28px 18px 18px;
  background: linear-gradient(150deg, var(--theme-main), var(--theme-second));
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -80px -70px;
  height: 170px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50% 50% 0 0;
}

.share-badge {
  position: absolute;
  left: 12px;
  top: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 178px;
  padding: 7px 14px 7px 7px;
  background: rgba(17, 24, 39, 0.44);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--theme-main);
  font-weight: 800;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  font-size: 32px;
  font-weight: 900;
}

.hero h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.hero p {
  margin: 8px 0 0;
  color: #ffeec5;
  font-weight: 800;
}

.hero-line {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.price-box {
  position: relative;
  z-index: 2;
  margin: -6px 14px 12px;
  padding: 18px 16px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(120, 20, 30, 0.18);
}

.price-main {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.8fr;
  gap: 8px;
  align-items: center;
}

.old-price {
  color: #343a40;
  font-size: 14px;
}

.old-price b {
  color: var(--theme-main);
  text-decoration: line-through;
}

.sale-price {
  color: #f21120;
  font-weight: 900;
  text-align: center;
}

.sale-price strong {
  font-size: 56px;
  line-height: 0.95;
}

.sale-price span {
  font-size: 16px;
}

.pay-mark {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #25a447;
  font-weight: 700;
}

.pay-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #21c45a;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
}

.service-count {
  margin: 14px 0 0;
  text-align: right;
  font-size: 14px;
}

.service-count b,
.count-title b {
  color: var(--theme-main);
  font-size: 20px;
}

.activity-time-pill {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.activity-time-pill.not-started,
.activity-time-pill.ended,
.activity-time-pill.blocked {
  background: #fff1f2;
  color: #be123c;
}

.mobile-section {
  margin: 12px 14px;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
}

.mobile-section.flush {
  padding: 0;
  overflow: hidden;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 10px;
  background: #fff4e8;
  color: #b45309;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.service-item {
  display: grid;
  grid-template-columns: 82px 1fr 66px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eef2f7;
}

.service-card {
  display: grid;
  grid-template-columns: 82px 1fr 66px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eef2f7;
}

.service-card:last-child {
  border-bottom: 0;
}

.service-card img {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.service-card b,
.service-card span,
.service-card em {
  display: block;
}

.service-card b {
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
}

.service-card span {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.service-card em {
  margin-top: 4px;
  color: var(--theme-main);
  font-style: normal;
  font-weight: 700;
}

.service-card strong {
  color: #f21120;
  text-align: right;
  font-weight: 900;
}

.service-item:last-child {
  border-bottom: 0;
}

.service-item img {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.service-info b {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
}

.service-info span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.service-info em {
  display: block;
  margin-top: 4px;
  color: var(--theme-main);
  font-style: normal;
  font-weight: 700;
}

.service-value {
  color: #f21120;
  text-align: right;
  font-weight: 900;
}

.service-value span {
  display: block;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
}

.flow-strip {
  margin: 10px 14px;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gift-card {
  position: relative;
  min-height: 148px;
  text-align: center;
}

.gift-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border-radius: 8px;
}

.gift-card .threshold {
  position: absolute;
  right: -2px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-weight: 900;
}

.gift-card b {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.gift-card span {
  display: block;
  margin-top: 3px;
  color: #b91c1c;
  font-size: 11px;
}

.gift-card.unlocked {
  padding: 4px;
  border-radius: 8px;
  background: #fff7ed;
  outline: 1px solid #fed7aa;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.coupon-strip {
  display: grid;
  gap: 10px;
}

.coupon-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.coupon-card b {
  color: #ea580c;
  font-size: 22px;
}

.coupon-card span {
  font-weight: 800;
}

.coupon-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.lottery-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.lottery-box b,
.lottery-box span {
  display: block;
}

.lottery-box span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ad-banner {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: center;
  width: calc(100% - 28px);
  margin: 12px 14px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  text-align: left;
}

.ad-banner img {
  width: 62px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.ad-banner b,
.ad-banner em {
  display: block;
}

.ad-banner em {
  color: #d1d5db;
  font-style: normal;
  font-size: 12px;
}

.ad-banner strong {
  color: #fed7aa;
}

.shop-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.shop-lines {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.shop-info {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.shop-lines div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}

.shop-info div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}

.shop-lines span {
  color: #6b7280;
}

.shop-info span {
  color: #6b7280;
}

.entry-section {
  display: grid;
  gap: 12px;
}

.entry-grid {
  display: grid;
  gap: 10px;
}

.mobile-form-preview {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.entry-grid div {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.mobile-form-preview div {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.entry-grid span {
  display: grid;
  place-items: center;
  height: 100%;
  background: #eef1f4;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.mobile-form-preview span {
  display: grid;
  place-items: center;
  height: 100%;
  background: #eef1f4;
  color: #6b7280;
  font-size: 13px;
}

.mobile-form-preview b,
.mobile-form-preview i {
  padding: 0 10px;
  overflow: hidden;
  color: #111827;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-grid b,
.entry-grid i {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-grid i {
  color: #a1a1aa;
}

.entry-buy {
  width: 72%;
  min-height: 46px;
  margin: 4px auto 0;
}

.mobile-wechat-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.mobile-wechat-user b,
.mobile-wechat-user small {
  display: block;
}

.mobile-wechat-user small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
}

.wechat-mini-profile {
  margin: 12px 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.wechat-mini-profile .profile-card {
  margin-bottom: 0;
}

.rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #374151;
  line-height: 1.55;
  font-size: 13px;
}

.mobile-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 0 18px 10px;
  color: #64748b;
  font-size: 12px;
}

.broadcast {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 60px;
}

.broadcast-title {
  color: var(--theme-main);
  font-weight: 900;
  line-height: 1.15;
}

.broadcast-list {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
}

.broadcast-list b {
  color: #c2410c;
}

.count-title {
  padding: 18px;
  color: #9f1239;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
}

.mobile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mobile-table th,
.mobile-table td {
  padding: 12px 8px;
  border-top: 1px solid #f0f1f3;
  text-align: center;
}

.mobile-table th {
  background: #fff1e8;
  color: #6b7280;
  font-weight: 700;
}

.mobile-table td:nth-child(3),
.mobile-table td:nth-child(4) {
  color: #d65a31;
  font-weight: 700;
}

.create-activity {
  display: block;
  width: calc(100% - 92px);
  min-height: 44px;
  margin: 16px auto 30px;
}

.mobile-tech-support {
  margin: -14px 0 18px;
  color: rgba(100, 116, 139, 0.78);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.mobile-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 58px 58px 1fr 1.15fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}

.footer-tool {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 12px;
}

.poster-btn,
.buy-btn {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.poster-btn {
  background: #ffe7d3;
  color: #d65a31;
}

.buy-btn {
  background: linear-gradient(135deg, var(--theme-main), var(--theme-second));
}

.theme-red {
  --theme-main: #e82f4b;
  --theme-second: #ff6a1a;
}

.theme-orange {
  --theme-main: #f97316;
  --theme-second: #eab308;
}

.theme-teal {
  --theme-main: #0f9f8f;
  --theme-second: #2563eb;
}

.inactive-page {
  --theme-main: #e82f4b;
  --theme-second: #ff6a1a;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: linear-gradient(150deg, var(--theme-main), var(--theme-second));
}

.inactive-card {
  width: 100%;
  padding: 28px 22px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.inactive-logo {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-main), var(--theme-second));
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.inactive-card h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.inactive-card h2 {
  margin: 0 0 10px;
  color: #be123c;
  font-size: 22px;
}

.inactive-card p {
  color: #374151;
  line-height: 1.6;
}

.inactive-detail {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.douyin-landing-page {
  --theme-main: #16a34a;
  --theme-second: #2563eb;
  min-height: 100vh;
  padding: 18px 14px 34px;
  background: linear-gradient(180deg, #ecfccb 0%, #f8fafc 38%, #ffffff 100%);
  color: #111827;
}

.dy-hero {
  padding: 26px 18px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #16a34a, #2563eb);
  color: #fff;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22);
}

.dy-hero small {
  display: block;
  margin-bottom: 8px;
  opacity: 0.86;
}

.dy-hero h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.dy-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.dy-card,
.dy-qr-panel,
.dy-lead-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.dy-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
}

.dy-cover {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

.dy-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}

.dy-card p,
.dy-qr-panel p,
.dy-lead-panel p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.dy-lead-panel {
  display: grid;
  gap: 12px;
}

.dy-lead-panel b {
  font-size: 18px;
}

.dy-lead-form {
  display: grid;
  gap: 10px;
}

.dy-lead-form label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.dy-lead-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.dy-lead-form .primary-btn {
  width: 100%;
  margin-top: 4px;
}

.dy-qr-wrap {
  display: grid;
  place-items: center;
  width: min(230px, 82vw);
  margin: 14px auto;
  padding: 14px;
  border: 1px dashed #86efac;
  border-radius: 8px;
  background: #f0fdf4;
}

.dy-qr-wrap img {
  width: 190px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.dy-tips {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.dy-activity-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

/* Premium mobile client surface */
.client-mode {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%),
    #f3f4f6;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.client-mode .client-page-root {
  width: min(430px, 100%);
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  background: #f7f8fb;
  overscroll-behavior-y: contain;
}

.mobile-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: #111827;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94) 48%, rgba(248, 250, 252, 1)),
    #f7f8fb;
  overscroll-behavior-y: contain;
}

.mobile-scroll-content {
  min-width: 0;
}

.mobile-top,
.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  backdrop-filter: blur(22px) saturate(180%);
}

.mobile-top b,
.mobile-topbar b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-top span,
.mobile-topbar span {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
}

.hero {
  margin: 12px 12px 0;
  padding: 24px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9) 52%, rgba(236, 253, 245, 0.82)),
    #fff;
  color: #111827;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.store-hero {
  min-height: 276px;
  padding: 0;
  overflow: hidden;
  background: #111827;
}

.store-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08));
}

.store-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 276px;
  padding: 74px 16px 18px;
  color: #fff;
}

.store-hero .hero-logo {
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.store-hero h3,
.store-hero p,
.store-hero .hero-line {
  color: #fff;
}

.store-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.store-hero-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.hero::after {
  display: none;
}

.share-badge {
  left: 12px;
  top: 12px;
  max-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
}

.avatar {
  background: linear-gradient(135deg, #111827, #475569);
  color: #fff;
}

.hero-logo {
  width: 64px;
  height: 64px;
  margin-top: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #475569);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.hero h3 {
  color: #111827;
  font-size: 28px;
  letter-spacing: 0;
}

.hero p {
  color: #17664a;
}

.hero-line {
  color: #475467;
  line-height: 1.55;
}

.price-card,
.price-box {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.8fr;
  gap: 8px;
  align-items: center;
  margin: 10px 12px 12px;
  padding: 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
}

.mobile-share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 12px 0;
}

.mobile-share-actions button {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.mobile-share-actions b,
.mobile-share-actions span {
  display: block;
}

.mobile-share-actions b {
  font-size: 14px;
}

.mobile-share-actions span {
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.mobile-share-url {
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.price-main {
  display: contents;
}

.old-price {
  color: #667085;
}

.old-price b {
  color: #ef4444;
}

.sale-price {
  color: #ef4444;
}

.sale-price strong {
  font-size: 52px;
  letter-spacing: 0;
}

.pay-mark {
  color: #15803d;
}

.pay-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #16a34a, #0f766e);
  font-size: 24px;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.22);
}

.activity-time-pill {
  margin: 10px 12px 0;
  border: 1px solid rgba(22, 163, 74, 0.16);
  background: rgba(236, 253, 245, 0.9);
}

.mobile-section {
  margin: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px) saturate(150%);
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading b {
  color: #111827;
  font-size: 16px;
}

.section-heading span {
  color: #667085;
}

.section-tag {
  border: 1px solid rgba(50, 117, 246, 0.14);
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

.service-card {
  grid-template-columns: 86px 1fr 66px;
  margin-bottom: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
}

.service-card:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.service-card img {
  width: 86px;
  height: 64px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.service-card b {
  font-size: 15px;
}

.service-card span {
  color: #667085;
}

.service-card em {
  color: #1d4ed8;
}

.service-card strong {
  color: #ef4444;
  font-size: 17px;
}

.flow-strip {
  margin: 10px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(50, 117, 246, 0.14);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.86);
  color: #1e3a8a;
}

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

.invite-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(50, 117, 246, 0.16);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.88);
}

.invite-progress b,
.invite-progress span {
  display: block;
}

.invite-progress span {
  color: #475467;
  font-size: 12px;
}

.gift-card {
  min-height: auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
}

.gift-card img {
  aspect-ratio: 1.25 / 1;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.gift-card .threshold {
  right: 8px;
  top: 8px;
  width: auto;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.86);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.gift-card span {
  color: #667085;
}

.gift-card.unlocked {
  background: #ecfdf5;
  outline: 1px solid rgba(22, 163, 74, 0.22);
}

.coupon-card {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(255, 251, 235, 0.9);
}

.coupon-card b {
  color: #d97706;
}

.lottery-box,
.mobile-wechat-user,
.wechat-mini-profile {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.82);
}

.ad-banner {
  width: calc(100% - 24px);
  margin: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, #111827, #334155);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.shop-photo {
  height: 176px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.shop-info div,
.shop-lines div,
.mobile-form-preview div,
.entry-grid div {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.82);
}

.shop-info span,
.shop-lines span,
.mobile-form-preview span,
.entry-grid span {
  background: rgba(226, 232, 240, 0.76);
}

.entry-buy,
.buy-btn {
  background: linear-gradient(135deg, #111827, #475569);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.poster-btn {
  border: 1px solid rgba(50, 117, 246, 0.14);
  background: #eff6ff;
  color: #1d4ed8;
}

.rules {
  background: rgba(255, 255, 255, 0.86);
}

.rules ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.broadcast {
  border-color: rgba(50, 117, 246, 0.14);
  background: rgba(239, 246, 255, 0.78);
}

.broadcast-title {
  color: #1d4ed8;
}

.broadcast-list b {
  color: #334155;
}

.participants h3 {
  margin: 0;
  padding: 16px 10px;
  color: #111827;
  text-align: center;
}

.participants table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 8px;
  font-size: 12px;
}

.participants th,
.participants td {
  padding: 11px 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
}

.participants th {
  background: rgba(248, 250, 252, 0.9);
  color: #667085;
}

.participants td:nth-child(3),
.participants td:nth-child(4) {
  color: #1d4ed8;
  font-weight: 800;
}

.create-activity {
  width: calc(100% - 48px);
  background: linear-gradient(135deg, #334155, #111827);
}

.mobile-footer {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 80;
  width: min(430px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 54px 54px minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(22px) saturate(180%);
}

.mobile-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * env(safe-area-inset-bottom));
  height: env(safe-area-inset-bottom);
  background: #fff;
  pointer-events: none;
}

.client-mode .mobile-footer {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  background: #fff;
}

.client-mode::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 79;
  height: calc(18px + env(safe-area-inset-bottom));
  background: #fff;
  pointer-events: none;
}

.phone-screen {
  overflow: hidden;
}

.phone-screen .mobile-page {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 100%;
  padding-bottom: 0;
  overflow: hidden;
}

.phone-screen .mobile-scroll-content {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.phone-screen .mobile-scroll-content::-webkit-scrollbar {
  display: none;
}

.phone-screen .mobile-footer {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  transform: none;
  align-self: end;
  padding-bottom: 9px;
  background: rgba(255, 255, 255, 0.92);
}

.phone-screen .mobile-footer::after {
  display: none;
}

.footer-tool {
  color: #667085;
}

.footer-tool span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.9);
  color: #111827;
}

.douyin-landing-page {
  padding-bottom: 94px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94) 48%, rgba(248, 250, 252, 1)),
    #f7f8fb;
}

.dy-hero {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92) 58%, rgba(236, 253, 245, 0.82)),
    #fff;
  color: #111827;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.dy-hero p {
  color: #475467;
}

.dy-card,
.dy-qr-panel,
.dy-lead-panel,
.dy-tips {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
}

.dy-qr-wrap {
  border-color: rgba(50, 117, 246, 0.22);
  background: #eff6ff;
}

.dy-activity-btn {
  position: fixed;
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 21;
  width: min(390px, calc(100% - 28px));
  transform: translateX(-50%);
  background: linear-gradient(135deg, #111827, #475569);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.inactive-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94)),
    #f7f8fb;
}

.inactive-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px) saturate(150%);
}

.inactive-logo {
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #475569);
}

@media (max-width: 380px) {
  .price-card,
  .price-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sale-price strong {
    font-size: 48px;
  }

  .service-card {
    grid-template-columns: 78px 1fr;
  }

  .service-card strong {
    grid-column: 1 / -1;
    text-align: left;
  }

  .mobile-share-actions {
    grid-template-columns: 1fr;
  }

  .store-hero,
  .store-hero-content {
    min-height: 246px;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.modal h2 {
  margin-bottom: 8px;
}

.modal p {
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 22px;
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.agreement-check input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
}

.modal-submit {
  min-height: 46px;
}

.poster-modal {
  width: min(420px, 100%);
}

.poster-card {
  min-height: 540px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(160deg, var(--red), var(--orange));
}

.poster-card h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.poster-card .poster-price {
  margin: 28px 0 18px;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
  color: #f21120;
  text-align: center;
  font-size: 44px;
  font-weight: 900;
}

.poster-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.poster-card li {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.share-modal {
  max-width: 460px;
}

.share-preview-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
}

.share-preview-card img {
  width: 86px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
}

.share-preview-card b,
.share-preview-card span,
.share-progress-box b,
.share-progress-box span {
  display: block;
}

.share-preview-card span,
.share-progress-box span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.share-progress-box {
  padding: 12px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 8px;
  background: #ecfdf5;
}

.share-copy-text {
  width: 100%;
  min-height: 96px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  resize: vertical;
}

.share-link-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.success-share-cta {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(50, 117, 246, 0.16);
  border-radius: 8px;
  background: #eff6ff;
}

.success-share-cta b,
.success-share-cta span {
  display: block;
}

.success-share-cta span {
  color: #475467;
  font-size: 13px;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 28px auto 0;
  background: repeating-linear-gradient(45deg, #fff 0 6px, #111827 6px 10px);
  border: 8px solid #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 50;
  display: none;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.toast.show {
  display: block;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 190px minmax(560px, 1fr);
  }

  .preview-panel {
    grid-column: 1 / -1;
    position: static;
    height: auto;
  }

  .phone-frame {
    margin: 0 auto;
  }

  .phone-screen {
    height: 780px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: 100%;
    overflow-x: hidden;
    padding: 12px;
  }

  .workspace,
  .plain-section,
  .stats-grid,
  .workspace-header,
  .preview-panel {
    width: 100%;
    max-width: 100%;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace-header,
  .section-row,
  .login-card,
  .activity-board,
  .campaign-main-card,
  .campaign-metric-grid,
  .form-grid,
  .stats-grid,
  .theme-options,
  .feature-grid,
  .template-grid,
  .finance-summary,
  .role-grid,
  .permission-grid,
  .account-create-grid,
  .account-profile-grid,
  .account-stat-grid,
  .account-toolbar,
  .phone-login-panel,
  .login-flow-grid,
  .launch-grid,
  .verify-station,
  .wechat-layout,
  .share-layout,
  .funnel,
  .douyin-layout {
    grid-template-columns: 1fr;
  }

  .account-hero,
  .account-row,
  .settlement-card {
    grid-template-columns: 1fr;
  }

  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-card-side {
    justify-items: start;
  }

  .workspace-header,
  .section-title,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .edit-row,
  .gift-row,
  .douyin-row {
    grid-template-columns: 1fr;
  }

  .edit-thumb {
    width: 100%;
    height: 120px;
  }

  .douyin-preview {
    position: static;
  }

  .douyin-card-head,
  .douyin-qr-item,
  .douyin-created-list article,
  .guide-steps,
  .douyin-stats-head,
  .douyin-stats-row {
    grid-template-columns: 1fr;
  }

  .douyin-card-head .edit-thumb,
  .douyin-qr-item img {
    width: 100%;
    height: 120px;
  }

  .table-row,
  .table-head {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    padding: 12px;
  }

  .table-row.douyin-stats-row,
  .table-head.douyin-stats-head {
    grid-template-columns: 1fr;
  }

  .phone-screen {
    min-height: 680px;
    height: 760px;
  }
}

/* Premium redesign final layer. Keep this at the end of the file. */
:root {
  --bg: #f4f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --surface: #f7f8fa;
  --text: #15171c;
  --muted: #737985;
  --line: rgba(28, 31, 37, 0.08);
  --line-strong: rgba(28, 31, 37, 0.14);
  --red: #e45545;
  --orange: #c98335;
  --gold: #b98a3f;
  --teal: #21877d;
  --blue: #2f6fed;
  --green: #21875d;
  --dark: #17191f;
  --shadow: 0 18px 48px rgba(20, 24, 32, 0.08);
  --shadow-soft: 0 10px 28px rgba(20, 24, 32, 0.06);
  --glass: rgba(255, 255, 255, 0.7);
  --premium-accent: #2f6fed;
  --premium-warm: #d98b3d;
  --premium-danger: #d94c4c;
}

body {
  background:
    linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 42%, #eef1f5 100%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

@media (min-width: 861px) {
  .app-shell {
    grid-template-columns: 224px minmax(560px, 1fr) 414px;
    gap: 16px;
    padding: 16px;
  }
}

.sidebar,
.workspace-header,
.preview-head,
.stat-card,
.plain-section,
.compact-table,
.orders-table,
.config-card,
.settlement-card,
.douyin-card-editor,
.theme-option,
.modal {
  border-color: var(--line);
  border-radius: 8px;
}

.sidebar {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 52px rgba(18, 22, 30, 0.08);
}

.brand {
  padding: 4px 2px 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    #17191f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(20, 24, 32, 0.2);
}

.brand strong {
  color: #17191f;
  font-size: 16px;
  letter-spacing: 0;
}

.brand span,
.sidebar-note span {
  color: #8a909b;
}

.nav-list {
  gap: 4px;
  margin-top: 16px;
}

.nav-item {
  position: relative;
  min-height: 38px;
  padding: 9px 12px 9px 14px;
  color: #686f7a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-item.active,
.nav-item:hover {
  border-color: rgba(28, 31, 37, 0.06);
  background: rgba(255, 255, 255, 0.86);
  color: #17191f;
  box-shadow: 0 8px 20px rgba(20, 24, 32, 0.06);
}

.nav-item.active::before {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 3px;
  height: 18px;
  margin: 0;
  border-radius: 999px;
  background: #17191f;
  transform: translateY(-50%);
}

.sidebar-note {
  padding: 12px;
  background: rgba(247, 248, 250, 0.82);
}

.sidebar-note strong {
  color: #20242b;
  font-size: 13px;
  line-height: 1.45;
}

.workspace-header {
  top: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(20, 24, 32, 0.07);
}

.eyebrow {
  color: #6d7480;
  font-size: 12px;
  font-weight: 650;
}

h1 {
  color: #111318;
  font-size: 26px;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  color: #17191f;
  font-size: 16px;
  font-weight: 760;
}

.section-title span,
.toolbar span,
.hint-text,
.empty-state {
  color: #777f8c;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.mini-btn {
  border-radius: 8px;
  font-weight: 750;
  letter-spacing: 0;
}

.primary-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #17191f;
  box-shadow: 0 12px 28px rgba(20, 24, 32, 0.16);
}

.primary-btn:hover {
  box-shadow: 0 16px 36px rgba(20, 24, 32, 0.2);
}

.ghost-btn {
  border-color: rgba(28, 31, 37, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #272b33;
}

.mini-btn {
  border-color: rgba(47, 111, 237, 0.16);
  background: rgba(47, 111, 237, 0.08);
  color: #245ec9;
}

.danger-btn {
  border-color: rgba(217, 76, 76, 0.18);
  background: rgba(217, 76, 76, 0.08);
  color: #b93636;
}

.stats-grid {
  gap: 12px;
}

.stat-card,
.plain-section {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(20, 24, 32, 0.06);
}

.stat-card {
  min-height: 132px;
  padding: 17px;
}

.stat-card::after {
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 25, 31, 0.42), rgba(47, 111, 237, 0.26), rgba(217, 139, 61, 0.22));
}

.stat-card:hover,
.plain-section:hover {
  border-color: rgba(28, 31, 37, 0.12);
  box-shadow: 0 18px 44px rgba(20, 24, 32, 0.08);
}

.stat-card span {
  color: #7d8490;
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  margin-top: 10px;
  color: #111318;
  font-size: 30px;
  font-weight: 760;
}

.stat-card em {
  color: #858c97;
  line-height: 1.45;
}

.plain-section {
  padding: 18px;
}

.funnel div,
.rank-item,
.feature-item,
.feature-card,
.template-card,
.finance-card,
.role-card,
.edit-row,
.launch-card,
.account-row,
.permission-grid article,
.login-flow-grid article,
.account-hero,
.phone-login-panel,
.douyin-card-editor {
  border-color: rgba(28, 31, 37, 0.08);
  background: rgba(248, 249, 251, 0.72);
  border-radius: 8px;
}

.funnel div:hover,
.rank-item:hover,
.feature-item:hover,
.feature-card:hover,
.template-card:hover,
.finance-card:hover,
.role-card:hover,
.activity-card:hover,
.edit-row:hover,
.douyin-card-editor:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 24, 32, 0.06);
}

.funnel b {
  font-size: 25px;
  font-weight: 760;
}

.role-card.active,
.template-card.active,
.activity-card.active {
  border-color: rgba(47, 111, 237, 0.28);
  background:
    linear-gradient(180deg, rgba(47, 111, 237, 0.08), rgba(255, 255, 255, 0.72)),
    #fff;
}

.activity-card {
  border-color: rgba(28, 31, 37, 0.08);
  background: rgba(248, 249, 251, 0.72);
}

.activity-card b,
.role-card b,
.template-card b,
.feature-card b,
.feature-item b {
  color: #17191f;
}

.activity-card-side strong,
.rank-item b {
  color: var(--premium-warm);
}

.table-head {
  background: rgba(244, 246, 248, 0.9);
  color: #7b828d;
  font-weight: 760;
}

.table-row {
  background: rgba(255, 255, 255, 0.56);
}

.table-row:hover {
  background: #fff;
}

.status-pill,
.verify-code,
.section-tag,
.activity-time-pill,
.launch-card b,
.check-item b,
.check-progress b {
  border-radius: 8px;
}

.status-pill {
  background: rgba(33, 135, 93, 0.1);
  color: #176c49;
}

.status-pill.pending {
  background: rgba(217, 139, 61, 0.12);
  color: #986021;
}

.status-pill.used {
  background: rgba(47, 111, 237, 0.1);
  color: #245ec9;
}

.status-pill.danger,
.status-pill.bad {
  background: rgba(217, 76, 76, 0.1);
  color: #b93636;
}

input,
textarea,
select {
  border-color: rgba(28, 31, 37, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #17191f;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(47, 111, 237, 0.56);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.1);
}

label {
  color: #737985;
  font-weight: 720;
}

.verify-station {
  border-color: rgba(47, 111, 237, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 249, 252, 0.86)),
    #fff;
  box-shadow: 0 14px 34px rgba(20, 24, 32, 0.06);
}

.preview-panel {
  top: 16px;
  height: calc(100vh - 32px);
}

.preview-head {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(20, 24, 32, 0.06);
}

.phone-frame {
  width: 390px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    #12151b;
  border-radius: 30px;
  box-shadow: 0 30px 76px rgba(16, 20, 28, 0.28);
}

.phone-screen {
  border-radius: 22px;
  background: #f6f7f9;
}

.client-mode .client-page-root,
.mobile-page {
  background:
    linear-gradient(180deg, #fbfbfc 0%, #f5f6f8 46%, #eef1f5 100%),
    #f6f7f9;
}

.mobile-page {
  --theme-main: #d8614c;
  --theme-second: #30343c;
  color: #17191f;
}

.theme-red {
  --theme-main: #d8614c;
  --theme-second: #30343c;
}

.theme-orange {
  --theme-main: #d98b3d;
  --theme-second: #6f5538;
}

.theme-teal {
  --theme-main: #21877d;
  --theme-second: #2f6fed;
}

.mobile-top,
.mobile-topbar {
  min-height: 56px;
  border-bottom: 1px solid rgba(28, 31, 37, 0.08);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px) saturate(180%);
}

.mobile-top b,
.mobile-topbar b {
  color: #17191f;
  font-size: 15px;
  font-weight: 760;
}

.hero {
  border-radius: 8px;
}

.store-hero {
  min-height: 292px;
  margin: 12px 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: #111318;
  box-shadow: 0 22px 56px rgba(16, 20, 28, 0.18);
}

.store-hero-photo {
  opacity: 0.46;
  filter: saturate(0.82) contrast(0.96) brightness(0.7);
  transform: scale(1.03);
}

.store-hero-shade {
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.38) 0%, rgba(17, 19, 24, 0.66) 48%, rgba(17, 19, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(17, 19, 24, 0.82), rgba(17, 19, 24, 0.28));
}

.share-badge {
  top: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.76);
  color: #17191f;
  font-weight: 720;
  box-shadow: 0 12px 24px rgba(16, 20, 28, 0.12);
}

.avatar {
  background: #17191f;
  color: #fff;
}

.store-hero-content {
  min-height: 292px;
  padding: 82px 18px 20px;
}

.store-hero h3 {
  max-width: 86%;
  font-size: 30px;
  font-weight: 820;
  line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.store-hero p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 720;
}

.store-hero .hero-line {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.store-hero-meta span {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
}

.price-card,
.price-box {
  grid-template-columns: 0.9fr 1.18fr 0.82fr;
  margin: -18px 20px 12px;
  padding: 17px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(16, 20, 28, 0.13);
  backdrop-filter: blur(20px) saturate(180%);
}

.old-price {
  color: #737985;
  font-size: 13px;
  line-height: 1.6;
}

.old-price b {
  color: #949aa4;
  font-weight: 760;
}

.sale-price {
  color: var(--theme-main);
}

.sale-price strong {
  font-size: 54px;
  font-weight: 860;
}

.pay-mark {
  color: #17754d;
  font-size: 12px;
}

.pay-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(145deg, #27a362, #14745c);
  box-shadow: 0 12px 24px rgba(23, 117, 77, 0.22);
}

.mobile-share-actions {
  gap: 8px;
}

.mobile-share-actions button,
.mobile-section,
.invite-progress,
.gift-card,
.mobile-wechat-user,
.wechat-mini-profile,
.shop-info div,
.shop-lines div,
.mobile-form-preview div,
.entry-grid div,
.lottery-box {
  border-color: rgba(28, 31, 37, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(16, 20, 28, 0.06);
}

.mobile-share-actions button {
  min-height: 72px;
  color: #17191f;
}

.mobile-share-actions b {
  font-weight: 780;
}

.mobile-share-actions span {
  color: #777f8c;
}

.activity-time-pill {
  border-color: rgba(33, 135, 93, 0.14);
  background: rgba(33, 135, 93, 0.09);
  color: #176c49;
  font-weight: 760;
}

.mobile-section {
  border-radius: 8px;
  backdrop-filter: blur(16px) saturate(150%);
}

.section-heading b {
  color: #17191f;
  font-size: 16px;
  font-weight: 800;
}

.section-heading span {
  color: #737985;
}

.section-tag {
  border-color: rgba(47, 111, 237, 0.14);
  background: rgba(47, 111, 237, 0.08);
  color: #245ec9;
  font-weight: 760;
}

.service-card {
  grid-template-columns: 88px 1fr 66px;
  gap: 11px;
  border-color: rgba(28, 31, 37, 0.07);
  background: rgba(248, 249, 251, 0.82);
  box-shadow: none;
}

.service-card img {
  width: 88px;
  height: 66px;
  border-color: rgba(28, 31, 37, 0.08);
  border-radius: 8px;
}

.service-card b {
  color: #17191f;
  font-weight: 800;
}

.service-card span {
  color: #747b86;
}

.service-card em {
  color: #245ec9;
}

.service-card strong {
  color: var(--theme-main);
  font-weight: 820;
}

.flow-strip {
  border-color: rgba(47, 111, 237, 0.12);
  background: rgba(47, 111, 237, 0.07);
  color: #264d9a;
  font-weight: 720;
}

.invite-progress {
  border-color: rgba(47, 111, 237, 0.12);
  background:
    linear-gradient(180deg, rgba(47, 111, 237, 0.08), rgba(255, 255, 255, 0.82)),
    #fff;
}

.invite-progress b {
  color: #17191f;
}

.invite-progress span {
  color: #737985;
}

.gift-grid {
  gap: 10px;
}

.gift-card {
  background: rgba(248, 249, 251, 0.82);
}

.gift-card img {
  border-color: rgba(28, 31, 37, 0.08);
  border-radius: 8px;
}

.gift-card .threshold {
  background: rgba(23, 25, 31, 0.88);
  color: #fff;
  font-weight: 760;
}

.gift-card b {
  color: #17191f;
  font-weight: 800;
}

.gift-card.unlocked {
  background:
    linear-gradient(180deg, rgba(33, 135, 93, 0.1), rgba(255, 255, 255, 0.82)),
    #fff;
  outline-color: rgba(33, 135, 93, 0.2);
}

.coupon-card {
  border-color: rgba(217, 139, 61, 0.18);
  background: rgba(255, 249, 239, 0.92);
}

.coupon-card b {
  color: #ad6c25;
}

.ad-banner {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #17191f;
  box-shadow: 0 18px 42px rgba(16, 20, 28, 0.2);
}

.shop-photo {
  border-color: rgba(28, 31, 37, 0.08);
  border-radius: 8px;
}

.shop-info span,
.shop-lines span,
.mobile-form-preview span,
.entry-grid span {
  background: rgba(239, 241, 245, 0.9);
  color: #747b86;
}

.entry-buy,
.buy-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    #17191f;
  box-shadow: 0 14px 30px rgba(16, 20, 28, 0.18);
}

.poster-btn {
  border-color: rgba(47, 111, 237, 0.14);
  background: rgba(47, 111, 237, 0.08);
  color: #245ec9;
}

.broadcast {
  border-color: rgba(47, 111, 237, 0.12);
  background: rgba(47, 111, 237, 0.07);
}

.broadcast-title,
.participants td:nth-child(3),
.participants td:nth-child(4) {
  color: #245ec9;
}

.participants h3 {
  color: #17191f;
  font-weight: 820;
}

.participants th {
  background: rgba(244, 246, 248, 0.92);
}

.create-activity {
  background: linear-gradient(145deg, #30343c, #17191f);
}

.mobile-footer {
  border-top: 1px solid rgba(28, 31, 37, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 -18px 44px rgba(16, 20, 28, 0.12);
}

.footer-tool {
  color: #737985;
  font-weight: 720;
}

.footer-tool span:first-child {
  background: rgba(239, 241, 245, 0.92);
  color: #17191f;
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.poster-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #17191f, #3f4654 58%, #d8614c);
}

.poster-card .poster-price {
  color: #d8614c;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace-header,
  .section-title,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-frame {
    width: min(390px, 100%);
  }
}

@media (max-width: 380px) {
  .price-card,
  .price-box {
    margin: -14px 12px 12px;
  }

  .sale-price strong {
    font-size: 48px;
  }
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #111318;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 14px 30px rgba(20, 24, 32, 0.18);
}

.login-brand .brand-logo {
  width: 58px;
  height: 58px;
  box-shadow: 0 18px 40px rgba(20, 24, 32, 0.2);
}

.sidebar .brand-logo {
  width: 42px;
  height: 42px;
}

/* Admin copy cleanup: keep the workspace operational, not explanatory. */
.admin-mode.logged-in .workspace-header .eyebrow,
.admin-mode.logged-in .section-title > span,
.admin-mode.logged-in .toolbar > span:not(.search-result-text):not(#serviceSummary):not(#customerSummary):not(#orderSearchResult),
.admin-mode.logged-in .plain-section .hint-text,
.admin-mode.logged-in .new-activity-box > span,
.admin-mode.logged-in .check-item em,
.admin-mode.logged-in .launch-card em,
.admin-mode.logged-in .stat-card em,
.admin-mode.logged-in .capability-list span,
.admin-mode.logged-in .verify-station > div > span,
.admin-mode.logged-in .preview-head span,
.admin-mode.logged-in .sidebar-note {
  display: none;
}

.admin-mode.logged-in .workspace-header {
  align-items: center;
}

.admin-mode.logged-in .section-title {
  margin-bottom: 12px;
}

.admin-mode.logged-in .toolbar {
  min-height: 0;
}

.admin-mode.logged-in .account-hero {
  grid-template-columns: minmax(0, 1fr) 92px;
  padding: 16px;
}

.admin-mode.logged-in .account-hero h3 {
  margin: 2px 0 0;
}

.admin-mode.logged-in .phone-login-panel {
  grid-template-columns: 0.7fr minmax(160px, 1fr) minmax(120px, 0.8fr) auto auto;
  align-items: end;
}

.admin-mode.logged-in .phone-login-panel > div {
  align-self: center;
}

.admin-mode.logged-in .account-create-grid {
  background: rgba(248, 249, 251, 0.72);
  border-color: rgba(28, 31, 37, 0.08);
}

.admin-mode.logged-in .account-row {
  grid-template-columns: minmax(180px, 1.2fr) 140px minmax(180px, 1fr) auto;
}

.admin-mode.logged-in .account-row em,
.admin-mode.logged-in .account-row small,
.admin-mode.logged-in .activity-card small {
  display: none;
}

.admin-mode.logged-in .activity-board {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-mode.logged-in .activity-lane.new-lane {
  grid-column: 1 / -1;
}

.admin-mode.logged-in .config-card .capability-list div,
.admin-mode.logged-in .guide-steps article,
.admin-mode.logged-in .feature-card {
  min-height: auto;
}

.admin-mode.logged-in .feature-card span {
  display: none;
}

.admin-mode.logged-in .check-progress {
  margin-bottom: 0;
}

.admin-mode.logged-in .check-item {
  grid-template-columns: 84px 1fr;
}

.admin-mode.logged-in .launch-card {
  min-height: 82px;
}

@media (max-width: 860px) {
  .account-profile-grid,
  .admin-mode.logged-in .phone-login-panel,
  .admin-mode.logged-in .account-row,
  .admin-mode.logged-in .account-hero {
    grid-template-columns: 1fr;
  }

  .admin-mode.logged-in .workspace-header {
    align-items: flex-start;
  }

  .admin-mode.logged-in .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-mode.logged-in .account-name-chip {
    max-width: 100%;
  }

  .account-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Douyin workbench final ordering */
#douyin .douyin-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 14px;
}

#douyin .douyin-card-editor.focused {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(28, 31, 37, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 24, 32, 0.06);
}

#douyin .douyin-builder {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#douyin .douyin-entry-list {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

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

#douyin .douyin-config-card .douyin-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#douyin .douyin-risk {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

#douyin .douyin-card-actions {
  gap: 8px;
}

#douyin .douyin-qr-item {
  grid-template-columns: 60px repeat(5, minmax(112px, 1fr)) minmax(116px, 0.7fr) auto;
  gap: 8px;
  padding: 10px;
  border-style: solid;
  border-color: rgba(28, 31, 37, 0.08);
  background: #fff;
}

#douyin .douyin-qr-item img {
  width: 60px;
  height: 60px;
}

#douyin .douyin-stats-head,
#douyin .douyin-stats-row {
  grid-template-columns: 1.25fr 0.85fr 0.55fr 0.55fr 0.55fr 1.15fr;
}

@media (max-width: 1180px) {
  #douyin .douyin-layout,
  #douyin .douyin-builder,
  #douyin .douyin-editor-grid {
    grid-template-columns: 1fr;
  }

  #douyin .douyin-entry-list {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  #douyin .douyin-qr-item {
    grid-template-columns: 60px repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 720px) {
  #douyin .douyin-overview,
  #douyin .douyin-editor-kpis,
  #douyin .douyin-config-card .douyin-card-grid,
  #douyin .douyin-risk,
  #douyin .douyin-qr-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.admin-mode.logged-in {
    width: 100%;
    overflow-x: hidden;
  }

  body.admin-mode.logged-in .app-shell,
  body.admin-mode.logged-in .workspace {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  body.admin-mode.logged-in .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.admin-mode.logged-in .header-actions .ghost-btn,
  body.admin-mode.logged-in .header-actions .primary-btn {
    width: 100%;
  }
}

#douyin .douyin-overview article {
  min-height: 64px;
  padding: 12px;
}

#douyin .douyin-overview b {
  font-size: 22px;
}

#douyin .douyin-preview {
  min-height: 300px;
}

#douyin .douyin-preview-panel {
  min-height: 340px;
  padding: 16px;
}

#douyin .douyin-link-row {
  display: grid;
  gap: 8px;
}

#douyin .douyin-link-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(28, 31, 37, 0.08);
  border-radius: 8px;
  background: #f7f8fa;
  color: #4b5563;
  font-size: 14px;
  font-weight: 680;
}

#douyin .douyin-phone {
  max-width: 280px;
  padding: 14px;
  border-radius: 24px;
}

#douyin .douyin-chat-title {
  margin-bottom: 10px;
}

#douyin .douyin-chat-bubble {
  grid-template-columns: 50px minmax(0, 1fr);
}

#douyin .douyin-chat-bubble img {
  width: 50px;
  height: 50px;
}

#douyin .douyin-landing-mini {
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
}

#douyin .douyin-landing-mini img {
  width: 96px;
  height: 96px;
}

.legal-document-page {
  min-height: 100vh;
  background: #f6f7fb;
  color: #172033;
}

.legal-document {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
  line-height: 1.8;
}

.legal-document h1 {
  margin: 14px 0 8px;
  color: #111827;
  font-size: 30px;
}

.legal-document h2 {
  margin: 28px 0 8px;
  color: #1f2937;
  font-size: 18px;
}

.legal-document p {
  margin: 0 0 12px;
  color: #475569;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.legal-updated,
.legal-records {
  color: #64748b;
  font-size: 13px;
}

.legal-records {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #d8dee9;
}
