:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fc;
  --sidebar-bg: rgba(255, 255, 255, 0.86);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: #f8fbff;
  --surface-tint: #eef4ff;
  --surface-raised: #ffffff;
  --text: #19263f;
  --muted: #75839f;
  --line: rgba(182, 199, 232, 0.34);
  --line-strong: rgba(170, 191, 227, 0.56);
  --accent: #4f6fff;
  --accent-strong: #3858ec;
  --accent-soft: rgba(79, 111, 255, 0.11);
  --accent-soft-strong: rgba(79, 111, 255, 0.18);
  --success: #2aa56a;
  --success-soft: rgba(42, 165, 106, 0.1);
  --danger: #c95d5d;
  --danger-soft: rgba(201, 93, 93, 0.12);
  --shadow: 0 24px 68px rgba(33, 68, 132, 0.1);
  --shadow-soft: 0 12px 30px rgba(33, 68, 132, 0.06);
  --card-glow: rgba(137, 169, 255, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --fw-body: 500;
  --fw-medium: 600;
  --fw-strong: 700;
  --fw-display: 800;
}

html[data-theme="midnight"] {
  color-scheme: dark;
  --bg: #0a1220;
  --sidebar-bg: rgba(15, 24, 42, 0.9);
  --surface: rgba(17, 29, 49, 0.9);
  --surface-soft: #162338;
  --surface-tint: #1a2942;
  --surface-raised: #182741;
  --text: #eef4ff;
  --muted: #98a6c2;
  --line: rgba(164, 191, 255, 0.12);
  --line-strong: rgba(164, 191, 255, 0.18);
  --accent: #7b90ff;
  --accent-strong: #91a2ff;
  --accent-soft: rgba(123, 144, 255, 0.16);
  --accent-soft-strong: rgba(123, 144, 255, 0.24);
  --success: #48c98d;
  --success-soft: rgba(72, 201, 141, 0.14);
  --danger: #ef9a9a;
  --danger-soft: rgba(239, 154, 154, 0.14);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.18);
  --card-glow: rgba(123, 144, 255, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: var(--fw-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(94, 132, 255, 0.12), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(113, 214, 255, 0.08), transparent 22%),
    radial-gradient(circle at 74% 78%, rgba(146, 123, 255, 0.08), transparent 22%);
}

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

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

code {
  padding: 0.08em 0.38em;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.92em;
}

.hub-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
}

/** 折叠侧栏：第一列宽度为 0，主内容区拉满（侧栏 fixed 滑出视口） */
body.hub-sidebar-collapsed .hub-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.hub-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  padding: 18px 16px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sidebar-bg) 86%, var(--surface-raised)) 0%, var(--sidebar-bg) 100%);
  backdrop-filter: blur(18px);
  box-shadow: 8px 0 28px rgba(18, 38, 76, 0.04);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent-soft-strong) 72%, var(--accent)) transparent;
  transition: transform 0.28s ease, opacity 0.22s ease, visibility 0.28s linear;
}

body.hub-sidebar-collapsed .hub-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
}

.hub-sidebar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.hub-sidebar::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent-soft-strong) 72%, var(--accent));
  border-radius: 999px;
}

.hub-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.hub-sidebar::before {
  content: "";
  position: absolute;
  inset: 14px 10px auto 10px;
  height: 140px;
  border-radius: 26px;
  background: radial-gradient(circle at top left, var(--card-glow), transparent 68%);
  opacity: 0.7;
  z-index: -1;
}

body:not(.hub-body--report) .hub-layout {
  align-items: start;
}

body:not(.hub-body--report) .hub-sidebar {
  position: sticky;
  top: 0;
  left: auto;
  bottom: auto;
  gap: 4px;
  height: auto;
  min-height: 100vh;
  padding: 8px 8px 10px;
  overflow: visible;
}

body:not(.hub-body--report) .hub-brand {
  gap: 10px;
  padding: 0 2px 0;
}

body:not(.hub-body--report) .hub-brand strong {
  font-size: 13px;
}

body:not(.hub-body--report) .hub-brand span {
  display: none;
}

body:not(.hub-body--report) .hub-brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

body:not(.hub-body--report) .hub-sidebar__nav {
  gap: 4px;
}

body:not(.hub-body--report) .hub-nav-section {
  gap: 0;
}

body:not(.hub-body--report) .hub-nav-section__title {
  margin: 0 6px 0;
  font-size: 9px;
}

body:not(.hub-body--report) .sidebar__nav-link {
  gap: 9px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 13px;
}

body:not(.hub-body--report) .hub-nav-icon {
  flex-basis: 15px;
  width: 15px;
  height: 15px;
}

body:not(.hub-body--report) .hub-sidebar__bottom {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding-top: 4px;
}

.hub-body--report .hub-layout {
  align-items: start;
}

.hub-body--report .hub-sidebar {
  height: 100vh;
  min-height: 100vh;
  padding: 20px 16px 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.hub-body--report .hub-sidebar__nav {
  gap: 18px;
}

.hub-body--report .hub-nav-section {
  gap: 4px;
}

.hub-body--report .hub-nav-section__title {
  margin: 0 10px 2px;
  font-size: 12px;
}

.hub-body--report .sidebar__nav-link,
.hub-body--report .hub-collapse-button {
  min-height: 42px;
}

.hub-body--report .hub-sidebar__bottom {
  padding-top: 8px;
}

.hub-body--workspace .hub-collapse-button,
.hub-body--workspace .hub-sidebar__promo {
  display: none;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 8px;
}

.hub-brand__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #67d7ff));
  color: #fff;
  font-weight: var(--fw-strong);
  font-size: 0;
  box-shadow: 0 14px 22px rgba(79, 111, 255, 0.24);
}

.hub-brand__logo::before,
.hub-brand__logo::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #fff;
}

.hub-brand__logo::before {
  width: 16px;
  height: 16px;
  opacity: 0.96;
}

.hub-brand__logo::after {
  width: 7px;
  height: 7px;
  right: 10px;
  bottom: 10px;
  opacity: 0.92;
}

.hub-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  font-weight: var(--fw-strong);
}

.hub-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

a.hub-brand {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.hub-brand:visited {
  color: inherit;
}

a.hub-brand:hover {
  opacity: 0.92;
}

a.hub-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}

.hub-account-mount {
  margin: 4px 0 12px;
}

.hub-account-mount.hidden {
  display: none !important;
}

.hub-account-mount--topbar {
  margin: 0;
  flex-shrink: 0;
}

.hub-account-mount--topbar .hub-account-card {
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-raised));
  box-shadow: var(--shadow-soft);
}

.hub-account-mount--topbar .hub-account-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffd7c4, #f1bca7);
  color: #7a4030;
}

.hub-account-mount--topbar .hub-account-card__name {
  font-size: 14px;
}

.hub-account-mount--topbar .hub-account-card__plan {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.hub-account-mount--topbar .hub-account-card__logout {
  padding: 4px 8px !important;
  font-size: 11px !important;
}

.hub-account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 92%, var(--accent) 5%);
  box-shadow: 0 8px 20px rgba(15, 72, 92, 0.06);
}

.hub-account-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-strong);
  font-size: 16px;
  background: color-mix(in srgb, #e8b4a0 55%, #f5e6dc);
  color: #4a3028;
}

.hub-account-card__meta {
  flex: 1;
  min-width: 0;
}

.hub-account-card__name {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-strong);
  line-height: 1.2;
  color: var(--text);
}

.hub-account-card__plan {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
}

.hub-account-card__logout {
  flex-shrink: 0;
  padding: 6px 10px !important;
  font-size: 12px !important;
  min-height: auto !important;
}

.hub-auth-page {
  min-height: 100vh;
  margin: 0;
}

.hub-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg));
}

.hub-auth-card {
  width: min(420px, 100%);
  padding: 28px 26px 22px !important;
}

.hub-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 20px;
}

.hub-auth-brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #67d7ff));
  box-shadow: 0 10px 20px rgba(79, 111, 255, 0.22);
}

.hub-auth-brand strong {
  display: block;
  font-size: 18px;
}

.hub-auth-brand .muted-copy {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.hub-auth-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: var(--fw-strong);
}

.hub-auth-lead {
  margin: 0 0 18px;
  font-size: 14px;
}

.hub-auth-status {
  margin-top: 4px;
}

.hub-auth-actions {
  margin-top: 8px;
}

.hub-auth-footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
}

.hub-status--error {
  color: #8b1e1e !important;
  background: rgba(176, 48, 48, 0.08) !important;
}

.hub-sidebar__nav {
  display: grid;
  gap: 14px;
}

.hub-nav-section {
  display: grid;
  gap: 2px;
}

.hub-nav-submenu {
  display: grid;
  gap: 4px;
}

.hub-nav-section__title {
  margin: 0 8px 2px;
  color: var(--text);
  font-size: 12px;
  font-weight: var(--fw-strong);
}

.sidebar__nav-link,
.hub-collapse-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-weight: var(--fw-medium);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sidebar__nav-link.is-active {
  font-weight: var(--fw-strong);
}

.sidebar__nav-link--subnav {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.4;
}

.sidebar__nav-link--subnav::after {
  content: none;
}

.sidebar__nav-link::before,
.hub-collapse-button::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 140ms ease;
}

.sidebar__nav-link:hover,
.sidebar__nav-link:focus-visible,
.hub-collapse-button:hover,
.hub-collapse-button:focus-visible,
.sidebar__nav-link.is-active {
  outline: none;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent-soft-strong);
  transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sidebar__nav-link:hover::before,
.sidebar__nav-link:focus-visible::before,
.sidebar__nav-link.is-active::before,
.hub-collapse-button:hover::before,
.hub-collapse-button:focus-visible::before {
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #67d7ff) 100%);
}

body:not(.hub-body--report) .sidebar__nav-link--subnav {
  min-height: 28px;
  border-radius: 12px;
  font-size: 13px;
}

.hub-body--report .sidebar__nav-link--subnav {
  min-height: 42px;
  font-size: 16px;
}

.sidebar__nav-link--subnav .hub-nav-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  opacity: 0.88;
}

.hub-nav-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--hub-nav-icon) center / contain no-repeat;
  mask: var(--hub-nav-icon) center / contain no-repeat;
  opacity: 0.92;
  transition: transform 140ms ease, opacity 140ms ease;
}

.sidebar__nav-link:hover .hub-nav-icon,
.sidebar__nav-link:focus-visible .hub-nav-icon,
.sidebar__nav-link.is-active .hub-nav-icon,
.hub-collapse-button:hover .hub-nav-icon,
.hub-collapse-button:focus-visible .hub-nav-icon {
  opacity: 1;
  transform: translateY(-0.5px);
}

.hub-nav-icon--dashboard {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5.5 9.7V20h5.7v-5.6h1.6V20h5.7V9.7'/%3E%3C/svg%3E");
}

.hub-nav-icon--upload {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V7'/%3E%3Cpath d='m8.5 10.5 3.5-3.5 3.5 3.5'/%3E%3Cpath d='M4.5 14.5V18a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-3.5'/%3E%3Crect x='4' y='3.5' width='16' height='17' rx='3' ry='3'/%3E%3C/svg%3E");
}

.hub-nav-icon--products {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}

.hub-nav-icon--mapping {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='7' r='2.5'/%3E%3Ccircle cx='17.5' cy='5.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3Cpath d='M8.8 7h3.4a2 2 0 0 1 2 2v6.5'/%3E%3Cpath d='M15.1 7.1 13 9'/%3E%3Cpath d='M15.1 15.9 13 14'/%3E%3C/svg%3E");
}

.hub-nav-icon--collections {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 4.5v9L12 21l-8-4.5v-9L12 3Z'/%3E%3Cpath d='m4.3 7.3 7.7 4.2 7.7-4.2'/%3E%3Cpath d='M12 11.7V21'/%3E%3C/svg%3E");
}

.hub-nav-icon--orders {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h8l3 3V19a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5.5a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M15 3.5V7h3'/%3E%3Cpath d='M9 11h6'/%3E%3Cpath d='M9 15h6'/%3E%3C/svg%3E");
}

.hub-nav-icon--rules {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10'/%3E%3Cpath d='M18 6h2'/%3E%3Cpath d='M10 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z'/%3E%3Cpath d='M4 12h4'/%3E%3Cpath d='M12 12h8'/%3E%3Cpath d='M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z'/%3E%3Cpath d='M4 18h10'/%3E%3Cpath d='M18 18h2'/%3E%3Cpath d='M18 18a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z'/%3E%3C/svg%3E");
}

.hub-nav-icon--shipping {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5 12 4l8 4.5v7L12 20l-8-4.5v-7Z'/%3E%3Cpath d='m4.5 8.8 7.5 4.2 7.5-4.2'/%3E%3Cpath d='M12 13v7'/%3E%3C/svg%3E");
}

.hub-nav-icon--marketing {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.5V8.8a1.8 1.8 0 0 1 2.8-1.5l7.4 4.8a1.8 1.8 0 0 1 0 3l-7.4 4.8A1.8 1.8 0 0 1 4 18.4Z'/%3E%3Cpath d='M15.5 9.2a5.2 5.2 0 0 1 0 5.6'/%3E%3Cpath d='M18.5 7a8.8 8.8 0 0 1 0 10'/%3E%3C/svg%3E");
}

.hub-nav-icon--meta-ads {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Ccircle cx='12' cy='12' r='2.1'/%3E%3Cpath d='M12 3.5V6'/%3E%3Cpath d='M12 18v2.5'/%3E%3Cpath d='M3.5 12H6'/%3E%3Cpath d='M18 12h2.5'/%3E%3C/svg%3E");
}

.hub-nav-icon--social {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='7' r='2.5'/%3E%3Ccircle cx='17.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='12' cy='17.5' r='2.5'/%3E%3Cpath d='M8.8 8.4 10.8 15'/%3E%3Cpath d='M15.2 8.4 13.2 15'/%3E%3Cpath d='M9.3 7.3h5.4'/%3E%3C/svg%3E");
}

.hub-nav-icon--accounts {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9.5' r='2.5'/%3E%3Cpath d='M4.5 18c.8-2.6 3-4 6-4s5.2 1.4 6 4'/%3E%3Cpath d='M14.5 18c.5-1.8 1.9-2.8 4-2.8 1 0 1.8.2 2.5.7'/%3E%3C/svg%3E");
}

.hub-nav-icon--queue {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='12' height='4' rx='1.4'/%3E%3Crect x='4' y='10' width='16' height='4' rx='1.4'/%3E%3Crect x='4' y='15' width='10' height='4' rx='1.4'/%3E%3Cpath d='m18 6.5 2 2 2-2'/%3E%3Cpath d='M20 8.5V14'/%3E%3C/svg%3E");
}

.hub-nav-icon--calendar {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M7.5 3.5v4'/%3E%3Cpath d='M16.5 3.5v4'/%3E%3Cpath d='M3.5 9.5h17'/%3E%3Cpath d='M8 13h3'/%3E%3Cpath d='M13 13h3'/%3E%3Cpath d='M8 17h3'/%3E%3C/svg%3E");
}

.hub-nav-icon--candidates {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 14.7 9l6 .5-4.6 4 1.4 5.8L12 16l-5.5 3.3 1.4-5.8-4.6-4 6-.5L12 3.5Z'/%3E%3C/svg%3E");
}

.hub-nav-icon--customers {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9.5' r='2.5'/%3E%3Cpath d='M4.5 18c.8-2.6 3-4 6-4s5.2 1.4 6 4'/%3E%3Cpath d='M14.5 18c.5-1.8 1.9-2.8 4-2.8 1 0 1.8.2 2.5.7'/%3E%3C/svg%3E");
}

.hub-nav-icon--email {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2.5'/%3E%3Cpath d='m5.8 8.2 6.2 4.7 6.2-4.7'/%3E%3C/svg%3E");
}

.hub-nav-icon--sales {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V9'/%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M19 20v-7'/%3E%3Cpath d='M3.5 20.5h17'/%3E%3C/svg%3E");
}

.hub-nav-icon--inventory {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m15 15 4.5 4.5'/%3E%3Cpath d='M10.5 8v5'/%3E%3Cpath d='M8 10.5h5'/%3E%3C/svg%3E");
}

.hub-nav-icon--profit {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18.5h16'/%3E%3Cpath d='m5.5 15 4-4 3.2 3.2 5.8-6.2'/%3E%3Cpath d='M14.8 8h3.7v3.7'/%3E%3C/svg%3E");
}

.hub-nav-icon--billing {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='6' width='17' height='12' rx='2.6'/%3E%3Cpath d='M3.5 10h17'/%3E%3Cpath d='M7 15h3.5'/%3E%3Cpath d='M13 15h4'/%3E%3C/svg%3E");
}

.hub-nav-icon--payouts {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18.5h16'/%3E%3Cpath d='M6 15.5 10 11l3 3 5-6'/%3E%3Cpath d='M14 8h4v4'/%3E%3Ccircle cx='6' cy='15.5' r='1' fill='black' stroke='none'/%3E%3Ccircle cx='10' cy='11' r='1' fill='black' stroke='none'/%3E%3Ccircle cx='13' cy='14' r='1' fill='black' stroke='none'/%3E%3Ccircle cx='18' cy='8' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.hub-nav-icon--shopify {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 5-8 5-8-5 8-5Z'/%3E%3Cpath d='M5 10.5v4.2c0 1.2 3.1 3.8 7 3.8s7-2.6 7-3.8v-4.2'/%3E%3C/svg%3E");
}

.hub-nav-icon--connections {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7.5h4'/%3E%3Cpath d='M7.2 10.3 5.4 12a3.3 3.3 0 1 0 4.6 4.6l1.7-1.7'/%3E%3Cpath d='m16.8 13.7 1.8-1.7A3.3 3.3 0 0 0 14 7.4l-1.7 1.7'/%3E%3C/svg%3E");
}

.hub-nav-icon--tools {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='2.2'/%3E%3Ccircle cx='17' cy='7' r='2.2'/%3E%3Ccircle cx='12' cy='17' r='2.2'/%3E%3Cpath d='M8.9 8.1 10.8 15'/%3E%3Cpath d='M15.1 8.1 13.2 15'/%3E%3Cpath d='M9.3 7h5.4'/%3E%3C/svg%3E");
}

.hub-nav-icon--image-processing {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.7'/%3E%3Cpath d='m20 15-4.5-4.5-4.4 5.2-2.5-2.4L4 18'/%3E%3C/svg%3E");
}

.hub-nav-icon--history {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h8l3 3V19a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5.5a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M15 3.5V7h3'/%3E%3Cpath d='M12 10v3.2l2 1.3'/%3E%3Ccircle cx='12' cy='13' r='4.2'/%3E%3C/svg%3E");
}

.hub-nav-icon--automation {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='7' width='14' height='11' rx='3'/%3E%3Cpath d='M9 7V5.2'/%3E%3Cpath d='M15 7V5.2'/%3E%3Cpath d='M9 18v1.8'/%3E%3Cpath d='M15 18v1.8'/%3E%3Cpath d='M9.5 11.5h5'/%3E%3Cpath d='M12 9v5'/%3E%3C/svg%3E");
}

.hub-nav-icon--settings {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M19 12a7 7 0 0 0-.1-1.2l2-1.5-2-3.4-2.4 1a7.6 7.6 0 0 0-2-.9l-.4-2.6H10l-.4 2.6c-.7.2-1.4.5-2 .9l-2.4-1-2 3.4 2 1.5A7 7 0 0 0 5 12c0 .4 0 .8.1 1.2l-2 1.5 2 3.4 2.4-1c.6.4 1.3.7 2 .9l.4 2.6h4l.4-2.6c.7-.2 1.4-.5 2-.9l2.4 1 2-3.4-2-1.5c.1-.4.1-.8.1-1.2Z'/%3E%3C/svg%3E");
}

.hub-nav-icon--collapse {
  --hub-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 4v16'/%3E%3Cpath d='m13 8-4 4 4 4'/%3E%3Cpath d='m9 8-4 4 4 4'/%3E%3C/svg%3E");
}

.hub-sidebar__bottom {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.hub-sidebar__promo {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-soft);
}

body:not(.hub-body--report) .hub-collapse-button,
body:not(.hub-body--report) .hub-sidebar__promo {
  display: none;
}

.hub-sidebar__promo strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: var(--fw-strong);
}

.hub-sidebar__promo p:last-of-type {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.hub-back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent-soft-strong) 88%, var(--accent));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-raised));
  color: var(--accent-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.hub-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hub-back-to-top:hover,
.hub-back-to-top:focus-visible {
  outline: none;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.hub-back-to-top__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 6-6 6 6'/%3E%3Cpath d='M12 8v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 6-6 6 6'/%3E%3Cpath d='M12 8v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hub-main {
  grid-column: 2;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: 100%;
  overflow-x: clip;
}

.hub-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 10px 28px rgba(18, 38, 76, 0.04);
}

.hub-topbar__left,
.hub-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hub-topbar__menu,
.hub-topbar__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.hub-topbar__menu:hover,
.hub-topbar__menu:focus-visible,
.hub-topbar__icon:hover,
.hub-topbar__icon:focus-visible,
.hub-topbar__action:hover,
.hub-topbar__action:focus-visible,
.hub-profile:hover,
.hub-account-mount--topbar .hub-account-card:hover {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--accent-soft-strong);
  box-shadow: var(--shadow-soft);
}

.hub-topbar__glyph {
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--hub-topbar-icon) center / contain no-repeat;
  mask: var(--hub-topbar-icon) center / contain no-repeat;
}

.hub-topbar__glyph--menu {
  --hub-topbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'%3E%3Cpath d='M5 7h14'/%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M5 17h9'/%3E%3C/svg%3E");
}

.hub-topbar__glyph--bell {
  --hub-topbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5a5.5 5.5 0 1 1 11 0c0 4 1.8 5.5 1.8 5.5H4.7s1.8-1.5 1.8-5.5'/%3E%3Cpath d='M10 18.5a2.3 2.3 0 0 0 4 0'/%3E%3C/svg%3E");
}

.hub-breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.hub-theme-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-raised));
  box-shadow: var(--shadow-soft);
}

.hub-theme-badge__copy span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hub-theme-badge__copy strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: var(--fw-strong);
}

.theme-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 176px;
}

.theme-switch__button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.theme-switch__button:hover,
.theme-switch__button:focus-visible {
  outline: none;
  border-color: var(--accent-soft-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.theme-switch__button.is-active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #67d7ff));
  box-shadow: 0 12px 20px rgba(79, 111, 255, 0.2);
}

.hub-topbar__action {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-raised));
  color: var(--accent-strong);
  font-weight: var(--fw-medium);
}

.hub-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5a6a;
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-strong);
}

.hub-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-raised));
  box-shadow: var(--shadow-soft);
}

.hub-profile__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffd7c4, #f1bca7);
  color: #7a4030;
  font-weight: var(--fw-strong);
}

.hub-profile strong {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-strong);
}

.hub-profile span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.hub-content {
  display: flex;
  flex-direction: column;
  padding: 28px 30px 40px;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.hub-storage-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 30px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #b42318 45%, var(--line));
  background: color-mix(in srgb, #b42318 9%, var(--surface));
  box-shadow: 0 8px 24px color-mix(in srgb, #b42318 20%, transparent);
}

.hub-storage-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-weight: var(--fw-strong);
  flex: 0 0 auto;
}

.hub-storage-alert__content {
  min-width: 0;
}

.hub-storage-alert__content strong {
  display: block;
  color: #8f1e14;
  font-size: 14px;
}

.hub-storage-alert__content p {
  margin: 6px 0 0;
  color: #7a2520;
  line-height: 1.55;
}

.hub-storage-alert__tips {
  font-size: 12px;
}

.hub-storage-alert__close {
  margin-left: auto;
  border: 1px solid color-mix(in srgb, #b42318 35%, var(--line));
  background: #fff;
  color: #8f1e14;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.section-anchor {
  scroll-margin-top: 96px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hub-page-head {
  order: 1;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.hub-page-head__copy,
.hub-teach-card,
.hub-card,
.hub-side-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hub-page-head__copy::before,
.hub-teach-card::before,
.hub-card::before,
.hub-side-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 64px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-glow) 70%, #fff) 0%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

.hub-page-head__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--card-glow) 65%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.hub-page-head__copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: var(--fw-display);
}

.hub-page-head__copy p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
}

.hub-page-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hub-page-head__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.hub-teach-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--card-glow) 62%, transparent), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.hub-teach-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: var(--fw-strong);
}

.hub-teach-card p:last-of-type {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.hub-step-strip {
  order: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hub-step-chip {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.hub-step-chip--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hub-step-chip--link:hover {
  text-decoration: none;
}

.hub-step-chip::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: transparent;
  transition: background 140ms ease;
}

.hub-step-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: var(--fw-strong);
}

.hub-step-chip strong {
  display: block;
  font-size: 15px;
  font-weight: var(--fw-medium);
}

.hub-step-chip p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hub-step-chip.is-active {
  border-color: var(--accent-soft-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
}

.hub-step-chip.is-active::after {
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, #67d7ff) 100%);
}

.hub-step-strip:hover .hub-step-chip.is-active::after,
.hub-step-strip:focus-within .hub-step-chip.is-active::after {
  background: transparent;
}

.hub-step-chip--link:hover,
.hub-step-chip--link:focus-visible {
  border-color: var(--accent-soft-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
  text-decoration: none;
}

.hub-step-chip--link:hover::after,
.hub-step-chip--link:focus-visible::after {
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, #67d7ff) 100%);
}

.hub-main-grid {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.hub-main-grid__primary,
.hub-main-grid__rail,
.hub-lower-grid {
  display: grid;
  gap: 20px;
}

#recent-jobs {
  padding: 30px 34px 28px;
}

#recent-jobs > .hub-section-head {
  margin-bottom: 22px;
}

#recent-jobs > .hub-section-head p {
  margin-top: 10px;
  max-width: 38ch;
}

#recent-jobs-list > .hub-summary-copy {
  margin: 0;
  padding: 18px 2px 4px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 15px;
}

#store-hub {
  order: -1;
}

#hub-mapping {
  order: 2;
}

#doba-hub {
  order: 3;
}

/* 上传 SKU 专页：主卡内说明与上传区双列 */
body.hub-body--doba-upload #doba-hub .hub-section-head p {
  max-width: none;
}

body.hub-body--doba-upload .hub-upload-grid {
  margin-bottom: 32px;
}

#hub-help {
  order: 4;
  display: grid;
  gap: 18px;
  padding: 28px;
}

#hub-help > .hub-section-head {
  margin-bottom: 0;
}

#hub-help > .hub-followup-grid {
  margin-top: 0;
}

/* 历史版本：下拉与按钮行、按钮之间保留稳定间距 */
#hub-history > .status + label {
  margin-top: 14px;
}

#hub-history label + .hub-inline-actions,
#hub-history > .hub-inline-actions {
  margin-top: 20px;
}

#hub-history > .hub-inline-actions {
  gap: 16px;
}

#hub-help > .hub-side-divider {
  margin: 6px 0 0;
}

#hub-help > .hub-subpanel__head--compact {
  margin-bottom: 0;
}

#hub-help > .hub-help-stack {
  margin-top: 0;
}

#hub-help .hub-list-link {
  margin-top: 0;
}

#hub-orders,
#hub-analytics {
  display: grid;
  gap: 18px;
  padding: 28px;
}

#hub-orders > .hub-section-head,
#hub-analytics > .hub-section-head {
  margin-bottom: 0;
}

#hub-orders > .hub-inline-actions,
#hub-orders > .status,
#hub-orders > .hub-kpi-grid,
#hub-orders > .hub-commerce-grid,
#hub-orders > .hub-summary-copy,
#hub-analytics > .status,
#hub-analytics > .hub-kpi-grid,
#hub-analytics > .hub-summary-copy,
#hub-analytics > .hub-table-wrap {
  margin-top: 0;
}

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

.hub-followup-grid--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.hub-followup-grid__full {
  grid-column: 1 / -1;
}

.hub-help-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.hub-form-stack > .hub-followup-grid {
  margin-top: 0;
}

.hub-followup-stack {
  margin-top: 24px;
}

.hub-step-card,
.hub-placeholder-card {
  padding: 24px;
}

.hub-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.hub-section-head__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #67d7ff));
  color: #fff;
  font-size: 14px;
  font-weight: var(--fw-strong);
  box-shadow: 0 10px 18px rgba(79, 111, 255, 0.2);
}

.hub-section-head__marker--ghost {
  background: var(--surface-tint);
  color: var(--accent-strong);
  box-shadow: none;
}

.hub-section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: var(--fw-strong);
}

.hub-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
  max-width: 62ch;
}

.product-edit-head {
  align-items: center;
}

.product-edit-head__actions {
  margin-left: auto;
}

.hub-form-stack {
  display: grid;
  gap: 24px;
}

.hub-upload-grid,
.hub-split-grid,
.hub-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.hub-split-grid {
  align-items: stretch;
}

.hub-publish-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.hub-publish-layout__left {
  display: grid;
  gap: 22px;
}

.hub-upload-panel,
.hub-subpanel,
.hub-inner-panel {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 82%, var(--surface-raised)) 0%, var(--surface-soft) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.hub-split-grid > .hub-subpanel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hub-subpanel--embedded-table {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hub-subpanel--embedded-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hub-inner-panel {
  box-shadow: none;
}

.hub-upload-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 36px 24px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 20px;
  background:
    radial-gradient(circle at top center, color-mix(in srgb, var(--card-glow) 56%, transparent), transparent 42%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.hub-upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hub-upload-dropzone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 36px;
  line-height: 1;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hub-upload-dropzone strong {
  font-size: 18px;
}

.hub-upload-dropzone p,
.hub-upload-dropzone em {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.hub-card-grid__full {
  grid-column: 1 / -1;
}

.store-decoration-summary {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface)) 0%, var(--surface) 100%);
}

.store-decoration-summary > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.store-decoration-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.store-decoration-summary-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  border-radius: 16px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.store-decoration-summary-grid__full {
  grid-column: 1 / -1;
}

.store-decoration-summary-grid h4,
.store-decoration-summary-grid p,
.store-decoration-summary-grid ul {
  margin: 0;
}

.store-decoration-summary-grid ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.store-decoration-summary-label {
  margin-bottom: 10px !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hub-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hub-field-head__action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 10px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-toggle-field {
  display: grid;
  gap: 10px;
}

.product-toggle-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hub-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hub-checkbox input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 7px;
  box-shadow: none;
  transform: none;
}

.hub-checkbox__text {
  color: var(--text);
  font-size: 15px;
  font-weight: var(--fw-strong);
  text-transform: none;
  letter-spacing: normal;
}

/* Doba Connection：避免全局 input 的 min-height:42px / width:100% 把勾选框拉成大块 */
.hub-doba-connection-actions.hub-inline-actions--stacked {
  align-items: start;
}

.hub-doba-connection-options-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.hub-doba-connection-continue-full {
  grid-column: 1 / -1;
}

.hub-doba-connection-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0;
  max-width: none;
}

.hub-doba-connection-option input[type="checkbox"] {
  width: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  max-height: 1rem;
  padding: 0;
  margin: 0.12em 0 0;
  flex: 0 0 1rem;
  border-radius: 4px;
  box-shadow: none;
  transform: none;
  align-self: start;
  cursor: pointer;
  line-height: 1;
  vertical-align: top;
}

.hub-doba-connection-option input[type="checkbox"]:focus {
  transform: none;
}

.hub-doba-connection-option > span {
  flex: 1;
  min-width: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

#footer-business-address,
#footer-business-hours {
  min-height: 42px;
  height: 42px;
  resize: none;
  overflow: auto;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.hub-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.hub-upload-dropzone + .hub-inline-actions,
.hub-card-grid + .hub-inline-actions,
.product-edit-preview + .hub-inline-actions,
.status + .hub-inline-actions,
.hub-summary-copy + .hub-inline-actions,
.hub-subpanel__head + .hub-inline-actions,
.hub-inline-actions + .formula-copy,
.hub-card-grid + .formula-copy,
.hub-download-box + .hub-summary-copy {
  margin-top: 18px;
}

.hub-inline-actions + .hub-inline-actions,
.hub-inline-actions + .product-media-list,
.hub-subpanel > .hub-tool-box,
.hub-subpanel > .hub-current-source-card,
.hub-subpanel > .status + .hub-summary-copy,
.hub-subpanel > .hub-kpi-grid,
.hub-subpanel > .hub-download-box,
.hub-subpanel > .hub-summary-copy,
.hub-subpanel > .progress-strip,
.hub-subpanel > .progress-strip + .progress-strip__note {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: var(--fw-strong);
  cursor: pointer;
  box-shadow: none;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 74%, var(--surface));
}

.button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--surface-soft);
  border-color: var(--accent-soft-strong);
  box-shadow: none;
}

.button.accent {
  background: linear-gradient(135deg, var(--accent-strong), color-mix(in srgb, var(--accent-strong) 62%, #67d7ff));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 24px rgba(79, 111, 255, 0.18);
}

.button.accent:hover,
.button.accent:focus-visible {
  box-shadow: 0 16px 30px rgba(79, 111, 255, 0.22);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-strong) 88%, #1f3de2), color-mix(in srgb, var(--accent-strong) 58%, #67d7ff));
}

.button.ghost {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 34%, transparent);
  box-shadow: none;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 34%, transparent);
  box-shadow: none;
}

.status {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  line-height: 1.55;
}

.status.error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
}

.hub-mini-metrics,
.hub-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hub-kpi-grid {
  margin-top: 14px;
}

.hub-kpi-grid--compact .hub-kpi strong {
  font-size: 28px;
}

.hub-kpi-grid--sync {
  margin-top: 10px;
  gap: 10px;
}

.hub-kpi-grid--sync .hub-kpi {
  padding: 12px 14px;
  min-height: 88px;
  border-radius: 16px;
}

.hub-kpi-grid--sync .hub-kpi strong {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 30px);
}

.hub-info-tile,
.hub-kpi {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.hub-subpanel--embedded {
  margin-top: 18px;
}

.hub-sync-overview {
  display: grid;
  align-content: start;
  height: 100%;
}

.hub-sync-overview .hub-summary-copy {
  gap: 8px;
}

.hub-sync-overview__metrics {
  margin-top: 6px;
}

.hub-sync-overview__summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.auto-sync-health {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.auto-sync-health__summary-copy {
  display: grid;
  gap: 6px;
}

.auto-sync-health__summary-copy span,
.auto-sync-health__metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auto-sync-health__summary-copy strong {
  font-size: 18px;
  line-height: 1.35;
  font-weight: var(--fw-strong);
}

.auto-sync-health__summary-copy p {
  margin: 0;
}

.auto-sync-health__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.auto-sync-health__metric,
.auto-sync-health__source {
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  border-radius: 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.auto-sync-health__metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: var(--fw-strong);
}

.auto-sync-health__list {
  display: grid;
  gap: 10px;
}

.auto-sync-health__source {
  padding: 14px 16px;
}

.auto-sync-health__source-copy {
  display: grid;
  gap: 6px;
}

.auto-sync-health__source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-sync-health__source-head strong {
  font-size: 15px;
  font-weight: var(--fw-strong);
}

.auto-sync-health__source-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.56;
}

.auto-sync-health__pill {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.auto-sync-health__pill.is-success {
  border-color: color-mix(in srgb, #2f9e44 35%, var(--line));
  background: color-mix(in srgb, #2f9e44 12%, var(--surface));
  color: #23763a;
}

.auto-sync-health__pill.is-info {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-strong);
}

.auto-sync-health__pill.is-warning {
  border-color: color-mix(in srgb, #d97706 35%, var(--line));
  background: color-mix(in srgb, #d97706 12%, var(--surface));
  color: #9a5a08;
}

.auto-sync-health__pill.is-danger {
  border-color: color-mix(in srgb, #d9485f 35%, var(--line));
  background: color-mix(in srgb, #d9485f 12%, var(--surface));
  color: #b13249;
}

.auto-sync-health__source.is-empty {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.hub-sync-overview__process {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hub-process-log {
  margin-top: 12px;
  min-height: 220px;
  max-height: 420px;
}

.hub-kpi {
  position: relative;
  overflow: hidden;
}

.hub-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 80%, #67d7ff) 0%, transparent 88%);
  opacity: 0.75;
}

.hub-info-tile span,
.hub-kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-info-tile strong,
.hub-kpi strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  word-break: break-word;
  font-weight: var(--fw-strong);
}

.hub-summary-copy p,
.formula-copy,
.muted-copy,
.download-note {
  color: var(--muted);
  line-height: 1.62;
  font-size: 13.5px;
}

.hub-summary-copy p:first-child,
.formula-copy {
  margin-top: 0;
}

.hub-summary-copy--compact {
  display: grid;
  gap: 6px;
}

.hub-summary-copy--compact p {
  margin: 0;
}

@media (max-width: 1200px) {
  .auto-sync-health__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .auto-sync-health__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auto-sync-health__source-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .auto-sync-health__grid {
    grid-template-columns: 1fr;
  }
}

.hub-category-sync-storewide-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.hub-category-sync-storewide-hint {
  margin: 0;
}

.hub-category-sync-result-hint {
  margin-top: 14px;
  margin-bottom: 0;
}

.hub-subpanel__head h3,
.hub-side-card__head h3,
.hub-tool-box h4,
.hub-side-card h4 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.03em;
  font-weight: var(--fw-strong);
}

.hub-subpanel__head p,
.hub-side-card__head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
  max-width: 58ch;
}

.hub-subpanel__head--compact {
  margin-bottom: 8px;
}

.hub-current-source-card,
.hub-tool-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, var(--surface-raised)) 0%, var(--surface) 100%);
}

/* 类目匹配、重复 SKU 等：输入网格与下方状态条之间留缝 */
.hub-tool-box > .hub-card-grid + .status {
  margin-top: 14px;
}

.hub-collections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  align-items: start;
}

/* 两列分区标题同一行、自动等高，首张工具卡片（当前来源 / 店铺内容与政策）上沿对齐 */
.hub-collections-pair-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@supports (grid-template-columns: subgrid) {
  .hub-collections-pair-head {
    grid-template-columns: subgrid;
  }
}

.hub-collections-pair-head .hub-subpanel__head--compact {
  margin-bottom: 0;
  padding-inline: 18px;
  max-width: none;
}

.hub-collections-pair-head .hub-subpanel__head--compact p {
  max-width: none;
}

.hub-collections-column {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.hub-current-source-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-weight: var(--fw-strong);
}

.hub-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hub-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: var(--fw-medium);
}

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

.hub-tool-box--collect-result {
  margin-top: 18px;
}

.hub-side-card {
  padding: 22px;
}

.hub-side-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

.hub-activity-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface-raised)) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-soft);
}

.hub-activity-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-activity-item strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: var(--fw-medium);
}

.hub-activity-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hub-store-identity {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.hub-store-identity__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hub-store-identity__overview {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(220px, 1fr);
  align-items: end;
  gap: 18px;
  flex: 1;
}

.hub-store-identity__copy strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: var(--fw-strong);
}

.hub-status-pill {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.orders-auto-refresh-pill.is-loading {
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
  color: var(--muted-strong);
}

.orders-auto-refresh-pill.is-success {
  border-color: color-mix(in srgb, #2f9e44 30%, var(--line));
  background: color-mix(in srgb, #2f9e44 12%, var(--surface));
  color: #226b35;
}

.orders-auto-refresh-pill.is-running {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-strong);
}

.orders-auto-refresh-pill.is-warning {
  border-color: color-mix(in srgb, #d97706 30%, var(--line));
  background: color-mix(in srgb, #d97706 12%, var(--surface));
  color: #a65400;
}

.orders-auto-refresh-pill.is-danger {
  border-color: color-mix(in srgb, #d9485f 30%, var(--line));
  background: color-mix(in srgb, #d9485f 12%, var(--surface));
  color: #b42318;
}

.orders-auto-refresh-pill.is-disabled {
  background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
  color: var(--muted);
}

.hub-store-domain-box {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.hub-store-domain-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-store-domain-box code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-tint);
  color: var(--text);
  font-size: 13px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-link {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.hub-step-chip strong .hub-link {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.hub-step-chip strong .hub-link:hover {
  text-decoration: none;
}

.hub-download-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hub-side-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.progress-strip {
  margin-top: 14px;
}

.progress-strip__track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.progress-strip__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #67d7ff));
  transition: width 0.3s ease;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 36%, transparent);
}

.progress-strip__note {
  margin: 10px 0 0;
  font-size: 14px;
}

.hub-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: var(--fw-medium);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.hub-list-link:hover,
.hub-list-link:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--accent-soft-strong);
  background: color-mix(in srgb, var(--surface-soft) 80%, var(--surface));
  box-shadow: var(--shadow-soft);
}

.hub-list-link span {
  color: var(--muted);
}

.hub-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.hub-kpi-grid--orders {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

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

.hub-table-wrap {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.hub-table-wrap--embedded {
  max-height: min(42vh, 420px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.hub-table-wrap--list {
  max-height: clamp(160px, 24vh, 280px);
  padding: 16px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.hub-table-wrap--embedded .hub-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.hub-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.hub-table th,
.hub-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hub-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
}

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

.hub-table td {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.products-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.products-title-cell__copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: min(100%, 58ch);
}

.products-title-cell strong,
.products-title-cell__title {
  display: block;
  min-width: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.products-title-cell__title-zh {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.products-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.products-head-main .report-sort-button {
  width: auto;
  flex: 0 0 auto;
}

.products-select-all {
  gap: 12px;
}

.products-select-all input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.products-select-all .hub-checkbox__text {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.products-row-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
}

.products-row-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.products-sku-cell {
  min-width: 220px;
  max-width: 280px;
}

.products-sku-cell > span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.products-price-cell {
  white-space: nowrap;
}

.products-status-column,
.products-status-cell {
  min-width: 96px;
  white-space: nowrap;
}

.products-time-column {
  min-width: 136px;
  white-space: nowrap;
}

.products-time-cell {
  min-width: 136px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: normal;
}

.products-action-column,
.products-action-cell {
  min-width: 92px;
  white-space: nowrap;
}

.products-thumb {
  width: var(--products-thumb-size);
  height: var(--products-thumb-size);
  border-radius: var(--products-thumb-radius);
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--surface-soft);
  flex: 0 0 var(--products-thumb-size);
  cursor: zoom-in;
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.products-thumb-wrap {
  --products-thumb-size: 44px;
  --products-thumb-radius: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--products-thumb-size);
  height: var(--products-thumb-size);
  flex: 0 0 var(--products-thumb-size);
  overflow: visible;
}

.products-thumb-wrap--sales {
  --products-thumb-size: 72px;
  --products-thumb-radius: 20px;
}

.products-thumb-wrap--mini {
  --products-thumb-size: 56px;
  --products-thumb-radius: 16px;
}

.products-thumb-wrap:hover .products-thumb,
.products-thumb-wrap:focus-within .products-thumb,
.products-thumb:hover,
.products-thumb:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 10px 24px rgba(34, 53, 105, 0.14);
}

.products-thumb-flyout {
  position: absolute;
  top: 50%;
  left: calc(100% + 18px);
  width: clamp(260px, 28vw, 420px);
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: 0 28px 56px rgba(34, 53, 105, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  z-index: 32;
}

.products-thumb-wrap:hover .products-thumb-flyout,
.products-thumb-wrap:focus-within .products-thumb-flyout {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.products-thumb-flyout__image {
  width: 100%;
  max-width: 388px;
  max-height: 388px;
  object-fit: contain;
  display: block;
}

.products-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--fw-medium);
  overflow: hidden;
  cursor: default;
}

.products-edit-button {
  min-height: 34px;
  padding: 0 12px;
}

.products-overview-table {
  width: max-content;
  min-width: 2320px;
  table-layout: auto;
}

.products-overview-table th:nth-child(1),
.products-overview-table td:nth-child(1) {
  width: 460px;
  min-width: 460px;
}

.products-overview-table th:nth-child(2),
.products-overview-table td:nth-child(2) {
  width: 220px;
  min-width: 220px;
}

.products-overview-table th:nth-child(3),
.products-overview-table td:nth-child(3) {
  width: 210px;
  min-width: 210px;
}

.products-overview-table th:nth-child(4),
.products-overview-table td:nth-child(4) {
  width: 140px;
  min-width: 140px;
}

.products-overview-table th:nth-child(5),
.products-overview-table td:nth-child(5) {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

.products-overview-table th:nth-child(6),
.products-overview-table td:nth-child(6) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.products-overview-table th:nth-child(7),
.products-overview-table td:nth-child(7) {
  width: 110px;
  min-width: 110px;
}

.products-overview-table th:nth-child(8),
.products-overview-table td:nth-child(8) {
  width: 240px;
  min-width: 240px;
}

.products-overview-table th:nth-child(9),
.products-overview-table td:nth-child(9) {
  width: 110px;
  min-width: 110px;
}

.products-overview-table th:nth-child(10),
.products-overview-table td:nth-child(10) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}

.products-overview-table th:nth-child(11),
.products-overview-table td:nth-child(11),
.products-overview-table th:nth-child(12),
.products-overview-table td:nth-child(12) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.products-overview-table th:nth-child(13),
.products-overview-table td:nth-child(13) {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}

.products-overview-table td:nth-child(3),
.products-overview-table td:nth-child(5),
.products-overview-table td:nth-child(8) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.products-overview-table td:nth-child(4),
.products-overview-table td:nth-child(6),
.products-overview-table td:nth-child(7),
.products-overview-table td:nth-child(9),
.products-overview-table td:nth-child(10),
.products-overview-table td:nth-child(11),
.products-overview-table td:nth-child(12),
.products-overview-table td:nth-child(13) {
  white-space: nowrap;
  overflow: hidden;
}

.product-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 24px;
  row-gap: 18px;
  align-items: start;
}

.product-edit-layout__main,
.product-edit-layout__side {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  width: 100%;
}

.product-edit-layout__main {
  overflow: visible;
}

.product-edit-layout__main > .hub-subpanel,
.product-edit-layout__side > .hub-subpanel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.product-edit-layout__main .hub-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.product-publish-grid {
  grid-template-columns: 1fr;
}

.product-publish-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  grid-column: 1 / -1;
}

.product-publish-pair > label {
  min-width: 0;
}

.product-edit-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-edit-preview__image {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
}

.image-processing-shell {
  gap: 28px;
  min-height: calc(100vh - 150px);
}

.image-processing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 84%, var(--accent-soft)) 0%, var(--surface) 58%),
    var(--surface);
}

.image-processing-toolbar p {
  margin: 0;
}

.image-processing-frame-wrap {
  height: auto;
  min-height: 920px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent-soft) 55%, transparent) 0%, transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-raised) 96%, var(--surface-soft)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.image-processing-frame {
  display: block;
  width: 100%;
  height: 920px;
  min-height: 920px;
  border: 0;
  background: #fff;
}

.product-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.product-media-item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.product-media-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.product-media-item .button {
  min-height: 32px;
}

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

.product-collection-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-raised)) 0%, var(--surface) 100%);
  color: var(--text);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.product-collections-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px !important;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.variant-kpi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-raised)) 0%, var(--surface) 100%);
  color: var(--text);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.product-variants-table {
  min-width: 1080px;
}

.product-variants-table th,
.product-variants-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.product-variants-table__metric-head,
.product-variants-table__metric-cell {
  width: 140px;
  min-width: 140px;
}

.product-rich-editor {
  height: 260px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  overflow-y: auto;
  overflow-x: hidden;
  line-height: 1.65;
}

.product-rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-raised));
}

.product-rich-editor-toolbar__select {
  width: auto;
  min-width: 160px;
  min-height: 36px;
  height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
}

.product-rich-editor-toolbar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.product-rich-editor-toolbar__button:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
}

.product-rich-editor:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hub-table__summary-row td {
  position: sticky;
  top: 47px;
  z-index: 1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-soft) 94%, var(--surface-raised)) 0%,
    color-mix(in srgb, var(--surface) 96%, var(--surface-raised)) 100%
  );
  box-shadow: inset 0 -1px 0 var(--line);
}

.hub-table__summary-cell {
  min-width: 140px;
  line-height: 1.45;
}

.hub-table__summary-cell > strong,
.hub-table__summary-cell > span {
  display: block;
}

.hub-table__summary-cell > strong {
  font-size: 15px;
  font-weight: var(--fw-strong);
  color: var(--text);
}

.hub-table__summary-cell > span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted-strong);
}

.hub-table__empty {
  color: var(--muted);
  text-align: center;
  padding: 28px 18px !important;
}

.hub-table__multiline {
  line-height: 1.75;
}

.hub-table__multiline > strong,
.hub-table__multiline > span,
.hub-table__multiline > code {
  display: block;
}

.hub-table__muted {
  color: var(--muted);
}

.hub-risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
}

.hub-risk-pill--medium {
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface));
  color: #9b6b00;
}

.hub-risk-pill--high {
  background: color-mix(in srgb, var(--danger-soft) 82%, var(--surface));
  color: var(--danger);
}

.sales-product-cell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sales-product-cell--selectable {
  grid-template-columns: 22px 72px minmax(0, 1fr);
  align-items: center;
}

.sales-product-cell__check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.sales-product-cell__check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.sales-product-cell__thumb {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}

.sales-product-cell__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease;
}

.sales-product-cell__thumb-empty {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

.sales-product-cell__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 460px;
}

.sales-product-cell__content > strong {
  display: block;
  font-size: 16px;
  font-weight: var(--fw-strong);
  line-height: 1.2;
}

.sales-product-cell__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-clamp: 2;
  text-overflow: ellipsis;
  line-height: 1.5;
  color: var(--text);
  max-width: 100%;
}

.sales-product-cell__title-zh {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-clamp: 2;
  text-overflow: ellipsis;
  line-height: 1.5;
  color: var(--muted);
  font-size: 14px;
  max-width: 100%;
}

.report-page-head {
  margin-bottom: 6px;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 32px 34px;
}

.report-card__hero {
  margin-bottom: 2px;
}

.report-card__hero-copy {
  display: flex;
  flex-direction: column;
}

.report-card__title {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: var(--fw-display);
}

.report-card__hero-copy > p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 68ch;
}

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

.report-filter-grid--analytics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-filter-grid--sales {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-filter-grid--customers {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-filter-grid--email-marketing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-filter-grid--marketing {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-filter-grid--billing {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-filter-grid label,
.report-inline-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-filter-grid label > span,
.report-inline-label > span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-actions {
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.orders-auto-refresh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.orders-auto-refresh-bar__summary {
  flex: 1 1 300px;
  display: grid;
  gap: 8px;
}

.orders-auto-refresh-bar__controls {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.orders-auto-refresh-toggle,
.orders-auto-refresh-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-raised));
}

.orders-auto-refresh-toggle {
  font-weight: var(--fw-medium);
  color: var(--text);
}

.orders-auto-refresh-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.orders-auto-refresh-field > span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.orders-auto-refresh-field select {
  min-width: 116px;
}

.products-refresh-progress {
  margin-top: 14px;
}

.inventory-trends-refresh-progress {
  margin-top: 14px;
}

.inventory-trends-refresh-progress__bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 84%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.inventory-trends-refresh-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-soft) 45%, transparent);
  transition: width 180ms ease;
}

.products-auto-refresh,
.inventory-trends-auto-refresh {
  margin-top: 14px;
}

.products-auto-refresh__grid,
.inventory-trends-auto-refresh__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
}

.products-auto-refresh__toggle,
.inventory-trends-auto-refresh__toggle {
  display: grid;
  gap: 8px;
}

.products-auto-refresh__toggle .hub-checkbox,
.inventory-trends-auto-refresh__toggle .hub-checkbox {
  align-items: flex-start;
}

.products-auto-refresh__actions,
.inventory-trends-auto-refresh__actions {
  display: flex;
  justify-content: flex-end;
}

.products-auto-refresh__actions .button,
.inventory-trends-auto-refresh__actions .button {
  width: 100%;
}

.products-auto-refresh__grid label > span,
.inventory-trends-auto-refresh__grid label > span {
  display: inline-block;
  margin-bottom: 8px;
}

.billing-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.billing-upcoming-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-soft);
}

.billing-upcoming-card--empty {
  place-items: center;
  min-height: 148px;
  text-align: center;
  color: var(--muted);
  border-style: dashed;
}

.billing-upcoming-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.billing-upcoming-card__amount {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.billing-upcoming-card__meta {
  display: grid;
  gap: 8px;
}

.billing-upcoming-card__meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.billing-upcoming-card__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.billing-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--copy-strong);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.billing-status-badge--paid {
  background: rgba(83, 177, 117, 0.14);
  border-color: rgba(83, 177, 117, 0.22);
  color: #24834a;
}

.billing-status-badge--posted {
  background: rgba(83, 177, 117, 0.14);
  border-color: rgba(83, 177, 117, 0.22);
  color: #24834a;
}

.billing-status-badge--processing {
  background: rgba(88, 123, 255, 0.14);
  border-color: rgba(88, 123, 255, 0.22);
  color: #375ee0;
}

.billing-status-badge--open,
.billing-status-badge--upcoming,
.billing-status-badge--unpaid {
  background: rgba(239, 177, 40, 0.16);
  border-color: rgba(239, 177, 40, 0.22);
  color: #9f6d00;
}

.billing-status-badge--failed {
  background: rgba(217, 87, 87, 0.14);
  border-color: rgba(217, 87, 87, 0.22);
  color: #a63232;
}

.billing-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.billing-link-button.is-active {
  color: var(--text);
  text-decoration-thickness: 2px;
}

.billing-bill-row.is-active td {
  background: color-mix(in srgb, var(--accent-soft) 16%, var(--surface));
}

.billing-detail-empty {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
  color: var(--muted);
}

.billing-detail-panel__content {
  display: grid;
  gap: 18px;
}

.billing-detail-panel__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.billing-detail-panel__title {
  display: grid;
  gap: 6px;
}

.billing-detail-panel__title h3 {
  margin: 0;
}

.billing-detail-panel__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px;
}

.billing-detail-panel__summary > div {
  display: grid;
  gap: 8px;
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.billing-detail-panel__summary span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-detail-panel__summary strong {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.billing-detail-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.billing-detail-panel__actions .button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.billing-detail-groups {
  display: grid;
  gap: 12px;
}

.billing-detail-groups__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-detail-groups__head h4 {
  margin: 0;
}

.billing-detail-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.billing-detail-group-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.billing-detail-group-card strong {
  font-size: 1.2rem;
}

.billing-detail-group-card p {
  margin: 0;
  color: var(--muted);
}

.billing-detail-group-card--empty {
  place-items: center;
  text-align: center;
  color: var(--muted);
  border-style: dashed;
}

.billing-formula-panel {
  order: 999;
}

.hub-table__reason {
  min-width: 200px;
  line-height: 1.55;
}

.products-pagination {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.products-pagination__size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.products-pagination__size span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.products-pagination__size select {
  width: 96px;
  min-height: 40px;
  height: 40px;
}

.report-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-kpi-grid--analytics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-kpi-grid--sales {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-kpi-grid--customers,
.report-kpi-grid--email-marketing {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-kpi-grid--marketing {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-kpi-grid--inventory-trends {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-kpi-grid .hub-kpi {
  min-height: 146px;
}

.report-table-wrap {
  margin-top: 2px;
}

.report-table-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.report-wide-table {
  min-width: 2200px;
}

.report-wide-table--sales {
  min-width: 2580px;
}

.report-wide-table--customers {
  min-width: 1760px;
}

.report-wide-table--marketing {
  min-width: 1820px;
}

.inventory-trend-table {
  table-layout: fixed;
  min-width: 1760px;
}

.report-table-wrap--scroll {
  overflow-x: scroll;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  cursor: grab;
  max-height: min(68vh, 920px);
  padding-bottom: 0;
  touch-action: pan-x pinch-zoom;
  width: 100%;
  max-width: 100%;
}

.report-table-wrap--scroll .hub-table {
  width: max-content;
  min-width: 2200px;
}

.report-table-wrap--scroll .report-wide-table--sales {
  min-width: 2580px;
}

.report-table-wrap--scroll .report-wide-table--customers {
  min-width: 1760px;
}

.report-table-wrap--scroll .report-wide-table--marketing {
  min-width: 1820px;
}

.report-table-wrap--scroll .inventory-trend-table {
  min-width: 1760px;
}

.inventory-trend-table__col--product {
  width: 560px;
}

.inventory-trend-table__col--store {
  width: 260px;
}

.inventory-trend-table__col--inventory,
.inventory-trend-table__col--today,
.inventory-trend-table__col--week,
.inventory-trend-table__col--month {
  width: 150px;
}

.inventory-trend-table__col--region {
  width: 180px;
}

.inventory-trend-table__col--trend {
  width: 220px;
}

.report-table-shell:not(.is-scrollbar-hidden) .report-table-wrap--scroll {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-width: 0;
}

.report-table-wrap--scroll .hub-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.report-sortable-th {
  white-space: nowrap;
}

.report-sort-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: pointer;
}

.report-sort-button:hover,
.report-sort-button:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.report-sort-button__label {
  display: inline-block;
}

.report-sort-button__icon {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  color: color-mix(in srgb, var(--muted) 75%, var(--accent));
  transition: color 140ms ease;
}

.report-sortable-th[aria-sort="ascending"],
.report-sortable-th[aria-sort="descending"] {
  color: var(--accent-strong);
}

.report-sort-button[data-sort-direction="asc"] .report-sort-button__icon,
.report-sort-button[data-sort-direction="desc"] .report-sort-button__icon {
  color: var(--accent-strong);
}

.report-table-wrap--scroll .hub-table__summary-row td {
  top: 47px;
  z-index: 1;
}

.report-table-wrap--scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.report-table-wrap--scroll.is-dragging .hub-table {
  pointer-events: none;
}

.report-table-wrap--scroll::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

.report-table-wrap--scroll::-webkit-scrollbar:horizontal {
  height: 0;
}

.report-table-wrap--scroll::-webkit-scrollbar:vertical {
  width: 12px;
}

.report-table-wrap--scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--accent));
  border-radius: 999px;
}

.report-table-wrap--scroll::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border-radius: 999px;
}

.inventory-trend-product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.inventory-trend-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 84%, var(--surface)) 0%, color-mix(in srgb, var(--accent-soft-strong) 70%, var(--surface)) 100%);
  color: var(--accent-strong);
  font-weight: var(--fw-display);
  letter-spacing: 0.08em;
}

.inventory-trend-product__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.inventory-trend-product__copy.products-title-cell__copy {
  gap: 6px;
  max-width: 100%;
}

.inventory-trend-product__copy .products-title-cell__title {
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.inventory-trend-product__copy .products-title-cell__title-zh {
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.inventory-trend-product__copy > span,
.inventory-trend-product__copy > code {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.inventory-trend-sku-link {
  display: inline-block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.inventory-trend-sku-link > code {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
  transition: color 0.18s ease, box-shadow 0.18s ease;
}

.inventory-trend-sku-link:hover code,
.inventory-trend-sku-link:focus-visible code {
  color: var(--accent-strong);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-strong) 20%, transparent);
}

.inventory-trend-sku-link:focus-visible {
  outline: none;
}

.inventory-trend-store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.inventory-trend-store-tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.inventory-trend-store-tag--muted {
  color: var(--muted);
}

.inventory-trend-number-cell,
.inventory-trend-delta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}

.inventory-trend-number-cell > strong,
.inventory-trend-delta > strong {
  font-size: 22px;
  line-height: 1.1;
}

.inventory-trend-number-cell > span,
.inventory-trend-delta > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.inventory-trend-delta--drop > strong,
.inventory-trend-delta--window > strong {
  color: var(--accent-strong);
}

.inventory-trend-delta--restock > strong {
  color: var(--success);
}

.inventory-trend-delta--flat > strong {
  color: var(--muted);
}

.inventory-trend-sparkline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

.inventory-trend-sparkline__svg {
  width: 180px;
  height: 56px;
  overflow: visible;
}

.inventory-trend-sparkline__line {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inventory-trend-sparkline__point {
  fill: color-mix(in srgb, var(--surface) 24%, var(--accent));
  stroke: var(--surface);
  stroke-width: 1.5;
}

.inventory-trend-sparkline__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.inventory-trend-sparkline__single {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.inventory-trend-sparkline__single > strong {
  color: var(--accent-strong);
  font-size: 20px;
  line-height: 1.1;
}

.inventory-trend-sparkline__single > span,
.inventory-trend-sparkline__empty {
  color: var(--muted);
  font-size: 12px;
}

.inventory-trend-sparkline--empty {
  justify-content: center;
}

.report-table-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 90%, var(--surface)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
  scrollbar-width: auto;
  scrollbar-gutter: stable both-edges;
  width: 100%;
  max-width: 100%;
}

.report-table-scrollbar[hidden] {
  display: none;
}

.report-table-scrollbar__spacer {
  height: 1px;
}

.report-table-scrollbar::-webkit-scrollbar {
  height: 12px;
}

.report-table-scrollbar::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--accent));
  border-radius: 999px;
}

.report-table-scrollbar::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border-radius: 999px;
}

.report-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
}

.report-list--scroll {
  height: clamp(220px, 30vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.report-list--scroll::-webkit-scrollbar {
  width: 10px;
}

.report-list--scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 20%, var(--line-strong));
  border-radius: 999px;
}

.report-list--scroll::-webkit-scrollbar-track {
  background: transparent;
}

.report-list li {
  line-height: 1.7;
}

.sales-highlight-list {
  padding-left: 0;
  gap: 16px;
}

.sales-highlight-list > li {
  list-style: none;
}

.sales-highlight-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.sales-highlight-item__thumb {
  flex-shrink: 0;
}

.sales-highlight-item__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sales-highlight-item__title,
.sales-highlight-item__title-zh {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-highlight-item__title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 16px;
  line-height: 1.55;
}

.sales-highlight-item__title-zh {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--muted-strong);
  line-height: 1.55;
}

.sales-highlight-item__meta {
  display: block;
  color: var(--text);
  line-height: 1.65;
}

.hub-followup-grid--marketing {
  align-items: stretch;
}

.hub-followup-grid--marketing > .hub-subpanel {
  height: 100%;
}

.social-marketing-strategy-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.social-marketing-store-context {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
  box-shadow: var(--shadow-soft);
}

.social-marketing-store-context strong {
  font-size: 16px;
  color: var(--text);
}

.social-marketing-store-context span {
  color: var(--muted-strong);
  line-height: 1.65;
}

.social-marketing-store-context--compact {
  padding: 14px 16px;
  border-radius: 16px;
}

.social-marketing-strategy-stack > .hub-subpanel {
  width: 100%;
}

.email-marketing-followup-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.email-marketing-followup-stack > .hub-subpanel {
  width: 100%;
}

.marketing-twin-panel {
  display: flex;
  flex-direction: column;
}

.marketing-twin-panel--settings {
  justify-content: space-between;
}

.marketing-settings-accordion {
  border-radius: inherit;
}

.marketing-settings-accordion > summary {
  padding: 20px 24px;
}

.marketing-settings-accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.marketing-settings-accordion__copy {
  min-width: 0;
}

.marketing-settings-accordion__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.marketing-settings-accordion__toggle-text--open {
  display: none;
}

.marketing-settings-accordion__indicator {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--surface-soft) 84%, var(--surface));
}

.marketing-settings-accordion__indicator::before,
.marketing-settings-accordion__indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.marketing-settings-accordion__indicator::before {
  width: 8px;
  height: 2px;
}

.marketing-settings-accordion__indicator::after {
  width: 2px;
  height: 8px;
  transition: opacity 140ms ease;
}

.marketing-settings-accordion[open] .marketing-settings-accordion__toggle-text--closed {
  display: none;
}

.marketing-settings-accordion[open] .marketing-settings-accordion__toggle-text--open {
  display: inline;
}

.marketing-settings-accordion[open] .marketing-settings-accordion__indicator::after {
  opacity: 0;
}

.marketing-settings-accordion__content {
  display: grid;
  gap: 18px;
}

.marketing-twin-panel--queue {
  min-height: 100%;
}

.marketing-queue-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
}

.marketing-connection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.marketing-connection-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.marketing-connection-summary strong {
  margin-right: 6px;
  color: var(--text);
}

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

.marketing-connection-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.marketing-connection-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.marketing-connection-card__head h4 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.marketing-connection-card__head p,
.marketing-connection-card__hint {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.marketing-connection-card__managed {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(81, 103, 255, 0.08);
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.6;
}

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

.marketing-connection-card__readonly {
  display: grid;
  gap: 10px;
}

.marketing-connection-card__readonly-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(246, 248, 255, 0.9);
  border: 1px solid rgba(202, 213, 255, 0.85);
}

.marketing-connection-card__readonly-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-connection-card__readonly-item strong {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.marketing-connection-card__fields label {
  display: grid;
  gap: 8px;
}

.marketing-connection-card__fields label span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-connection-card__field--full {
  grid-column: 1 / -1;
}

.marketing-connection-card__store-binding {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(244, 247, 255, 0.92);
  border: 1px solid rgba(202, 213, 255, 0.85);
}

.marketing-connection-card__store-binding-head {
  display: grid;
  gap: 4px;
}

.marketing-connection-card__store-binding-head strong {
  font-size: 14px;
  color: var(--text);
}

.marketing-connection-card__store-binding-head p {
  margin: 0;
}

.marketing-connection-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 简洁连接卡片 */
.simple-connection-card {
  display: grid;
  gap: 16px;
}

.guided-connection-card__intro {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.guided-connection-card__steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.65;
}

.guided-connection-card__steps li::marker {
  color: var(--accent-strong);
  font-weight: var(--fw-strong);
}

.guided-connection-card__connected {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.simple-connection-card .simple-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.simple-connection-card .simple-card__connect-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  border-radius: 14px;
  font-weight: var(--fw-strong);
}

.simple-connection-card .simple-card__accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simple-connection-card .simple-card__account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.simple-connection-card .simple-card__account small {
  color: var(--muted);
  font-size: 12px;
}

.simple-connection-card .simple-card__connected-at {
  margin: 0;
  font-size: 13px;
}

.guided-connection-card__advanced {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 88%, transparent);
}

.guided-connection-card__advanced summary {
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: var(--fw-strong);
}

.guided-connection-card__advanced[open] summary {
  margin-bottom: 2px;
}

.guided-connection-card__advanced-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.marketing-connection-card__footer a {
  color: var(--accent-strong);
  font-weight: var(--fw-medium);
}

.marketing-connection-card__actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button--tiny {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

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

.marketing-config-grid__full {
  grid-column: 1 / -1;
}

.marketing-config-toggle {
  display: grid;
  gap: 12px;
}

.marketing-config-toggle > .hub-checkbox {
  margin-top: 2px;
}

.marketing-config-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.marketing-config-toggle__stack {
  display: grid;
  gap: 10px;
}

.marketing-channel-config-grid,
.marketing-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.marketing-channel-config-card,
.marketing-channel-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.marketing-channel-config-card > span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-channel-config-card .hub-checkbox__text {
  font-size: 14px;
}

.marketing-channel-card.is-disabled {
  opacity: 0.78;
}

.marketing-channel-card__head,
.marketing-queue-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.marketing-channel-card__head h3 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.marketing-channel-card__eyebrow {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-channel-card__copy,
.marketing-queue-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.marketing-channel-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.marketing-badge,
.marketing-priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: var(--fw-semibold);
}

.marketing-badge--budget {
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface));
}

.marketing-badge--success {
  background: color-mix(in srgb, var(--success-soft) 88%, var(--surface));
  color: var(--success);
}

.marketing-badge--warning {
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface));
  color: var(--accent-strong);
}

.marketing-badge--danger {
  background: color-mix(in srgb, var(--danger-soft) 82%, var(--surface));
  color: var(--danger);
}

.customer-segment-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.customer-segment-item strong,
.email-recipient-item__head strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.customer-segment-item p,
.email-recipient-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.customer-segment-item > span {
  flex-shrink: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: var(--fw-strong);
}

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

.customer-store-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.customer-store-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-store-card__head strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.customer-store-card > p,
.customer-store-card__error {
  margin: 0;
  line-height: 1.6;
}

.customer-store-card > p {
  color: var(--muted);
}

.customer-store-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.customer-store-card__error {
  color: var(--danger);
}

.customer-table-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.customer-table-identity strong {
  font-size: 16px;
  line-height: 1.35;
}

.customer-table-identity span {
  color: var(--muted);
  line-height: 1.55;
}

.email-template-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--surface-raised)) 0%, var(--surface) 100%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.email-template-card:hover,
.email-template-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line-strong));
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(79, 111, 255, 0.12);
  outline: none;
}

.email-template-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  box-shadow: 0 16px 36px rgba(79, 111, 255, 0.14);
}

.email-template-card__head,
.email-recipient-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.email-template-card__head strong {
  font-size: 17px;
  line-height: 1.35;
}

.email-template-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.email-template-card__meta,
.email-recipient-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

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

.email-marketing-composer-actions {
  margin-top: 36px;
}

.email-marketing-ai-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.email-marketing-send-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.email-marketing-send-summary__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--surface-raised)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.email-marketing-send-summary__item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-marketing-send-summary__item strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
  word-break: break-word;
}

.email-marketing-send-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.email-marketing-preview-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--surface-raised)) 0%, var(--surface) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.email-marketing-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.email-marketing-preview-head strong {
  font-size: 18px;
  line-height: 1.3;
}

.email-marketing-preview-frame {
  width: 100%;
  min-height: 680px;
  border: 0;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
}

.email-recipient-item {
  display: grid;
  gap: 8px;
}

.marketing-channel-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.marketing-channel-card__stats span,
.marketing-queue-item__meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.marketing-channel-card__line {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.marketing-channel-card__section {
  display: grid;
  gap: 10px;
}

.marketing-channel-card__section > strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.marketing-inline-list {
  padding-left: 18px;
  gap: 8px;
}

.marketing-inline-list li {
  line-height: 1.65;
}

.marketing-mini-products {
  display: grid;
  gap: 10px;
}

.marketing-mini-product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.marketing-mini-product__thumb {
  width: 56px;
  height: 56px;
  overflow: visible;
  align-self: start;
}

.marketing-mini-product__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.marketing-mini-product__content strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.marketing-mini-product__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  line-height: 1.5;
}

.marketing-mini-product__title-zh,
.marketing-mini-product__meta,
.marketing-mini-product__content span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  line-height: 1.5;
}

.marketing-queue-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 156px;
  max-height: none;
  padding-left: 0;
  gap: 14px;
  align-content: start;
}

.marketing-queue-list > li {
  list-style: none;
}

.marketing-queue-list .report-list__empty {
  margin-left: 0;
}

.marketing-queue-list__state {
  list-style: none;
}

.marketing-queue-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.social-marketing-history-shell {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 16px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--surface-raised)) 0%, var(--surface) 100%);
  overflow: hidden;
}

.social-marketing-history-shell__head {
  margin-bottom: 0;
  padding: 0 16px;
}

.social-marketing-queue-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.social-marketing-queue-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.social-marketing-queue-actions__note {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.marketing-state-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.marketing-state-card strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.marketing-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.marketing-state-card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface));
  color: var(--accent);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
}

.marketing-queue-item strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.marketing-reason-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketing-reason-tags span,
.marketing-tag-list li,
.marketing-empty-inline {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.4;
}

.marketing-tag-list {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketing-tag-list li {
  list-style: none;
}

.social-marketing-queue-copy,
.social-marketing-calendar-copy,
.social-marketing-product-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.social-marketing-queue-item__identity {
  display: grid;
  grid-template-columns: var(--social-marketing-select-track, 24px) var(--social-marketing-thumb-size, 72px) minmax(0, 1fr);
  align-items: start;
  gap: var(--social-marketing-card-gap, 16px);
  min-width: 0;
  flex: 1 1 auto;
}

.social-marketing-queue-item,
.social-marketing-history-item {
  --social-marketing-select-track: 24px;
  --social-marketing-thumb-size: 72px;
  --social-marketing-card-gap: 16px;
  --social-marketing-body-offset: calc(
    var(--social-marketing-select-track)
    + var(--social-marketing-thumb-size)
    + (var(--social-marketing-card-gap) * 2)
  );
}

.social-marketing-queue-item__select {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.social-marketing-queue-item__select input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.social-marketing-queue-item__select input:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.social-marketing-queue-item__thumb {
  width: var(--social-marketing-thumb-size, 72px);
  height: var(--social-marketing-thumb-size, 72px);
  align-self: start;
}

.social-marketing-history-item__identity {
  display: grid;
  grid-template-columns: var(--social-marketing-select-track, 24px) var(--social-marketing-thumb-size, 72px) minmax(0, 1fr);
  align-items: start;
  gap: var(--social-marketing-card-gap, 16px);
  min-width: 0;
  flex: 1 1 auto;
}

.social-marketing-history-item__identity > :first-child {
  grid-column: 2;
}

.social-marketing-history-item__identity > :last-child {
  grid-column: 3;
}

.social-marketing-history-item__body {
  display: grid;
  gap: 12px;
  padding-left: var(--social-marketing-body-offset);
}

.social-marketing-queue-item__body {
  display: grid;
  gap: 12px;
  padding-left: var(--social-marketing-body-offset);
}

.social-marketing-history-item__body > *,
.social-marketing-queue-item__body > * {
  min-width: 0;
}

.social-marketing-queue-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-marketing-pinterest-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-marketing-pinterest-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.social-marketing-calendar-item__identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.social-marketing-calendar-item__thumb {
  width: 72px;
  height: 72px;
  align-self: start;
}

.social-marketing-candidate-item__identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.social-marketing-candidate-item__thumb {
  width: 72px;
  height: 72px;
  align-self: start;
}

.social-marketing-queue-copy strong,
.social-marketing-calendar-copy strong,
.social-marketing-product-title strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.social-marketing-queue-copy span,
.social-marketing-calendar-copy span,
.social-marketing-product-title span,
.social-marketing-account-line {
  color: var(--muted);
  line-height: 1.6;
}

.social-marketing-sku-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--line-strong) 72%, transparent);
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.social-marketing-sku-link:hover,
.social-marketing-sku-link:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: color-mix(in srgb, var(--accent-strong) 48%, transparent);
}

.social-marketing-sku-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-strong) 18%, transparent);
  border-radius: 4px;
}

.social-marketing-queue-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.social-marketing-queue-caption {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}

.social-marketing-queue-cta-link {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.social-marketing-caption-link {
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent-strong) 48%, transparent);
  word-break: break-all;
}

.social-marketing-caption-link:hover,
.social-marketing-caption-link:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.social-marketing-caption-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-strong) 18%, transparent);
  border-radius: 4px;
}

.social-marketing-platform-list {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-marketing-platform-list li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.4;
}

.social-marketing-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 82%, var(--surface));
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: var(--fw-strong);
}

.social-marketing-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.social-marketing-overview-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent-soft) 20%, transparent) 0%, transparent 36%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-soft);
}

.social-marketing-overview-card__head {
  display: grid;
  gap: 8px;
}

.social-marketing-overview-card__eyebrow {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-strong);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.social-marketing-overview-card__head h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.social-marketing-overview-card__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  min-height: 104px;
}

.social-marketing-overview-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-marketing-overview-metric {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 108px;
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--accent-soft));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-raised) 90%, var(--surface));
}

.social-marketing-overview-metric__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1.45;
}

.social-marketing-overview-metric__value {
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.social-marketing-overview-metric--compact .social-marketing-overview-metric__value {
  font-size: 14px;
  line-height: 1.5;
}

.social-marketing-overview-card__focus {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}

.social-marketing-overview-card__focus-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-marketing-overview-card__focus-value {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-marketing-overview-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
}

.social-marketing-overview-card__footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 54%, var(--surface));
  color: var(--accent-strong);
  font-weight: var(--fw-strong);
  text-decoration: none;
}

@media (max-width: 900px) {
  .social-marketing-overview-grid {
    grid-template-columns: 1fr;
  }

  .social-marketing-overview-card__copy {
    min-height: 0;
  }

  .social-marketing-overview-card__metrics {
    grid-template-columns: 1fr;
  }

  .social-marketing-overview-metric {
    min-height: 0;
  }

  .social-marketing-queue-item,
  .social-marketing-history-item {
    --social-marketing-thumb-size: 56px;
    --social-marketing-card-gap: 12px;
    --social-marketing-body-offset: calc(
      var(--social-marketing-select-track)
      + var(--social-marketing-thumb-size)
      + (var(--social-marketing-card-gap) * 2)
    );
  }

  .social-marketing-queue-item__identity {
    grid-template-columns: var(--social-marketing-select-track, 24px) var(--social-marketing-thumb-size, 56px) minmax(0, 1fr);
  }

  .social-marketing-queue-item__thumb {
    width: var(--social-marketing-thumb-size, 56px);
    height: var(--social-marketing-thumb-size, 56px);
  }

  .social-marketing-history-item__identity {
    grid-template-columns: var(--social-marketing-select-track, 24px) var(--social-marketing-thumb-size, 56px) minmax(0, 1fr);
  }

  .social-marketing-history-item__body {
    padding-left: var(--social-marketing-body-offset);
  }

  .social-marketing-calendar-item__identity {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .social-marketing-calendar-item__thumb {
    width: 56px;
    height: 56px;
  }

  .social-marketing-candidate-item__identity {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .social-marketing-candidate-item__thumb {
    width: 56px;
    height: 56px;
  }
}

.report-sortable-th--product {
  min-width: 360px;
}

.sales-product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sales-product-head .report-sort-button {
  flex: 1 1 auto;
  min-width: 0;
}

.sales-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
  flex: 0 0 auto;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.sales-select-all input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.report-list__empty {
  list-style: none;
  margin-left: -18px;
  color: var(--muted);
}

.hub-placeholder-card p:last-child {
  margin: 0;
}

.hub-collapsible > summary,
.hub-collapsible-inline > summary,
.hub-log-group > summary {
  list-style: none;
  cursor: pointer;
}

.hub-collapsible > summary::-webkit-details-marker,
.hub-collapsible-inline > summary::-webkit-details-marker,
.hub-log-group > summary::-webkit-details-marker {
  display: none;
}

.hub-collapsible > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  transition: background 140ms ease;
}

.hub-collapsible > summary:hover {
  background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
}

.hub-collapsible > summary span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.hub-collapsible__content {
  padding: 0 24px 24px;
}

.hub-collapsible-inline {
  padding: 0 4px;
}

.hub-collapsible-inline > summary {
  padding: 4px 0;
  color: var(--accent-strong);
  font-weight: var(--fw-medium);
}

.hub-log-group {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hub-log-group > summary {
  padding: 14px 16px;
  font-weight: var(--fw-medium);
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, var(--surface-soft)) 0%, var(--surface-soft) 100%);
}

.log {
  min-height: 240px;
  max-height: 420px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: #0c1524;
  color: #dbe6ff;
  white-space: pre-wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="midnight"] .log {
  background: #08101b;
}

.hidden {
  display: none !important;
}

@media (max-width: 1540px) {
  .hub-theme-badge {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 1280px) {
  .hub-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .report-filter-grid,
  .report-filter-grid--analytics,
  .report-filter-grid--billing,
  .report-filter-grid--sales,
  .report-filter-grid--customers,
  .report-filter-grid--email-marketing,
  .report-filter-grid--marketing,
  .report-kpi-grid,
  .report-kpi-grid--analytics,
  .report-kpi-grid--sales,
  .report-kpi-grid--customers,
  .report-kpi-grid--email-marketing,
  .report-kpi-grid--marketing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page-head,
  .hub-main-grid,
  .hub-upload-grid,
  .hub-split-grid,
  .hub-publish-layout,
  .hub-commerce-grid,
  .hub-collections-grid,
  .hub-followup-grid,
  .hub-theme-grid {
    grid-template-columns: 1fr;
  }

  .hub-collections-pair-head {
    grid-template-columns: 1fr;
  }

  .hub-lower-grid {
    grid-template-columns: 1fr;
  }

  .hub-kpi-grid--orders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-config-grid,
  .marketing-connection-grid,
  .marketing-connection-card__fields,
  .marketing-channel-config-grid,
  .marketing-channel-grid,
  .customer-store-grid,
  .email-marketing-composer-grid {
    grid-template-columns: 1fr;
  }

  .orders-auto-refresh-bar__controls {
    justify-content: flex-start;
  }
}

@media (min-width: 1600px) {
  .product-edit-layout {
    grid-template-columns: minmax(860px, 1fr) 320px;
  }
}

@media (max-width: 980px) {
  .product-edit-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hub-layout {
    grid-template-columns: 1fr;
  }

  body.hub-sidebar-collapsed .hub-layout {
    grid-template-columns: 1fr;
  }

  body.hub-sidebar-collapsed .hub-sidebar {
    display: none;
  }

  .hub-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .hub-topbar {
    padding: 16px 20px;
  }

  .hub-topbar,
  .hub-topbar__right {
    flex-wrap: wrap;
  }

  .hub-content {
    padding: 20px;
  }

  .hub-step-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-processing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .image-processing-frame-wrap,
  .image-processing-frame {
    min-height: 860px;
  }
}

@media (max-width: 720px) {
  .hub-sidebar__nav,
  .hub-sidebar__bottom,
  .hub-step-strip,
  .report-filter-grid,
  .report-filter-grid--analytics,
  .report-filter-grid--billing,
  .report-filter-grid--sales,
  .report-filter-grid--marketing,
  .report-kpi-grid,
  .report-kpi-grid--analytics,
  .report-kpi-grid--sales,
  .report-kpi-grid--marketing,
  .hub-card-grid,
  .store-decoration-summary-grid,
  .hub-inline-actions--stacked,
  .hub-doba-connection-options-row,
  .hub-mini-metrics,
  .hub-kpi-grid,
  .hub-kpi-grid--orders {
    grid-template-columns: 1fr;
  }

  .hub-table {
    min-width: 540px;
  }

  .hub-topbar__left,
  .hub-topbar__right {
    width: 100%;
  }

  .hub-topbar__right {
    justify-content: space-between;
  }

  .report-card {
    padding: 24px 20px 28px;
  }

  .hub-store-identity__head {
    flex-direction: column;
  }

  .hub-store-identity__overview {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .button {
    width: 100%;
  }

  .hub-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-settings-accordion__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-field-head {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-queue-item__head {
    flex-direction: column;
    align-items: stretch;
  }
}

.meta-launch-public-body {
  background:
    radial-gradient(circle at top left, rgba(123, 97, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 186, 112, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f7ff 0%, #f9fbff 100%);
}

.meta-launch-public-shell {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
  display: grid;
  gap: 24px;
}

.meta-launch-public-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background:
    radial-gradient(circle at top left, rgba(123, 97, 255, 0.16), transparent 34%),
    radial-gradient(circle at right center, rgba(255, 186, 112, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.meta-launch-public-hero__copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.meta-launch-public-hero__copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.02;
}

.meta-launch-public-hero__copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted-text);
}

.meta-launch-public-hero__actions {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.meta-launch-app-shell {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 72px;
  display: grid;
  gap: 24px;
}

.meta-launch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 0 8px;
}

.meta-launch-topbar__left,
.meta-launch-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-launch-brand {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.meta-launch-brand__mark {
  width: 18px;
  height: 24px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #8b73ff 0%, #7251ff 100%);
  clip-path: polygon(50% 0%, 72% 22%, 72% 64%, 100% 100%, 0% 100%, 28% 64%, 28% 22%);
}

.meta-launch-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-launch-nav__item,
.meta-launch-account-button,
.meta-launch-icon-button,
.meta-launch-avatar-button {
  border: 0;
  background: transparent;
  font: inherit;
  color: #7a7895;
}

.meta-launch-nav__item {
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.meta-launch-nav__item:hover,
.meta-launch-nav__item.is-active {
  background: rgba(255, 255, 255, 0.75);
  color: #26233d;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.meta-launch-account-button {
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(240, 236, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.08);
  color: #6f6d8e;
  cursor: pointer;
  font-weight: 700;
}

.meta-launch-icon-button,
.meta-launch-avatar-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(244, 241, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.meta-launch-avatar-button {
  font-weight: 800;
  color: #6e53ff;
}

.meta-launch-popover-wrap {
  position: relative;
}

.meta-launch-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, 90vw);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  z-index: 25;
  display: grid;
  gap: 14px;
}

.meta-launch-popover--menu {
  width: 220px;
  padding: 10px;
}

.meta-launch-popover--profile {
  width: 260px;
}

.meta-launch-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.meta-launch-menu__item.is-active,
.meta-launch-menu__item:hover {
  background: rgba(124, 92, 255, 0.08);
  color: #6e53ff;
}

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

.meta-launch-popover__metrics div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(244, 246, 255, 0.9);
}

.meta-launch-popover__metrics span {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.meta-launch-popover__metrics strong {
  font-size: 1.12rem;
}

.meta-launch-account-summary-card {
  display: grid;
  gap: 10px;
}

.meta-launch-account-summary-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(123, 128, 170, 0.12);
}

.meta-launch-account-summary-card__row:last-child {
  border-bottom: 0;
}

.meta-launch-account-summary-card__row span {
  color: var(--text-subtle);
}

.meta-launch-popover__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-launch-popover--profile p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.meta-launch-popover--profile span {
  color: var(--text-subtle);
  line-height: 1.6;
}

.meta-launch-view {
  display: grid;
  gap: 24px;
}

.meta-launch-home-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 28px;
  align-items: center;
  min-height: 720px;
  padding: 42px 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top center, rgba(139, 115, 255, 0.18), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(255, 203, 140, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
}

.meta-launch-home-stage__content {
  display: grid;
  gap: 28px;
  align-content: center;
  min-height: 100%;
}

.meta-launch-home-stage.is-manual-setup {
  align-items: start;
  min-height: 620px;
}

.meta-launch-home-stage.is-manual-setup .meta-launch-home-stage__content {
  align-content: start;
  gap: 20px;
}

.meta-launch-home-stage.is-manual-setup .meta-launch-home-stage__copy {
  display: none;
}

.meta-launch-home-stage.is-manual-setup .meta-launch-url-card,
.meta-launch-home-stage.is-manual-setup .meta-launch-manual-setup {
  width: min(860px, 100%);
}

.meta-launch-home-stage.is-manual-setup .meta-launch-home-stage__visual,
.meta-launch-home-stage.is-manual-setup .meta-launch-ai-panel {
  align-content: start;
  min-height: 100%;
}

.meta-launch-home-stage__copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.meta-launch-home-stage__eyebrow,
.meta-launch-section-head__eyebrow {
  display: inline-flex;
  width: fit-content;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e53ff;
  font-weight: 700;
}

.meta-launch-home-stage__copy h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.meta-launch-home-stage__copy p {
  margin: 0;
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted-text);
}

.meta-launch-url-card {
  width: min(680px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 30px;
  background: rgba(231, 227, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.08);
}

.meta-launch-url-card__label {
  font-size: 1.02rem;
  font-weight: 800;
  color: #37335a;
}

.meta-launch-url-card__shell {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(124, 92, 255, 0.12);
  display: grid;
  gap: 14px;
}

.meta-launch-url-card__shell input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
  color: #2a2643;
}

.meta-launch-url-card__shell input::placeholder {
  color: #b0afc5;
}

.meta-launch-url-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-launch-url-card__secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b0a8d7;
  font-size: 0.94rem;
}

.meta-launch-url-card__asset-button {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.16);
  background: rgba(247, 245, 255, 0.92);
  color: #5b587b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.meta-launch-url-card__boost {
  min-width: 138px;
}

.meta-launch-inline-status {
  min-height: 78px;
  align-content: center;
}

.meta-launch-manual-setup {
  display: grid;
  gap: 22px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.98), rgba(241, 238, 255, 0.92));
  border: 1px solid rgba(124, 92, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.meta-launch-manual-setup[hidden] {
  display: none !important;
}

.meta-launch-manual-setup label,
.meta-launch-manual-stack {
  display: grid;
  gap: 10px;
}

.meta-launch-manual-setup span,
.meta-launch-manual-heading strong,
.meta-launch-manual-heading span {
  color: #716f8f;
}

.meta-launch-manual-setup label > span,
.meta-launch-manual-heading strong {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-launch-manual-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.meta-launch-manual-heading span {
  font-size: 0.84rem;
}

.meta-launch-manual-setup input,
.meta-launch-manual-setup textarea,
.meta-launch-manual-setup select {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, 0.14);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  color: var(--text);
}

.meta-launch-manual-setup textarea {
  min-height: 156px;
  resize: vertical;
}

.meta-launch-manual-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.meta-launch-goal-card {
  appearance: none;
  text-align: left;
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(124, 92, 255, 0.14);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.meta-launch-goal-card:hover,
.meta-launch-goal-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(74, 99, 255, 0.3);
  box-shadow: 0 18px 40px rgba(76, 93, 255, 0.12);
  background: linear-gradient(180deg, rgba(243, 242, 255, 0.98), rgba(238, 245, 255, 0.94));
}

.meta-launch-goal-card strong {
  font-size: 1.38rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #2d2b4a;
}

.meta-launch-goal-card small {
  font-size: 0.82rem;
  color: #8a88a8;
}

.meta-launch-goal-card p {
  margin: auto 0 0;
  color: #777494;
  line-height: 1.55;
}

.meta-launch-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-launch-market-chips[hidden] {
  display: none !important;
}

.meta-launch-market-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(99, 104, 255, 0.12);
  color: #4b62ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.meta-launch-home-stage__visual {
  display: grid;
  gap: 22px;
  align-content: stretch;
  justify-items: stretch;
}

.meta-launch-home-stage.is-dense {
  min-height: 620px;
}

.meta-launch-ai-panel {
  width: min(660px, 100%);
  min-height: 560px;
  display: grid;
  align-content: center;
  justify-self: stretch;
}

.meta-launch-ai-panel__card {
  display: grid;
  gap: 22px;
  min-height: 560px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 211, 153, 0.18), transparent 26%),
    radial-gradient(circle at left center, rgba(126, 96, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 248, 255, 0.94));
  border: 1px solid rgba(124, 92, 255, 0.12);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.meta-launch-ai-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.meta-launch-ai-panel__head h3 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.meta-launch-ai-panel__dotwave,
.meta-launch-ai-panel__status,
.meta-launch-ai-panel__alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #6456ff;
  background: rgba(100, 86, 255, 0.12);
}

.meta-launch-ai-panel__alert {
  min-width: 42px;
  padding: 0;
}

.meta-launch-ai-panel__status {
  color: #4f4b69;
}

.meta-launch-ai-panel__steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.meta-launch-ai-panel__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9a96b8;
}

.meta-launch-ai-panel__steps li span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(99, 104, 255, 0.1);
  color: #6b58ff;
  font-weight: 800;
}

.meta-launch-ai-panel__steps li strong {
  font-size: 1rem;
  font-weight: 700;
}

.meta-launch-ai-panel__steps li.is-active strong,
.meta-launch-ai-panel__steps li.is-done strong {
  color: #625a86;
}

.meta-launch-ai-panel__checkpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(108, 92, 255, 0.08);
  color: #8d8ab0;
  font-size: 0.94rem;
  font-weight: 700;
}

.meta-launch-ai-panel__checkpoint span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(99, 104, 255, 0.12);
  color: #655eff;
  font-size: 0.82rem;
}

.meta-launch-ai-panel__checkpoint.is-done {
  color: #6f6b8d;
}

.meta-launch-ai-panel__fallback-stage {
  display: grid;
  gap: 18px;
  align-content: start;
}

.meta-launch-ai-panel__assist-card {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(124, 92, 255, 0.12);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.meta-launch-ai-panel__assist-copy {
  display: grid;
  gap: 10px;
}

.meta-launch-ai-panel__assist-copy strong {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.meta-launch-ai-panel__assist-copy p {
  margin: 0;
  color: #72708b;
  line-height: 1.7;
}

.meta-launch-ai-panel__frame {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 92, 255, 0.12);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.meta-launch-ai-panel__frame-top {
  display: grid;
  gap: 4px;
}

.meta-launch-ai-panel__frame-top span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c88aa;
}

.meta-launch-ai-panel__frame-top small {
  color: #6f6b8d;
  font-size: 1rem;
}

.meta-launch-ai-panel__frame-media {
  overflow: hidden;
  border-radius: 20px;
  min-height: 220px;
  background: linear-gradient(180deg, rgba(243, 246, 255, 0.98), rgba(238, 241, 255, 0.92));
}

.meta-launch-ai-panel__frame-media img {
  width: 100%;
  min-height: 220px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta-launch-ai-panel__frame-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(109, 92, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(252, 252, 255, 0.98), rgba(241, 243, 255, 0.92));
}

.meta-launch-ai-panel__frame-placeholder strong {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(106, 95, 255, 0.14);
  color: #5f56ff;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.meta-launch-ai-panel__frame-copy {
  display: grid;
  gap: 8px;
}

.meta-launch-ai-panel__frame-copy strong {
  font-size: 1.12rem;
  line-height: 1.4;
}

.meta-launch-ai-panel__frame-copy p,
.meta-launch-ai-panel__card > p {
  margin: 0;
  color: #72708b;
  line-height: 1.7;
}

.meta-launch-ai-panel__inspect-frame {
  display: grid;
  gap: 16px;
  min-height: 318px;
  padding: 24px 24px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 170, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.94));
  border: 1px solid rgba(124, 92, 255, 0.1);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

.meta-launch-ai-panel__inspect-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.meta-launch-ai-panel__inspect-head > div {
  display: grid;
  gap: 6px;
}

.meta-launch-ai-panel__inspect-head strong {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.meta-launch-ai-panel__inspect-head span,
.meta-launch-ai-panel__inspect-head small {
  color: #8b87a8;
}

.meta-launch-ai-panel__inspect-head small {
  font-size: 0.86rem;
  font-weight: 700;
}

.meta-launch-ai-panel__inspect-canvas {
  display: grid;
  overflow: hidden;
  min-height: 188px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(253, 253, 255, 0.98), rgba(243, 245, 255, 0.92));
  border: 1px solid rgba(124, 92, 255, 0.08);
}

.meta-launch-ai-panel__inspect-canvas img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  display: block;
}

.meta-launch-ai-panel__inspect-placeholder {
  display: grid;
  place-items: center;
  min-height: 188px;
}

.meta-launch-ai-panel__inspect-placeholder strong {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(106, 95, 255, 0.14);
  color: #5f56ff;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.meta-launch-ai-panel__insight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-launch-ai-panel__insight-grid--fallback article {
  min-height: 126px;
  align-content: start;
}

.meta-launch-ai-panel__insight-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(124, 92, 255, 0.1);
}

.meta-launch-ai-panel__insight-grid span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e8aa8;
}

.meta-launch-ai-panel__insight-grid strong {
  font-size: 1.08rem;
  line-height: 1.35;
  color: #2d2b4a;
}

.meta-launch-ai-panel__insight-grid small {
  color: #7a7793;
  line-height: 1.55;
}

.meta-launch-ai-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-launch-ai-panel__footer {
  margin-top: auto;
  color: #9a96b8;
  font-size: 0.94rem;
}

.meta-launch-ai-panel__surface-cloud {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  min-height: 260px;
  perspective: 1000px;
}

.meta-launch-ai-panel__surface-cloud span {
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  line-height: 1;
  font-weight: 800;
  color: rgba(86, 89, 123, 0.24);
  filter: blur(1.6px);
  transform: rotateY(-18deg);
}

.meta-launch-ai-panel__surface-cloud span.is-active {
  color: #615c83;
  filter: blur(0);
  transform: rotateY(-18deg) translateX(22px);
}

.meta-launch-create-workspace-nav {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.meta-launch-create-workspace-nav[hidden] {
  display: none !important;
}

.meta-launch-create-workspace-nav__item {
  appearance: none;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.meta-launch-create-workspace-nav__item:hover,
.meta-launch-create-workspace-nav__item.is-active {
  transform: translateY(-2px);
  border-color: rgba(102, 90, 255, 0.24);
  box-shadow: 0 18px 42px rgba(88, 84, 220, 0.09);
  background: linear-gradient(180deg, rgba(246, 247, 255, 0.98), rgba(238, 242, 255, 0.94));
}

.meta-launch-create-workspace-nav__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(102, 90, 255, 0.1);
  color: #6357ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.meta-launch-create-workspace-nav__item strong {
  font-size: 1.06rem;
  line-height: 1.3;
  color: #2c2948;
}

.meta-launch-surface-cloud {
  width: min(420px, 100%);
  min-height: 360px;
  display: grid;
  place-items: center;
}

.meta-launch-surface-cloud__stack {
  display: grid;
  gap: 6px;
  justify-items: center;
  transform: perspective(900px) rotateY(-16deg);
}

.meta-launch-surface-cloud__item {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(78, 82, 119, 0.24);
  filter: blur(1.8px);
  transition: transform 180ms ease, color 180ms ease, filter 180ms ease;
}

.meta-launch-surface-cloud__item.is-active {
  color: #5f5b7f;
  filter: blur(0);
  transform: translateX(24px);
}

.meta-launch-runtime-panel {
  width: min(410px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 92, 255, 0.12);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 14px;
}

.meta-launch-runtime-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta-launch-runtime-panel > p {
  margin: 0;
  line-height: 1.7;
}

.meta-launch-runtime-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-launch-create-dashboard,
.meta-launch-create-bottom {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.meta-launch-create-dashboard.is-brief-condensed {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
}

.meta-launch-create-bottom[hidden],
.meta-launch-analysis-grid[hidden],
.meta-launch-create-dashboard[hidden] {
  display: none !important;
}

.meta-launch-setup-card,
.meta-launch-preview-stage,
.meta-launch-preview-studio,
.meta-launch-launchpad {
  padding: 24px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 255, 0.92));
}

.meta-launch-preview-stage,
.meta-launch-launchpad {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 249, 255, 0.93)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.1), transparent 34%);
}

.meta-launch-create-dashboard.is-prelaunch .meta-launch-preview-stage,
.meta-launch-create-dashboard.is-prelaunch .meta-launch-setup-card {
  min-height: 720px;
}

.meta-agent-form-grid--public {
  margin-top: 0;
}

.meta-launch-brief-summary {
  display: grid;
  gap: 16px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(239, 241, 255, 0.96), rgba(247, 248, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

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

.meta-launch-brief-summary__card {
  display: grid;
  gap: 8px;
  padding: 16px 16px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.meta-launch-brief-summary__card span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-launch-brief-summary__card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.meta-launch-brief-summary > p {
  margin: 0;
  color: var(--text-subtle);
  line-height: 1.65;
}

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

.meta-launch-analysis-shell {
  display: grid;
  gap: 22px;
  padding: 26px;
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.92)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.1), transparent 30%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.meta-launch-section-head--analysis {
  align-items: flex-start;
}

.meta-launch-analysis-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-launch-analysis-tab {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-subtle);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.meta-launch-analysis-tab:hover,
.meta-launch-analysis-tab.is-active {
  color: #2457ff;
  border-color: rgba(36, 87, 255, 0.24);
  background: rgba(36, 87, 255, 0.1);
  transform: translateY(-1px);
}

.meta-launch-analysis-summary {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meta-launch-analysis-summary-card {
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 246, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-launch-analysis-summary-card span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-launch-analysis-summary-card strong {
  font-size: 1.08rem;
  line-height: 1.35;
}

.meta-launch-analysis-summary-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-subtle);
}

.meta-launch-launchpad__subcard {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(243, 246, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

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

.meta-launch-analysis-grid .meta-agent-result-card[hidden] {
  display: none !important;
}

.meta-launch-analysis-grid .meta-agent-result-card.is-emphasized {
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.09);
}

.meta-launch-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.meta-launch-section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.02;
}

.meta-launch-section-head p {
  margin: 0;
  color: var(--text-subtle);
  max-width: 720px;
}

.meta-launch-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-launch-toolbar select,
.meta-launch-toolbar input {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--text);
}

.meta-launch-toolbar--assets input {
  min-width: 280px;
}

.meta-launch-project-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-launch-project-catalog,
.meta-launch-project-report-shell {
  display: grid;
  gap: 20px;
}

.meta-launch-project-report-shell__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.meta-launch-project-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
}

.meta-launch-project-card > * {
  position: relative;
  z-index: 2;
}

.meta-launch-project-card__hitbox {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  cursor: pointer;
}

.meta-launch-project-card.is-selected {
  border-color: rgba(124, 92, 255, 0.24);
  box-shadow: 0 26px 70px rgba(101, 80, 255, 0.12);
}

.meta-launch-project-card--support {
  background:
    linear-gradient(180deg, rgba(247, 248, 255, 0.96), rgba(241, 243, 255, 0.9)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.08), transparent 36%);
  border-style: dashed;
  border-color: rgba(124, 92, 255, 0.22);
}

.meta-launch-project-card strong {
  font-size: 1.38rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.meta-launch-project-card p {
  margin: 0;
  color: #918eae;
  font-size: 1rem;
  line-height: 1.6;
}

.meta-launch-project-card__preview {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 245, 255, 0.96), rgba(236, 239, 255, 0.9));
  border: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.meta-launch-project-card__preview img {
  width: 100%;
  min-height: 220px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta-launch-project-card__placeholder {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #8f8aa8;
}

.meta-launch-project-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-launch-project-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6e53ff;
  background: rgba(124, 92, 255, 0.12);
}

.meta-launch-project-badge--status {
  background: rgba(52, 52, 64, 0.92);
  color: #fff;
}

.meta-launch-project-card__more {
  margin-left: auto;
  border: 0;
  background: transparent;
  font: inherit;
  color: #8f8aa8;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.meta-launch-project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(244, 246, 255, 0.92);
}

.meta-launch-project-card__footer > span {
  color: #706e88;
}

.meta-launch-project-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-launch-project-report {
  padding: 26px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 255, 0.92)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.1), transparent 30%);
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 20px;
}

.meta-launch-project-report__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.meta-launch-project-report__head h3 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.meta-launch-project-report__head p {
  margin: 0;
  max-width: 820px;
  color: var(--text-subtle);
}

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

.meta-launch-project-report__stats article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-launch-project-report__stats span {
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.meta-launch-project-report__stats strong {
  font-size: 1.14rem;
  line-height: 1.4;
}

.meta-launch-project-report__body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.meta-launch-project-report__stack {
  display: grid;
  gap: 18px;
}

.meta-launch-project-preview-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(242, 241, 255, 0.96), rgba(247, 248, 255, 0.9));
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.meta-launch-project-preview-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
}

.meta-launch-project-preview-card strong {
  font-size: 1.24rem;
}

.meta-launch-project-preview-card p {
  margin: 10px 0 0;
  color: var(--text-subtle);
  line-height: 1.7;
}

.meta-launch-project-preview-card__placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  color: #8f8aa8;
  font-weight: 700;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 255, 0.92));
  border: 1px dashed rgba(124, 92, 255, 0.22);
}

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

.meta-launch-project-summary-card {
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-launch-project-summary-card span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-launch-project-summary-card strong {
  font-size: 1.08rem;
  line-height: 1.42;
}

.meta-launch-project-summary-card p {
  margin: 0;
  color: var(--text-subtle);
  line-height: 1.62;
}

.meta-launch-project-report__timeline {
  display: grid;
  gap: 14px;
}

.meta-launch-report-note {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(229, 255, 243, 0.96), rgba(243, 255, 250, 0.92));
  border: 1px solid rgba(126, 211, 161, 0.24);
}

.meta-launch-report-note:nth-child(2n) {
  background: linear-gradient(180deg, rgba(235, 234, 255, 0.96), rgba(245, 245, 255, 0.92));
  border-color: rgba(124, 92, 255, 0.18);
}

.meta-launch-report-note span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  color: #6e53ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.meta-launch-report-note strong {
  font-size: 1.12rem;
}

.meta-launch-report-note p {
  margin: 0;
  color: #58536d;
  line-height: 1.7;
}

.meta-launch-project-report__footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 4px;
}

.meta-launch-asset-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.meta-launch-asset-sidebar {
  padding: 20px;
  border-radius: 30px;
  background: rgba(245, 246, 255, 0.9);
  display: grid;
  gap: 10px;
}

.meta-launch-asset-sidebar__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.meta-launch-asset-sidebar__item.is-active,
.meta-launch-asset-sidebar__item:hover {
  background: rgba(230, 229, 255, 0.9);
  color: #24213d;
}

.meta-launch-asset-main {
  display: grid;
  gap: 20px;
}

.meta-launch-public-asset-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.meta-launch-asset-tile {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
}

.meta-launch-asset-tile.is-selected {
  border-color: rgba(124, 92, 255, 0.24);
  box-shadow: 0 22px 60px rgba(101, 80, 255, 0.12);
}

.meta-launch-asset-tile__media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(238, 240, 255, 0.9);
}

.meta-launch-asset-tile__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.meta-launch-asset-tile__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(33, 32, 54, 0.84);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.meta-launch-asset-tile strong {
  font-size: 1rem;
}

.meta-launch-asset-tile p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
}

.meta-launch-asset-tile__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-launch-public-asset-detail {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
}

.meta-launch-public-asset-detail__layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: start;
}

.meta-launch-public-asset-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}

.meta-launch-public-asset-detail__copy {
  display: grid;
  gap: 14px;
}

.meta-launch-public-asset-detail__copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  line-height: 1.08;
}

.meta-launch-public-asset-detail__copy p {
  margin: 0;
  color: var(--text-subtle);
  line-height: 1.7;
}

.meta-launch-empty-state {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(124, 92, 255, 0.18);
  display: grid;
  gap: 10px;
  text-align: center;
}

.meta-launch-empty-state strong {
  font-size: 1.12rem;
}

.meta-launch-empty-state p {
  margin: 0;
  color: var(--text-subtle);
}

.meta-launch-empty-state--asset-detail {
  min-height: 100%;
  place-items: center;
}

.meta-launch-asset-empty-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-launch-public-asset-grid > .meta-launch-asset-empty-grid,
.meta-launch-public-asset-grid > .meta-launch-empty-state {
  grid-column: 1 / -1;
}

.meta-launch-asset-empty-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed rgba(124, 92, 255, 0.22);
}

.meta-launch-asset-empty-card span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e53ff;
}

.meta-launch-asset-empty-card strong {
  font-size: 1.12rem;
  line-height: 1.45;
}

.meta-launch-asset-empty-card p {
  margin: 0;
  color: var(--text-subtle);
  line-height: 1.68;
}

.meta-launch-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 28px;
}

.meta-launch-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 34, 0.28);
  backdrop-filter: blur(8px);
}

.meta-launch-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.95));
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 24px;
}

.meta-launch-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 241, 255, 0.94);
  color: #6c6690;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.meta-launch-modal__head h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.meta-launch-modal__head p,
.meta-launch-modal__footnote {
  margin: 0;
  color: var(--text-subtle);
  line-height: 1.7;
}

.meta-launch-connect-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.98), rgba(243, 243, 255, 0.92));
  border: 1px solid rgba(124, 92, 255, 0.14);
}

.meta-launch-connect-option__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-launch-connect-option__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #6e53ff;
  background: rgba(124, 92, 255, 0.12);
}

.meta-launch-connect-option__brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.meta-launch-connect-option__brand p {
  margin: 0;
  color: var(--text-subtle);
  line-height: 1.6;
}

.meta-agent-page {
  display: grid;
  gap: 24px;
}

.meta-agent-hero {
  overflow: hidden;
  position: relative;
}

.meta-agent-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(123, 97, 255, 0.16), transparent 34%),
    radial-gradient(circle at right center, rgba(255, 186, 112, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 247, 255, 0.78));
  pointer-events: none;
}

.meta-agent-hero > * {
  position: relative;
  z-index: 1;
}

.meta-agent-hero__head {
  align-items: flex-start;
}

.meta-agent-hero__marker {
  background: linear-gradient(135deg, #7c5cff, #b46dff);
  color: #fff;
}

.meta-agent-launch-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: var(--meta-agent-two-panel-columns, minmax(0, 1.15fr) minmax(360px, 0.85fr));
  align-items: start;
}

.meta-agent-launch-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 246, 255, 0.9)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.1), transparent 30%);
}

.meta-agent-intake,
.meta-agent-preview,
.meta-agent-workflow,
.meta-agent-result-card,
.meta-agent-claim-card {
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.meta-agent-intake,
.meta-agent-preview {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(18px);
}

.meta-agent-preview {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(245, 244, 255, 0.78)),
    radial-gradient(circle at top, rgba(124, 92, 255, 0.16), transparent 35%);
  min-height: 100%;
}

.meta-agent-panel__head,
.meta-agent-preview__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.meta-agent-panel__head h2,
.meta-agent-preview__head h2 {
  margin: 4px 0 0;
  font-size: 1.32rem;
}

.meta-agent-mini-badge {
  align-self: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  background: rgba(124, 92, 255, 0.12);
}

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

.meta-agent-form-grid--compact {
  margin-top: 18px;
}

.meta-agent-form-grid__wide {
  grid-column: 1 / -1;
}

.meta-agent-form-grid label {
  display: grid;
  gap: 8px;
}

.meta-agent-form-grid label > span {
  font-size: 0.92rem;
  font-weight: 600;
}

.meta-agent-form-grid input,
.meta-agent-form-grid select,
.meta-agent-form-grid textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.meta-agent-form-grid textarea {
  resize: vertical;
  min-height: 108px;
}

.meta-agent-form-grid input:focus-visible,
.meta-agent-form-grid select:focus-visible,
.meta-agent-form-grid textarea:focus-visible {
  outline: none;
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
  transform: translateY(-1px);
}

.meta-agent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.meta-agent-actions .button.ghost {
  text-decoration: none;
}

.meta-agent-connection-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.meta-agent-live-feed {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.meta-agent-live-feed__item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-agent-live-feed__item span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.36);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.08);
}

.meta-agent-live-feed__item.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(255, 255, 255, 0.92));
  border-color: rgba(124, 92, 255, 0.24);
}

.meta-agent-live-feed__item strong {
  font-size: 1rem;
}

.meta-agent-live-feed__item p {
  margin: 0;
  color: var(--text-subtle);
}

.meta-agent-runtime-grid,
.meta-agent-budget-head {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.meta-agent-runtime-card {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-agent-runtime-card span {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.meta-agent-runtime-card strong {
  font-size: 1.45rem;
  line-height: 1;
}

.meta-agent-runtime-card p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
}

.meta-agent-claims-grid,
.meta-agent-results-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meta-agent-claim-card {
  border-radius: 26px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 246, 255, 0.88)),
    radial-gradient(circle at top right, rgba(255, 186, 112, 0.18), transparent 28%);
}

.meta-agent-claim-card span {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-agent-claim-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2.4rem;
  line-height: 1;
}

.meta-agent-claim-card p {
  margin: 10px 0 0;
  color: var(--text-subtle);
}

.meta-agent-workflow {
  border-radius: 28px;
  padding: 24px;
}

.meta-agent-control-room {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 246, 255, 0.9)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.12), transparent 28%);
}

.meta-agent-workflow-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.meta-agent-workflow-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 255, 0.88));
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-agent-workflow-card span {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  font-weight: 700;
  color: #6e53ff;
}

.meta-agent-workflow-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.meta-agent-workflow-card p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
}

.meta-agent-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-agent-result-card {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 255, 0.9));
}

.meta-agent-rich-block,
.meta-agent-card-stack,
.meta-agent-checklist {
  display: grid;
  gap: 14px;
}

.meta-agent-launch-console {
  display: grid;
  gap: 18px;
  align-items: start;
}

.meta-agent-launch-top-row {
  display: grid;
  gap: 24px;
  grid-template-columns: var(--meta-agent-two-panel-columns, minmax(0, 1.15fr) minmax(360px, 0.85fr));
  align-items: start;
}

.meta-agent-launch-composer-card,
.meta-agent-launch-preview-card-shell {
  min-height: 100%;
}

.meta-agent-launch-composer-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-agent-launch-preview-card-shell {
  gap: 18px;
  align-content: start;
}

.meta-agent-launch-composer-card > #meta-agent-launch-status {
  margin-top: auto;
}

.meta-agent-launch-snapshot-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-agent-launch-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-agent-launch-mini-card span,
.meta-agent-launch-stack-item span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-agent-launch-mini-card strong,
.meta-agent-launch-stack-item strong {
  font-size: 1rem;
  line-height: 1.3;
}

.meta-agent-launch-mini-card p,
.meta-agent-launch-stack-item p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.meta-agent-launch-subcard {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.96), rgba(243, 246, 255, 0.9));
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-agent-launch-stack-list {
  display: grid;
  gap: 12px;
}

.meta-agent-launch-stack-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.meta-agent-history-layout {
  align-items: start;
}

.meta-agent-actions--compact {
  margin-top: 0;
  justify-content: flex-end;
}

.meta-agent-payload {
  display: grid;
  gap: 12px;
}

.meta-agent-payload pre {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.92);
  font: 500 0.84rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.meta-agent-payload p {
  margin: 0;
}

.meta-agent-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-agent-launch-summary-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 16px;
}

.meta-agent-launch-preview-visual {
  display: grid;
  gap: 12px;
}

.meta-agent-social-preview {
  display: grid;
  gap: 14px;
}

.meta-agent-social-preview__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.meta-agent-social-preview__top strong {
  font-size: 1rem;
}

.meta-agent-social-preview__hint {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.meta-agent-social-preview__placements {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-agent-social-preview__placement-tab {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-subtle);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.meta-agent-social-preview__placement-tab.is-active {
  color: #2457ff;
  border-color: rgba(36, 87, 255, 0.3);
  background: rgba(36, 87, 255, 0.12);
  transform: translateY(-1px);
}

.meta-agent-social-preview__placement-tab.is-recommended:not(.is-active) {
  border-color: rgba(94, 92, 230, 0.18);
  color: #4f46e5;
}

.meta-agent-social-preview__asset-rail {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.meta-agent-social-preview__asset-option {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.meta-agent-social-preview__asset-option.is-selected {
  border-color: rgba(36, 87, 255, 0.32);
  box-shadow: 0 14px 30px rgba(36, 87, 255, 0.12);
  transform: translateY(-1px);
}

.meta-agent-social-preview__asset-thumb {
  position: relative;
  overflow: hidden;
  width: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
}

.meta-agent-social-preview__asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta-agent-social-preview__asset-thumb.is-placeholder {
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-agent-social-preview__asset-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.meta-agent-social-preview__asset-copy strong,
.meta-agent-social-preview__asset-copy small {
  display: block;
}

.meta-agent-social-preview__asset-copy strong {
  font-size: 0.88rem;
  line-height: 1.3;
}

.meta-agent-social-preview__asset-copy small {
  color: var(--text-subtle);
}

.meta-agent-social-preview__stage {
  display: grid;
  justify-items: center;
}

.meta-agent-social-preview__stage--feed .meta-agent-social-card {
  width: min(100%, 430px);
}

.meta-agent-social-preview__stage--story .meta-agent-social-card,
.meta-agent-social-preview__stage--reels .meta-agent-social-card {
  width: min(100%, 360px);
}

.meta-agent-social-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.meta-agent-social-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.meta-agent-social-card__identity {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.meta-agent-social-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(93, 105, 255, 0.28));
  color: #4f46e5;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.meta-agent-social-card__identity strong,
.meta-agent-social-card__identity span {
  display: block;
}

.meta-agent-social-card__identity strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.meta-agent-social-card__identity span {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.meta-agent-social-card__menu {
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

.meta-agent-social-card__story-head {
  display: grid;
  gap: 8px;
}

.meta-agent-social-card__story-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.meta-agent-social-card__story-bars span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.meta-agent-social-card__story-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.meta-agent-social-card__story-shell {
  position: relative;
}

.meta-agent-social-card__primary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-agent-launch-preview-visual__media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-agent-launch-preview-visual__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta-agent-launch-preview-visual__media--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 246, 255, 0.9));
}

.meta-agent-launch-preview-visual__placeholder {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--text-subtle);
}

.meta-agent-launch-preview-visual__placeholder strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: #5e5ce6;
  font-size: 0.96rem;
}

.meta-agent-social-card__identity--overlay {
  color: #fff;
}

.meta-agent-social-card__identity--overlay span {
  color: rgba(255, 255, 255, 0.8);
}

.meta-agent-launch-preview-visual__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.meta-agent-social-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 2px 2px 0;
}

.meta-agent-social-card__link span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-agent-social-card__link strong,
.meta-agent-social-card__link p {
  margin: 0;
}

.meta-agent-social-card__link strong {
  font-size: 1rem;
  line-height: 1.32;
}

.meta-agent-social-card__link p {
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.5;
}

.meta-agent-social-card__actions {
  display: flex;
  gap: 12px;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.meta-agent-social-card__actions span {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.meta-agent-social-card__cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  font-weight: 700;
}

.meta-agent-social-card__caption {
  display: grid;
  gap: 6px;
}

.meta-agent-social-card__caption strong,
.meta-agent-social-card__caption p {
  margin: 0;
}

.meta-agent-social-card__caption p {
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-agent-social-card--story,
.meta-agent-social-card--reels {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94));
  color: #fff;
  border: none;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28);
}

.meta-agent-social-card--story .meta-agent-launch-preview-visual__media,
.meta-agent-social-card--reels .meta-agent-launch-preview-visual__media {
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 0;
}

.meta-agent-social-card--story .meta-agent-launch-preview-visual__media::after,
.meta-agent-social-card--reels .meta-agent-launch-preview-visual__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.64));
  pointer-events: none;
}

.meta-agent-social-card__story-overlay,
.meta-agent-social-card__reels-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
}

.meta-agent-social-card__story-overlay {
  align-content: space-between;
  padding: 18px 16px 16px;
}

.meta-agent-social-card__story-copy {
  display: grid;
  gap: 6px;
  color: #fff;
}

.meta-agent-social-card__story-copy span {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.meta-agent-social-card__story-copy strong,
.meta-agent-social-card__story-copy p {
  margin: 0;
}

.meta-agent-social-card__story-copy strong {
  font-size: 1.15rem;
  line-height: 1.3;
}

.meta-agent-social-card__story-copy p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.meta-agent-social-card__story-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.meta-agent-social-card__story-cta small {
  color: rgba(255, 255, 255, 0.76);
}

.meta-agent-social-card__reels-overlay {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
}

.meta-agent-social-card__reels-side {
  display: grid;
  gap: 12px;
  justify-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.meta-agent-social-card__reels-side span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(6px);
}

.meta-agent-social-card__reels-caption {
  display: grid;
  gap: 8px;
  align-self: end;
  color: #fff;
}

.meta-agent-social-card__reels-caption strong,
.meta-agent-social-card__reels-caption p {
  margin: 0;
}

.meta-agent-social-card__reels-caption p {
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 22ch;
}

.meta-agent-social-card__reels-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-agent-social-card__reels-meta span {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.meta-agent-social-preview__meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.meta-agent-summary h3 {
  margin: 4px 0 8px;
  font-size: 1.5rem;
}

.meta-agent-copy-block {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(124, 92, 255, 0.08);
  margin-bottom: 18px;
}

.meta-agent-copy-block p,
.meta-agent-copy-block strong {
  margin: 0;
}

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

.meta-agent-two-column h4 {
  margin: 0 0 10px;
}

.meta-agent-data-card {
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.meta-agent-data-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.meta-agent-data-card__head strong {
  font-size: 1rem;
}

.meta-agent-data-card__head span {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.meta-agent-data-card p {
  margin: 0;
}

.meta-agent-history-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.meta-agent-history-card.is-selected {
  border-color: rgba(94, 92, 230, 0.34);
  box-shadow: 0 18px 36px rgba(94, 92, 230, 0.12);
  transform: translateY(-1px);
}

.meta-agent-history-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-agent-history-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.meta-agent-history-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta-agent-history-card__media--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 246, 255, 0.9));
}

.meta-agent-history-card__placeholder {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
  color: var(--text-subtle);
  padding: 18px;
}

.meta-agent-history-card__placeholder strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  color: #5e5ce6;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.meta-agent-history-card__placeholder span {
  font-size: 0.88rem;
}

.meta-agent-launch-history-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-agent-history-library-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-agent-launch-history-card {
  align-content: start;
  min-height: 100%;
}

.meta-agent-history-detail-panel {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.meta-agent-preview-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-agent-preview-card {
  align-content: start;
}

.meta-agent-preview-card.is-selected {
  border-color: rgba(94, 92, 230, 0.36);
  box-shadow: 0 18px 36px rgba(94, 92, 230, 0.12);
}

.meta-agent-preview-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  aspect-ratio: 1 / 1;
}

.meta-agent-preview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta-agent-preview-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text-subtle);
}

.meta-agent-preview-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

.meta-agent-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-agent-tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-subtle);
}

.meta-agent-checklist__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(255, 255, 255, 0.84);
}

.meta-agent-checklist__item strong,
.meta-agent-checklist__item p {
  margin: 0;
}

.meta-agent-checklist__item p {
  margin-top: 6px;
  color: var(--text-subtle);
}

.meta-agent-checklist__item span {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-agent-checklist__item.is-done span {
  color: #177245;
  background: rgba(23, 114, 69, 0.12);
}

.meta-agent-checklist__item.is-pending span {
  color: #a05a16;
  background: rgba(255, 186, 112, 0.18);
}

.marketing-badge[data-state="ready"] {
  color: #177245;
  background: rgba(23, 114, 69, 0.12);
}

.marketing-badge[data-state="tracking_pending"] {
  color: #915300;
  background: rgba(255, 186, 112, 0.2);
}

.marketing-badge[data-state="missing"] {
  color: #a43b45;
  background: rgba(237, 102, 120, 0.12);
}

@media (max-width: 1180px) {
  .meta-launch-app-shell {
    width: min(100% - 24px, 1680px);
  }

  .meta-launch-home-stage,
  .meta-launch-create-dashboard,
  .meta-launch-create-bottom,
  .meta-launch-project-report__body,
  .meta-launch-public-asset-detail__layout,
  .meta-launch-public-hero {
    grid-template-columns: 1fr;
  }

  .meta-launch-create-workspace-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .meta-agent-launch-grid,
  .meta-agent-workflow-grid,
  .meta-agent-claims-grid,
  .meta-agent-results-grid,
  .meta-agent-two-column,
  .meta-launch-analysis-summary,
  .meta-agent-launch-summary-layout,
  .meta-agent-launch-top-row,
  .meta-agent-preview-grid {
    grid-template-columns: 1fr;
  }

  .meta-launch-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-launch-project-report__mini-grid,
  .meta-launch-brief-summary__grid,
  .meta-launch-asset-empty-grid,
  .meta-launch-manual-grid,
  .meta-launch-ai-panel__insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-launch-public-asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .meta-launch-asset-layout {
    grid-template-columns: 1fr;
  }

  .meta-agent-runtime-grid,
  .meta-agent-budget-head {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .meta-agent-launch-snapshot-grid,
  .meta-agent-launch-support-grid,
  .meta-agent-launch-history-grid,
  .meta-agent-history-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .meta-launch-app-shell,
  .meta-launch-public-shell {
    width: min(100% - 24px, 1500px);
    padding-top: 18px;
  }

  .meta-launch-topbar,
  .meta-launch-topbar__left,
  .meta-launch-topbar__right,
  .meta-launch-nav,
  .meta-launch-section-head,
  .meta-launch-analysis-tabs,
  .meta-launch-toolbar,
  .meta-launch-home-stage__visual {
    flex-wrap: wrap;
  }

  .meta-launch-topbar {
    align-items: flex-start;
    padding: 0;
  }

  .meta-launch-home-stage {
    min-height: auto;
    padding: 28px 22px;
  }

  .meta-launch-runtime-grid,
  .meta-agent-form-grid,
  .meta-agent-budget-head,
  .meta-agent-launch-snapshot-grid,
  .meta-agent-launch-support-grid,
  .meta-agent-launch-history-grid,
  .meta-agent-history-library-grid,
  .meta-agent-preview-grid {
    grid-template-columns: 1fr;
  }

  .meta-launch-analysis-grid,
  .meta-launch-project-grid,
  .meta-launch-project-report__stats,
  .meta-launch-project-report__mini-grid,
  .meta-launch-brief-summary__grid,
  .meta-launch-asset-empty-grid,
  .meta-launch-public-asset-grid,
  .meta-launch-launchpad__support,
  .meta-launch-manual-grid,
  .meta-launch-ai-panel__insight-grid,
  .meta-launch-goal-grid,
  .meta-launch-create-workspace-nav {
    grid-template-columns: 1fr;
  }

  .meta-launch-public-asset-detail__layout {
    grid-template-columns: 1fr;
  }

  .meta-agent-social-preview__asset-rail {
    grid-template-columns: 1fr;
  }

  .meta-agent-intake,
  .meta-agent-preview,
  .meta-agent-result-card,
  .meta-agent-workflow {
    padding: 22px;
  }

  .meta-launch-preview-stage,
  .meta-launch-launchpad,
  .meta-launch-setup-card,
  .meta-launch-preview-studio,
  .meta-launch-manual-setup,
  .meta-launch-ai-panel__card {
    padding: 20px;
  }

  .meta-launch-ai-panel {
    min-height: auto;
  }

  .meta-launch-ai-panel__card {
    min-height: auto;
  }

  .meta-launch-home-stage__copy h1,
  .meta-launch-section-head h2,
  .meta-launch-project-report__head h3 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .meta-launch-project-report__footer-actions {
    justify-content: stretch;
  }

  .meta-launch-project-report__footer-actions .button {
    width: 100%;
    justify-content: center;
  }
}

.ebay-code-field {
  display: grid;
  gap: 10px;
}

.ebay-code-field + .hub-inline-actions {
  margin-top: 22px;
}

.hub-inline-actions + .ebay-status-stack {
  margin-top: 18px;
}

.ebay-status-stack {
  display: grid;
  gap: 10px;
}

.ebay-source-summary {
  display: grid;
  gap: 16px;
}

.ebay-source-overview {
  display: grid;
  gap: 16px;
}

.ebay-source-overview__status {
  display: grid;
  gap: 10px;
}

.ebay-source-overview__status .hub-status-pill {
  justify-self: start;
}

.ebay-source-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.ebay-source-kpi-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--surface-raised)) 0%, var(--surface) 100%);
}

.ebay-source-kpi-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--fw-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ebay-source-kpi-card strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: var(--fw-strong);
  word-break: break-word;
}

.ebay-source-summary__panel {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.ebay-source-summary__panel--store {
  margin-bottom: 18px;
  padding-top: 0;
  border-top: none;
}

.ebay-source-summary__panel .hub-store-identity {
  margin-bottom: 0;
}

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

.ebay-metric-card {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-raised) 88%, var(--surface-soft)) 0%, color-mix(in srgb, var(--surface) 92%, var(--surface-soft)) 100%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--card-glow) 52%, transparent), transparent 52%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.ebay-metric-card span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.ebay-metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text);
}

html[data-theme="midnight"] .ebay-metric-card {
  border-color: rgba(164, 191, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(24, 38, 63, 0.96) 0%, rgba(18, 31, 53, 0.94) 100%),
    radial-gradient(circle at top right, rgba(123, 144, 255, 0.12), transparent 54%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme="midnight"] .ebay-metric-card span {
  color: #9eb0ce;
}

.ebay-log-panel {
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.ebay-job-list {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.ebay-job-item {
  border: 1px solid var(--hub-border, rgba(15, 23, 42, 0.08));
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(248, 250, 252, 0.92);
}

.ebay-job-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ebay-job-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.ebay-job-item__badge--success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.ebay-job-item__badge--error {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.ebay-job-item__badge--warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

@media (max-width: 900px) {
  .ebay-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ebay-metrics-grid {
    grid-template-columns: 1fr;
  }

  #recent-jobs {
    padding: 24px 22px;
  }
}
