:root {
  --blue: #286ff0;
  --blue-2: #1eb4e9;
  --blue-dark: #183665;
  --ink: #17233c;
  --muted: #66748d;
  --line: #e2eaf5;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --soft: #eef6ff;
  --green: #16b86f;
  --orange: #d9861c;
  --red: #e65d55;
  --violet: #6d6fe8;
  --admin: #b95a51;
  --shadow: 0 18px 45px rgba(31, 72, 125, 0.1);
  --shadow-soft: 0 10px 28px rgba(31, 72, 125, 0.07);
  --focus: 0 0 0 3px rgba(40, 111, 240, 0.14);
  --radius: 8px;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.home-page {
  min-height: 100vh;
  background: #fff;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(20, 54, 105, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
}

.brand img {
  width: 130px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #1b2c4d;
}

.section {
  padding: 86px 24px;
  background: linear-gradient(180deg, #fff, #eef6ff);
}

.section.white {
  background: #fff;
}

.section.soft {
  background: #f3f8ff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.capability-card {
  min-height: 210px;
  padding: 28px;
  background: #fff;
  border: 1px solid #ecf2fb;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.capability-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  color: var(--blue);
  font-weight: 700;
  border-radius: 999px;
  background: #edf5ff;
}

.capability-card h3 {
  margin: 22px 0 14px;
  font-size: 22px;
}

.capability-card p {
  margin: 0;
  color: #64718a;
  line-height: 1.65;
}

.compact-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: none;
}

.compact-grid .capability-card {
  min-height: auto;
  padding: 18px;
}

.support-card {
  padding: 22px;
  border: 1px solid #e8effa;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  box-shadow: var(--shadow-soft);
}

.support-card h3 {
  margin: 16px 0 8px;
}

.support-card p {
  color: #63708a;
  line-height: 1.7;
}

.compact-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.compact-support-card h3,
.compact-support-card p {
  margin: 0;
}

.stack-list {
  display: grid;
  gap: 16px;
}

.stack-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stack-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.stack-item p {
  margin: 0;
  color: #64718a;
  line-height: 1.55;
}

.outline-btn,
.primary-btn,
.ghost-btn,
.danger-btn,
.plain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 7px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4092ff);
  box-shadow: 0 10px 20px rgba(40, 111, 240, 0.2);
}

.outline-btn {
  color: var(--blue);
  background: #fff;
  border: 1px solid #b7d3ff;
}

.ghost-btn {
  color: #3a4964;
  background: #f1f5fb;
  border: 1px solid transparent;
}

.danger-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #f07052);
}

.plain-btn {
  color: var(--blue);
  background: transparent;
}

.primary-btn:hover,
.outline-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.outline-btn:hover {
  background: var(--soft);
  border-color: #8dbdff;
}

.ghost-btn:hover {
  color: var(--blue-dark);
  background: #eaf1fb;
}

.app-shell {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% -8%, rgba(40, 111, 240, 0.1), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 26px 14px 20px;
  color: #fff;
  background: linear-gradient(180deg, #137ed8 0%, #286ff0 58%, #225fcf 100%);
  border-radius: 0 20px 20px 0;
  box-shadow: 8px 0 32px rgba(32, 82, 154, 0.16);
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.admin-sidebar {
  background: linear-gradient(180deg, #243a64 0%, #255a99 48%, var(--admin) 100%);
}

.admin-sidebar .side-menu a.active {
  color: #ad453d;
}

.side-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 34px;
  color: var(--blue);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(6, 44, 105, 0.18);
}

.side-menu {
  display: grid;
  gap: 7px;
}

.side-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  font-size: 14px;
  color: #eef6ff;
  border: 1px solid transparent;
  border-radius: 6px;
}

.side-menu a.active {
  color: #1c64c8;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 56, 140, 0.16);
}

.side-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.side-menu a.active:hover {
  background: #fff;
}

.side-spacer {
  flex: 1;
}

.side-back {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-left: 12px;
  color: #eaf4ff;
  font-size: 13px;
  opacity: 0.9;
}

.workspace {
  min-width: 0;
  padding: 32px 38px 48px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(226, 234, 245, 0.95);
}

.crumb {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.page-subtitle {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card,
.panel,
.data-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.metric-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  content: "";
  background: radial-gradient(circle, rgba(40, 111, 240, 0.12), transparent 68%);
  pointer-events: none;
}

.metric-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.1;
}

.metric-card small {
  color: var(--green);
}

.panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  min-height: 40px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 22px;
}

.admin-shell {
  grid-template-columns: 132px minmax(0, 1fr);
  background: #f6f8fb;
}

.admin-shell .sidebar {
  padding: 22px 12px 18px;
  background: linear-gradient(180deg, #23344d 0%, #2d4261 100%);
  border-radius: 0 14px 14px 0;
  box-shadow: 5px 0 22px rgba(22, 39, 64, 0.12);
}

.admin-shell .side-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(6, 44, 105, 0.14);
}

.admin-shell .side-menu {
  gap: 5px;
}

.admin-shell .side-menu a {
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: #dbe5f4;
  font-size: 13px;
}

.admin-shell .side-menu a svg {
  width: 16px;
  height: 16px;
}

.admin-shell .side-menu a.active {
  color: #1f5edc;
  box-shadow: none;
}

.admin-shell .side-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-shell .side-menu a.active:hover {
  background: #fff;
}

.admin-shell .side-back {
  min-height: 34px;
  padding-left: 10px;
  color: #dce6f3;
  font-size: 12px;
}

.admin-shell .workspace {
  min-width: 0;
  padding: 24px 28px 34px;
}

.admin-shell .workspace-head {
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-color: #e2e8f2;
}

.admin-shell .crumb {
  margin-bottom: 5px;
  color: #5b75a6;
  font-size: 12px;
}

.admin-shell .page-title {
  font-size: 24px;
  line-height: 1.2;
}

.admin-shell .page-subtitle {
  max-width: 720px;
  margin-top: 6px;
  font-size: 13px;
}

.admin-shell .dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-shell .metric-card,
.admin-shell .panel,
.admin-shell .data-card {
  border-color: #dfe7f2;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-shell .metric-card {
  min-height: 96px;
  padding: 14px 16px 13px;
}

.admin-shell .metric-card::after {
  display: none;
}

.admin-shell .metric-card span {
  color: #627089;
  font-size: 13px;
}

.admin-shell .metric-card span svg {
  width: 16px;
  height: 16px;
}

.admin-shell .metric-card strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.05;
}

.admin-shell .metric-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.admin-shell .panel {
  min-width: 0;
  padding: 16px;
}

.admin-shell .panel-title {
  min-height: 32px;
  margin-bottom: 12px;
  gap: 12px;
}

.admin-shell .panel-title h2,
.admin-shell .panel-title h3 {
  font-size: 16px;
}

.admin-shell .two-col {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 16px;
}

.admin-shell .two-col > *,
.admin-shell .dashboard-grid > * {
  min-width: 0;
}

.admin-shell .table-tools {
  gap: 10px;
  margin-bottom: 12px;
}

.admin-shell .search {
  min-width: 260px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
}

.admin-shell .data-table {
  border-radius: 7px;
  font-size: 13px;
}

.admin-shell .data-table th,
.admin-shell .data-table td {
  padding: 10px 12px;
  border-color: #edf1f6;
}

.admin-shell .data-table th {
  color: #586a84;
  font-size: 12px;
  background: #f7f9fc;
}

.admin-shell .data-table td {
  color: #25344f;
}

.admin-shell .data-table strong {
  font-size: 14px;
}

.admin-shell .data-table small {
  color: #718099;
}

.admin-shell .status {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-shell .tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-shell .actions {
  gap: 6px;
}

.admin-shell .outline-btn,
.admin-shell .primary-btn,
.admin-shell .ghost-btn,
.admin-shell .danger-btn,
.admin-shell .plain-btn {
  min-height: 32px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 6px;
  font-size: 13px;
}

.admin-shell .primary-btn {
  box-shadow: 0 6px 14px rgba(40, 111, 240, 0.16);
}

.admin-shell .ghost-btn {
  background: #f3f6fb;
}

.admin-shell .admin-todo-table .plain-btn {
  justify-content: flex-start;
  min-height: 28px;
  padding: 0;
}

.admin-shell .form-grid {
  gap: 12px;
}

.admin-shell .field {
  gap: 6px;
}

.admin-shell .field label {
  font-size: 13px;
}

.admin-shell .field input:not([type="checkbox"]):not([type="radio"]),
.admin-shell .field select,
.admin-shell .field textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.admin-shell .field textarea {
  min-height: 76px;
}

.admin-shell .switch-row,
.admin-shell .option-row {
  gap: 8px;
}

.admin-shell .switch-row label,
.admin-shell .option-row label {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.admin-shell .support-card {
  padding: 14px 16px;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 7px;
  box-shadow: none;
}

.admin-shell .support-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.admin-shell .support-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.login-page {
  background: #f6f8fb;
}

.login-page .top-nav {
  height: 56px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5ebf4;
  box-shadow: none;
}

.login-page .brand img {
  width: 116px;
}

.login-page .nav-action {
  font-size: 14px;
}

.login-stage {
  padding: 24px;
  background: #f6f8fb !important;
}

.login-panel {
  padding: 22px;
  border-color: #dfe7f2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 72, 125, 0.08);
}

.login-panel .panel-title {
  min-height: 32px;
  margin-bottom: 16px;
}

.login-panel .panel-title h2 {
  font-size: 20px;
}

.login-panel .form-grid {
  gap: 12px;
}

.login-panel .field input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 38px;
}

.login-actions .primary-btn,
.login-actions .outline-btn,
.login-actions .ghost-btn {
  min-height: 36px;
}

.user-shell {
  grid-template-columns: 136px minmax(0, 1fr);
  background: #f6f8fb;
}

.user-shell .sidebar {
  padding: 22px 12px 18px;
  background: linear-gradient(180deg, #157bd6 0%, #2567dc 100%);
  border-radius: 0 14px 14px 0;
  box-shadow: 5px 0 22px rgba(32, 82, 154, 0.12);
}

.user-shell .side-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(6, 44, 105, 0.14);
}

.user-shell .side-menu {
  gap: 5px;
}

.user-shell .side-menu a {
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: #eaf4ff;
  font-size: 13px;
}

.user-shell .side-menu a svg {
  width: 16px;
  height: 16px;
}

.user-shell .side-menu a.active {
  color: #1763d5;
  box-shadow: none;
}

.user-shell .side-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-shell .side-menu a.active:hover {
  background: #fff;
}

.user-shell .side-back {
  min-height: 34px;
  padding-left: 10px;
  font-size: 12px;
}

.user-shell .workspace {
  min-width: 0;
  padding: 24px 28px 34px;
}

.user-shell .workspace-head {
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-color: #e2e8f2;
}

.user-shell .crumb {
  margin-bottom: 5px;
  color: #4f72b6;
  font-size: 12px;
}

.user-shell .page-title {
  font-size: 24px;
  line-height: 1.2;
}

.user-shell .page-subtitle {
  max-width: 720px;
  margin-top: 6px;
  font-size: 13px;
}

.user-shell .dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.user-shell .metric-card,
.user-shell .panel,
.user-shell .data-card {
  border-color: #dfe7f2;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.user-shell .metric-card {
  min-height: 96px;
  padding: 14px 16px 13px;
}

.user-shell .metric-card::after {
  display: none;
}

.user-shell .metric-card span {
  color: #627089;
  font-size: 13px;
}

.user-shell .metric-card span svg {
  width: 16px;
  height: 16px;
}

.user-shell .metric-card strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.05;
}

.user-shell .metric-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.user-shell .panel {
  min-width: 0;
  padding: 16px;
}

.user-shell .panel-title {
  min-height: 32px;
  margin-bottom: 12px;
  gap: 12px;
}

.user-shell .panel-title h2,
.user-shell .panel-title h3 {
  font-size: 16px;
}

.user-shell .two-col {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 16px;
}

.user-shell .two-col > *,
.user-shell .dashboard-grid > *,
.user-shell .function-layout > *,
.user-shell .form-layout > * {
  min-width: 0;
}

.user-shell .table-tools {
  gap: 10px;
  margin-bottom: 12px;
}

.user-shell .search {
  min-width: 260px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .data-table {
  border-radius: 7px;
  font-size: 13px;
}

.user-shell .data-table th,
.user-shell .data-table td {
  padding: 10px 12px;
  border-color: #edf1f6;
}

.user-shell .data-table th {
  color: #586a84;
  font-size: 12px;
  background: #f7f9fc;
}

.user-shell .data-table td {
  color: #25344f;
}

.user-shell .data-table strong {
  font-size: 14px;
}

.user-shell .data-table small {
  color: #718099;
}

.user-shell .status {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.user-shell .tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.user-shell .actions {
  gap: 6px;
}

.user-shell .outline-btn,
.user-shell .primary-btn,
.user-shell .ghost-btn,
.user-shell .danger-btn,
.user-shell .plain-btn {
  min-height: 32px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .primary-btn {
  box-shadow: 0 6px 14px rgba(40, 111, 240, 0.16);
}

.user-shell .ghost-btn {
  background: #f3f6fb;
}

.user-shell .icon-btn {
  width: 30px;
  height: 30px;
}

.user-shell .chart {
  height: 150px;
  padding-top: 14px;
}

.user-shell .stack-list {
  gap: 10px;
}

.user-shell .stack-item {
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
}

.user-shell .stack-item strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.user-shell .stack-item p {
  font-size: 12px;
  line-height: 1.45;
}

.user-shell .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.user-shell .function-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.user-shell .function-section {
  margin-bottom: 16px;
}

.user-shell .function-section h3 {
  margin-bottom: 9px;
  color: #53627a;
  font-size: 13px;
  font-weight: 700;
}

.user-shell .choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}

.user-shell .choice-card,
.user-shell .small-choice {
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border-radius: 7px;
}

.user-shell .choice-card.active,
.user-shell .small-choice.active {
  background: #f2f7ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.user-shell .choice-card p {
  font-size: 12px;
  line-height: 1.42;
}

.user-shell .small-choice {
  min-height: 38px;
}

.user-shell .intro-box {
  min-height: 0;
  padding: 13px 14px;
  border-radius: 7px;
  line-height: 1.55;
}

.user-shell .function-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

.user-shell .help-panel {
  top: 24px;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.user-shell .help-banner {
  height: auto;
  min-height: 82px;
  padding: 14px;
  border-radius: 7px;
}

.user-shell .help-card {
  padding: 12px;
  margin-top: 10px;
  border-radius: 7px;
}

.user-shell .form-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.user-shell .form-grid {
  gap: 12px;
}

.user-shell .field {
  gap: 6px;
}

.user-shell .field label {
  font-size: 13px;
}

.user-shell .field input:not([type="checkbox"]):not([type="radio"]),
.user-shell .field select,
.user-shell .field textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .field textarea {
  min-height: 72px;
}

.user-shell .switch-row,
.user-shell .option-row {
  gap: 8px;
}

.user-shell .switch-row label,
.user-shell .option-row label {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.user-shell .upload-drop {
  min-height: 90px;
  padding: 14px;
  border-radius: 7px;
}

.user-shell .upload-drop .icon {
  width: 24px;
  height: 24px;
}

.user-shell .preview-phone {
  width: 200px;
  min-height: 380px;
  padding: 12px;
  border-width: 8px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(29, 49, 93, 0.1);
}

.user-shell .phone-page {
  min-height: 340px;
  padding: 16px 12px;
}

.user-shell .qr-box {
  width: 126px;
  height: 126px;
  margin-bottom: 12px;
  box-shadow: none;
}

.user-shell .log-list {
  gap: 9px;
}

.user-shell .log-item {
  padding: 10px 12px;
}

.user-shell .setting-tabs {
  gap: 8px;
  margin-bottom: 12px;
}

.user-shell .setting-tabs button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 13px;
}

.user-shell .setting-tabs button.active {
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(40, 111, 240, 0.16);
}

.user-shell .capability-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: none;
}

.user-shell .capability-card {
  min-height: auto;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.user-shell .capability-card .badge {
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.user-shell .capability-card h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.user-shell .capability-card p {
  font-size: 13px;
  line-height: 1.5;
}

.user-shell .support-card {
  padding: 14px;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 7px;
  box-shadow: none;
}

.user-shell .support-card h3 {
  margin: 10px 0 5px;
  font-size: 16px;
}

.user-shell .support-card p {
  font-size: 13px;
  line-height: 1.55;
}

.function-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}

.function-section {
  margin-bottom: 24px;
}

.function-section h3 {
  margin: 0 0 14px;
  color: #64718a;
  font-size: 15px;
  font-weight: 500;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 16px;
}

.choice-card,
.small-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  color: #5f6d84;
  background: var(--panel-soft);
  border: 1px solid #e5edf8;
  border-radius: var(--radius);
}

.choice-card.active,
.small-choice.active {
  color: var(--blue);
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
  border-color: #aecaef;
  box-shadow: inset 3px 0 0 var(--blue);
}

.choice-card:hover,
.small-choice:hover {
  border-color: #bed8ff;
  background: #f6faff;
}

.choice-card strong,
.small-choice strong {
  display: block;
  margin-bottom: 6px;
  color: inherit;
}

.choice-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.small-choice {
  min-height: 50px;
  align-items: center;
  padding: 12px 16px;
}

.intro-box {
  min-height: 92px;
  padding: 18px;
  color: #43516d;
  line-height: 1.7;
  background: var(--panel-soft);
  border: 1px solid #e7eef8;
  border-radius: var(--radius);
}

.function-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.45fr);
  gap: 20px;
  margin-top: 80px;
}

.help-panel {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.help-card {
  padding: 14px;
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  border: 1px solid #e7eef8;
}

.help-card.red {
  color: #ff3654;
  background: #fff4f4;
}

.help-banner {
  height: 120px;
  padding: 20px;
  color: #1263de;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e3f1ff, #f8fbff);
  border: 1px solid #d8e8fb;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

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

.field {
  display: grid;
  gap: 8px;
}

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

.field label {
  color: #42516a;
  font-weight: 700;
  font-size: 14px;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 7px;
  outline: none;
}

.field input[type="file"] {
  font: inherit;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: #86b9ff;
  box-shadow: var(--focus);
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.switch-row,
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.switch-row label,
.option-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  color: #43516d;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.image-upload {
  display: grid;
  gap: 14px;
}

.upload-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  color: #40516d;
  background: var(--panel-soft);
  border: 1px dashed #aecaef;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
}

.upload-drop:hover {
  color: var(--blue);
  background: #f6faff;
  border-color: #86b9ff;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  pointer-events: none;
}

.field .upload-drop input[type="file"] {
  width: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
}

.upload-drop .icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.upload-drop strong,
.upload-drop small {
  display: block;
}

.upload-drop small {
  margin-top: 6px;
  color: var(--muted);
}

.cover-preview {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  align-items: center;
  gap: 14px;
}

.cover-preview img {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-phone {
  width: 230px;
  min-height: 440px;
  margin: 0 auto;
  padding: 16px;
  background: linear-gradient(180deg, #f9fbff, #eef4fb);
  border: 10px solid #1d315d;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(29, 49, 93, 0.14);
}

.phone-page {
  min-height: 390px;
  padding: 18px 14px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.phone-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.phone-page h4 {
  margin: 0 0 8px;
}

.phone-page p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #75829a;
}

.template-live-phone .phone-page {
  height: 390px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.user-shell .template-live-phone .phone-page {
  height: 340px;
}

.live-template-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: left;
}

.live-template-frame .jump-template-preview {
  width: 100%;
  height: 100%;
}

.template-live-caption {
  margin-top: 12px;
  overflow: hidden;
  color: #65738a;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  padding: 8px;
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(31, 72, 125, 0.06);
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  min-height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 7px;
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid #eef2f8;
}

.data-table th {
  color: #607089;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #f8fbff, #f2f6fc);
}

.data-table td {
  color: #33425f;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f9fbff;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
}

.status::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.status.on {
  color: #0f9c5a;
  background: #e8fbf1;
}

.status.off {
  color: #d95c32;
  background: #fff1e8;
}

.status.warn {
  color: #bd760f;
  background: #fff7dc;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #346ed0;
  background: var(--soft);
  border: 1px solid #dbeaff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #48607e;
  background: #f1f5fb;
  border: 1px solid transparent;
  border-radius: 6px;
}

.icon-btn:hover {
  color: var(--blue);
  background: var(--soft);
  border-color: #d8e8ff;
}

.icon-btn.danger-icon {
  color: #a0524d;
}

.icon-btn.danger-icon:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 190px;
  padding: 20px 12px 0;
  border-bottom: 1px solid var(--line);
}

.bar {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #4a90ff, #36c6ed);
}

.bar.alt {
  background: linear-gradient(180deg, #25c985, #9be86e);
}

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

.log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--panel-soft);
  border: 1px solid #edf2fb;
  border-radius: 6px;
}

.setting-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.setting-tabs button {
  min-height: 38px;
  padding: 0 14px;
  color: #53627a;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.setting-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4092ff);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(40, 111, 240, 0.18);
}

.ops-tabs {
  margin-top: -4px;
}

.audit-list .log-item {
  align-items: flex-start;
}

.audit-list small {
  color: #73809a;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 31, 58, 0.42);
}

.modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(9, 31, 72, 0.25);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  padding: 24px;
}

.managed-card-style {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.managed-card-style > img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  background: #f3f5f8;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
}

.managed-card-style > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.managed-card-style strong,
.managed-card-style small {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-card-style strong {
  color: #26344c;
  font-size: 13px;
}

.managed-card-style small,
.managed-card-style-empty {
  color: #8a96aa;
  font-size: 12px;
}

.card-style-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgb(0 0 0 / 50%);
}

.card-style-drawer {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 64px;
  width: clamp(620px, 39vw, 1000px);
  height: 100vh;
  overflow: hidden;
  background: #f1f2f7;
  border-radius: 16px 0 0;
  box-shadow: -18px 0 44px rgb(15 35 65 / 18%);
}

.card-style-drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.card-style-drawer-header h2 {
  margin: 0;
  color: #1f2b3d;
  font-size: 18px;
  font-weight: 700;
}

.card-style-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #8a96aa;
  background: transparent;
  border: 0;
  border-right: 1px solid #dfe4eb;
  border-radius: 0;
}

.card-style-close svg {
  width: 17px;
  height: 17px;
  margin-right: 12px;
}

.card-style-drawer-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px;
  scrollbar-color: #8c8c8c transparent;
  scrollbar-width: thin;
}

.card-style-drawer-scroll::-webkit-scrollbar {
  width: 8px;
}

.card-style-drawer-scroll::-webkit-scrollbar-thumb {
  background: #8c8c8c;
  border-radius: 8px;
}

.card-style-drawer-panel {
  min-height: 100%;
  padding: 32px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 12px;
}

.card-style-guide {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 24px;
  color: #718096;
  font-size: 12px;
  line-height: 1.6;
}

.card-style-guide i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 5px;
  background: #0d0d0d;
  border-radius: 50%;
}

.card-style-cover-section {
  margin: 0;
}

.card-style-cover-section h3,
.card-style-live-preview h3 {
  margin: 0 0 12px;
  color: #0d0d0d;
  font-size: 14px;
  font-weight: 500;
}

.card-style-cover-section h4 {
  margin: 14px 0 10px;
  color: #718096;
  font-size: 13px;
  font-weight: 400;
}

.card-style-cover-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.card-style-cover-preview {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  padding: 0;
  overflow: hidden;
  background: #f4f6f8;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
}

.card-style-cover-preview:not(.hidden) {
  display: block;
}

.card-style-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-style-cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-style-cover-actions p {
  width: 100%;
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.45;
}

.card-style-soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 28px;
  padding: 0 12px;
  color: #1459fa;
  background: #e9ecff;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.card-style-soft-button input {
  display: none;
}

.card-style-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 84px);
  gap: 8px;
}

.card-style-preset-grid button {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 7px;
}

.card-style-preset-grid button.selected {
  border-color: #1459fa;
  box-shadow: 0 0 0 2px rgb(20 89 250 / 12%);
}

.card-style-preset-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-style-field {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  color: #0d0d0d;
  font-size: 14px;
}

.card-style-input-wrap {
  position: relative;
  display: block;
  max-width: 540px;
}

.card-style-input-wrap input {
  width: 100%;
  min-height: 40px;
  padding: 0 58px 0 14px;
  color: #303133;
  background: #f3f5f8;
  border: 1px solid transparent;
  border-radius: 5px;
  outline: none;
}

.card-style-input-wrap input:focus {
  background: #fff;
  border-color: #1459fa;
  box-shadow: 0 0 0 3px rgb(20 89 250 / 10%);
}

.card-style-input-wrap small {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #9aa4b4;
  font-size: 11px;
  transform: translateY(-50%);
}

.card-style-live-preview {
  width: min(460px, 100%);
  margin-top: 28px;
  padding: 18px;
  background: #f8f9fc;
  border-radius: 8px;
}

.card-style-live-preview > h3 {
  text-align: center;
  font-size: 12px;
}

.card-style-phone {
  width: 220px;
  min-height: 426px;
  margin: 18px auto 0;
  padding: 28px 14px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f7f9, #eef0f3);
  border: 8px solid #111317;
  border-radius: 30px 30px 14px 14px;
  box-shadow: 0 12px 28px rgb(22 34 52 / 12%);
}

.card-style-phone-top {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe3e8;
}

.card-style-avatar,
.card-style-message-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff9fc8, #7f7df4);
  border-radius: 50%;
  font-weight: 700;
}

.card-style-avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.card-style-phone-top > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.card-style-phone-top strong {
  color: #111827;
  font-size: 10px;
}

.card-style-phone-top small {
  color: #2bb673;
  font-size: 8px;
}

.card-style-phone-top b {
  color: #7b8491;
  font-size: 10px;
  letter-spacing: 1px;
}

.card-style-chat-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: flex-start;
  gap: 7px;
  margin-top: 46px;
}

.card-style-message-avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.card-style-message-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgb(33 48 73 / 7%);
}

.card-style-message-card img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
}

.card-style-message-card > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.card-style-message-card strong,
.card-style-message-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-style-message-card strong {
  color: #182236;
  font-size: 10px;
}

.card-style-message-card small {
  color: #99a1af;
  font-size: 8px;
}

.card-style-feishu-note {
  margin: 22px 0 0;
  padding: 12px 14px;
  color: #755a08;
  background: #fff8dc;
  border: 1px solid #f1df9e;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.65;
}

.card-style-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 30px;
  background: #fff;
  border-top: 1px solid #e8ebf0;
}

.card-style-drawer-footer .ghost-btn,
.card-style-drawer-footer .primary-btn {
  min-width: 74px;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
}

.card-style-drawer-footer .ghost-btn {
  color: #1459fa;
  background: #e9ecff;
  border-color: #e9ecff;
}

@media (max-width: 700px) {
  .card-style-drawer {
    width: 100vw;
    border-radius: 0;
  }

  .card-style-drawer-scroll {
    padding: 12px;
  }

  .card-style-drawer-panel {
    padding: 24px 20px;
  }

  .card-style-cover-row {
    gap: 12px;
  }

  .card-style-cover-actions p {
    max-width: 190px;
  }

  .card-style-preset-grid {
    grid-template-columns: repeat(3, 84px);
  }

  .card-style-drawer-footer {
    padding: 0 30px;
  }
}

.page-template-panel .panel-title {
  margin-bottom: 16px;
}

.page-template-pickers {
  display: flex;
  gap: 28px;
}

.page-template-picker {
  display: grid;
  gap: 10px;
  width: 138px;
}

.page-template-label {
  color: #40506a;
  font-size: 13px;
  text-align: center;
}

.page-template-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 138px;
  min-height: 184px;
  padding: 16px 12px;
  color: #2567c8;
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(31, 72, 125, 0.06);
}

.page-template-tile:hover {
  border-color: #90b9f4;
  box-shadow: 0 10px 22px rgba(31, 95, 190, 0.1);
}

.page-template-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(145deg, #ff9568, #e76f4c);
  box-shadow: 0 5px 12px rgba(231, 111, 76, 0.18);
}

.page-template-icon.qr {
  background: linear-gradient(145deg, #a879ff, #6d4fd6);
  box-shadow: 0 5px 12px rgba(109, 79, 214, 0.18);
}

.page-template-tile strong {
  font-size: 14px;
}

.page-template-tile small {
  width: 100%;
  overflow: hidden;
  color: #8a96aa;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.48);
}

.template-drawer {
  display: grid;
  grid-template-rows: 70px 52px minmax(0, 1fr);
  width: min(584px, 100vw);
  height: 100vh;
  overflow: hidden;
  background: #fff;
  box-shadow: -16px 0 42px rgba(15, 35, 65, 0.16);
}

.template-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.template-drawer-header h2 {
  margin: 0;
  color: #263755;
  font-size: 18px;
  font-weight: 700;
}

.template-drawer-header .icon-btn {
  width: 38px;
  height: 38px;
  color: #161c27;
  background: transparent;
  border: 0;
}

.template-drawer-tabs {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 20px;
}

.template-drawer-tabs button {
  position: relative;
  min-height: 38px;
  padding: 0 14px;
  color: #30415f;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
}

.template-drawer-tabs button.active {
  color: #2877d8;
}

.template-drawer-tabs button.active::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  content: "";
  background: #2d8cf0;
}

.template-drawer-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 4px 36px 20px;
  scrollbar-color: #8c8c8c transparent;
  scrollbar-width: thin;
}

.template-drawer-content::-webkit-scrollbar {
  width: 8px;
}

.template-drawer-content::-webkit-scrollbar-thumb {
  background: #8c8c8c;
  border-radius: 8px;
}

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

.page-template-card {
  display: block;
  min-width: 0;
  padding: 0;
  text-align: left;
  color: #30415f;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.page-template-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 264 / 448;
  overflow: hidden;
  background: #fff;
  border: 1px dashed #3b86ff;
  border-radius: 4px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.page-template-card:hover .page-template-thumb,
.page-template-card.selected .page-template-thumb {
  border-color: #176fe5;
  box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.12);
}

.page-template-card.selected .page-template-thumb::after {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  content: "\2713";
  background: #2d8cf0;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.page-template-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding-top: 10px;
}

.page-template-meta strong {
  overflow: hidden;
  color: #40506a;
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-template-meta em {
  color: #12bc66;
  font-size: 13px;
  font-style: normal;
}

.page-template-meta small {
  grid-column: 1 / -1;
  color: #929292;
  font-size: 13px;
}

.jump-template-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 52px 28px 30px;
  color: #8a8a8a;
  background: #fff;
}

.template-security {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  justify-content: center;
  color: #777;
  font-size: 9px;
  white-space: nowrap;
}

.template-security .icon {
  width: 12px;
  height: 12px;
  color: #13b86b;
}

.jump-platform-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 88px;
}

.platform-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
}

.platform-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.platform-logo.wechat {
  background: #18c452;
}

.platform-logo.tiktok {
  background: #080808;
}

.platform-logo.kuaishou {
  background: #ff7600;
}

.platform-logo.xiaohongshu {
  background: #ff2442;
}

.platform-logo.baidu,
.platform-logo.zhihu {
  background: #3478f6;
}

.platform-logo.wechat img,
.platform-logo.tiktok img,
.platform-logo.kuaishou img,
.platform-logo.xiaohongshu img,
.platform-logo.baidu img,
.platform-logo.zhihu img {
  filter: brightness(0) invert(1);
}

.jump-dots {
  display: flex;
  gap: 8px;
}

.jump-dots i {
  width: 4px;
  height: 4px;
  background: #dfdfdf;
  border-radius: 50%;
}

.jump-template-preview > small {
  margin-top: 18px;
  color: #cacaca;
  font-size: 9px;
}

.jump-template-preview p {
  margin: 10px 0 0;
  color: #8d8d8d;
  font-size: 10px;
}

.jump-template-button {
  display: grid;
  place-items: center;
  width: 148px;
  min-height: 29px;
  margin-top: 64px;
  color: #fff;
  background: #06c967;
  border-radius: 18px;
  font-size: 10px;
}

.jump-template-preview.variant-official,
.jump-template-preview.variant-legacy,
.jump-template-preview.variant-direct,
.jump-template-preview.variant-popup,
.jump-template-preview.variant-scrolling {
  --template-accent: #16a66f;
  --template-soft: #e9f8f1;
}

.jump-template-preview.tone-aqua { --template-accent: #1687a7; --template-soft: #e7f7fa; }
.jump-template-preview.tone-coral { --template-accent: #e26656; --template-soft: #fff0ed; }
.jump-template-preview.tone-indigo { --template-accent: #5167c8; --template-soft: #edf0ff; }
.jump-template-preview.tone-leaf { --template-accent: #548a3b; --template-soft: #eef7e9; }

.jump-template-preview.variant-official,
.jump-template-preview.variant-legacy {
  padding-top: 40px;
  background: linear-gradient(180deg, var(--template-soft) 0 48%, #fff 48%);
  text-align: center;
}

.official-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin-top: 48px;
  color: #fff;
  background: var(--template-accent);
  border: 12px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(35, 62, 91, 0.16);
}

.official-visual span {
  display: grid;
  place-items: center;
}

.official-visual .icon { width: 36px; height: 36px; }
.official-visual b { position: absolute; right: -20px; bottom: 0; color: var(--template-accent); font-size: 14px; }
.variant-official > strong,
.variant-legacy > strong { margin-top: 28px; color: #27354c; font-size: 15px; }
.variant-official > p,
.variant-legacy > p { margin-top: 8px; font-size: 9px; }
.variant-official .jump-template-button,
.variant-legacy .jump-template-button { margin-top: 30px; background: var(--template-accent); }
.variant-legacy { background: #fff; }
.variant-legacy .official-visual { width: 82px; height: 82px; margin-top: 70px; border: 0; border-radius: 16px; }

.jump-template-preview.variant-form {
  align-items: stretch;
  padding: 0 18px 22px;
  background: #f4f7fb;
}

.form-preview-hero,
.dialog-preview-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 128px;
  margin: 0 -18px 22px;
  padding: 18px;
  color: #fff;
  background: #315f91;
}

.form-preview-hero b,
.dialog-preview-hero b { font-size: 15px; }
.form-preview-hero small,
.dialog-preview-hero small { margin-top: 5px; color: rgba(255,255,255,.78); font-size: 8px; }
.variant-form label { margin: 8px 0 6px; color: #46536a; font-size: 9px; font-style: normal; }
.variant-form > i { height: 28px; background: #fff; border: 1px solid #e0e5ed; border-radius: 4px; }
.preview-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.preview-options span { padding: 7px 2px; color: #607089; background: #fff; border: 1px solid #e1e7ef; border-radius: 3px; font-size: 7px; text-align: center; }
.variant-form .jump-template-button { align-self: center; margin-top: 18px; }

.jump-template-preview.variant-dialog {
  align-items: stretch;
  padding: 0 16px 20px;
  background: #f5f7fa;
}

.dialog-preview-hero { min-height: 118px; margin: 0 -16px; background: #2b8171; }
.preview-chat { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 20px 12px 12px; background: #fff; }
.preview-chat span { align-self: flex-start; padding: 7px 9px; color: #4c596b; background: #eef2f5; border-radius: 3px; font-size: 8px; }
.preview-chat strong { color: #263750; font-size: 10px; line-height: 1.5; }
.preview-chat i { height: 24px; border: 1px solid #e0e6ee; border-radius: 3px; }
.preview-chat-cta,
.preview-popup-cta,
.preview-article-cta { display: grid; place-items: center; min-height: 28px; color: #fff; background: #08bd65; border-radius: 15px; font-size: 8px; }

.jump-template-preview.variant-direct {
  padding: 42px 22px 24px;
  color: #fff;
  background: var(--template-accent);
  text-align: center;
}

.direct-badge { align-self: center; padding: 5px 10px; color: var(--template-accent); background: #fff; border-radius: 3px; font-size: 8px; font-weight: 700; }
.variant-direct > strong { margin-top: 32px; font-size: 18px; line-height: 1.35; }
.variant-direct > p { margin-top: 10px; color: rgba(255,255,255,.78); font-size: 9px; }
.direct-visual { display: grid; place-items: center; width: 110px; height: 110px; margin-top: 34px; color: var(--template-accent); background: #fff; border-radius: 50%; }
.direct-visual .icon { width: 46px; height: 46px; }
.variant-direct .jump-template-button { margin-top: 42px; color: var(--template-accent); background: #fff; }
.variant-direct > small { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 7px; }

.jump-template-preview.variant-popup {
  justify-content: center;
  padding: 28px;
  background: linear-gradient(160deg, var(--template-soft), #fff 62%);
}

.popup-backdrop { display: flex; flex-direction: column; width: 100%; padding: 22px 16px 18px; background: #fff; border-radius: 6px; box-shadow: 0 18px 36px rgba(32,47,70,.16); text-align: center; }
.popup-backdrop strong { color: #27364d; font-size: 13px; }
.popup-backdrop p { margin-top: 8px; font-size: 8px; }
.popup-backdrop i { height: 28px; margin-top: 16px; background: #f4f6f9; border: 1px solid #e0e5eb; border-radius: 3px; }
.popup-backdrop b { margin-top: 16px; padding: 10px; color: var(--template-accent); background: var(--template-soft); font-size: 9px; }
.preview-popup-cta { margin-top: 16px; background: var(--template-accent); }

.jump-template-preview.variant-article {
  min-height: 132%;
  align-items: stretch;
  padding: 24px 20px;
  background: #fff;
  transition: transform .55s ease;
}

.page-template-card:hover .variant-article { transform: translateY(-24%); }
.variant-article > small { color: #7f8b9d; font-size: 8px; }
.variant-article > strong { margin-top: 12px; color: #202d40; font-size: 16px; line-height: 1.45; }
.variant-article > p { margin-top: 12px; color: #69778a; font-size: 8px; line-height: 1.7; }
.article-picture { display: grid; place-items: center; height: 100px; margin-top: 16px; color: #708095; background: #e9eef3; font-size: 9px; }
.variant-article > i { height: 7px; margin-top: 12px; background: #edf0f3; }
.variant-article > i:nth-of-type(2) { width: 88%; }
.variant-article > i:nth-of-type(3) { width: 62%; }
.preview-article-cta { margin-top: 24px; }

.jump-template-preview.variant-scrolling {
  min-height: 112%;
  align-items: stretch;
  padding: 40px 20px 16px;
  color: #fff;
  background: #246c9e;
}

.scrolling-live { align-self: flex-start; padding: 5px 8px; color: #246c9e; background: #fff; border-radius: 3px; font-size: 7px; }
.variant-scrolling > strong { margin-top: 24px; font-size: 17px; }
.variant-scrolling > p { margin-top: 7px; color: rgba(255,255,255,.74); font-size: 8px; }
.scrolling-list { display: grid; gap: 8px; margin-top: 28px; }
.scrolling-list i { padding: 10px; color: #43536a; background: rgba(255,255,255,.94); border-radius: 3px; font-size: 7px; font-style: normal; }
.variant-scrolling .jump-template-button { margin-top: 24px; background: #ff6d59; }

.qr-template-preview,
.blank-template-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 58px 34px 30px;
  color: #646f82;
  background: #fff;
}

.qr-template-preview .template-qr {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 128px;
  height: 128px;
  margin-top: 22px;
  padding: 8px;
  background: #fff;
  border: 1px solid #edf0f4;
}

.qr-template-preview .template-qr strong {
  color: #7b8493;
  font-size: 9px;
  font-weight: 500;
}

.qr-template-preview .template-qr small {
  color: #a2a9b5;
  font-size: 7px;
  line-height: 1.5;
  text-align: center;
}

.qr-brand,
.qr-heading {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
}

.qr-brand > img,
.qr-heading > img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.qr-brand > img[alt="微客外链"] {
  width: 76px;
  height: auto;
}

.qr-brand span,
.qr-heading {
  min-width: 0;
}

.qr-brand strong,
.qr-brand small,
.qr-heading strong,
.qr-heading small {
  display: block;
}

.qr-brand strong,
.qr-heading strong {
  font-size: 11px;
}

.qr-brand small,
.qr-heading small {
  color: #a1a8b4;
  font-size: 8px;
}

.qr-template-preview p {
  margin: 18px 0 0;
  color: #858f9f;
  font-size: 9px;
}

.qr-template-preview > small {
  margin-top: 8px;
  color: #9aa2af;
  font-size: 8px;
}

.qr-template-preview.inline {
  padding-top: 66px;
}

.qr-template-preview.inline .qr-heading {
  justify-content: center;
}

.qr-info {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-self: stretch;
  margin-top: 34px;
  padding-top: 16px;
  text-align: left;
  border-top: 1px solid #f0f2f5;
  font-size: 8px;
}

.qr-info strong,
.qr-info small {
  font-size: 8px;
  font-weight: 400;
  line-height: 1.45;
}

.qr-template-preview.fullscreen {
  justify-content: center;
  padding-top: 30px;
}

.qr-template-preview.fullscreen .template-qr {
  width: 168px;
  height: 168px;
  margin: 0 0 18px;
}

.qr-template-preview.fullscreen strong {
  font-size: 11px;
}

.qr-template-preview.assistant {
  justify-content: center;
  padding-top: 28px;
  text-align: center;
}

.qr-template-preview.assistant > .icon {
  width: 42px;
  height: 42px;
  color: #b6b6b6;
}

.qr-template-preview.assistant strong {
  margin-top: 12px;
  font-size: 10px;
}

.qr-template-preview.assistant .template-qr {
  width: 86px;
  height: 86px;
  margin-top: 56px;
}

.blank-template-preview {
  justify-content: center;
  color: #5c6576;
}

.blank-template-preview span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(145deg, #2682f3, #75b8ff);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(38, 130, 243, 0.2);
}

.blank-template-preview strong {
  margin-top: 42px;
  font-size: 17px;
  font-weight: 400;
}

.result-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
}

.feishu-card-publish-notice {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  color: #34415a;
  background: #f5f8ff;
  border: 1px solid #cfdcff;
  border-radius: 8px;
}

.feishu-card-publish-notice strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1d3d78;
}

.feishu-card-publish-notice p {
  margin: 0;
  color: #63708a;
  font-size: 12px;
  line-height: 1.65;
}

.feishu-card-publish-notice .primary-btn {
  width: fit-content;
}

.feishu-card-result-modal {
  width: min(920px, calc(100vw - 32px));
}

.card-artifact-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 190px;
  color: #667085;
  background: #f7f8fa;
  border: 1px dashed #c8d0dc;
  border-radius: 10px;
}

.card-artifact-placeholder svg {
  width: 38px;
  height: 38px;
  color: #3370ff;
}

.card-artifact-placeholder strong {
  color: #24324a;
}

.card-artifact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feishu-card-bind-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
}

.feishu-card-bind-panel > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #24324a;
}

.feishu-card-bind-panel > p,
.card-artifact-blocked {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
}

.feishu-card-bind-panel form {
  display: grid;
  gap: 10px;
}

.feishu-card-bind-panel input[type="url"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d9e0eb;
  border-radius: 7px;
}

.feishu-card-bind-panel .ownership-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6b7c;
  font-size: 12px;
}

.feishu-card-bind-panel .primary-btn {
  width: fit-content;
}

.card-artifact-blocked {
  padding: 10px 12px;
  color: #8a6116;
  background: #fff8e6;
  border-radius: 7px;
}

.copy-line {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.copy-line input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #dfe7f3;
  border-radius: 7px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  transform: translateY(20px);
  padding: 12px 16px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  background: #162b52;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.empty {
  padding: 40px;
  text-align: center;
  color: #7b879c;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .top-nav {
    padding: 0 22px;
  }

  .app-shell {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .user-shell {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .workspace {
    padding: 28px 24px 40px;
  }

  .user-shell .workspace {
    padding: 22px 22px 34px;
  }

  .user-shell .two-col,
  .user-shell .function-layout,
  .user-shell .form-layout {
    grid-template-columns: 1fr;
  }

  .user-shell .help-panel {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .admin-shell .workspace {
    padding: 22px 22px 34px;
  }

  .admin-shell .two-col {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .function-layout,
  .form-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .help-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .top-nav {
    height: auto;
    min-height: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-action {
    margin-left: auto;
  }

  .function-actions,
  .copy-line {
    flex-direction: column;
    display: flex;
  }

  .capability-grid,
  .dashboard-grid,
  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .user-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    padding: 12px 12px 10px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 28px rgba(32, 82, 154, 0.14);
  }

  .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-shell .sidebar {
    position: static;
    min-height: auto;
    padding: 12px 12px 10px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 24px rgba(32, 82, 154, 0.12);
  }

  .user-shell .sidebar {
    position: static;
    min-height: auto;
    padding: 12px 12px 10px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 24px rgba(32, 82, 154, 0.12);
  }

  .user-shell .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-shell .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .side-menu a {
    flex: 0 0 46px;
    justify-content: center;
    min-height: 42px;
    padding: 8px;
    font-size: 12px;
  }

  .admin-shell .side-menu a {
    flex: 0 0 42px;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
  }

  .user-shell .side-menu a {
    flex: 0 0 42px;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
  }

  .side-menu::-webkit-scrollbar {
    display: none;
  }

  .user-shell .side-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-shell .side-menu::-webkit-scrollbar {
    display: none;
  }

  .side-menu span,
  .side-back,
  .side-logo,
  .side-spacer {
    display: none;
  }

  .admin-shell .side-menu span,
  .admin-shell .side-back,
  .admin-shell .side-logo,
  .admin-shell .side-spacer {
    display: none;
  }

  .user-shell .side-menu span,
  .user-shell .side-back,
  .user-shell .side-logo,
  .user-shell .side-spacer {
    display: none;
  }

  .workspace {
    padding: 20px 14px 34px;
  }

  .user-shell .workspace {
    padding: 18px 12px 30px;
  }

  .admin-shell .workspace {
    padding: 18px 12px 30px;
  }

  .workspace-head {
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .panel,
  .metric-card {
    padding: 18px;
  }

  .admin-shell .panel,
  .admin-shell .metric-card {
    padding: 14px;
  }

  .user-shell .panel,
  .user-shell .metric-card {
    padding: 14px;
  }

  .user-shell .function-actions {
    grid-template-columns: 1fr;
  }

  .user-shell .cover-preview {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-template-pickers {
    gap: 14px;
  }

  .page-template-picker,
  .page-template-tile {
    width: min(138px, 42vw);
  }

  .template-drawer {
    grid-template-rows: 58px 46px minmax(0, 1fr);
    width: 100vw;
  }

  .template-drawer-header,
  .template-drawer-tabs {
    padding-right: 12px;
    padding-left: 12px;
  }

  .template-drawer-header h2 {
    font-size: 16px;
  }

  .template-drawer-tabs button {
    font-size: 14px;
  }

  .template-drawer-content {
    padding: 0 4px 24px 12px;
  }

  .page-template-grid {
    gap: 18px 10px;
  }

  .page-template-meta strong {
    font-size: 12px;
  }

  .page-template-meta small,
  .page-template-meta em {
    font-size: 10px;
  }

  .jump-template-preview {
    padding: 30px 12px 18px;
  }

  .template-security {
    transform: scale(0.76);
  }

  .jump-platform-row {
    margin-top: 42px;
  }

  .jump-template-button {
    width: 112px;
    margin-top: 36px;
  }

  .qr-template-preview,
  .blank-template-preview {
    padding: 28px 14px 18px;
  }

  .qr-template-preview.inline {
    padding-top: 32px;
  }

  .qr-template-preview .template-qr {
    width: 88px;
    height: 88px;
    margin-top: 12px;
  }

  .qr-info {
    margin-top: 14px;
  }
}

/* Standalone Aiduanlian card creator */
.aifabu-create-page {
  --aifabu-blue: #4b70f6;
  --aifabu-deep: #243452;
  --aifabu-text: #4f5a70;
  --aifabu-line: #e5e8f1;
  --aifabu-panel: #f8f9fd;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--aifabu-deep);
  background: #fff;
}

.aifabu-site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  width: 100%;
  height: 62px;
  padding: 0 max(30px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid #f0f1f5;
  box-shadow: 0 2px 10px rgba(36, 52, 82, 0.035);
}

.aifabu-brand {
  flex: 0 0 auto;
  width: 98px;
}

.aifabu-brand img {
  width: 98px;
  height: auto;
}

.aifabu-nav-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  margin-left: 38px;
}

.aifabu-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 62px;
  padding: 0 8px;
  color: #4d5360;
  font-size: 14px;
  white-space: nowrap;
}

.aifabu-nav-links a:hover,
.aifabu-nav-links a.active {
  color: var(--aifabu-blue);
}

.aifabu-nav-links a.active::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  content: "";
  background: var(--aifabu-blue);
}

.aifabu-nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
  margin-left: 22px;
}

.aifabu-login-btn,
.aifabu-trial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 5px;
}

.aifabu-login-btn {
  color: var(--aifabu-blue);
  background: #fff;
  border: 1px solid var(--aifabu-blue);
}

.aifabu-trial-btn {
  color: #fff;
  background: var(--aifabu-blue);
  border: 1px solid var(--aifabu-blue);
}

.aifabu-login-btn:hover,
.aifabu-trial-btn:hover,
.aifabu-primary-cta:hover,
.aifabu-create-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(75, 112, 246, 0.2);
}

.aifabu-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #1d2535;
  background: transparent;
}

.aifabu-menu-btn .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.3;
}

.aifabu-hero {
  position: relative;
  height: 495px;
  overflow: hidden;
  background: #e1edff url("./assets/images/aifabu-hero-bg.png") center / cover no-repeat;
}

.aifabu-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  padding-top: 121px;
  margin: 0 auto;
}

.aifabu-hero-copy h1 {
  max-width: 720px;
  margin: 0 0 28px;
  color: #263651;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1px;
}

.aifabu-hero-copy p {
  max-width: 760px;
  margin: 0 0 10px;
  color: #51617d;
  font-size: 16px;
  line-height: 1.65;
}

.aifabu-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 198px;
  height: 55px;
  margin-top: 41px;
  color: #fff;
  font-size: 16px;
  background: var(--aifabu-blue);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(75, 112, 246, 0.14);
}

.aifabu-hero-art {
  position: absolute;
  z-index: 1;
  top: 44px;
  right: max(-35px, calc((100vw - 1240px) / 2));
  width: 520px;
  height: auto;
  pointer-events: none;
  opacity: 0.075;
  filter: saturate(0.75) brightness(1.55);
  display: none;
}

.aifabu-product-tabs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1120px, calc(100% - 48px));
  margin: -21px auto 0;
}

.aifabu-mobile-benefits {
  display: none;
}

.aifabu-product-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 80px;
  padding: 0 24px;
  color: #2c354b;
  font-size: 16px;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(37, 55, 92, 0.1);
}

.aifabu-product-tabs button:hover,
.aifabu-product-tabs button.active {
  color: #27364f;
  border-color: #e3e6ef;
  box-shadow: 0 7px 18px rgba(37, 55, 92, 0.12);
}

.aifabu-product-tabs img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.aifabu-create-section {
  width: min(1120px, calc(100% - 48px));
  padding: 88px 0 220px;
  margin: 0 auto;
  scroll-margin-top: 32px;
}

.aifabu-create-title {
  text-align: center;
}

.aifabu-create-title h2 {
  margin: 0;
  color: #2a3956;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.35;
}

.aifabu-create-title p {
  margin: 14px 0 0;
  color: #696f7d;
  font-size: 16px;
  line-height: 1.7;
}

.aifabu-card-form {
  display: flex;
  flex-direction: column;
  margin-top: 39px;
}

.aifabu-public-config {
  order: 1;
  min-height: 438px;
  padding: 27px 58px 22px;
  background: var(--aifabu-panel);
  border-radius: 8px;
}

.aifabu-field-label {
  margin-bottom: 17px;
  color: #252e42;
  font-size: 14px;
  font-weight: 500;
}

.aifabu-link-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.aifabu-link-types button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  overflow: hidden;
  color: #30394e;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #e2e5ec;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(38, 51, 82, 0.035);
}

.aifabu-link-types button:hover {
  color: var(--aifabu-blue);
  border-color: #b8c6fb;
}

.aifabu-link-types button.active {
  color: #fff;
  background: var(--aifabu-blue);
  border-color: var(--aifabu-blue);
}

.aifabu-link-types img,
.aifabu-link-types .icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.aifabu-link-types button.active img {
  padding: 2px;
  background: #fff;
  border-radius: 4px;
}

.aifabu-qr-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  color: #252e42;
  font-size: 14px;
}

.aifabu-qr-heading > span:last-child {
  display: inline-flex;
  gap: 18px;
}

.aifabu-qr-heading button {
  padding: 0;
  color: var(--aifabu-blue);
  font-size: 13px;
  background: transparent;
}

.aifabu-qr-table {
  margin-top: 13px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f1f5;
  border-radius: 4px;
}

.aifabu-qr-table-head {
  display: grid;
  grid-template-columns: 40px 0.8fr 1.3fr 0.75fr 0.85fr 0.85fr 0.85fr 0.85fr 0.7fr;
  align-items: center;
  min-height: 43px;
  padding: 0 12px;
  color: #4c5871;
  font-size: 13px;
  background: #eef0ff;
}

.aifabu-qr-table-head span {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aifabu-qr-empty {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 137px;
  padding: 18px;
  color: #a5a8af;
  font-size: 14px;
  cursor: pointer;
}

.aifabu-qr-empty > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.aifabu-qr-empty:hover {
  color: var(--aifabu-blue);
  background: #fbfcff;
}

.aifabu-qr-empty.has-image {
  min-height: 137px;
}

.aifabu-qr-empty.has-image .aifabu-qr-upload-copy {
  display: none;
}

.aifabu-uploaded-qr {
  display: flex;
  align-items: center;
  gap: 18px;
}

.aifabu-uploaded-qr img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--aifabu-line);
  border-radius: 4px;
}

.aifabu-uploaded-qr button {
  padding: 7px 14px;
  color: #e25555;
  background: #fff;
  border: 1px solid #f0caca;
  border-radius: 4px;
}

.aifabu-switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 21px;
  margin-top: 20px;
  color: #4b5364;
  font-size: 13px;
}

.aifabu-switch-row strong {
  color: #293246;
  font-weight: 500;
}

.aifabu-switch-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aifabu-switch-row input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--aifabu-blue);
}

.aifabu-switch-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  color: #31bce8;
  font-size: 12px;
}

.aifabu-switch-tip .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke-width: 0;
}

.aifabu-submit-wrap {
  order: 2;
  margin-top: 49px;
  text-align: center;
}

.aifabu-create-button {
  width: 160px;
  height: 48px;
  color: #fff;
  font-size: 15px;
  background: var(--aifabu-blue);
  border-radius: 5px;
  box-shadow: 0 6px 12px rgba(75, 112, 246, 0.13);
}

.aifabu-submit-wrap p {
  display: none;
}

.aifabu-advanced {
  order: 3;
  margin-top: 8px;
}

.aifabu-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
  color: #697184;
  font-size: 13px;
  list-style: none;
  cursor: pointer;
}

.aifabu-advanced > summary::-webkit-details-marker {
  display: none;
}

.aifabu-advanced > summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--aifabu-blue);
}

.aifabu-advanced > summary .icon {
  width: 15px;
  height: 15px;
}

.aifabu-advanced[open] {
  order: 2;
  margin-top: 28px;
}

.aifabu-advanced[open] > summary {
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  margin: 0;
  color: #35415a;
  background: #f3f5fb;
  border: 1px solid var(--aifabu-line);
  border-radius: 5px 5px 0 0;
}

.aifabu-advanced[open] > summary .icon {
  transform: rotate(180deg);
}

.aifabu-advanced-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  padding: 28px;
  background: var(--aifabu-panel);
  border: 1px solid var(--aifabu-line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.aifabu-advanced-fields {
  min-width: 0;
}

.aifabu-advanced-fields h3 {
  margin: 0 0 18px;
  color: #26334c;
  font-size: 16px;
  font-weight: 600;
}

.aifabu-advanced-fields h3:not(:first-child) {
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid #e7e9ef;
}

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

.aifabu-form-grid > label,
.aifabu-form-grid > .field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: #3d485f;
  font-size: 13px;
  font-weight: 500;
}

.aifabu-form-grid > .wide {
  grid-column: 1 / -1;
}

.aifabu-form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.aifabu-form-grid select,
.aifabu-form-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #29344b;
  font-size: 14px;
  font-weight: 400;
  background: #fff;
  border: 1px solid #dfe3ec;
  border-radius: 5px;
  outline: none;
}

.aifabu-form-grid textarea {
  min-height: 82px;
  resize: vertical;
}

.aifabu-form-grid input:focus,
.aifabu-form-grid select:focus,
.aifabu-form-grid textarea:focus {
  border-color: #9eb0f8;
  box-shadow: 0 0 0 3px rgba(75, 112, 246, 0.1);
}

.aifabu-cover-field .image-upload {
  gap: 12px;
}

.aifabu-cover-field .upload-drop {
  min-height: 96px;
  padding: 16px;
  background: #fff;
  border-color: #cfd6e6;
  border-radius: 5px;
}

.aifabu-cover-field .cover-preview img {
  border-radius: 5px;
}

.aifabu-safe-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  color: #6a7488;
  font-size: 12px;
  line-height: 1.7;
  background: #eef2ff;
  border-radius: 4px;
}

.aifabu-card-preview {
  position: sticky;
  top: 86px;
  width: 280px;
  height: 540px;
  padding: 15px 11px 18px;
  overflow: hidden;
  background: #f0f3f8;
  border: 7px solid #263044;
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(31, 45, 74, 0.16);
}

.aifabu-phone-bar {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  min-height: 36px;
  color: #1f293b;
  font-size: 16px;
  text-align: center;
}

.aifabu-phone-bar strong {
  font-size: 15px;
  font-weight: 600;
}

.aifabu-landing-content {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  margin: 8px -3px 0;
  padding: 22px 14px;
  background: #fff;
  border-radius: 17px;
}

.aifabu-landing-content > em {
  color: #16765f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.aifabu-landing-content > img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 628;
  margin: 16px 0;
  object-fit: cover;
  border-radius: 5px;
}

.aifabu-landing-content > strong {
  color: #222c3f;
  font-size: 17px;
}

.aifabu-landing-content > p {
  margin: 7px 0 0;
  color: #70798b;
  font-size: 11px;
  line-height: 1.6;
}

.aifabu-landing-content > span {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 11px;
  background: #f6f9fb;
}

.aifabu-landing-content > span > b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: #fff;
  background: #16765f;
  border-radius: 50%;
}

.aifabu-landing-content > span > span {
  display: grid;
}

.aifabu-landing-content > span strong {
  color: #263247;
  font-size: 11px;
}

.aifabu-landing-content > span small {
  margin-top: 3px;
  color: #78869a;
  font-size: 9px;
}

.aifabu-chat-time {
  margin: 12px 0 17px;
  color: #9aa1af;
  font-size: 11px;
  text-align: center;
}

.aifabu-chat-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.aifabu-chat-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}

.aifabu-chat-card {
  width: 197px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(40, 50, 70, 0.05);
}

.aifabu-chat-card > img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #eef3ff;
}

.aifabu-chat-card strong,
.aifabu-chat-card p,
.aifabu-chat-card span {
  display: block;
  margin-right: 11px;
  margin-left: 11px;
}

.aifabu-chat-card strong {
  margin-top: 10px;
  overflow: hidden;
  color: #222c3f;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aifabu-chat-card p {
  display: -webkit-box;
  margin-top: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #70798b;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.aifabu-chat-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  margin: 0;
  padding: 0 11px;
  color: #5e687a;
  font-size: 11px;
  border-top: 1px solid #eef0f3;
}

.aifabu-chat-card span .icon {
  width: 13px;
  height: 13px;
}

@media (max-width: 1180px) {
  .aifabu-site-nav {
    padding-right: 24px;
    padding-left: 24px;
  }

  .aifabu-nav-links {
    margin-left: 20px;
  }

  .aifabu-nav-links a {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 13px;
  }

  .aifabu-nav-actions {
    gap: 8px;
    margin-left: 12px;
  }

  .aifabu-login-btn,
  .aifabu-trial-btn {
    padding: 0 12px;
  }
}

@media (max-width: 960px) {
  .aifabu-nav-links a:nth-child(7),
  .aifabu-nav-links a:nth-child(8),
  .aifabu-nav-links a:nth-child(9) {
    display: none;
  }

  .aifabu-advanced-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
    padding: 22px;
  }

  .aifabu-card-preview {
    width: 260px;
  }
}

@media (max-width: 760px) {
  .aifabu-site-nav {
    position: relative;
    justify-content: space-between;
    height: 62px;
    padding: 0 16px;
  }

  .aifabu-brand,
  .aifabu-brand img {
    width: 80px;
  }

  .aifabu-menu-btn {
    display: inline-flex;
  }

  .aifabu-nav-links,
  .aifabu-nav-actions {
    display: none;
  }

  .aifabu-site-nav.menu-open .aifabu-nav-links {
    position: absolute;
    z-index: 5;
    top: 62px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 16px 12px;
    background: #fff;
    border-top: 1px solid #eff1f5;
    border-bottom: 1px solid #e6e9f0;
    box-shadow: 0 10px 24px rgba(32, 47, 76, 0.1);
  }

  .aifabu-site-nav.menu-open .aifabu-nav-links a,
  .aifabu-site-nav.menu-open .aifabu-nav-links a:nth-child(n) {
    display: flex;
    justify-content: center;
    height: 42px;
    font-size: 14px;
  }

  .aifabu-site-nav.menu-open .aifabu-nav-links a.active::after {
    display: none;
  }

  .aifabu-hero {
    height: 437px;
  }

  .aifabu-hero-copy {
    width: 100%;
    padding: 37px 24px 0;
    text-align: center;
  }

  .aifabu-hero-copy h1 {
    max-width: none;
    margin-bottom: 24px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .aifabu-hero-copy p {
    max-width: 340px;
    margin: 0 auto 3px;
    color: #52607a;
    font-size: 13px;
    line-height: 1.55;
  }

  .aifabu-primary-cta {
    width: 119px;
    height: 44px;
    margin-top: 25px;
    font-size: 16px;
    border-radius: 7px;
  }

  .aifabu-hero-art {
    display: block;
    top: auto;
    right: 50%;
    bottom: 14px;
    width: 176px;
    opacity: 1;
    filter: none;
    transform: translateX(50%);
  }

  .aifabu-product-tabs {
    display: none;
  }

  .aifabu-mobile-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    width: 100%;
    min-height: 100px;
    padding: 14px 38px;
    color: #232b3e;
    font-size: 14px;
    background: #f2f7ff;
  }

  .aifabu-mobile-benefits > * {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    white-space: nowrap;
  }

  .aifabu-mobile-benefits .icon,
  .aifabu-mobile-benefits img {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--aifabu-blue);
    object-fit: contain;
    stroke-width: 2.4;
  }

  .aifabu-product-tabs button {
    flex-direction: column;
    gap: 5px;
    height: 74px;
    padding: 6px 2px;
    font-size: 13px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
  }

  .aifabu-product-tabs button:hover,
  .aifabu-product-tabs button.active {
    background: rgba(255, 255, 255, 0.72);
    border: 0;
    box-shadow: none;
  }

  .aifabu-product-tabs img {
    width: 27px;
    height: 27px;
  }

  .aifabu-create-section {
    width: 100%;
    padding: 40px 12px 72px;
  }

  .aifabu-create-title h2 {
    font-size: 22px;
    font-weight: 600;
  }

  .aifabu-create-title p {
    padding: 0 12px;
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.6;
  }

  .aifabu-card-form {
    margin-top: 25px;
  }

  .aifabu-public-config {
    min-height: 0;
    padding: 20px 12px 18px;
    border-radius: 6px;
  }

  .aifabu-link-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .aifabu-link-types button {
    height: 44px;
    padding: 0 7px;
    font-size: 12px;
  }

  .aifabu-link-types button:last-child {
    grid-column: 1 / -1;
  }

  .aifabu-qr-heading {
    align-items: flex-start;
    margin-top: 22px;
  }

  .aifabu-qr-heading > span:last-child {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .aifabu-qr-table-head {
    grid-template-columns: 28px 0.8fr 1.4fr;
    padding: 0 7px;
    font-size: 11px;
  }

  .aifabu-qr-table-head span:nth-child(n + 4) {
    display: none;
  }

  .aifabu-qr-empty,
  .aifabu-qr-empty.has-image {
    min-height: 112px;
    padding: 16px 10px;
    font-size: 12px;
    text-align: center;
  }

  .aifabu-switch-row {
    gap: 12px 16px;
  }

  .aifabu-switch-row strong {
    flex: 0 0 100%;
  }

  .aifabu-switch-tip {
    align-items: flex-start;
    line-height: 1.5;
  }

  .aifabu-submit-wrap {
    margin-top: 30px;
  }

  .aifabu-create-button {
    width: 150px;
    height: 46px;
  }

  .aifabu-advanced > summary {
    flex-wrap: wrap;
    gap: 5px 14px;
    padding: 0 8px;
    text-align: center;
  }

  .aifabu-advanced[open] {
    margin-top: 24px;
  }

  .aifabu-advanced[open] > summary {
    align-items: flex-start;
    padding: 12px;
    text-align: left;
  }

  .aifabu-advanced-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 12px 22px;
  }

  .aifabu-form-grid {
    grid-template-columns: 1fr;
  }

  .aifabu-form-grid > .wide {
    grid-column: auto;
  }

  .aifabu-cover-field .cover-preview {
    grid-template-columns: 1fr;
  }

  .aifabu-card-preview {
    position: relative;
    top: auto;
    width: min(280px, 100%);
    margin: 0 auto;
  }
}

/* Dedicated WeChat creation workbench */
.app-shell.user-shell.create-shell {
  display: block;
  min-height: 100vh;
  background: #fff;
}

.create-shell > .sidebar {
  display: none;
}

.create-shell > .workspace {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: #fff;
}

.wechat-create-form {
  min-width: 0;
  color: #17233d;
  background: #fff;
}

.create-flow-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 70px;
  padding: 10px 22px;
  border-bottom: 1px solid #e7eaf0;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 1px 5px rgb(26 43 73 / 4%);
}

.create-back {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #253551;
}

.create-back svg {
  width: 18px;
  height: 18px;
}

.create-flow-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 26px;
}

.create-flow-header p {
  margin: 1px 0 0;
  color: #8a94a7;
  font-size: 12px;
}

.create-flow-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.create-flow-actions button {
  min-height: 36px;
}

.wechat-create-layout {
  display: grid;
  grid-template-columns: 360px minmax(600px, 1fr);
  align-items: start;
  min-height: calc(100vh - 70px);
}

.create-preview-column {
  position: sticky;
  top: 70px;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  border-right: 1px solid #e4e8ef;
  background: #fbfcfe;
}

.mode-guide {
  min-height: 222px;
  padding: 18px 30px 16px;
  border-bottom: 1px solid #e4e8ef;
  background: #f4f7fb;
  color: #46536b;
  font-size: 13px;
  line-height: 1.65;
}

.mode-guide-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mode-guide-head strong {
  color: #1e2d49;
  font-size: 14px;
}

.mode-guide-head span {
  max-width: 150px;
  overflow: hidden;
  color: #53617a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-guide p {
  margin: 4px 0;
}

.mode-guide b {
  color: #263751;
}

.effect-preview-head {
  display: block;
  height: 98px;
  padding: 20px 30px 14px;
}

.effect-preview-head h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 17px;
}

.effect-preview-head h2::before {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: #2d78ee;
  content: "";
}

.effect-preview-head span {
  display: block;
  width: 70px;
  min-width: 70px;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 3px;
  background: #2d78ee;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.create-device-preview {
  position: relative;
  width: 292px;
  height: 602px;
  margin: 34px auto 0;
  padding: 12px;
  overflow: hidden;
  border: 2px solid #20242b;
  border-radius: 50px;
  background: #0e1116;
  box-shadow: 0 12px 32px rgb(37 51 77 / 14%);
}

.create-device-speaker {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  width: 76px;
  height: 22px;
  border-radius: 20px;
  background: #090a0d;
  transform: translateX(-50%);
}

.create-device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: #fff;
}

.create-device-screen .jump-template-preview {
  min-height: 100%;
  border: 0;
  border-radius: 0;
}

.create-preview-name {
  margin: 12px 20px 26px;
  overflow: hidden;
  color: #6c7890;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-config-column {
  min-width: 0;
  padding: 18px 30px 34px;
  background: #fff;
}

.create-config-section {
  padding: 0 0 22px;
  border-bottom: 1px solid #edf0f4;
}

.create-config-section + .create-config-section {
  padding-top: 22px;
}

.create-section-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
}

.create-section-title h2 {
  margin: 0;
  color: #1d2b45;
  font-size: 16px;
  font-weight: 650;
}

.create-section-title small {
  color: #9aa3b3;
  font-size: 12px;
}

.strategy-choice {
  position: relative;
  display: block;
  width: min(520px, 100%);
  cursor: default;
}

.strategy-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.strategy-choice-body {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 238px;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #2f75e8;
}

.strategy-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #edf0f4;
}

.strategy-copy strong {
  overflow: hidden;
  color: #263652;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-copy small {
  margin-top: 8px;
  overflow: hidden;
  color: #8d97a8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-flow {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  grid-template-rows: 52px 18px;
  gap: 3px 6px;
  align-content: center;
  align-items: center;
  justify-items: center;
  padding: 12px 16px;
}

.strategy-flow i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dce3ec;
  border-radius: 5px;
  color: #31415c;
  background: #f7f9fc;
}

.strategy-flow i svg {
  width: 22px;
  height: 22px;
}

.strategy-flow b {
  grid-column: 2;
  grid-row: 1;
  color: #2f75e8;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.strategy-flow em {
  color: #68758c;
  font-size: 11px;
  font-style: normal;
}

.strategy-flow em:first-of-type {
  grid-column: 1;
  grid-row: 2;
}

.strategy-flow em:last-of-type {
  grid-column: 3;
  grid-row: 2;
}

.strategy-select-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(520px, 100%);
  margin-top: 12px;
}

.strategy-select-row label {
  flex: 0 0 auto;
  color: #53617a;
  font-size: 13px;
}

.strategy-select-row select {
  min-width: 0;
  flex: 1;
}

.create-template-pickers {
  gap: 28px;
}

.create-template-pickers .page-template-picker,
.create-template-pickers .page-template-tile {
  width: 140px;
}

.create-template-pickers .page-template-tile {
  height: 126px;
  background: #fafbfe;
}

.create-template-pickers .page-template-thumb {
  height: 78px;
}

.create-template-pickers .page-template-picker > strong {
  margin-top: 8px;
  font-size: 13px;
}

.create-qr-upload {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.create-upload-tile {
  display: flex;
  width: 140px;
  height: 104px;
  cursor: pointer;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed #adc4e8;
  border-radius: 5px;
  color: #3373cf;
  background: #f9fbff;
}

.create-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.create-upload-tile svg {
  width: 28px;
  height: 28px;
}

.create-upload-tile strong {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}

.create-qr-preview {
  position: relative;
  width: 104px;
  height: 104px;
  padding: 5px;
  border: 1px solid #dfe4ec;
  border-radius: 5px;
  background: #fff;
}

.create-qr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.create-qr-preview .icon-btn {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 26px;
  height: 26px;
  border: 1px solid #e0e5ec;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgb(31 49 79 / 14%);
}

.display-mode-grid {
  display: flex;
  gap: 14px;
}

.display-mode-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.display-mode-choice > input {
  position: absolute;
  opacity: 0;
}

.display-mode-choice > span {
  display: grid;
  width: 132px;
  height: 90px;
  grid-template-columns: 28px 1fr;
  grid-template-rows: 28px 22px;
  align-content: center;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  background: #fff;
}

.display-mode-choice svg {
  width: 23px;
  height: 23px;
  color: #4773b9;
}

.display-mode-choice strong {
  color: #263651;
  font-size: 13px;
}

.display-mode-choice small {
  grid-column: 1 / -1;
  color: #929bad;
  font-size: 10px;
}

.display-mode-choice > input:checked + span {
  border-color: #2f75e8;
  background: #f3f7ff;
  box-shadow: inset 0 0 0 1px #2f75e8;
}

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

.delivery-mode-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.delivery-mode-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-mode-choice > span {
  display: grid;
  min-height: 108px;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 28px auto;
  gap: 5px 8px;
  align-content: center;
  padding: 15px;
  border: 1px solid #dde4ed;
  border-radius: 6px;
  background: #fff;
}

.delivery-mode-choice svg {
  width: 23px;
  height: 23px;
  color: #4773b9;
}

.delivery-mode-choice strong {
  align-self: center;
  color: #263651;
  font-size: 14px;
}

.delivery-mode-choice small {
  grid-column: 1 / -1;
  color: #8994a7;
  font-size: 11px;
  line-height: 1.55;
}

.delivery-mode-choice > input:checked + span {
  border-color: #2f75e8;
  background: #f3f7ff;
  box-shadow: inset 0 0 0 1px #2f75e8;
}

.delivery-mode-choice.disabled {
  cursor: not-allowed;
  opacity: .55;
}

.delivery-resource-field {
  margin-top: 14px;
}

.delivery-mode-hint {
  margin: 10px 0 0;
  color: #7f8b9e;
  font-size: 12px;
  line-height: 1.55;
}

.delivery-tag {
  margin-left: 6px;
  font-size: 10px;
  vertical-align: 1px;
}

.managed-link-url,
.managed-link-origin {
  display: inline-block;
  max-width: min(42vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.managed-link-origin {
  max-width: min(38vw, 460px);
  color: #8a96a8;
  font-size: 11px;
}

.feishu-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.feishu-admin-summary > div {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.feishu-admin-summary span {
  color: #637087;
  font-size: 13px;
}

.feishu-settings-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
}

.feishu-settings-action {
  align-self: end;
}

.feishu-settings-action button {
  min-height: 42px;
}

@media (max-width: 760px) {
  .delivery-mode-grid,
  .feishu-admin-summary,
  .feishu-settings-form {
    grid-template-columns: 1fr;
  }
}

.create-advanced {
  border-bottom: 1px solid #edf0f4;
}

.create-advanced > summary {
  display: flex;
  height: 56px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  color: #243550;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}

.create-advanced > summary::-webkit-details-marker {
  display: none;
}

.create-advanced > summary svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.create-advanced[open] > summary svg {
  transform: rotate(180deg);
}

.create-advanced-body {
  padding: 0 0 8px;
}

.create-advanced-body > section {
  padding: 18px 0;
  border-top: 1px solid #edf0f4;
}

.create-advanced-body h3 {
  margin: 0 0 14px;
  color: #35445d;
  font-size: 14px;
}

.create-submit-bar {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 0 0;
  background: rgb(255 255 255 / 96%);
}

@media (max-width: 980px) {
  .wechat-create-layout {
    grid-template-columns: 320px minmax(470px, 1fr);
  }

  .mode-guide,
  .effect-preview-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .create-device-preview {
    width: 272px;
    height: 560px;
  }

  .create-config-column {
    padding-right: 22px;
    padding-left: 22px;
  }

  .strategy-choice-body {
    grid-template-columns: minmax(160px, 1fr) 220px;
  }
}

@media (max-width: 760px) {
  .compact-support-card {
    grid-template-columns: 1fr;
  }

  .compact-support-card .actions {
    justify-content: flex-start;
  }

  .create-flow-header {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px 14px;
  }

  .create-flow-header p {
    display: none;
  }

  .create-flow-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 8px;
  }

  .wechat-create-layout {
    display: flex;
    flex-direction: column;
  }

  .create-config-column {
    order: 1;
    width: 100%;
    padding: 18px 14px 28px;
  }

  .create-preview-column {
    position: static;
    order: 2;
    width: 100%;
    min-height: 0;
    border-top: 1px solid #e4e8ef;
    border-right: 0;
  }

  .create-submit-bar {
    position: static;
  }

  .strategy-choice-body {
    grid-template-columns: 1fr;
  }

  .strategy-copy {
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }

  .create-template-pickers {
    gap: 16px;
  }

  .create-template-pickers .page-template-picker,
  .create-template-pickers .page-template-tile {
    width: min(140px, 42vw);
  }
}

/* Douyin card creation flow */
.douyin-card-create-form {
  min-width: 0;
  min-height: 100vh;
  color: #1b2537;
  background: #f5f7fa;
}

.douyin-create-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 24px;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid #e7ebf1;
  box-shadow: 0 2px 10px rgb(30 55 90 / 4%);
  backdrop-filter: blur(12px);
}

.douyin-create-back {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #253650;
  border-radius: 6px;
}

.douyin-create-back:hover {
  color: #1677ff;
  background: #f0f6ff;
}

.douyin-create-header h1,
.douyin-create-header p,
.douyin-create-header span,
.douyin-create-canvas h2,
.douyin-create-canvas h3,
.douyin-create-canvas h4,
.douyin-create-canvas p {
  margin: 0;
}

.douyin-create-header h1 {
  color: #18243a;
  font-size: 18px;
  line-height: 1.35;
}

.douyin-create-header p {
  margin-top: 2px;
  color: #8a96a8;
  font-size: 12px;
}

.douyin-create-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  color: #2f6fd5;
  font-size: 12px;
  font-weight: 700;
  background: #eff6ff;
  border-radius: 999px;
}

.douyin-create-badge .icon {
  width: 15px;
  height: 15px;
}

.douyin-create-canvas {
  padding: 16px 22px 30px;
}

.douyin-risk-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 14px;
  color: #ff5a65;
  font-size: 12px;
  line-height: 1.55;
  background: #fff0f1;
  border-radius: 7px;
}

.douyin-risk-banner .icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.douyin-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  margin-top: 12px;
  padding: 12px 24px;
  background: #fff;
  border-radius: 8px;
}

.douyin-stepper button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #9ba5b3;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  cursor: default;
}

.douyin-stepper button b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #8d98a8;
  background: #f1f3f6;
  border-radius: 50%;
}

.douyin-stepper button.active {
  color: #1677ff;
}

.douyin-stepper button.active b {
  color: #fff;
  background: #1677ff;
}

.douyin-stepper > i {
  width: 88px;
  margin: 0 32px;
  border-top: 1px dashed #838b96;
}

.douyin-step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  margin-top: 12px;
}

.douyin-config-card,
.douyin-style-card,
.douyin-page-preview {
  background: #fff;
  border-radius: 8px;
}

.douyin-config-card {
  min-width: 0;
  padding: 18px 22px 24px;
}

.douyin-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.douyin-section-heading img {
  width: 22px;
  height: 22px;
  padding: 2px;
  object-fit: contain;
}

.douyin-section-heading h2 {
  color: #1d2738;
  font-size: 16px;
  line-height: 1.4;
}

.douyin-title-field,
.douyin-style-input {
  display: grid;
  gap: 9px;
  color: #2c3749;
  font-size: 13px;
  font-weight: 650;
}

.douyin-input-wrap {
  position: relative;
  display: block;
}

.douyin-input-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 58px 0 13px;
  color: #243048;
  background: #f3f5f8;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: 0;
}

.douyin-input-wrap input:focus {
  background: #fff;
  border-color: #75aaff;
  box-shadow: 0 0 0 3px rgb(22 119 255 / 9%);
}

.douyin-input-wrap small {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #8c98a9;
  font-size: 11px;
  font-weight: 400;
  transform: translateY(-50%);
}

.douyin-qr-section {
  margin-top: 18px;
}

.douyin-subheading {
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f4;
}

.douyin-subheading h3,
.douyin-template-section > h3,
.douyin-cover-section h3,
.douyin-delivery-section > h3 {
  color: #1f2b3d;
  font-size: 14px;
}

.douyin-qr-section em {
  margin-right: 3px;
  color: #ff4d4f;
  font-style: normal;
}

.douyin-qr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 7px 0;
  color: #3e4a5d;
  font-size: 12px;
}

.douyin-qr-toolbar > div,
.douyin-qr-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.douyin-qr-toolbar span {
  padding: 5px 9px;
  color: #7b8aa0;
  background: #eef5ff;
  border-radius: 3px;
}

.douyin-qr-toolbar a,
.douyin-qr-toolbar button {
  color: #1677ff;
  background: transparent;
}

.douyin-qr-toolbar button {
  padding: 5px 3px;
  font-size: 12px;
}

.douyin-qr-table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #edf0f4;
  border-radius: 4px;
}

.douyin-qr-head,
.douyin-qr-upload-row {
  display: grid;
  grid-template-columns: 36px 52px 62px 118px 64px 94px 82px 100px 110px 78px 54px;
  align-items: center;
  min-width: 850px;
  min-height: 40px;
  padding: 0 8px;
  color: #4c586b;
  font-size: 11px;
}

.douyin-qr-head {
  color: #283448;
  font-weight: 700;
  background: #f5f7fa;
}

.douyin-qr-upload-row {
  min-height: 54px;
  color: #6e7d91;
  border-top: 1px solid #edf0f4;
}

.douyin-qr-upload-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.douyin-qr-upload-row button {
  color: #8793a5;
  font-size: 11px;
  background: transparent;
}

.douyin-qr-thumb {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 2px;
  background: #fff;
  border: 1px solid #e4e8ee;
}

.douyin-qr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.douyin-row-switch {
  color: #1677ff;
  font-size: 19px;
}

.douyin-qr-empty {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 850px;
  min-height: 48px;
  color: #7591b8;
  font-size: 12px;
  border-top: 1px dashed #b5d1fb;
  background: #fbfdff;
  cursor: pointer;
}

.douyin-qr-empty input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.douyin-qr-empty .icon {
  width: 14px;
  height: 14px;
  color: #1677ff;
}

.douyin-qr-empty small {
  color: #b1b8c3;
}

.douyin-validation {
  margin-top: 8px !important;
  color: #ff4d4f;
  font-size: 12px;
}

.douyin-option-section {
  padding: 0;
  margin: 20px 0 0;
  border: 0;
}

.douyin-option-section legend {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  color: #263247;
  font-size: 13px;
  font-weight: 700;
}

.douyin-option-section legend .icon {
  width: 13px;
  height: 13px;
  color: #9ca7b5;
}

.douyin-option-grid {
  display: grid;
  gap: 12px;
}

.douyin-option-grid.four {
  grid-template-columns: repeat(4, 88px);
}

.douyin-option-grid.two {
  grid-template-columns: repeat(2, 120px);
}

.douyin-option-grid label {
  position: relative;
}

.douyin-option-grid input {
  position: absolute;
  opacity: 0;
}

.douyin-option-grid label > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 74px;
  color: #8a96a8;
  background: #f6f7f9;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.douyin-option-grid label > span .icon {
  width: 19px;
  height: 19px;
}

.douyin-option-grid label > span strong {
  font-size: 12px;
}

.douyin-option-grid input:checked + span {
  color: #1677ff;
  background: #f7fbff;
  border-color: #1677ff;
  box-shadow: 0 0 0 1px rgb(22 119 255 / 5%);
}

.douyin-template-section {
  margin-top: 22px;
}

.douyin-template-grid {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.douyin-template-grid .page-template-tile {
  display: grid;
  grid-template-rows: auto auto 132px 32px;
  align-items: center;
  justify-content: stretch;
  gap: 5px;
  width: 102px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: #59677c;
  background: #f7f9fc;
  border: 1px solid #edf1f6;
  border-radius: 4px;
  box-shadow: none;
}

.douyin-template-grid .page-template-tile > span,
.douyin-template-grid .page-template-tile > strong {
  padding-top: 5px;
  color: #6e7a8e;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.douyin-template-grid .page-template-tile > strong {
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.douyin-template-thumb {
  position: relative;
  width: 90px;
  height: 132px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.douyin-template-thumb > * {
  width: 270px;
  height: 396px;
  transform: scale(.3334);
  transform-origin: left top;
}

.douyin-template-grid .page-template-tile > button {
  width: 100%;
  height: 32px;
  color: #1677ff;
  font-size: 11px;
  background: #dce9ff;
}

.douyin-direct-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: #647287;
  font-size: 12px;
}

.douyin-direct-switch > span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.douyin-direct-switch small {
  color: #96a1b0;
  font-size: 11px;
}

.douyin-direct-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.douyin-direct-switch i {
  position: relative;
  width: 34px;
  height: 18px;
  background: #d5dae1;
  border-radius: 999px;
}

.douyin-direct-switch i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgb(35 50 75 / 24%);
  transition: transform .18s ease;
}

.douyin-direct-switch input[type="checkbox"]:checked + i {
  background: #1677ff;
}

.douyin-direct-switch input[type="checkbox"]:checked + i::after {
  transform: translateX(16px);
}

.douyin-page-preview {
  position: sticky;
  top: 82px;
  align-self: start;
  min-height: 604px;
  padding: 20px 18px;
  border: 1px solid #e9eef5;
}

.douyin-page-preview h3 {
  margin-bottom: 12px;
  font-size: 13px;
}

.douyin-page-preview > p {
  margin: 10px 0 5px;
  color: #7f8a9b;
  font-size: 10px;
  text-align: center;
}

.douyin-preview-phone {
  position: relative;
  width: 114px;
  height: 234px;
  margin: 0 auto;
  padding: 6px;
  overflow: hidden;
  background: #080a0d;
  border-radius: 20px;
  box-shadow: 0 5px 14px rgb(19 32 50 / 12%);
}

.douyin-preview-phone > div {
  width: 102px;
  height: 222px;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
}

.douyin-preview-phone .jump-template-preview,
.douyin-preview-phone .qr-template-preview {
  width: 270px;
  height: 588px;
  transform: scale(.378);
  transform-origin: left top;
}

.douyin-live-qr {
  position: absolute;
  z-index: 3;
  top: 84px;
  left: 33px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #fff;
  border: 2px solid #fff;
}

.douyin-step-actions {
  position: sticky;
  z-index: 20;
  bottom: 0;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-height: 54px;
  padding: 7px 20px;
  background: rgb(255 255 255 / 96%);
  border-top: 1px solid #e8ecf2;
  border-radius: 7px;
  box-shadow: 0 -8px 18px rgb(33 55 88 / 4%);
  backdrop-filter: blur(10px);
}

.douyin-step-actions .primary-btn,
.douyin-step-actions .ghost-btn {
  min-height: 38px;
}

.douyin-style-card {
  grid-column: 1 / -1;
  padding: 18px 22px 28px;
}

.douyin-style-note {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(640px, 100%);
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #4e5969;
  font-size: 12px;
  line-height: 1.6;
}

.douyin-style-note .icon {
  width: 12px;
  height: 12px;
  color: #1d2129;
}

.douyin-style-layout {
  display: block;
  margin-top: 24px;
}

.douyin-style-fields {
  width: min(640px, 100%);
  min-width: 0;
}

.douyin-cover-section {
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f4;
}

.douyin-cover-section > p {
  margin-top: 6px;
  color: #8b96a7;
  font-size: 12px;
}

.douyin-current-cover {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  margin-top: 14px;
}

.douyin-current-cover > img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid #e2e7ef;
  border-radius: 6px;
}

.douyin-current-cover > span {
  display: flex;
  gap: 8px;
}

.douyin-current-cover label {
  position: relative;
  cursor: pointer;
}

.douyin-current-cover input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.douyin-current-cover .outline-btn,
.douyin-current-cover .ghost-btn {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.douyin-cover-section h4 {
  margin-top: 18px;
  color: #69768a;
  font-size: 12px;
}

.douyin-preset-covers {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 8px;
  margin-top: 10px;
}

.douyin-preset-covers button {
  width: 84px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-radius: 6px;
}

.douyin-preset-covers button.selected {
  border: 2px solid #1459fa;
  box-shadow: 0 0 0 2px rgb(20 89 250 / 12%);
}

.douyin-preset-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.douyin-style-input {
  width: min(540px, 100%);
  margin-top: 18px;
}

.douyin-style-fields .douyin-input-wrap input {
  height: 34px;
  background: #f0f2f5;
}

.douyin-delivery-section {
  width: min(640px, 100%);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf0f4;
}

.douyin-delivery-section .field {
  margin-top: 10px;
}

.douyin-delivery-section select {
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  color: #334158;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 5px;
}

.card-publication-state {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 11px;
  padding: 14px;
  background: #f7f9fc;
  border: 1px solid #dce3ed;
  border-radius: 7px;
}

.card-publication-state > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #3370ff;
  background: #eaf1ff;
  border-radius: 8px;
}

.card-publication-state div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.card-publication-state strong {
  color: #26344c;
  font-size: 13px;
}

.card-publication-state small {
  overflow-wrap: anywhere;
  color: #768197;
  font-size: 11px;
  line-height: 1.55;
}

.card-publication-state.published {
  background: #f1fbf5;
  border-color: #bfe8ce;
}

.card-publication-state.published > span {
  color: #15803d;
  background: #dcf7e7;
}

.card-publication-state.publishing {
  background: #f3f7ff;
  border-color: #bfd2ff;
}

.card-publication-state.publishing [data-lucide="loader-circle"],
.card-artifact-placeholder [data-lucide="loader-circle"] {
  animation: card-publish-spin 1s linear infinite;
}

.card-publication-state.failed {
  background: #fff6f5;
  border-color: #f3c4be;
}

.card-publication-state.failed > span {
  color: #c24135;
  background: #ffe3df;
}

@keyframes card-publish-spin {
  to { transform: rotate(360deg); }
}

.douyin-card-style-preview {
  width: min(460px, 100%);
  height: 240px;
  margin-top: 28px;
  padding: 18px;
  overflow: hidden;
  background: #fafbfc;
  border: 1px solid #edf0f4;
  border-radius: 7px;
}

.douyin-card-style-preview > h3 {
  margin: 0;
  color: #182236;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.douyin-chat-phone {
  position: relative;
  width: 220px;
  min-height: 426px;
  margin: 18px auto 0;
  padding: 31px 14px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f8fa, #eef0f3);
  border: 8px solid #111317;
  border-radius: 30px 30px 18px 18px;
  box-shadow: 0 12px 28px rgb(22 34 52 / 12%);
}

.douyin-chat-phone-notch {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 84px;
  height: 24px;
  background: #111317;
  border-radius: 0 0 15px 15px;
  transform: translateX(-50%);
}

.douyin-chat-header {
  display: grid;
  grid-template-columns: 16px 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe3e8;
}

.douyin-chat-back,
.douyin-chat-more {
  display: grid;
  place-items: center;
  color: #202938;
}

.douyin-chat-back .icon,
.douyin-chat-more .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.douyin-chat-avatar,
.douyin-chat-message-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #f28dbb, #716cf2);
  border-radius: 50%;
}

.douyin-chat-avatar {
  width: 24px;
  height: 24px;
}

.douyin-chat-avatar .icon {
  width: 14px;
  height: 14px;
}

.douyin-chat-contact {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.douyin-chat-contact strong {
  overflow: hidden;
  color: #111827;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.douyin-chat-contact small {
  color: #20b96f;
  font-size: 8px;
}

.douyin-chat-message-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: flex-start;
  gap: 7px;
  margin-top: 42px;
}

.douyin-chat-message-avatar {
  width: 22px;
  height: 22px;
}

.douyin-chat-message-avatar .icon {
  width: 12px;
  height: 12px;
}

.douyin-chat-message-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 60px;
  padding: 7px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgb(33 48 73 / 7%);
}

.douyin-chat-message-card img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
}

.douyin-chat-message-card > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.douyin-chat-message-card strong,
.douyin-chat-message-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.douyin-chat-message-card strong {
  color: #182236;
  font-size: 10px;
}

.douyin-chat-message-card small {
  color: #99a1af;
  font-size: 8px;
}

@media (max-width: 980px) {
  .douyin-step-panel {
    grid-template-columns: minmax(0, 1fr) 246px;
  }

  .douyin-qr-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .douyin-page-preview {
    padding-right: 10px;
    padding-left: 10px;
  }

  .douyin-style-layout {
    display: block;
  }

  .douyin-chat-phone {
    width: 220px;
  }
}

@media (max-width: 760px) {
  .douyin-create-header {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 60px;
    padding: 8px 12px;
  }

  .douyin-create-header h1 {
    font-size: 15px;
  }

  .douyin-create-header p,
  .douyin-create-badge {
    display: none;
  }

  .douyin-create-canvas {
    padding: 10px 10px 22px;
  }

  .douyin-risk-banner {
    align-items: flex-start;
    padding: 8px 10px;
    font-size: 10px;
  }

  .douyin-stepper {
    min-height: 66px;
    margin-top: 8px;
    padding: 10px;
  }

  .douyin-stepper button {
    gap: 6px;
    font-size: 11px;
    text-align: left;
  }

  .douyin-stepper button b {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
  }

  .douyin-stepper > i {
    width: 24px;
    margin: 0 10px;
  }

  .douyin-step-panel {
    display: block;
    margin-top: 8px;
  }

  .douyin-config-card,
  .douyin-style-card {
    padding: 16px 12px 24px;
  }

  .douyin-section-heading {
    margin-bottom: 18px;
  }

  .douyin-section-heading h2 {
    font-size: 14px;
  }

  .douyin-qr-toolbar > div:first-child,
  .douyin-qr-toolbar > div:last-child {
    flex-wrap: wrap;
  }

  .douyin-qr-toolbar span {
    width: 100%;
  }

  .douyin-qr-table {
    overflow-x: hidden;
  }

  .douyin-qr-head,
  .douyin-qr-upload-row {
    grid-template-columns: 36px 52px 62px minmax(112px, 1fr) 54px;
    width: 100%;
    min-width: 0;
  }

  .douyin-qr-head > :nth-child(n + 5):nth-child(-n + 10),
  .douyin-qr-upload-row > :nth-child(n + 5):nth-child(-n + 10) {
    display: none;
  }

  .douyin-qr-empty {
    width: 100%;
    min-width: 0;
  }

  .douyin-option-grid {
    gap: 7px;
  }

  .douyin-option-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .douyin-option-grid label > span {
    min-height: 68px;
    padding: 5px;
  }

  .douyin-option-grid label > span strong {
    font-size: 10px;
  }

  .douyin-template-grid {
    justify-content: flex-start;
  }

  .douyin-direct-switch {
    align-items: flex-start;
    justify-content: space-between;
  }

  .douyin-direct-switch > span {
    align-items: flex-start;
    flex: 1;
    flex-direction: column;
    gap: 3px;
  }

  .douyin-direct-switch i {
    flex: 0 0 auto;
  }

  .douyin-page-preview {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    margin-top: 8px;
    padding: 16px 10px;
  }

  .douyin-page-preview h3 {
    grid-column: 1 / -1;
  }

  .douyin-page-preview > p {
    grid-row: 2;
  }

  .douyin-page-preview .douyin-preview-phone {
    grid-row: 3;
  }

  .douyin-step-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    margin-top: 8px;
    padding: 8px 10px;
  }

  .douyin-style-layout {
    display: flex;
    flex-direction: column;
  }

  .douyin-current-cover {
    align-items: flex-start;
  }

  .douyin-current-cover > span {
    flex-wrap: wrap;
  }

  .douyin-chat-phone {
    width: min(220px, 100%);
  }
}
