: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 {
  gap: 4px;
  height: 100vh;
  min-height: 100vh;
  padding: 8px 8px 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

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--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--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--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 {
  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 {
  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 {
  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);
}

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

.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-main-grid {
  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;
}

#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__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-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;
}

.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);
}

.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;
}

.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;
}

.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-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 {
  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;
}

.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;
}

.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 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;
}

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

.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 .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;
}

.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-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;
}

.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-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-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__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.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-toggle {
  display: grid;
  gap: 12px;
}

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

.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 {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding-left: 0;
  gap: 14px;
}

.marketing-queue-list > li {
  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%);
}

.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: 72px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.social-marketing-queue-item__thumb {
  width: 72px;
  height: 72px;
  align-self: start;
}

.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-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-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__identity {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .social-marketing-queue-item__thumb {
    width: 56px;
    height: 56px;
  }

  .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--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;
  }
}

@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));
  }
}

@media (max-width: 720px) {
  .hub-sidebar__nav,
  .hub-sidebar__bottom,
  .hub-step-strip,
  .report-filter-grid,
  .report-filter-grid--analytics,
  .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,
  .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;
  }

  .hub-field-head {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-queue-item__head {
    flex-direction: column;
    align-items: stretch;
  }
}
