:root {
  color-scheme: light;
  --sx-canvas: #f1f1eb;
  --sx-panel: #fbfbf7;
  --sx-panel-muted: #f6f6f0;
  --sx-ink: #121310;
  --sx-muted: #6d7066;
  --sx-faint: #96998f;
  --sx-line: #d8d9d0;
  --sx-line-strong: #c4c6ba;
  --sx-accent: #96e600;
  --sx-accent-hover: #86cf00;
  --sx-accent-soft: #e9ffc1;
  --sx-accent-ink: #3f5e00;
  --sx-success: #167a4d;
  --sx-danger: #c93f4b;
  --sx-radius-panel: 5px;
  --sx-radius-control: 4px;
  --sx-shadow-float: 0 12px 36px rgba(18, 19, 16, 0.12);

  --lc-font-sans: "Avenir Next", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --lc-font-display: "Avenir Next", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --lc-page-bg: var(--sx-canvas);
  --lc-page-bg-soft: #e9e9e2;
  --lc-surface: var(--sx-panel);
  --lc-surface-soft: var(--sx-panel-muted);
  --lc-border-blue: var(--sx-line);
  --lc-text-main: var(--sx-ink);
  --lc-text-muted: var(--sx-muted);
  --lc-action-blue: var(--sx-accent-ink);
  --lc-action-blue-hover: var(--sx-accent-hover);
  --lc-focus-blue: rgba(121, 184, 0, 0.28);
  --lc-header-bg: #ffffff;
  --lc-header-bg-soft: #ffffff;
  --lc-header-border: var(--sx-line);
  --lc-header-shadow: none;
  --lc-studio-bg: var(--sx-canvas);
  --lc-studio-bg-top: var(--sx-canvas);
  --lc-studio-bg-bottom: var(--sx-canvas);
  --lc-studio-heading: var(--sx-ink);
  --lc-studio-text: #40423c;
  --lc-studio-muted: var(--sx-muted);
  --lc-studio-faint: var(--sx-faint);
  --lc-studio-panel: #ffffff;
  --lc-studio-panel-strong: #ffffff;
  --lc-studio-panel-soft: #fafafa;
  --lc-studio-border: var(--sx-line);
  --lc-studio-border-strong: var(--sx-line-strong);
  --lc-studio-action: var(--sx-accent-ink);
  --lc-studio-action-hover: #2f4700;
  --lc-radius-panel: var(--sx-radius-panel);
  --lc-radius-card: 4px;
  --lc-radius-media: 4px;
  --lc-radius-control: var(--sx-radius-control);
  --lc-radius-dialog: 7px;
  --lc-shadow-panel: 0 1px 2px rgba(22, 24, 32, 0.04);
  --lc-shadow-panel-raised: var(--sx-shadow-float);
  --lc-shadow-action: none;
  --lc-transition-fast: 0.14s ease-out;
  --lc-transition-base: 0.18s ease-out;
  --ui-primary: oklch(82% .22 126);
}

/* Pic Copilot-inspired commerce studio — 2026 rebuild.
   The reference informs the grid, color blocking and commerce-first hierarchy;
   all imagery, copy, routes and product behavior remain native to 随心搭. */
:root {
  --pic-ink: #202020;
  --pic-paper: #fffef7;
  --pic-lime: #dfff2f;
  --pic-lime-soft: #f1ff9d;
  --pic-lavender: #d9b7ff;
  --pic-orange: #ff8b48;
  --pic-mint: #91e7d1;
  --pic-line: #202020;
  --pic-soft-line: rgba(32, 32, 32, 0.18);
  --pic-shadow: 7px 7px 0 #202020;
  --pic-font-display: "Avenir Next", "Arial Black", "PingFang SC", sans-serif;
  --pic-font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html.sx-local-theme,
#suixinda-workbench-home,
#suixinda-image-to-video,
#suixinda-extension-feature {
  --sx-production-header-height: 72px;
  --lc-page-bg: var(--pic-paper);
  --lc-studio-bg-top: var(--pic-paper);
  --lc-studio-bg-bottom: #f6f4ea;
  --lc-text-main: var(--pic-ink);
  --lc-text-muted: #68675f;
  --lc-studio-text: #4f4e48;
  --lc-studio-muted: #68675f;
  --lc-studio-faint: #89877f;
  --lc-action-blue: var(--pic-ink);
  --lc-action-blue-hover: #000;
  --lc-border-blue: var(--pic-ink);
  --lc-studio-border: rgba(32, 32, 32, 0.28);
  --lc-studio-panel: #fffef8;
  --lc-studio-panel-strong: #fffef8;
  --lc-studio-panel-soft: #f4f1e7;
  font-family: var(--pic-font-body) !important;
}

body {
  background: var(--pic-paper);
}

/* Navigation: solid, typographic and product-led. */
.sx-pc-topbar,
.sx-production-topbar,
html.sx-local-theme .app-layout-header {
  box-sizing: border-box !important;
  min-height: 72px;
  border-bottom: 1px solid var(--pic-line) !important;
  background: rgba(255, 254, 247, 0.98) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.sx-pc-topbar,
.sx-production-topbar {
  grid-template-columns: minmax(170px, 230px) minmax(520px, 1fr) auto !important;
  padding: 0 clamp(18px, 2.8vw, 44px) !important;
}

.sx-pc-topbar > .sx-pc-brand,
.sx-production-brand {
  height: 71px !important;
  gap: 11px;
}

.sx-pc-brand-mark {
  width: 31px;
  height: 31px;
  transform: rotate(-7deg);
}

.sx-pc-brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-lime);
}

.sx-pc-brand-mark i {
  width: 21px;
  height: 12px;
  border: 3px solid var(--pic-ink) !important;
  background: var(--pic-paper);
}

.sx-pc-brand-mark i:first-child {
  border-radius: 2px 9px 2px 2px;
}

.sx-pc-brand-mark i:last-child {
  border-radius: 2px 2px 2px 9px;
  background: var(--pic-lavender);
}

.sx-pc-brand strong,
.sx-production-brand strong {
  color: var(--pic-ink) !important;
  font: 850 18px/1 var(--pic-font-display);
  letter-spacing: -0.04em;
}

.sx-pc-brand small,
.sx-production-brand small {
  margin-top: 4px;
  color: #77746c !important;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.sx-global-nav {
  gap: clamp(13px, 2vw, 32px) !important;
}

.sx-global-nav-link,
html.sx-local-theme .app-layout-header .sx-global-nav-link {
  min-height: 40px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #4d4b46 !important;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.sx-global-nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 1px;
  left: 50%;
  height: 3px;
  background: var(--pic-lime);
  box-shadow: 0 0 0 1px var(--pic-ink);
  transition: right 150ms ease, left 150ms ease;
}

.sx-global-nav-link:hover,
.sx-global-nav-link.active,
html.sx-local-theme .app-layout-header .sx-global-nav-link.active {
  color: var(--pic-ink) !important;
}

.sx-global-nav-link:hover::after,
.sx-global-nav-link.active::after {
  right: 0;
  left: 0;
}

.sx-pc-account,
.sx-production-actions {
  gap: 9px;
}

.sx-pc-account > a:not(.sx-pc-avatar),
.sx-production-actions > a {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--pic-ink) !important;
  border-radius: 6px !important;
  background: var(--pic-paper);
  color: var(--pic-ink) !important;
  font-size: 11px;
  font-weight: 750;
  transition: transform 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.sx-pc-account > .sx-pic-start,
.sx-production-actions > a {
  background: var(--pic-ink) !important;
  color: #fff !important;
}

.sx-pc-account > a:not(.sx-pc-avatar):hover,
.sx-production-actions > a:hover {
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
  box-shadow: 3px 3px 0 var(--pic-ink);
  transform: translate(-2px, -2px);
}

.sx-pc-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-lavender);
  color: var(--pic-ink) !important;
  font-weight: 850;
}

html.sx-local-theme .app-header-inner {
  width: min(1680px, calc(100vw - 56px)) !important;
  min-height: 72px;
}

html.sx-local-theme .app-layout-header .app-brand-button {
  border-radius: 0 !important;
}

html.sx-local-theme .app-header-action,
html.sx-local-theme .app-header-user,
html.sx-local-theme .app-login-cta {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 6px !important;
  background: var(--pic-paper) !important;
  color: var(--pic-ink) !important;
  box-shadow: none !important;
}

/* Homepage: visible grid, asymmetric collage and bold commerce cards. */
#suixinda-workbench-home {
  --pc-page: var(--pic-paper);
  --pc-paper: var(--pic-paper);
  --pc-ink: var(--pic-ink);
  --pc-line: rgba(32, 32, 32, 0.22);
  background: var(--pic-paper);
}

.sx-pc-main {
  width: min(1680px, 100%);
  padding: 26px clamp(18px, 3vw, 50px) 78px !important;
}

.sx-pc-home-hero {
  position: relative;
  min-height: clamp(600px, 66vw, 740px);
  grid-template-columns: minmax(410px, 0.82fr) minmax(620px, 1.18fr) !important;
  overflow: hidden;
  border: 1px solid var(--pic-ink) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(rgba(32, 32, 32, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 32, 0.12) 1px, transparent 1px),
    linear-gradient(108deg, #d8b5ff 0%, #e1c7ff 43%, #efff70 72%, #dfff2f 100%) !important;
  background-size: 44px 44px, 44px 44px, auto !important;
}

.sx-pc-home-hero::before {
  content: "";
  position: absolute;
  top: -130px;
  left: 42%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(32, 32, 32, 0.36);
  border-radius: 50%;
  background: rgba(255, 139, 72, 0.78);
}

.sx-pc-home-hero-copy {
  position: relative;
  z-index: 10;
  justify-content: center;
  padding: clamp(46px, 5vw, 84px) clamp(32px, 4.3vw, 72px) !important;
}

.sx-pc-home-hero-copy > small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--pic-ink);
  border-radius: 4px;
  background: var(--pic-paper);
  color: var(--pic-ink) !important;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 var(--pic-ink);
}

.sx-pc-home-hero-copy > small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pic-lime);
  box-shadow: 0 0 0 1px var(--pic-ink);
}

.sx-pc-home-hero-copy h1 {
  max-width: 690px;
  margin-top: 28px;
  color: var(--pic-ink);
  font: 900 clamp(48px, 5vw, 78px)/0.98 var(--pic-font-display);
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.sx-pc-home-hero-copy p {
  max-width: 520px;
  margin-top: 24px;
  color: #373630;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.75;
}

.sx-pc-home-actions {
  gap: 12px;
  margin-top: 32px;
}

.sx-pc-home-primary,
.sx-pc-home-secondary {
  min-height: 52px !important;
  border: 1px solid var(--pic-ink) !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.sx-pc-home-primary {
  gap: 36px;
  background: var(--pic-ink) !important;
}

.sx-pc-home-secondary {
  background: var(--pic-paper) !important;
  color: var(--pic-ink) !important;
}

.sx-pc-home-primary:hover,
.sx-pc-home-secondary:hover {
  border-color: var(--pic-ink) !important;
  background: var(--pic-orange) !important;
  color: var(--pic-ink) !important;
  box-shadow: 4px 4px 0 var(--pic-ink);
  transform: translate(-2px, -2px);
}

.sx-pic-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 25px;
  color: #3e3d37;
  font-size: 10px;
  font-weight: 700;
}

.sx-pic-proof span {
  position: relative;
  padding-left: 13px;
}

.sx-pic-proof span::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-paper);
}

.sx-pic-collage {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 620px;
}

.sx-pic-collage-card {
  position: absolute;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--pic-ink);
  border-radius: 10px;
  background: var(--pic-paper);
  box-shadow: var(--pic-shadow);
  transition: transform 190ms cubic-bezier(.2,.8,.2,1), box-shadow 190ms ease;
}

.sx-pic-collage-card:hover {
  z-index: 12;
  box-shadow: 11px 11px 0 var(--pic-ink);
}

.sx-pic-collage-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.sx-pic-collage-card figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border: 1px solid var(--pic-ink);
  border-radius: 4px;
  background: var(--pic-paper);
  color: var(--pic-ink);
  font-size: 9px;
  font-weight: 800;
}

.sx-pic-collage-product {
  top: 95px;
  left: 2%;
  width: 29%;
  aspect-ratio: 1;
  transform: rotate(-7deg);
}

.sx-pic-collage-product:hover { transform: rotate(-3deg) translateY(-8px); }

.sx-pic-collage-model {
  top: 35px;
  left: 27%;
  width: 37%;
  height: 78%;
  transform: rotate(2.8deg);
}

.sx-pic-collage-model:hover { transform: rotate(1deg) translateY(-8px); }

.sx-pic-collage-scene {
  right: 2%;
  bottom: 38px;
  width: 34%;
  height: 58%;
  transform: rotate(5deg);
}

.sx-pic-collage-scene:hover { transform: rotate(2deg) translateY(-8px); }

.sx-pic-collage-video {
  right: 2%;
  top: 28px;
  width: 27%;
  height: 35%;
  transform: rotate(-4deg);
}

.sx-pic-collage-video:hover { transform: rotate(-1deg) translateY(-8px); }

.sx-pic-collage-video > i,
.sx-pic-tool-play,
.sx-feature-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-lime);
  color: var(--pic-ink);
  font-size: 17px;
  font-style: normal;
  transform: translate(-50%, -50%);
  box-shadow: 4px 4px 0 var(--pic-ink);
}

.sx-pic-collage-note {
  position: absolute;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--pic-ink);
  border-radius: 4px;
  background: var(--pic-paper);
  color: var(--pic-ink);
  font-size: 9px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--pic-ink);
}

.sx-pic-note-ready {
  left: 15%;
  bottom: 52px;
}

.sx-pic-note-ready i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb56e;
}

.sx-pic-note-size {
  top: 48%;
  right: 22%;
  background: var(--pic-orange);
  transform: rotate(-5deg);
}

.sx-pic-collage-arrow {
  position: absolute;
  z-index: 15;
  top: 44%;
  left: 11%;
  color: var(--pic-ink);
  font: 900 62px/1 var(--pic-font-display);
  transform: rotate(22deg);
}

.sx-pic-capability-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  margin-top: 14px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid var(--pic-ink);
  border-radius: 8px;
  background: var(--pic-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.sx-pic-capability-strip i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pic-lime);
}

.sx-pc-section {
  margin-top: 54px !important;
}

.sx-pc-section-head {
  min-height: 82px;
  align-items: flex-end;
  padding: 0 2px 20px;
}

.sx-pc-section-head > div > small {
  display: block;
  margin-bottom: 7px;
  color: #77746d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.sx-pc-section-head h2 {
  color: var(--pic-ink);
  font: 900 clamp(28px, 3vw, 44px)/1 var(--pic-font-display);
  letter-spacing: -0.055em;
}

.sx-pc-section-head p {
  margin-top: 8px;
  color: #68665f;
  font-size: 11px;
}

.sx-pc-section-head > a {
  min-height: 38px;
  padding: 0 3px !important;
  border-bottom: 2px solid var(--pic-ink) !important;
  color: var(--pic-ink) !important;
  font-size: 11px;
}

.sx-pic-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
}

.sx-pic-tool-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(54, 50, 44, 0.16);
  border-radius: 12px;
  background: #f5f2ec;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-pic-tool-card.is-lime,
.sx-pic-tool-card.is-orange,
.sx-pic-tool-card.is-mint {
  background: #f5f2ec;
}

.sx-pic-tool-card:hover {
  border-color: rgba(54, 50, 44, 0.34);
  background: #fffefb;
  box-shadow: none;
  transform: translateY(-3px);
}

.sx-pic-tool-media {
  position: relative;
  aspect-ratio: 4 / 4.65;
  display: block;
  margin: 12px 12px 0;
  overflow: hidden;
  border: 1px solid rgba(54, 50, 44, 0.18);
  border-radius: 7px;
  background: #fffefa;
}

.sx-pic-tool-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.sx-pic-tool-media em {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 7px;
  border: 1px solid rgba(54, 50, 44, 0.26);
  border-radius: 4px;
  background: rgba(255, 254, 250, 0.94);
  color: var(--pic-ink);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.sx-pic-tool-play {
  width: 50px;
  height: 50px;
  font-size: 15px;
}

.sx-pic-tool-copy {
  min-height: 102px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: end;
  gap: 12px;
  padding: 18px 17px 19px;
}

.sx-pic-tool-copy > span,
.sx-pic-tool-copy small,
.sx-pic-tool-copy strong {
  min-width: 0;
  display: block;
}

.sx-pic-tool-copy small {
  overflow: hidden;
  color: #44423d;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pic-tool-copy strong {
  margin-top: 7px;
  color: var(--pic-ink);
  font: 880 clamp(18px, 1.5vw, 24px)/1.08 var(--pic-font-display);
  letter-spacing: -0.045em;
}

.sx-pic-tool-copy > b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54, 50, 44, 0.28);
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.84);
  color: var(--pic-ink);
  font-size: 15px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sx-pic-tool-card:hover .sx-pic-tool-copy > b {
  border-color: var(--pic-ink);
  background: var(--pic-ink);
  color: #fff;
}

/* Tool catalogue: Pic-style visual directory rather than icon cards. */
html.sx-local-theme .stylist-page {
  min-height: calc(100dvh - 72px);
  background: var(--pic-paper) !important;
  color: var(--pic-ink);
}

html.sx-local-theme .stylist-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 70px !important;
  border-bottom: 1px solid var(--pic-ink);
  background:
    linear-gradient(rgba(32, 32, 32, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 32, 0.1) 1px, transparent 1px),
    linear-gradient(110deg, var(--pic-lavender), #f0ddff 47%, var(--pic-lime-soft)) !important;
  background-size: 42px 42px, 42px 42px, auto !important;
}

html.sx-local-theme .stylist-hero::after {
  content: "";
  position: absolute;
  right: 34%;
  bottom: -170px;
  width: 350px;
  height: 350px;
  border: 1px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-orange);
}

html.sx-local-theme .stylist-hero-bg {
  display: none !important;
}

html.sx-local-theme .stylist-shell {
  width: min(1440px, calc(100vw - 64px)) !important;
}

html.sx-local-theme .stylist-hero__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(360px, 0.72fr) minmax(600px, 1.28fr) !important;
  gap: clamp(36px, 5vw, 80px) !important;
}

html.sx-local-theme .stylist-hero__eyebrow {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--pic-ink);
  border-radius: 4px;
  background: var(--pic-paper);
  color: var(--pic-ink) !important;
  font-size: 9px !important;
  font-weight: 850;
  box-shadow: 3px 3px 0 var(--pic-ink);
}

html.sx-local-theme .stylist-hero__eyebrow span {
  background: var(--pic-lime) !important;
}

html.sx-local-theme .stylist-hero__copy h1 {
  max-width: 620px;
  margin-top: 27px !important;
  color: var(--pic-ink) !important;
  font: 900 clamp(48px, 5.2vw, 78px)/0.98 var(--pic-font-display) !important;
  letter-spacing: -0.072em !important;
}

html.sx-local-theme .stylist-hero__copy > span {
  display: block;
  max-width: 530px;
  margin-top: 22px;
  color: #3f3e38 !important;
  font-size: 14px !important;
  font-weight: 550;
  line-height: 1.75;
}

html.sx-local-theme .stylist-primary-action,
html.sx-local-theme .support-contact-trigger {
  min-height: 48px;
  border: 1px solid var(--pic-ink) !important;
  border-radius: 6px !important;
  background: var(--pic-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.sx-local-theme .stylist-primary-action:hover,
html.sx-local-theme .support-contact-trigger:hover {
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
  box-shadow: 4px 4px 0 var(--pic-ink) !important;
  transform: translate(-2px, -2px) !important;
}

html.sx-local-theme .workflow-preview {
  position: relative;
  z-index: 3;
  padding: 18px !important;
  border: 1.5px solid var(--pic-ink) !important;
  border-radius: 12px !important;
  background: var(--pic-paper) !important;
  box-shadow: 8px 8px 0 var(--pic-ink) !important;
}

html.sx-local-theme .workflow-preview__head {
  padding: 0 0 15px !important;
  border-bottom: 1px solid rgba(32, 32, 32, 0.2);
}

html.sx-local-theme .workflow-preview__head strong {
  color: var(--pic-ink) !important;
  font: 840 18px/1.2 var(--pic-font-display) !important;
}

html.sx-local-theme .workflow-preview__materials {
  gap: 11px !important;
  margin-top: 16px;
}

html.sx-local-theme .material-card {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 7px !important;
  background: var(--pic-paper) !important;
  box-shadow: 3px 3px 0 var(--pic-ink) !important;
}

html.sx-local-theme .material-image-wrap {
  border-radius: 5px !important;
}

html.sx-local-theme .material-img {
  object-fit: cover !important;
  object-position: center top !important;
}

html.sx-local-theme .workflow-preview__tools,
html.sx-local-theme .workflow-preview__steps {
  display: none !important;
}

html.sx-local-theme .stylist-content {
  padding: 52px 0 84px !important;
  background: var(--pic-paper) !important;
}

html.sx-local-theme .section-tabs {
  gap: 26px !important;
  margin-bottom: 36px !important;
  padding: 0 0 13px !important;
  border-bottom: 1px solid var(--pic-ink) !important;
}

html.sx-local-theme .section-tab {
  min-height: 40px;
  padding: 0 1px 4px !important;
  border: 0 !important;
  border-bottom: 4px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #77746d !important;
  font-size: 14px !important;
  font-weight: 780 !important;
}

html.sx-local-theme .section-tab:hover,
html.sx-local-theme .section-tab.active {
  border-bottom-color: var(--pic-lime) !important;
  background: transparent !important;
  color: var(--pic-ink) !important;
  box-shadow: 0 2px 0 var(--pic-ink) !important;
}

html.sx-local-theme .stylist-main-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

html.sx-local-theme .stylist-aside {
  display: none !important;
}

html.sx-local-theme .feature-head {
  min-height: 78px;
  align-items: end !important;
  margin-bottom: 22px;
  border-bottom: 0 !important;
}

html.sx-local-theme .feature-head h2 {
  color: var(--pic-ink) !important;
  font: 900 clamp(30px, 3vw, 46px)/1 var(--pic-font-display) !important;
  letter-spacing: -0.055em;
}

html.sx-local-theme .feature-head > span {
  padding: 7px 9px;
  border: 1px solid var(--pic-ink);
  border-radius: 4px;
  background: var(--pic-paper);
  color: var(--pic-ink) !important;
  font-size: 9px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--pic-ink);
}

html.sx-local-theme .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

html.sx-local-theme .feature-card {
  min-height: 410px !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  overflow: hidden;
  gap: 0 !important;
  padding: 0 !important;
  border: 1.5px solid var(--pic-ink) !important;
  border-radius: 11px !important;
  background: var(--pic-lavender) !important;
  box-shadow: 6px 6px 0 var(--pic-ink) !important;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease !important;
}

html.sx-local-theme .feature-card[data-sx-tone="lime"] { background: var(--pic-lime) !important; }
html.sx-local-theme .feature-card[data-sx-tone="orange"] { background: var(--pic-orange) !important; }
html.sx-local-theme .feature-card[data-sx-tone="mint"] { background: var(--pic-mint) !important; }

html.sx-local-theme .feature-card:hover:not(:disabled) {
  border-color: var(--pic-ink) !important;
  box-shadow: 10px 10px 0 var(--pic-ink) !important;
  transform: translate(-4px, -4px) !important;
}

html.sx-local-theme .feature-card.disabled,
html.sx-local-theme .feature-card:disabled {
  filter: grayscale(0.45);
  opacity: 0.72 !important;
}

.sx-feature-card-cover {
  position: relative;
  height: 276px;
  display: block;
  margin: 11px 11px 0;
  overflow: hidden;
  border: 1px solid var(--pic-ink);
  border-radius: 7px;
  background: rgba(255, 254, 247, 0.82);
}

.sx-feature-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

html.sx-local-theme .feature-card__icon {
  display: none !important;
}

html.sx-local-theme .feature-card__body {
  width: 100%;
  display: block !important;
  padding: 17px 16px 5px;
}

html.sx-local-theme .feature-card__body strong {
  color: var(--pic-ink) !important;
  font: 860 20px/1.14 var(--pic-font-display) !important;
  letter-spacing: -0.04em;
}

html.sx-local-theme .feature-card__body small {
  min-height: 40px;
  margin-top: 7px;
  color: #41403a !important;
  font-size: 10px !important;
  font-weight: 580 !important;
  line-height: 1.55 !important;
}

html.sx-local-theme .feature-card__tags {
  margin: auto 46px 0 16px !important;
  padding: 0 0 16px !important;
}

html.sx-local-theme .feature-card__tags span,
html.sx-local-theme .feature-card__status,
html.sx-local-theme .feature-card__recommend {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 4px !important;
  background: var(--pic-paper) !important;
  color: var(--pic-ink) !important;
  font-size: 8px !important;
  font-weight: 800 !important;
}

html.sx-local-theme .feature-card__status,
html.sx-local-theme .feature-card__recommend {
  top: 19px !important;
  right: 18px !important;
  z-index: 5;
  box-shadow: 2px 2px 0 var(--pic-ink);
}

html.sx-local-theme .feature-card__arrow {
  right: 16px !important;
  bottom: 16px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 8px;
  border: 1px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-paper);
  color: var(--pic-ink) !important;
}

.sx-feature-card-play {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

html.sx-local-theme .sx-stylist-video-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 0;
}

html.sx-local-theme .sx-stylist-video-summary a {
  border: 1px solid var(--pic-ink);
  border-radius: 6px;
  background: var(--pic-lime-soft);
  color: var(--pic-ink) !important;
}

/* Native creation workspaces. */
html.sx-local-theme .app-layout-shell,
html.sx-local-theme .studio-page {
  background: var(--pic-paper) !important;
}

html.sx-local-theme .studio-page {
  height: calc(100dvh - 72px) !important;
}

html.sx-local-theme .studio-shell {
  gap: 14px !important;
  padding: 17px 22px 22px !important;
}

html.sx-local-theme .sx-native-tool-context {
  min-height: 42px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--pic-ink);
  color: #77746d;
}

html.sx-local-theme .sx-native-tool-context nav strong {
  color: var(--pic-ink);
}

html.sx-local-theme .sx-native-tool-switch {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--pic-ink);
  border-radius: 5px;
  background: var(--pic-lime);
  color: var(--pic-ink) !important;
  box-shadow: 3px 3px 0 var(--pic-ink);
}

html.sx-local-theme .studio-head {
  padding: 0 0 13px !important;
  border-bottom: 1px solid rgba(32, 32, 32, 0.26) !important;
}

html.sx-local-theme .studio-title-row h1 {
  color: var(--pic-ink) !important;
  font: 850 25px/1.1 var(--pic-font-display) !important;
  letter-spacing: -0.045em;
}

html.sx-local-theme .studio-flow-strip b {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 50% !important;
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
}

html.sx-local-theme .studio-grid {
  gap: 16px !important;
}

html.sx-local-theme .studio-panel,
html.sx-local-theme .lc-studio-panel,
html.sx-local-theme .studio-input-panel,
html.sx-local-theme .studio-result-panel,
html.sx-local-theme .studio-generate-panel {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 9px !important;
  background: var(--pic-paper) !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-panel-head,
html.sx-local-theme .lc-studio-panel-head {
  border-bottom-color: rgba(32, 32, 32, 0.22) !important;
  background: var(--pic-paper) !important;
}

html.sx-local-theme .studio-choice-item,
html.sx-local-theme .studio-resolution-pill {
  border: 1px solid rgba(32, 32, 32, 0.35) !important;
  border-radius: 5px !important;
  background: #f6f3e9 !important;
  color: var(--pic-ink) !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-choice-item.active,
html.sx-local-theme .studio-resolution-pill.active,
html.sx-local-theme .studio-resolution-pill.is-active {
  border-color: var(--pic-ink) !important;
  background: var(--pic-lime) !important;
  box-shadow: 3px 3px 0 var(--pic-ink) !important;
}

html.sx-local-theme .dropzone,
html.sx-local-theme .frame-dropzone,
html.sx-local-theme .media-dropzone,
html.sx-local-theme .video-dropzone,
html.sx-local-theme [class*="upload-zone"] {
  border: 1.5px dashed var(--pic-ink) !important;
  border-radius: 7px !important;
  background: var(--pic-lime-soft) !important;
  color: var(--pic-ink) !important;
}

html.sx-local-theme .studio-generate-button {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 6px !important;
  background: var(--pic-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-generate-button:hover:not(:disabled) {
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
  box-shadow: 4px 4px 0 var(--pic-ink) !important;
  transform: translate(-2px, -2px);
}

html.sx-local-theme .studio-result-stage,
html.sx-local-theme .studio-empty-result,
html.sx-local-theme .studio-workflow-empty {
  border-color: rgba(32, 32, 32, 0.3) !important;
  border-radius: 6px !important;
  background:
    linear-gradient(rgba(32, 32, 32, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 32, 0.055) 1px, transparent 1px),
    #f7f4eb !important;
  background-size: 26px 26px, 26px 26px, auto !important;
}

/* Custom image/video workspaces use the same upload-first hierarchy. */
#suixinda-image-to-video,
#suixinda-extension-feature {
  background: var(--pic-paper) !important;
  color: var(--pic-ink) !important;
}

.sx-production-page-head {
  align-items: end !important;
  padding: 34px 0 25px !important;
  border-bottom: 1px solid var(--pic-ink) !important;
}

.sx-production-page-head h1 {
  color: var(--pic-ink) !important;
  font: 900 clamp(38px, 4vw, 58px)/1 var(--pic-font-display) !important;
  letter-spacing: -0.065em !important;
}

.sx-production-page-head > div > span {
  color: #66645d !important;
}

.sx-production-progress li b {
  border: 1px solid var(--pic-ink) !important;
  background: var(--pic-paper) !important;
  color: var(--pic-ink) !important;
}

.sx-production-progress li.active b {
  background: var(--pic-lime) !important;
  box-shadow: 3px 3px 0 var(--pic-ink);
}

.sx-extension-page,
.sx-video-page {
  width: min(1560px, calc(100% - 52px)) !important;
  padding-top: 0 !important;
}

.sx-extension-workspace,
.sx-video-workspace {
  gap: 18px !important;
  margin-top: 20px !important;
}

.sx-extension-panel,
.sx-video-panel {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 9px !important;
  background: var(--pic-paper) !important;
  box-shadow: 5px 5px 0 var(--pic-ink) !important;
}

.sx-extension-panel-head,
.sx-video-panel-head {
  border-bottom: 1px solid var(--pic-ink) !important;
  border-radius: 7px 7px 0 0;
  background: var(--pic-ink) !important;
  color: #fff !important;
}

.sx-extension-panel-head span,
.sx-video-panel-head span {
  color: var(--pic-lime) !important;
}

.sx-extension-dropzone,
.sx-video-dropzone {
  border: 1.5px dashed var(--pic-ink) !important;
  border-radius: 7px !important;
  background: var(--pic-lime-soft) !important;
  color: var(--pic-ink) !important;
}

.sx-extension-dropzone > span,
.sx-video-upload-icon {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 50% !important;
  background: var(--pic-paper) !important;
  color: var(--pic-ink) !important;
  box-shadow: 3px 3px 0 var(--pic-ink);
}

.sx-extension-prompt-field textarea,
.sx-extension-settings select,
.sx-extension-template-field select,
.sx-video-form-section textarea,
.sx-video-controls select {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 5px !important;
  background: var(--pic-paper) !important;
}

.sx-extension-mode-switch label {
  border: 1px solid rgba(32, 32, 32, 0.38) !important;
  border-radius: 6px !important;
  background: #f7f4eb !important;
}

.sx-extension-mode-switch label:has(input:checked) {
  border-color: var(--pic-ink) !important;
  background: var(--pic-lime) !important;
  box-shadow: 3px 3px 0 var(--pic-ink) !important;
}

.sx-extension-submit-area button,
.sx-video-submit-area button {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 6px !important;
  background: var(--pic-ink) !important;
  color: #fff !important;
}

.sx-extension-submit-area button:not(:disabled):hover,
.sx-video-submit-area button:not(:disabled):hover {
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
  box-shadow: 4px 4px 0 var(--pic-ink);
  transform: translate(-2px, -2px);
}

/* Resource and history pages keep their dense behavior while sharing the new
   visual system. */
html.sx-local-theme .resource-library-page,
html.sx-local-theme .history-page {
  background: var(--pic-paper) !important;
}

html.sx-local-theme .resource-library-shell {
  width: min(1480px, calc(100vw - 64px)) !important;
  padding-top: 42px !important;
}

html.sx-local-theme .resource-library-title h1,
html.sx-local-theme .history-page h1 {
  color: var(--pic-ink) !important;
  font: 900 clamp(34px, 3.4vw, 50px)/1 var(--pic-font-display) !important;
  letter-spacing: -0.055em;
}

html.sx-local-theme .resource-library-body,
html.sx-local-theme .history-layout {
  gap: 26px !important;
}

html.sx-local-theme .resource-library-aside,
html.sx-local-theme .history-sidebar {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 8px !important;
  background: #f4f1e8 !important;
  box-shadow: 4px 4px 0 var(--pic-ink) !important;
}

html.sx-local-theme .resource-library-nav button,
html.sx-local-theme .resource-library-nav a,
html.sx-local-theme .history-sidebar button {
  border-radius: 4px !important;
}

html.sx-local-theme .resource-library-nav button:hover,
html.sx-local-theme .resource-library-nav button.active,
html.sx-local-theme .resource-library-nav a:hover,
html.sx-local-theme .resource-library-nav a.active,
html.sx-local-theme .history-sidebar button:hover,
html.sx-local-theme .history-sidebar button.active {
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
}

html.sx-local-theme .resource-library-main [class*="aspect-[4/5]"],
html.sx-local-theme .history-record-card,
html.sx-local-theme .workflow-section-card {
  overflow: hidden;
  border: 1px solid var(--pic-ink) !important;
  border-radius: 7px !important;
  background: var(--pic-paper) !important;
  box-shadow: 3px 3px 0 var(--pic-ink) !important;
}

html.sx-local-theme .resource-library-main img,
html.sx-local-theme .history-record-card__media img,
html.sx-local-theme .history-record-card__media video {
  object-fit: contain !important;
  object-position: center top !important;
  background: #f0ede4 !important;
}

.sx-resource-load-more {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 5px !important;
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
  box-shadow: 3px 3px 0 var(--pic-ink) !important;
}

/* Responsive composition. */
@media (max-width: 1280px) {
  .sx-pc-topbar,
  .sx-production-topbar {
    grid-template-columns: minmax(160px, 200px) minmax(470px, 1fr) auto !important;
  }

  .sx-pic-asset-link {
    display: none !important;
  }

  .sx-pc-home-hero {
    grid-template-columns: minmax(360px, 0.78fr) minmax(560px, 1.22fr) !important;
  }

  html.sx-local-theme .feature-grid,
  .sx-pic-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html.sx-local-theme .stylist-hero__inner {
    grid-template-columns: minmax(330px, 0.82fr) minmax(520px, 1.18fr) !important;
  }
}

@media (max-width: 980px) {
  .sx-pc-home-hero {
    min-height: 0;
    grid-template-columns: 1fr !important;
  }

  .sx-pic-collage {
    min-height: 620px;
  }

  html.sx-local-theme .stylist-hero__inner {
    grid-template-columns: 1fr !important;
  }

  html.sx-local-theme .feature-grid,
  .sx-pic-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html.sx-local-theme .stylist-hero__copy h1 {
    max-width: 720px;
  }
}

@media (max-width: 860px) {
  html.sx-local-theme,
  #suixinda-workbench-home,
  #suixinda-image-to-video,
  #suixinda-extension-feature {
    --sx-production-header-height: 108px;
  }

  .sx-pc-topbar,
  .sx-production-topbar {
    min-height: 112px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 68px 44px !important;
  }

  .sx-global-nav--home,
  .sx-global-nav--production,
  html.sx-local-theme .sx-global-nav--native {
    border-top: 1px solid rgba(32, 32, 32, 0.2) !important;
  }

  .sx-global-nav {
    gap: 24px !important;
  }

  html.sx-local-theme .app-header-inner {
    min-height: 112px !important;
    grid-template-rows: 68px 44px !important;
  }

  html.sx-local-theme .studio-page {
    height: calc(100dvh - 112px) !important;
  }
}

@media (max-width: 680px) {
  .sx-pc-main {
    padding: 12px 12px 48px !important;
  }

  .sx-pc-home-hero {
    border-radius: 12px !important;
    background-size: 30px 30px, 30px 30px, auto !important;
  }

  .sx-pc-home-hero-copy {
    padding: 42px 22px 34px !important;
  }

  .sx-pc-home-hero-copy h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .sx-pc-home-hero-copy p {
    font-size: 13px;
  }

  .sx-pc-home-primary,
  .sx-pc-home-secondary {
    width: 100%;
  }

  .sx-pic-proof {
    display: grid;
  }

  .sx-pic-collage {
    min-height: 470px;
  }

  .sx-pic-collage-product {
    top: 78px;
    left: 2%;
    width: 35%;
  }

  .sx-pic-collage-model {
    top: 24px;
    left: 27%;
    width: 42%;
    height: 76%;
  }

  .sx-pic-collage-scene {
    right: 1%;
    bottom: 24px;
    width: 38%;
    height: 55%;
  }

  .sx-pic-collage-video {
    right: 1%;
    top: 20px;
    width: 30%;
    height: 32%;
  }

  .sx-pic-note-ready {
    left: 5%;
    bottom: 20px;
  }

  .sx-pic-note-size,
  .sx-pic-collage-arrow {
    display: none;
  }

  .sx-pic-capability-strip {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .sx-pc-section {
    margin-top: 42px !important;
  }

  .sx-pc-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  html.sx-local-theme .feature-grid,
  .sx-pic-tool-grid {
    grid-template-columns: 1fr !important;
  }

  .sx-pic-tool-media {
    aspect-ratio: 4 / 4.2;
  }

  html.sx-local-theme .stylist-shell {
    width: min(100% - 24px, 1440px) !important;
  }

  html.sx-local-theme .stylist-hero {
    padding: 42px 0 52px !important;
  }

  html.sx-local-theme .stylist-hero__copy h1 {
    font-size: 48px !important;
  }

  html.sx-local-theme .workflow-preview {
    padding: 11px !important;
    box-shadow: 5px 5px 0 var(--pic-ink) !important;
  }

  html.sx-local-theme .feature-card {
    min-height: 430px !important;
  }

  html.sx-local-theme .sx-stylist-video-summary {
    grid-template-columns: 1fr 1fr;
  }

  .sx-extension-page,
  .sx-video-page {
    width: min(100% - 22px, 1560px) !important;
  }

  html.sx-local-theme .resource-library-shell {
    width: min(100% - 24px, 1480px) !important;
  }
}

html.sx-local-theme,
html.sx-local-theme body {
  margin: 0;
  min-height: 100%;
  background: var(--sx-canvas);
  color: var(--sx-ink);
  font-family: var(--lc-font-sans);
}

#app[hidden] {
  display: none !important;
}

html.sx-local-theme .app-layout-shell,
html.sx-local-theme .studio-page {
  background: var(--sx-canvas) !important;
  font-family: var(--lc-font-sans) !important;
}

html.sx-local-theme .app-layout-header {
  border-bottom: 1px solid var(--sx-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html.sx-local-theme .app-header-inner {
  width: min(1800px, calc(100vw - 36px)) !important;
}

html.sx-local-theme .app-nav-item {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  color: #696c75 !important;
}

html.sx-local-theme .app-nav-item:hover {
  background: #f5f5f7 !important;
  color: var(--sx-ink) !important;
}

html.sx-local-theme .app-nav-item--active {
  border-color: transparent !important;
  background: var(--sx-accent-soft) !important;
  color: var(--sx-accent) !important;
  box-shadow: none !important;
}

html.sx-local-theme .app-nav-dot {
  display: none !important;
}

html.sx-local-theme .app-header-action,
html.sx-local-theme .app-header-user {
  border-color: var(--sx-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #4d5059 !important;
}

html.sx-local-theme .sidebar-container {
  width: 13.25rem !important;
  border-color: var(--sx-line) !important;
  background: #fafafa !important;
  padding: 14px 12px !important;
}

html.sx-local-theme .sidebar-nav-item {
  min-height: 35px;
  border-radius: 7px !important;
  color: #555861 !important;
  transition-duration: 0.14s !important;
}

html.sx-local-theme .sidebar-nav-item:hover {
  background: #f0f0f2 !important;
  color: var(--sx-ink) !important;
}

html.sx-local-theme .sidebar-nav-item.active,
html.sx-local-theme .sidebar-nav-item.parent-active {
  background: var(--sx-accent-soft) !important;
  color: var(--sx-accent) !important;
  box-shadow: none !important;
}

html.sx-local-theme .sidebar-nav-item.active svg,
html.sx-local-theme .sidebar-nav-item.parent-active svg {
  color: var(--sx-accent) !important;
}

html.sx-local-theme .sidebar-expand-button--active {
  color: var(--sx-accent) !important;
}

html.sx-local-theme .studio-page {
  height: calc(100dvh - 4rem) !important;
}

html.sx-local-theme .studio-shell {
  gap: 10px !important;
  padding: 12px 14px 14px !important;
}

html.sx-local-theme .studio-head {
  border-color: var(--sx-line) !important;
  padding-bottom: 9px !important;
}

html.sx-local-theme .studio-eyebrow,
html.sx-local-theme .studio-panel-kicker {
  color: var(--sx-faint) !important;
  font-weight: 600 !important;
}

html.sx-local-theme .studio-title-row h1 {
  color: var(--sx-ink) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  text-wrap: balance;
}

html.sx-local-theme .studio-title-row span,
html.sx-local-theme .studio-panel-head p,
html.sx-local-theme .studio-result-state p {
  color: var(--sx-muted) !important;
  text-wrap: pretty;
}

html.sx-local-theme .studio-flow-strip b {
  width: 22px !important;
  height: 22px !important;
  border-color: #d8d6f5 !important;
  background: #fff !important;
  color: var(--sx-accent) !important;
}

html.sx-local-theme .studio-grid {
  gap: 10px !important;
}

html.sx-local-theme .studio-panel,
html.sx-local-theme .studio-generate-panel {
  border-color: var(--sx-line) !important;
  border-radius: var(--sx-radius-panel) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(22, 24, 32, 0.035) !important;
}

html.sx-local-theme .studio-panel-head {
  border-color: var(--sx-line) !important;
  background: #fff !important;
}

html.sx-local-theme .studio-panel-badge,
html.sx-local-theme .studio-resolution-pill,
html.sx-local-theme .studio-control-input {
  border-color: var(--sx-line) !important;
  border-radius: var(--sx-radius-control) !important;
  background: #fff !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-resolution-pill:hover,
html.sx-local-theme .studio-resolution-pill.active {
  border-color: #bdb9ee !important;
  background: var(--sx-accent-soft) !important;
  color: var(--sx-accent) !important;
}

html.sx-local-theme .studio-form-section,
html.sx-local-theme .studio-result-stage,
html.sx-local-theme .studio-result-workspace,
html.sx-local-theme .studio-result-side,
html.sx-local-theme .studio-recent-strip {
  border-color: var(--sx-line) !important;
  background: #fafafa !important;
  box-shadow: none !important;
}

html.sx-local-theme .model-tile,
html.sx-local-theme .scene-tile,
html.sx-local-theme .studio-workflow-tile,
html.sx-local-theme .studio-choice-item {
  border-radius: 7px !important;
  box-shadow: none !important;
}

html.sx-local-theme .model-tile:hover,
html.sx-local-theme .scene-tile:hover,
html.sx-local-theme .studio-workflow-tile:hover,
html.sx-local-theme .studio-choice-item:hover {
  border-color: #bbb8df !important;
}

html.sx-local-theme .model-tile.border-primary,
html.sx-local-theme .scene-tile.border-primary,
html.sx-local-theme .studio-choice-item.active {
  border-color: var(--sx-accent) !important;
  background: var(--sx-accent-soft) !important;
  box-shadow: 0 0 0 1px var(--sx-accent) !important;
}

html.sx-local-theme .studio-generate-button {
  border-color: var(--sx-accent) !important;
  border-radius: 7px !important;
  background: var(--sx-accent) !important;
  box-shadow: none !important;
  transition: background 0.14s ease-out, opacity 0.14s ease-out !important;
}

html.sx-local-theme .studio-generate-button:hover {
  background: var(--sx-accent-hover) !important;
  box-shadow: none !important;
  transform: none !important;
}

html.sx-local-theme button:focus-visible,
html.sx-local-theme a:focus-visible,
html.sx-local-theme input:focus-visible,
html.sx-local-theme select:focus-visible,
html.sx-local-theme textarea:focus-visible {
  outline: 2px solid rgba(91, 87, 217, 0.56) !important;
  outline-offset: 2px !important;
}

#suixinda-model-admin-link {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #35363d;
  border-radius: 7px;
  background: #25262b;
  color: #fff;
  box-shadow: var(--sx-shadow-float);
  font: 600 12px/1 var(--lc-font-sans);
  text-decoration: none;
  transition: background 0.14s ease-out, transform 0.14s ease-out;
}

#suixinda-model-admin-link:hover {
  background: #16171a;
}

/* Local light workbench home */
#suixinda-workbench-home {
  min-height: 100dvh;
  background: var(--sx-canvas);
  color: var(--sx-ink);
  font-family: var(--lc-font-sans);
}

#suixinda-workbench-home *,
#suixinda-workbench-home *::before,
#suixinda-workbench-home *::after {
  box-sizing: border-box;
}

#suixinda-workbench-home a {
  color: inherit;
  text-decoration: none;
}

.sx-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 60px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--sx-line);
  background: #fff;
}

.sx-brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--sx-line);
}

.sx-brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--sx-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.sx-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.sx-brand strong {
  font-size: 14px;
}

.sx-brand small {
  color: var(--sx-muted);
  font-size: 10px;
}

.sx-topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
}

.sx-topnav a,
.sx-plain-action,
.sx-user {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: #656872;
  font-size: 13px;
  font-weight: 600;
}

.sx-topnav a {
  padding: 0 13px;
}

.sx-topnav a:hover,
.sx-topnav a.active {
  background: #f3f3f5;
  color: var(--sx-ink);
}

.sx-topnav a.active {
  background: var(--sx-accent-soft);
  color: var(--sx-accent);
}

.sx-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
}

.sx-plain-action {
  padding: 0 12px;
  border: 1px solid var(--sx-line);
  background: #fff;
}

.sx-user {
  gap: 7px;
  padding: 0 4px 0 8px;
  color: #454750;
}

.sx-user span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ececf0;
  color: #555861;
  font-size: 11px;
  font-weight: 700;
}

.sx-workbench-layout {
  min-height: calc(100dvh - 60px);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
}

.sx-rail {
  position: sticky;
  top: 60px;
  height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 8px max(13px, env(safe-area-inset-bottom));
  border-right: 1px solid var(--sx-line);
  background: #fbfbfc;
}

.sx-rail a {
  width: 58px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 7px;
  color: #7b7d86;
  font-size: 10px;
  font-weight: 600;
  transition: background 0.14s ease-out, color 0.14s ease-out;
}

.sx-rail a svg {
  width: 19px;
  height: 19px;
}

.sx-rail a:hover {
  background: #f0f0f3;
  color: var(--sx-ink);
}

.sx-rail a.active {
  background: var(--sx-accent-soft);
  color: var(--sx-accent);
}

.sx-rail .sx-rail-bottom {
  margin-top: auto;
}

.sx-canvas {
  width: min(1520px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.sx-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.sx-heading-row p {
  margin: 0 0 3px;
  color: var(--sx-accent);
  font-size: 11px;
  font-weight: 700;
}

.sx-heading-row h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  text-wrap: balance;
}

.sx-heading-row > div:first-child > span {
  display: block;
  margin-top: 6px;
  color: var(--sx-muted);
  font-size: 13px;
  text-wrap: pretty;
}

.sx-status-strip {
  display: flex;
  border: 1px solid var(--sx-line);
  border-radius: 8px;
  background: #fff;
}

.sx-status-strip div {
  min-width: 90px;
  padding: 9px 13px;
  border-right: 1px solid var(--sx-line);
}

.sx-status-strip div:last-child {
  border-right: 0;
}

.sx-status-strip strong,
.sx-status-strip small {
  display: block;
  font-variant-numeric: tabular-nums;
}

.sx-status-strip strong {
  font-size: 15px;
}

.sx-status-strip small {
  margin-top: 1px;
  color: var(--sx-muted);
  font-size: 10px;
}

.sx-feature-board {
  height: 390px;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(620px, 1.8fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--sx-line);
  border-radius: 12px;
  background: #fff;
}

.sx-create-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 30px 24px;
  border-radius: 8px;
  background: #222329;
  color: #fff;
}

.sx-create-label {
  color: #b9b7ff;
  font-size: 11px;
  font-weight: 700;
}

.sx-create-panel h2 {
  margin: 22px 0 12px;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.25;
  text-wrap: balance;
}

.sx-create-panel p {
  max-width: 360px;
  margin: 0;
  color: #b8bac2;
  font-size: 13px;
  line-height: 1.7;
  text-wrap: pretty;
}

.sx-create-panel > a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 0 16px;
  border-radius: 7px;
  background: #7671ff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
}

.sx-create-panel > a:hover {
  background: #6964eb;
}

.sx-create-foot {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #383941;
  color: #9fa1aa;
  font-size: 10px;
}

.sx-feature-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sx-feature-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ececf0;
}

.sx-feature-card.sx-feature-wide {
  grid-column: span 2;
}

.sx-feature-card:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.sx-feature-card:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.sx-feature-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.sx-feature-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.sx-feature-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.sx-feature-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.18s ease-out;
}

.sx-feature-card:hover img {
  transform: scale(1.02);
}

.sx-feature-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62px;
  background: rgba(20, 21, 26, 0.76);
}

.sx-feature-card span {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 1;
  color: #fff;
}

.sx-feature-card strong,
.sx-feature-card small {
  display: block;
}

.sx-feature-card strong {
  font-size: 13px;
}

.sx-feature-card small {
  margin-top: 2px;
  color: #d1d2d7;
  font-size: 10px;
}

.sx-tool-section,
.sx-resource-section {
  margin-top: 28px;
}

.sx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.sx-section-head h2,
.sx-section-head p {
  margin: 0;
}

.sx-section-head h2 {
  font-size: 18px;
  text-wrap: balance;
}

.sx-section-head p {
  margin-top: 4px;
  color: var(--sx-muted);
  font-size: 12px;
  text-wrap: pretty;
}

.sx-section-head > a {
  color: #62656e !important;
  font-size: 12px;
  font-weight: 600;
}

.sx-release-note {
  color: var(--sx-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sx-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--sx-line);
  border-left: 1px solid var(--sx-line);
  background: #fff;
}

.sx-tool-card {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-right: 1px solid var(--sx-line);
  border-bottom: 1px solid var(--sx-line);
  background: #fff;
  transition: background 0.14s ease-out;
}

.sx-tool-card:hover {
  background: #fafafa;
}

.sx-tool-card--disabled,
.sx-tool-card--disabled:hover {
  cursor: not-allowed;
  background: #f0f0f2;
  color: #8d8f97;
}

.sx-tool-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dcdbea;
  border-radius: 7px;
  color: var(--sx-accent);
  font-size: 11px;
  font-weight: 800;
}

.sx-tool-card--disabled .sx-tool-mark {
  border-color: #d9dade;
  background: #e8e8eb;
  color: #8b8d95;
}

.sx-tool-copy,
.sx-tool-copy strong,
.sx-tool-copy small {
  min-width: 0;
  display: block;
}

.sx-tool-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-tool-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--sx-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-tool-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.sx-tool-meta b {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--sx-accent-soft);
  color: var(--sx-accent);
  font-size: 9px;
  font-weight: 700;
}

.sx-tool-meta small {
  color: #b5b6bd;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.sx-tool-card--disabled .sx-tool-copy small,
.sx-tool-card--disabled .sx-tool-meta small {
  color: #a3a5ac;
}

.sx-tool-card--disabled .sx-tool-meta b {
  background: #e2e3e6;
  color: #777a82;
}

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

.sx-resource-grid > a {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sx-line);
  border-radius: 8px;
  background: #fff;
}

.sx-resource-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #eeeef1;
}

.sx-resource-grid span {
  display: block;
  padding: 10px 11px;
}

.sx-resource-grid strong,
.sx-resource-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-resource-grid strong {
  font-size: 12px;
}

.sx-resource-grid small {
  margin-top: 3px;
  color: var(--sx-muted);
  font-size: 10px;
}

#suixinda-workbench-home a:focus-visible {
  outline: 2px solid rgba(91, 87, 217, 0.58);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .sx-feature-board {
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    height: 420px;
  }

  .sx-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .sx-feature-card,
  .sx-feature-card.sx-feature-wide,
  .sx-feature-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

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

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

  html.sx-local-theme .studio-page {
    height: auto !important;
    min-height: calc(100dvh - 4rem) !important;
  }
}

@media (max-width: 860px) {
  .sx-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sx-brand {
    border-right: 0;
  }

  .sx-topnav {
    display: none;
  }

  .sx-workbench-layout {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sx-rail a {
    width: 48px;
  }

  .sx-canvas {
    padding: 20px 16px 40px;
  }

  .sx-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sx-feature-board {
    height: auto;
    grid-template-columns: 1fr;
  }

  .sx-create-panel {
    min-height: 280px;
  }

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

@media (max-width: 620px) {
  .sx-brand {
    padding-left: 12px;
  }

  .sx-brand > span:last-child,
  .sx-plain-action,
  .sx-user {
    display: none;
  }

  .sx-top-actions {
    padding-right: 10px;
  }

  .sx-top-actions::after {
    content: "本地工作台";
    color: var(--sx-muted);
    font-size: 11px;
  }

  .sx-workbench-layout {
    display: block;
  }

  .sx-rail {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: auto;
    height: 64px;
    flex-direction: row;
    justify-content: space-around;
    padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--sx-line);
    border-right: 0;
  }

  .sx-rail a,
  .sx-rail .sx-rail-bottom {
    width: 54px;
    min-height: 48px;
    margin-top: 0;
  }

  .sx-canvas {
    padding: 18px 12px calc(82px + env(safe-area-inset-bottom));
  }

  .sx-status-strip {
    width: 100%;
  }

  .sx-status-strip div {
    min-width: 0;
    flex: 1;
  }

  .sx-feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .sx-feature-card {
    min-height: 190px;
  }

  .sx-tool-grid,
  .sx-resource-grid {
    grid-template-columns: 1fr;
  }

  .sx-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  #suixinda-model-admin-link {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* Close route-level blue overrides after lazy component styles are loaded. */
html.sx-local-theme .studio-form-section,
html.sx-local-theme .studio-panel,
html.sx-local-theme .studio-generate-panel,
html.sx-local-theme .studio-result-panel,
html.sx-local-theme .studio-result-stage,
html.sx-local-theme .studio-result-actions,
html.sx-local-theme .studio-thumb-section,
html.sx-local-theme .studio-recent-strip,
html.sx-local-theme .video-clone-recent-tasks,
html.sx-local-theme .review-variant-panel,
html.sx-local-theme .review-task-panel,
html.sx-local-theme .detail-auto-pages,
html.sx-local-theme .detail-edit-panel,
html.sx-local-theme .detail-entry-card__custom-size,
html.sx-local-theme .detail-entry-card__reverse-row,
html.sx-local-theme .detail-structure-editor__empty,
html.sx-local-theme .text-layer-editor,
html.sx-local-theme .outpaint-preview-card,
html.sx-local-theme .restyle-image-preview,
html.sx-local-theme .clothing-slot-preview,
html.sx-local-theme .garment-view-upload--contained > .relative,
html.sx-local-theme .garment-view-upload--contained .garment-main-preview,
html.sx-local-theme .garment-view-upload--contained .garment-supplement-preview,
html.sx-local-theme .frame-uploaded {
  background: #f7f7f1 !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-result-state,
html.sx-local-theme .studio-workflow-guide-item > span,
html.sx-local-theme .studio-generating-spinner,
html.sx-local-theme .studio-recent-item em,
html.sx-local-theme .studio-confirm-lead > span,
html.sx-local-theme .generation-confirm-lead > span,
html.sx-local-theme .review-side-index,
html.sx-local-theme .restyle-hint-chip,
html.sx-local-theme .color-change-image-chip,
html.sx-local-theme .cr-editor .cr-chip,
html.sx-local-theme .cr-editor .cr-field {
  border-color: #c9dca3 !important;
  background: var(--sx-accent-soft) !important;
  color: var(--sx-accent-ink) !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-form-section-head.clickable:hover,
html.sx-local-theme .studio-resolution-pill:not(:disabled):hover,
html.sx-local-theme .studio-choice-item:hover:not(:disabled),
html.sx-local-theme .choice-pill:hover,
html.sx-local-theme .studio-thumb-nav:hover:not(:disabled),
html.sx-local-theme .studio-recent-item.active,
html.sx-local-theme .recent-task-list button.active,
html.sx-local-theme .review-result-row.active,
html.sx-local-theme .task-list button.active {
  border-color: #b9cf8d !important;
  background: #eef6df !important;
  color: var(--sx-accent-ink) !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-result-thumb.active,
html.sx-local-theme .detail-entry-card__module-option--active,
html.sx-local-theme .detail-entry-card__aspect-button--active {
  border-color: var(--sx-accent-ink) !important;
  box-shadow: 0 0 0 2px rgba(150, 230, 0, 0.45) !important;
}

html.sx-local-theme .studio-result-thumb:hover:not(.active),
html.sx-local-theme .studio-recent-item:hover,
html.sx-local-theme .detail-entry-card__module-option:hover:not(:disabled) {
  border-color: #7b8073 !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-generating-overlay {
  background: rgba(247, 247, 241, 0.94) !important;
}

html.sx-local-theme .studio-workflow-tile figcaption,
html.sx-local-theme .detail-entry-card__index,
html.sx-local-theme .detail-entry-card__icon-button {
  background: rgba(18, 19, 16, 0.78) !important;
}

html.sx-local-theme .studio-thumb-empty,
html.sx-local-theme .studio-recent-empty,
html.sx-local-theme .outpaint-empty,
html.sx-local-theme .studio-form-section-step,
html.sx-local-theme .dropzone,
html.sx-local-theme .frame-dropzone,
html.sx-local-theme .image-add-card {
  border-color: rgba(57, 60, 52, 0.22) !important;
}

html.sx-local-theme .studio-resolution-pill:disabled {
  border-color: #dedfd7 !important;
  background: #ecece6 !important;
  color: #a0a299 !important;
}

html.sx-local-theme .garment-upload-placeholder svg,
html.sx-local-theme .image-add-card,
html.sx-local-theme .image-add-card span {
  color: #777a70 !important;
}

html.sx-local-theme .custom-garment-head strong,
html.sx-local-theme .upload-slot-label,
html.sx-local-theme .matting-info-value,
html.sx-local-theme .reverse-info-value,
html.sx-local-theme .material-section-head h3,
html.sx-local-theme .frame-dropzone-title,
html.sx-local-theme .mode-option span,
html.sx-local-theme .param-label,
html.sx-local-theme .detail-lang-control > span,
html.sx-local-theme .detail-lang-control button {
  color: #292b25 !important;
}

html.sx-local-theme .mode-option.active,
html.sx-local-theme .choice-pill.active,
html.sx-local-theme .detail-lang-control button.active {
  border-color: #1d1f1a !important;
  background: var(--sx-accent) !important;
  color: #11130f !important;
  box-shadow: none !important;
}

html.sx-local-theme .mode-option.active span,
html.sx-local-theme .mode-option.active p,
html.sx-local-theme .mode-option.active small,
html.sx-local-theme .mode-option.active strong {
  color: #11130f !important;
}

html.sx-local-theme .sidebar-submenu {
  border-color: #3b3e36 !important;
}

html.sx-local-theme .workflow-note,
html.sx-local-theme .development-note,
html.sx-local-theme .product-upload,
html.sx-local-theme .source-video-preview,
html.sx-local-theme .draft-card,
html.sx-local-theme .generation-confirm-note,
html.sx-local-theme .studio-confirm-tip,
html.sx-local-theme .detail-reverse-confirm__tip,
html.sx-local-theme .text-layer-settings__hint {
  border-color: #cbd0c3 !important;
  background: #eff1e9 !important;
  color: #555950 !important;
}

html.sx-local-theme .history-sidebar nav button:hover,
html.sx-local-theme .history-sidebar nav button.active,
html.sx-local-theme .task-type-filter__options button:hover,
html.sx-local-theme .task-type-filter__options button.active,
html.sx-local-theme .task-status-card:hover,
html.sx-local-theme .task-status-card--active {
  border-color: #c1d69a !important;
  background: var(--sx-accent-soft) !important;
  color: var(--sx-accent-ink) !important;
  box-shadow: none !important;
}

html.sx-local-theme .history-sidebar__icon,
html.sx-local-theme .task-card__module-icon {
  background: #e7ebdf !important;
  color: #4d7400 !important;
}

html.sx-local-theme .history-copy-preview,
html.sx-local-theme .history-media-placeholder,
html.sx-local-theme .file-row__text-thumb {
  background: #f0f2ea !important;
}

html.sx-local-theme .favorite-toggle,
html.sx-local-theme .file-source-filter button:hover,
html.sx-local-theme .file-source-filter button.active {
  box-shadow: none !important;
}

html.sx-local-theme .custom-garment-head span,
html.sx-local-theme .detail-lang-control button,
html.sx-local-theme .mode-option,
html.sx-local-theme .material-section-head > span {
  border-color: rgba(57, 60, 52, 0.2) !important;
}

html.sx-local-theme .audio-option strong,
html.sx-local-theme .clone-audio-option strong {
  color: #35382f !important;
}

@media (prefers-reduced-motion: reduce) {
  #suixinda-workbench-home *,
  #suixinda-model-admin-link,
  html.sx-local-theme .studio-generate-button {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Full-bleed homepage background: the approved composition stays intact, but
   the gradient/grid is the page hero itself instead of a rounded colour card. */
html.sx-local-theme #suixinda-workbench-home {
  background: var(--pic-paper) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar {
  top: 10px !important;
  width: min(1240px, calc(100% - 32px));
  min-height: 60px !important;
  margin: 10px auto -70px;
  padding: 0 12px !important;
  border: 1px solid rgba(32, 32, 32, 0.76) !important;
  border-radius: 12px !important;
  background: rgba(255, 254, 247, 0.94) !important;
  box-shadow: 0 10px 28px rgba(46, 38, 31, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar > .sx-pc-brand {
  height: 58px !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 64px !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
  width: 100% !important;
  min-height: clamp(650px, 58vw, 780px) !important;
  padding-top: 72px;
  border: 0 !important;
  border-radius: 0 !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy {
  padding-top: clamp(78px, 7vw, 118px) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-capability-strip,
html.sx-local-theme #suixinda-workbench-home .sx-pc-section {
  width: min(1440px, calc(100% - clamp(36px, 6.4vw, 100px)));
  margin-right: auto;
  margin-left: auto;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-capability-strip {
  margin-top: 14px;
}

@media (max-width: 860px) {
  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar {
    top: 6px !important;
    width: calc(100% - 20px);
    min-height: 102px !important;
    margin: 6px auto -108px;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
    padding-top: 108px;
  }
}

@media (max-width: 680px) {
  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
    border-radius: 0 !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pic-capability-strip,
  html.sx-local-theme #suixinda-workbench-home .sx-pc-section {
    width: calc(100% - 28px);
  }
}

/* Tool directory /app/stylist: bring the legacy entry page into the workbench system. */
html.sx-local-theme .stylist-page {
  min-height: calc(100dvh - 64px) !important;
  background: #e9ebe3 !important;
  color: #1d1f1a !important;
}

html.sx-local-theme .stylist-hero {
  padding: 38px 0 34px !important;
  background: #151613 !important;
}

html.sx-local-theme .stylist-hero-bg {
  display: none !important;
}

html.sx-local-theme .stylist-hero__inner {
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1.28fr) !important;
  gap: 34px !important;
  align-items: stretch !important;
}

html.sx-local-theme .stylist-hero__copy {
  display: flex !important;
  min-height: 360px !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 28px !important;
  border: 1px solid #34372f !important;
  background: #1b1c18 !important;
}

html.sx-local-theme .stylist-hero__eyebrow {
  margin-bottom: 28px !important;
  border-radius: 2px !important;
  background: var(--sx-accent) !important;
  padding: 7px 9px !important;
  color: #11130f !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

html.sx-local-theme .stylist-hero__eyebrow .bg-\[\#4f6ef7\] {
  background: #11130f !important;
}

html.sx-local-theme .stylist-hero__copy h1 {
  max-width: 560px !important;
  color: #f7f7f1 !important;
  font-family: var(--lc-font-sans) !important;
  font-size: clamp(42px, 5.4vw, 74px) !important;
  font-weight: 820 !important;
  line-height: 1.04 !important;
}

html.sx-local-theme .stylist-hero__copy > span {
  max-width: 500px !important;
  margin-top: 18px !important;
  color: #aeb1a7 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

html.sx-local-theme .stylist-hero__actions {
  margin-top: 26px !important;
}

html.sx-local-theme .stylist-primary-action {
  min-height: 44px !important;
  border: 1px solid var(--sx-accent) !important;
  border-radius: 2px !important;
  background: var(--sx-accent) !important;
  padding: 0 10px 0 18px !important;
  color: #11130f !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html.sx-local-theme .stylist-primary-action:hover {
  border-color: var(--sx-accent-hover) !important;
  background: var(--sx-accent-hover) !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

html.sx-local-theme .stylist-primary-action span {
  border-radius: 1px !important;
  background: rgba(17, 19, 15, 0.14) !important;
}

html.sx-local-theme .stylist-hero__actions .support-contact__trigger {
  min-height: 44px !important;
  border: 1px solid #555950 !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: #d7d9d0 !important;
  font-size: 13px !important;
}

html.sx-local-theme .stylist-hero__actions .support-contact__trigger:hover {
  border-color: #aeb1a7 !important;
  background: #242620 !important;
  color: #fff !important;
}

html.sx-local-theme .workflow-preview {
  overflow: hidden !important;
  border: 1px solid #3d4038 !important;
  border-radius: 2px !important;
  background: #f7f7f1 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html.sx-local-theme .workflow-preview__head {
  margin: 0 !important;
  border-bottom: 1px solid #c8c9c0 !important;
  background: #f0f1e9 !important;
  padding: 14px 16px !important;
}

html.sx-local-theme .workflow-preview__head strong {
  color: #171814 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

html.sx-local-theme .sx-stylist-video-summary {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

html.sx-local-theme .stylist-page.sx-stylist-video-mode .workflow-preview__materials,
html.sx-local-theme .stylist-page.sx-stylist-video-mode .workflow-preview__tools {
  display: none !important;
}

html.sx-local-theme .stylist-page.sx-stylist-video-mode .sx-stylist-video-summary {
  display: grid;
}

html.sx-local-theme .sx-stylist-video-summary a {
  min-width: 0;
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid #c8c9c0;
  background: #eceee6;
  color: #171814 !important;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

html.sx-local-theme .sx-stylist-video-summary a:hover {
  border-color: #74786e;
  transform: translateY(-1px);
}

html.sx-local-theme .sx-stylist-video-summary small,
html.sx-local-theme .sx-stylist-video-summary strong,
html.sx-local-theme .sx-stylist-video-summary span {
  display: block;
}

html.sx-local-theme .sx-stylist-video-summary small {
  margin-bottom: auto;
  color: #7b4d3f;
  font-size: 9px;
  font-weight: 800;
}

html.sx-local-theme .sx-stylist-video-summary strong {
  font-size: 13px;
}

html.sx-local-theme .sx-stylist-video-summary span {
  margin-top: 5px;
  color: #6f736a;
  font-size: 9px;
  line-height: 1.45;
}

html.sx-local-theme .support-contact__content.sx-contact-empty {
  grid-template-columns: minmax(0, 1fr) !important;
}

html.sx-local-theme .support-contact__content.sx-contact-empty .support-contact__qr,
html.sx-local-theme .support-contact__content.sx-contact-empty .support-contact__fallback {
  display: none !important;
}

html.sx-local-theme .support-contact__content.sx-contact-empty .support-contact__meta dd {
  min-height: 18px;
  white-space: pre-line;
}

html.sx-local-theme .workflow-preview__head span {
  color: #6f7269 !important;
  font-size: 11px !important;
}

html.sx-local-theme .workflow-preview__materials,
html.sx-local-theme .workflow-preview__tools,
html.sx-local-theme .workflow-preview__steps {
  padding-inline: 16px !important;
}

html.sx-local-theme .workflow-preview__materials {
  padding-top: 16px !important;
}

html.sx-local-theme .material-image-wrap {
  border-color: #c8c9c0 !important;
  border-radius: 2px !important;
  background: #e0e1d9 !important;
}

html.sx-local-theme .material-label {
  border-radius: 2px !important;
  background: #e7e8e0 !important;
  color: #575a51 !important;
}

html.sx-local-theme .material-label svg,
html.sx-local-theme .material-label--result svg,
html.sx-local-theme .material-arrow,
html.sx-local-theme .step-arrow {
  color: #8b8e84 !important;
}

html.sx-local-theme .material-label--result {
  background: #e7f7c9 !important;
  color: #486c00 !important;
}

html.sx-local-theme .workflow-preview__tools {
  margin-top: 14px !important;
}

html.sx-local-theme .workflow-tool,
html.sx-local-theme .step-btn {
  border-color: #c8c9c0 !important;
  border-radius: 2px !important;
  background: #fdfdf8 !important;
  color: #35382f !important;
}

html.sx-local-theme .workflow-tool:hover,
html.sx-local-theme .step-btn:hover {
  border-color: #91b84c !important;
  background: #eff8dd !important;
  color: #486c00 !important;
}

html.sx-local-theme .workflow-tool > svg,
html.sx-local-theme .step-btn svg {
  color: #648c17 !important;
}

html.sx-local-theme .workflow-tool strong,
html.sx-local-theme .step-btn span {
  color: #292b25 !important;
}

html.sx-local-theme .workflow-tool small {
  color: #777a70 !important;
}

html.sx-local-theme .step-btn.step-active {
  border-color: #1d1f1a !important;
  background: var(--sx-accent) !important;
  color: #11130f !important;
  font-weight: 800 !important;
}

html.sx-local-theme .step-btn.step-active span,
html.sx-local-theme .step-btn.step-active svg {
  color: #11130f !important;
}

html.sx-local-theme .stylist-content {
  background: #e9ebe3 !important;
  padding: 34px 0 72px !important;
}

html.sx-local-theme .feature-head {
  margin-bottom: 14px !important;
  border-bottom: 1px solid #c8c9c0 !important;
  padding-bottom: 12px !important;
}

html.sx-local-theme .feature-head h2 {
  color: #171814 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

html.sx-local-theme .feature-head > span,
html.sx-local-theme .lc-studio-kicker {
  color: #648c17 !important;
}

html.sx-local-theme .feature-card {
  min-height: 176px !important;
  border-color: #c8c9c0 !important;
  border-radius: 2px !important;
  background: #f7f7f1 !important;
  box-shadow: none !important;
}

html.sx-local-theme .feature-card::before {
  background: var(--sx-accent) !important;
}

html.sx-local-theme .feature-card:hover,
html.sx-local-theme .feature-card.highlighted {
  border-color: #7a9f3d !important;
  background: #fdfdf8 !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

html.sx-local-theme .feature-card__recommend {
  border-radius: 2px !important;
  background: var(--sx-accent) !important;
  color: #11130f !important;
}

html.sx-local-theme .feature-card__status {
  border-radius: 2px !important;
  background: #e0e1d9 !important;
  color: #777a70 !important;
}

html.sx-local-theme .feature-card__icon {
  width: 40px !important;
  height: 40px !important;
  border-color: #c8c9c0 !important;
  border-radius: 2px !important;
  background: #eceee5 !important;
  color: #35382f !important;
}

html.sx-local-theme .feature-card:hover .feature-card__icon,
html.sx-local-theme .feature-card.highlighted .feature-card__icon {
  border-color: #1d1f1a !important;
  background: var(--sx-accent) !important;
  color: #11130f !important;
}

html.sx-local-theme .feature-card__body strong {
  color: #292b25 !important;
}

html.sx-local-theme .feature-card__body small,
html.sx-local-theme .feature-card__tags span {
  color: #6d7067 !important;
}

html.sx-local-theme .feature-card__tags span {
  border-color: #c8c9c0 !important;
  border-radius: 2px !important;
  background: #eceee5 !important;
}

html.sx-local-theme .feature-card__arrow {
  color: #648c17 !important;
}

html.sx-local-theme .lc-studio-panel {
  border-color: #c8c9c0 !important;
  border-radius: 2px !important;
  background: #f7f7f1 !important;
  box-shadow: none !important;
}

html.sx-local-theme .lc-studio-title,
html.sx-local-theme .side-panel__body p,
html.sx-local-theme .balance-row > span,
html.sx-local-theme .task-item strong {
  color: #292b25 !important;
}

html.sx-local-theme .side-panel__body,
html.sx-local-theme .task-item small,
html.sx-local-theme .task-item em {
  color: #777a70 !important;
}

html.sx-local-theme .side-link {
  border-color: #c8c9c0 !important;
  border-radius: 2px !important;
  background: #eceee5 !important;
  color: #4d7400 !important;
}

html.sx-local-theme .side-link:hover {
  border-color: #1d1f1a !important;
  background: var(--sx-accent) !important;
  color: #11130f !important;
}

html.sx-local-theme .task-item:hover {
  background: #eceee5 !important;
}

@media (max-width: 760px) {
  html.sx-local-theme .stylist-hero__inner {
    grid-template-columns: 1fr !important;
  }

  html.sx-local-theme .stylist-hero__copy {
    min-height: 310px !important;
  }
}

/* Flair-inspired product studio rebuild: light canvas, black structure, acid action. */
html.sx-local-theme {
  --ui-primary: #96e600;
  --ui-color-primary-50: #f6ffe8;
  --ui-color-primary-100: #ebffc7;
  --ui-color-primary-200: #d9ff91;
  --ui-color-primary-300: #c0fa58;
  --ui-color-primary-400: #a8ef20;
  --ui-color-primary-500: #96e600;
  --ui-color-primary-600: #76b800;
  --ui-color-primary-700: #588a00;
  --ui-color-primary-800: #426800;
  --ui-color-primary-900: #354f08;
  --ui-color-primary-950: #1d2c02;
  --color-primary-50: #f6ffe8;
  --color-primary-100: #ebffc7;
  --color-primary-200: #d9ff91;
  --color-primary-300: #c0fa58;
  --color-primary-400: #a8ef20;
  --color-primary-500: #96e600;
  --color-primary-600: #76b800;
  --color-primary-700: #588a00;
  --color-primary-800: #426800;
  --color-primary-900: #354f08;
  --color-primary-950: #1d2c02;
  --color-blue-100: #efffd4;
  --color-blue-600: #5f8e00;
  --color-blue-700: #486c00;
  --color-sky-500: #86bd18;
  --color-sky-600: #668f12;
  --color-violet-100: #f0f1e9;
  --color-violet-500: #73766d;
  --color-violet-600: #5c5f56;
  --color-violet-700: #464940;
  --ui-text-dimmed: #979a90;
  --ui-text-muted: #74776e;
  --ui-text-toned: #5c5f56;
  --ui-text: #3f423a;
  --ui-text-highlighted: #171814;
  --ui-text-inverted: #f7f7f1;
  --ui-bg: #fdfdf8;
  --ui-bg-muted: #f2f2ec;
  --ui-bg-elevated: #e9eae2;
  --ui-bg-accented: #dedfd5;
  --ui-bg-inverted: #171814;
  --ui-border: #d5d7cd;
  --ui-border-muted: #e2e3db;
  --ui-border-accented: #bfc2b7;
  --ui-border-inverted: #171814;
  --ui-info: #607d27;
  --lc-page-bg: #eeefe8;
  --lc-page-bg-soft: #e7e8e0;
  --lc-surface: #fdfdf8;
  --lc-surface-soft: #f5f5ef;
  --lc-border-blue: #d1d3c9;
  --lc-text-main: #1d1f1a;
  --lc-text-muted: #666960;
  --lc-action-blue: #4d7400;
  --lc-action-blue-hover: #385600;
  --lc-focus-blue: rgba(95, 145, 0, 0.36);
  --lc-header-bg: #fdfdf8;
  --lc-header-bg-soft: #f2f2ec;
  --lc-header-border: #d5d7cd;
  --lc-header-shadow: none;
  --lc-brand-gold: var(--sx-accent);
  --lc-brand-gold-deep: var(--sx-accent-hover);
  --lc-brand-gold-soft: #d8ff91;
  --lc-brand-gold-faint: rgba(150, 230, 0, 0.14);
  --lc-studio-bg: var(--lc-page-bg);
  --lc-studio-bg-top: #f2f2ec;
  --lc-studio-bg-bottom: #e8e9e1;
  --lc-studio-heading: #1d1f1a;
  --lc-studio-text: #363930;
  --lc-studio-muted: #666960;
  --lc-studio-faint: #8a8d83;
  --lc-studio-panel: #fdfdf8;
  --lc-studio-panel-strong: #fff;
  --lc-studio-panel-soft: #f4f4ee;
  --lc-studio-border: rgba(57, 60, 52, 0.16);
  --lc-studio-border-strong: rgba(57, 60, 52, 0.28);
  --lc-studio-action: #4d7400;
  --lc-studio-action-hover: #385600;
  --lc-studio-selected: #1d1f1a;
  --lc-shadow-panel: none;
  --lc-shadow-panel-raised: 0 12px 28px rgba(18, 19, 16, 0.1);
  --lc-shadow-action: none;
}

html.sx-local-theme body,
html.sx-local-theme .lc-studio-surface,
html.sx-local-theme .resource-library-page,
html.sx-local-theme .workflow-page {
  background: var(--lc-page-bg) !important;
  color: var(--lc-studio-heading) !important;
}

html.sx-local-theme .resource-library-nav {
  border-color: var(--lc-studio-border-strong) !important;
  border-radius: 3px !important;
  background: #f8f8f3 !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav__item {
  border-radius: 2px !important;
  color: #5e6158 !important;
}

html.sx-local-theme .resource-library-nav__item:hover {
  background: #eceee5 !important;
  color: #1d1f1a !important;
}

html.sx-local-theme .resource-library-nav__item--active,
html.sx-local-theme .resource-library-nav__item--active:hover {
  border-color: #c7df98 !important;
  background: var(--sx-accent-soft) !important;
  color: #1d1f1a !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav__item--active::before {
  background: var(--sx-accent-ink) !important;
}

html.sx-local-theme .resource-library-nav__item--active .resource-library-nav__icon {
  color: var(--sx-accent-ink) !important;
}

html.sx-local-theme .text-primary {
  color: var(--sx-accent-ink) !important;
}

html.sx-local-theme .bg-primary {
  background-color: var(--sx-accent) !important;
  color: #11130f !important;
}

html.sx-local-theme .model-picker-tabs button[class*="bg-primary"],
html.sx-local-theme .studio-result-actions > :first-child {
  background: var(--sx-accent-soft) !important;
  color: var(--sx-accent-ink) !important;
}

html.sx-local-theme .app-layout-header {
  border-color: #292b25 !important;
  background: #121310 !important;
  color: #f7f7f1 !important;
}

html.sx-local-theme .app-layout-header .lingcai-brand {
  --gold: var(--sx-accent);
  --gold-deep: var(--sx-accent-hover);
  --dark: #f7f7f1;
  --mark-color: var(--sx-accent);
  --copy-color: #f7f7f1;
}

html.sx-local-theme .app-layout-header .lingcai-brand__copy small {
  color: #85887d !important;
}

html.sx-local-theme .app-nav-item {
  border-radius: 3px !important;
  color: #aeb1a7 !important;
}

html.sx-local-theme .app-nav-item:hover {
  background: #242620 !important;
  color: #fff !important;
}

html.sx-local-theme .app-nav-item--active {
  background: var(--sx-accent) !important;
  color: #11130f !important;
}

html.sx-local-theme .app-header-action,
html.sx-local-theme .app-header-user {
  border-color: #383a34 !important;
  border-radius: 3px !important;
  background: #1b1c18 !important;
  color: #d7d9d0 !important;
}

html.sx-local-theme .app-header-action:hover,
html.sx-local-theme .app-header-user:hover {
  border-color: #5a5d53 !important;
  background: #252720 !important;
  color: #fff !important;
}

html.sx-local-theme .sidebar-container {
  border-color: #292b25 !important;
  background: #151613 !important;
}

html.sx-local-theme .sidebar-back-link,
html.sx-local-theme .sidebar-category-title,
html.sx-local-theme .sidebar-nav-item,
html.sx-local-theme .sidebar-expand-button {
  color: #aeb1a7 !important;
}

html.sx-local-theme .sidebar-nav-item {
  border-radius: 3px !important;
}

html.sx-local-theme .sidebar-nav-item:hover {
  background: #242620 !important;
  color: #fff !important;
}

html.sx-local-theme .sidebar-nav-item.active,
html.sx-local-theme .sidebar-nav-item.parent-active {
  background: var(--sx-accent) !important;
  color: #11130f !important;
}

html.sx-local-theme .sidebar-nav-item.active svg,
html.sx-local-theme .sidebar-nav-item.parent-active svg,
html.sx-local-theme .sidebar-expand-button--active {
  color: #11130f !important;
}

html.sx-local-theme .studio-page,
html.sx-local-theme .studio-shell {
  background: var(--sx-canvas) !important;
}

html.sx-local-theme .studio-head {
  border-color: var(--sx-line-strong) !important;
}

html.sx-local-theme .studio-eyebrow,
html.sx-local-theme .studio-panel-kicker {
  color: var(--sx-accent-ink) !important;
}

html.sx-local-theme .studio-flow-strip b {
  border-color: #262822 !important;
  border-radius: 50% !important;
  background: #191a16 !important;
  color: var(--sx-accent) !important;
}

html.sx-local-theme .studio-panel,
html.sx-local-theme .studio-generate-panel {
  border-color: var(--sx-line-strong) !important;
  border-radius: var(--sx-radius-panel) !important;
  background: var(--sx-panel) !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-panel-head {
  border-color: #292b25 !important;
  background: #171814 !important;
  color: #f5f6ef !important;
}

html.sx-local-theme .studio-panel-head h2,
html.sx-local-theme .studio-panel-head p,
html.sx-local-theme .studio-panel-head span:not(.studio-panel-kicker) {
  color: inherit !important;
}

html.sx-local-theme .studio-panel-head p {
  color: #9ea096 !important;
}

html.sx-local-theme .studio-panel-badge {
  border-color: #3c3e37 !important;
  background: #252720 !important;
  color: var(--sx-accent) !important;
}

html.sx-local-theme .studio-form-section,
html.sx-local-theme .studio-result-stage,
html.sx-local-theme .studio-result-workspace,
html.sx-local-theme .studio-result-side,
html.sx-local-theme .studio-recent-strip {
  border-color: var(--sx-line) !important;
  border-radius: 3px !important;
  background: #f7f7f1 !important;
}

html.sx-local-theme .studio-form-section-step {
  color: var(--sx-accent-ink) !important;
}

html.sx-local-theme .studio-resolution-pill,
html.sx-local-theme .studio-control-input {
  border-color: var(--sx-line-strong) !important;
  border-radius: 3px !important;
  background: #fff !important;
}

html.sx-local-theme .studio-resolution-pill:hover,
html.sx-local-theme .studio-resolution-pill.active {
  border-color: #11130f !important;
  background: var(--sx-accent) !important;
  color: #11130f !important;
}

html.sx-local-theme .model-tile,
html.sx-local-theme .scene-tile,
html.sx-local-theme .studio-workflow-tile,
html.sx-local-theme .studio-choice-item {
  border-radius: 3px !important;
}

html.sx-local-theme .model-tile:hover,
html.sx-local-theme .scene-tile:hover,
html.sx-local-theme .studio-workflow-tile:hover,
html.sx-local-theme .studio-choice-item:hover {
  border-color: #5e6257 !important;
}

html.sx-local-theme .model-tile.border-primary,
html.sx-local-theme .scene-tile.border-primary,
html.sx-local-theme .studio-choice-item.active {
  border-color: #11130f !important;
  background: var(--sx-accent-soft) !important;
  box-shadow: 0 0 0 2px var(--sx-accent) !important;
}

html.sx-local-theme .studio-generate-button {
  border-color: var(--sx-accent) !important;
  border-radius: 3px !important;
  background: var(--sx-accent) !important;
  color: #11130f !important;
  font-weight: 800 !important;
}

html.sx-local-theme .studio-generate-button:hover {
  border-color: var(--sx-accent-hover) !important;
  background: var(--sx-accent-hover) !important;
  color: #11130f !important;
}

html.sx-local-theme button:focus-visible,
html.sx-local-theme a:focus-visible,
html.sx-local-theme input:focus-visible,
html.sx-local-theme select:focus-visible,
html.sx-local-theme textarea:focus-visible,
#suixinda-workbench-home a:focus-visible {
  outline-color: #5f9100 !important;
}

#suixinda-model-admin-link {
  border-color: #11130f;
  border-radius: 3px;
  background: var(--sx-accent);
  color: #11130f;
  box-shadow: 0 8px 28px rgba(18, 19, 16, 0.18);
}

#suixinda-model-admin-link:hover {
  background: var(--sx-accent-hover);
}

#suixinda-workbench-home {
  background: var(--sx-canvas);
}

#suixinda-workbench-home .sx-topbar {
  min-height: 64px;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  border-color: #292b25;
  background: #121310;
  color: #f5f6ef;
}

#suixinda-workbench-home .sx-brand {
  height: 64px;
  gap: 12px;
  border-color: #292b25;
}

#suixinda-workbench-home .sx-brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
}

#suixinda-workbench-home .sx-brand-mark i {
  position: absolute;
  left: 6px;
  width: 16px;
  height: 5px;
  background: var(--sx-accent);
  transform: skewX(-24deg);
}

#suixinda-workbench-home .sx-brand-mark i:first-child {
  top: 7px;
}

#suixinda-workbench-home .sx-brand-mark i:last-child {
  top: 16px;
  width: 11px;
}

#suixinda-workbench-home .sx-brand strong {
  color: #fff;
  font-size: 15px;
}

#suixinda-workbench-home .sx-brand small {
  color: #777a70;
  font-size: 8px;
}

#suixinda-workbench-home .sx-topnav a,
#suixinda-workbench-home .sx-plain-action,
#suixinda-workbench-home .sx-user {
  border-radius: 3px;
  color: #aeb1a7;
}

#suixinda-workbench-home .sx-topnav a:hover,
#suixinda-workbench-home .sx-topnav a.active {
  background: #252720;
  color: #fff;
}

#suixinda-workbench-home .sx-topnav a.active {
  background: var(--sx-accent);
  color: #11130f;
}

#suixinda-workbench-home .sx-plain-action {
  border-color: #383a34;
  background: #1b1c18;
}

#suixinda-workbench-home .sx-user span {
  background: var(--sx-accent);
  color: #11130f;
}

#suixinda-workbench-home .sx-workbench-layout {
  min-height: calc(100dvh - 64px);
  grid-template-columns: 76px minmax(0, 1fr);
}

#suixinda-workbench-home .sx-rail {
  top: 64px;
  height: calc(100dvh - 64px);
  border-color: #292b25;
  background: #151613;
}

#suixinda-workbench-home .sx-rail a {
  border-radius: 3px;
  color: #85887e;
}

#suixinda-workbench-home .sx-rail a:hover {
  background: #252720;
  color: #fff;
}

#suixinda-workbench-home .sx-rail a.active {
  background: var(--sx-accent);
  color: #11130f;
}

#suixinda-workbench-home .sx-canvas {
  width: min(1600px, 100%);
  padding: 26px 30px 56px;
}

.sx-studio-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(600px, 1.32fr);
  border: 1px solid #20211d;
  background: #151613;
}

.sx-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(38px, 5vw, 72px) clamp(30px, 4vw, 62px) 38px;
  color: #f6f7ef;
}

.sx-overline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #979a90;
  font-size: 11px;
  font-weight: 700;
}

.sx-overline span {
  color: var(--sx-accent);
  font-variant-numeric: tabular-nums;
}

.sx-hero-copy h1 {
  max-width: 620px;
  margin: 48px 0 0;
  color: #f5f6ef;
  font-size: clamp(43px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  word-break: keep-all;
  text-wrap: balance;
}

.sx-hero-copy h1 em {
  color: var(--sx-accent);
  font-style: normal;
}

.sx-hero-description {
  max-width: 520px;
  margin: 28px 0 0;
  color: #aeb1a7;
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
}

.sx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.sx-primary-action,
.sx-secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #3b3d36;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}

.sx-primary-action {
  border-color: var(--sx-accent);
  background: var(--sx-accent);
  color: #11130f !important;
}

.sx-secondary-action {
  background: #1d1f1a;
  color: #f5f6ef !important;
}

.sx-primary-action:hover,
.sx-secondary-action:hover {
  transform: translateY(-1px);
}

.sx-primary-action:hover {
  border-color: var(--sx-accent-hover);
  background: var(--sx-accent-hover);
}

.sx-secondary-action:hover {
  border-color: #66695f;
  background: #292b25;
}

.sx-hero-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: auto 0 0;
  padding-top: 28px;
  border-top: 1px solid #34362f;
}

.sx-hero-metrics div {
  padding-right: 16px;
}

.sx-hero-metrics dt,
.sx-hero-metrics dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.sx-hero-metrics dt {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.sx-hero-metrics dd {
  margin-top: 3px;
  color: #76796f;
  font-size: 10px;
}

.sx-hero-stage {
  min-width: 0;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) 38px;
  margin: 10px;
  border: 1px solid #3a3c35;
  background: #ecece5;
}

.sx-hero-stage > header,
.sx-hero-stage > figcaption {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 9px;
}

.sx-hero-stage > header {
  border-bottom: 1px solid #c8c9c0;
  color: #6e7168;
}

.sx-hero-stage > header b {
  color: #171814;
  font-size: 11px;
}

.sx-hero-stage > header small {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.sx-stage-canvas {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #d9dad2;
}

.sx-stage-campaign {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sx-stage-node {
  position: absolute;
  width: 132px;
  padding: 7px;
  border: 1px solid #22231f;
  background: #f8f8f3;
  box-shadow: 7px 7px 0 rgba(18, 19, 16, 0.2);
}

.sx-stage-node--input {
  top: 24px;
  left: 24px;
}

.sx-stage-node--output {
  right: 24px;
  bottom: 64px;
  width: 150px;
}

.sx-stage-node span,
.sx-stage-node strong {
  display: block;
}

.sx-stage-node span {
  color: var(--sx-accent-ink);
  font-size: 8px;
  font-weight: 800;
}

.sx-stage-node strong {
  margin: 2px 0 7px;
  color: #171814;
  font-size: 10px;
}

.sx-stage-node img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.sx-stage-prompt {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  min-height: 34px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 8px 0 11px;
  border: 1px solid #262821;
  background: rgba(18, 19, 16, 0.94);
  color: #d8dad1;
  font-size: 9px;
}

.sx-stage-prompt i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sx-accent);
}

.sx-stage-prompt b {
  padding: 6px 9px;
  background: var(--sx-accent);
  color: #11130f;
  font-size: 8px;
}

.sx-hero-stage > figcaption {
  border-top: 1px solid #c8c9c0;
  color: #74776e;
}

.sx-hero-stage > figcaption i {
  width: 18px;
  height: 1px;
  background: #b7b9af;
}

.sx-hero-stage > figcaption strong {
  color: #171814;
}

.sx-live-section,
.sx-lab-grid {
  margin-top: 42px;
}

#suixinda-workbench-home .sx-section-head {
  margin-bottom: 14px;
}

#suixinda-workbench-home .sx-section-head > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--sx-accent-ink);
  font-size: 9px;
  font-weight: 800;
}

#suixinda-workbench-home .sx-section-head h2 {
  color: #171814;
  font-size: 22px;
  font-weight: 650;
}

#suixinda-workbench-home .sx-section-head p {
  color: var(--sx-muted);
  line-height: 1.6;
}

.sx-section-head--index {
  align-items: end;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--sx-line-strong);
}

.sx-section-head--index > p {
  max-width: 470px;
  margin: 0 0 2px !important;
  text-align: right;
}

.sx-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 10px;
}

.sx-live-tool {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c4c6bb;
  background: #dbdcd4;
}

.sx-live-tool--1 {
  grid-column: span 2;
  grid-row: span 2;
}

.sx-live-tool img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.86);
  transition: transform 180ms ease-out, filter 180ms ease-out;
}

.sx-live-tool:hover img {
  transform: scale(1.012);
  filter: saturate(1);
}

.sx-live-tool::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 92px;
  background: rgba(18, 19, 16, 0.9);
}

.sx-live-tool-no,
.sx-live-tool-copy,
.sx-live-tool-arrow {
  position: absolute;
  z-index: 1;
}

.sx-live-tool-no {
  top: 12px;
  left: 12px;
  padding: 5px 7px;
  background: var(--sx-accent);
  color: #11130f;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sx-live-tool-copy {
  right: 44px;
  bottom: 15px;
  left: 15px;
}

.sx-live-tool-copy strong,
.sx-live-tool-copy small {
  display: block;
}

.sx-live-tool-copy strong {
  color: #fff;
  font-size: 15px;
}

.sx-live-tool-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: #aeb1a7;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-live-tool-arrow {
  right: 15px;
  bottom: 18px;
  color: var(--sx-accent);
  font-size: 18px;
}

.sx-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(390px, 0.7fr);
  gap: 34px;
}

#suixinda-workbench-home .sx-resource-section,
.sx-status-section {
  min-width: 0;
  margin-top: 0;
}

#suixinda-workbench-home .sx-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#suixinda-workbench-home .sx-resource-grid > a {
  border-radius: 0;
  border-color: var(--sx-line-strong);
  background: #f8f8f3;
}

#suixinda-workbench-home .sx-resource-grid img {
  aspect-ratio: 5 / 4;
  filter: saturate(0.82);
  transition: filter 160ms ease-out;
}

#suixinda-workbench-home .sx-resource-grid > a:hover img {
  filter: saturate(1);
}

#suixinda-workbench-home .sx-resource-grid span {
  border-top: 1px solid var(--sx-line);
}

#suixinda-workbench-home .sx-resource-grid strong {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.sx-status-section > .sx-section-head > b {
  min-width: 38px;
  padding: 7px 9px;
  background: #171814;
  color: var(--sx-accent);
  font-size: 10px;
  text-align: center;
}

.sx-status-group {
  margin-top: 22px;
}

.sx-status-group + .sx-status-group {
  margin-top: 30px;
}

.sx-status-group-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
}

.sx-status-group-head > div {
  min-width: 0;
}

.sx-status-group-head strong,
.sx-status-group-head small {
  display: block;
}

.sx-status-group-head strong {
  color: #22231f;
  font-size: 13px;
}

.sx-status-group-head small {
  margin-top: 4px;
  color: var(--sx-muted);
  font-size: 10px;
  line-height: 1.5;
  text-wrap: pretty;
}

.sx-status-group-head > b {
  min-width: 30px;
  padding: 5px 7px;
  border: 1px solid var(--sx-line-strong);
  color: #575a51;
  font-size: 9px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.sx-upcoming-list {
  border-top: 1px solid var(--sx-line-strong);
}

.sx-upcoming-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(100px, 0.58fr) minmax(130px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--sx-line);
  color: #96998f;
}

a.sx-upcoming-item {
  text-decoration: none;
  transition: background 160ms ease-out, color 160ms ease-out;
}

.sx-upcoming-item--provider {
  color: #96998f;
}

.sx-upcoming-item--disabled,
.sx-upcoming-item--disabled:hover {
  cursor: not-allowed;
  background: transparent;
  user-select: none;
}

.sx-upcoming-item--provider strong {
  color: #777a72;
}

.sx-upcoming-item--provider b {
  background: #e2e3dc;
  color: #777a72;
}

.sx-upcoming-item--planned {
  cursor: not-allowed;
}

.sx-upcoming-item--furniture {
  background: rgba(150, 230, 0, 0.07);
}

.sx-upcoming-item--furniture strong {
  color: #4a5f1c;
}

.sx-upcoming-item--furniture b {
  border: 1px solid #badc78;
  background: transparent;
  color: #607d27;
}

.sx-upcoming-item > span {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.sx-upcoming-item strong {
  color: #777a70;
  font-size: 12px;
}

.sx-upcoming-item small {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-upcoming-item b {
  padding: 4px 6px;
  background: #e0e1d9;
  color: #797c72;
  font-size: 8px;
}

@media (max-width: 1260px) {
  .sx-studio-hero {
    grid-template-columns: minmax(310px, 0.8fr) minmax(520px, 1.2fr);
  }

  .sx-hero-copy h1 {
    font-size: clamp(40px, 5vw, 62px);
  }

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

  .sx-lab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .sx-studio-hero {
    grid-template-columns: 1fr;
  }

  .sx-hero-copy {
    min-height: 490px;
  }

  .sx-hero-stage {
    min-height: 520px;
  }

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

@media (max-width: 860px) {
  #suixinda-workbench-home .sx-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #suixinda-workbench-home .sx-canvas {
    padding: 18px 16px 44px;
  }

  .sx-section-head--index {
    align-items: flex-start;
    flex-direction: column;
  }

  .sx-section-head--index > p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 620px) {
  #suixinda-workbench-home .sx-topbar {
    min-height: 58px;
  }

  #suixinda-workbench-home .sx-brand {
    height: 58px;
  }

  #suixinda-workbench-home .sx-rail {
    top: auto;
    height: 64px;
    background: #151613;
  }

  .sx-hero-copy {
    min-height: 460px;
    padding: 32px 24px;
  }

  .sx-hero-copy h1 {
    margin-top: 36px;
    font-size: 43px;
  }

  .sx-hero-stage {
    min-height: 430px;
    margin: 6px;
  }

  .sx-stage-node {
    width: 104px;
  }

  .sx-stage-node--output {
    width: 116px;
  }

  .sx-live-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .sx-live-tool--1 {
    grid-column: auto;
    grid-row: span 2;
  }

  #suixinda-workbench-home .sx-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-upcoming-item {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .sx-upcoming-item small {
    display: none;
  }
}

/* Local image + text to video page. The form is intentionally non-submitting
   until a video provider and task API are configured. */
#suixinda-image-to-video {
  min-height: 100dvh;
  background: var(--sx-canvas);
  color: var(--sx-ink);
  font-family: var(--lc-font-sans);
}

#suixinda-image-to-video *,
#suixinda-image-to-video *::before,
#suixinda-image-to-video *::after {
  box-sizing: border-box;
}

#suixinda-image-to-video a {
  color: inherit;
  text-decoration: none;
}

.sx-video-topbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #292b25;
  background: #121310;
  color: #f5f6ef;
}

.sx-video-brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid #292b25;
}

.sx-video-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.sx-video-brand strong,
.sx-video-brand small {
  display: block;
}

.sx-video-brand strong {
  color: #fff;
  font-size: 15px;
}

.sx-video-brand small {
  color: #777a70;
  font-size: 8px;
}

.sx-video-brand .sx-pc-brand-mark i {
  border-color: #f5f6ef;
}

.sx-video-brand .sx-pc-brand-mark i:last-child {
  border-color: #b87562;
}

.sx-video-brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.sx-video-brand-mark i {
  position: absolute;
  left: 6px;
  width: 16px;
  height: 5px;
  background: var(--sx-accent);
  transform: skewX(-24deg);
}

.sx-video-brand-mark i:first-child {
  top: 7px;
}

.sx-video-brand-mark i:last-child {
  top: 16px;
  width: 11px;
}

.sx-video-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: #85887e;
  font-size: 11px;
}

.sx-video-breadcrumb a:hover {
  color: #fff;
}

.sx-video-breadcrumb strong {
  overflow: hidden;
  color: #f5f6ef;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-video-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  padding: 0 4px 0 10px;
  border: 1px solid #383a34;
  color: #b8bbb1;
  font-size: 10px;
}

.sx-video-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sx-accent);
}

.sx-video-status b {
  padding: 6px 8px;
  background: #252720;
  color: var(--sx-accent);
  font-size: 9px;
}

.sx-video-page {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 30px 30px 56px;
}

.sx-video-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: end;
  gap: 48px;
  padding: 6px 0 26px;
  border-bottom: 1px solid var(--sx-line-strong);
}

.sx-video-back {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  color: var(--sx-muted) !important;
  font-size: 11px;
  font-weight: 700;
}

.sx-video-back:hover {
  color: var(--sx-ink) !important;
}

.sx-video-heading p,
.sx-video-heading h1 {
  margin: 0;
}

.sx-video-heading > div > p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sx-muted);
  font-size: 11px;
  font-weight: 700;
}

.sx-video-heading > div > p span {
  color: var(--sx-accent-ink);
}

.sx-video-heading h1 {
  max-width: 760px;
  margin-top: 16px;
  color: #171814;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  word-break: keep-all;
  text-wrap: balance;
}

.sx-video-intro {
  padding-bottom: 4px;
  color: var(--sx-muted);
  font-size: 13px;
  line-height: 1.8;
  text-wrap: pretty;
}

.sx-video-workspace {
  display: grid;
  grid-template-columns: minmax(430px, 0.84fr) minmax(560px, 1.16fr);
  gap: 12px;
  margin-top: 18px;
}

.sx-video-panel {
  min-width: 0;
  border: 1px solid var(--sx-line-strong);
  background: var(--sx-panel);
}

.sx-video-panel-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid #292b25;
  background: #171814;
  color: #f5f6ef;
}

.sx-video-panel-head span,
.sx-video-panel-head h2,
.sx-video-panel-head small {
  display: block;
  margin: 0;
}

.sx-video-panel-head span {
  color: var(--sx-accent);
  font-size: 8px;
  font-weight: 800;
}

.sx-video-panel-head h2 {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  text-wrap: balance;
}

.sx-video-panel-head small {
  color: #8f9288;
  font-size: 9px;
  text-align: right;
}

.sx-video-panel-body {
  padding: 0 18px;
}

.sx-video-form-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--sx-line);
}

.sx-video-field-head {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}

.sx-video-field-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sx-video-field-head b {
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #262822;
  border-radius: 50%;
  background: #191a16;
  color: var(--sx-accent);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.sx-video-field-head label,
.sx-video-field-head > div > span {
  color: #262721;
  font-size: 12px;
  font-weight: 800;
}

.sx-video-field-head > span {
  color: var(--sx-faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sx-video-dropzone {
  position: relative;
  min-height: 208px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  border: 1px dashed #aeb1a7;
  background: #f4f4ee;
  color: #292b25;
  cursor: pointer;
  text-align: center;
}

.sx-video-dropzone:hover {
  border-color: #5f6258;
  background: #f0f0e9;
}

.sx-video-dropzone:has(input:focus-visible) {
  outline: 2px solid #5f9100;
  outline-offset: 2px;
}

.sx-video-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sx-video-upload-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #292b25;
  background: #fff;
  color: #292b25;
  font-size: 20px;
  font-weight: 400;
}

.sx-video-dropzone > strong {
  margin-top: 4px;
  font-size: 12px;
}

.sx-video-dropzone > small {
  max-width: 320px;
  color: var(--sx-muted);
  font-size: 10px;
  line-height: 1.6;
  text-wrap: pretty;
}

.sx-video-dropzone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #e8e8e1;
  object-fit: contain;
}

.sx-video-upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--sx-muted);
  font-size: 9px;
}

.sx-video-upload-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-video-upload-meta button {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #763a3f;
  font: 700 9px/1 var(--lc-font-sans);
  cursor: pointer;
}

.sx-video-field-error {
  margin: 7px 0 0;
  color: var(--sx-danger);
  font-size: 10px;
}

.sx-video-form-section textarea,
.sx-video-controls select {
  width: 100%;
  border: 1px solid var(--sx-line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--sx-ink);
  font: 500 12px/1.6 var(--lc-font-sans);
}

.sx-video-form-section textarea {
  min-height: 126px;
  display: block;
  resize: vertical;
  padding: 11px 12px;
}

.sx-video-form-section textarea::placeholder {
  color: #96998f;
}

.sx-video-help {
  margin: 7px 0 0;
  color: var(--sx-muted);
  font-size: 9px;
  line-height: 1.6;
  text-wrap: pretty;
}

.sx-video-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sx-video-controls label,
.sx-video-controls label > span {
  display: block;
}

.sx-video-controls label > span {
  margin-bottom: 6px;
  color: var(--sx-muted);
  font-size: 9px;
}

.sx-video-controls select {
  min-height: 38px;
  padding: 0 10px;
}

.sx-video-check {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px solid var(--sx-line);
  background: #f7f7f1;
}

.sx-video-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #5f9100;
}

.sx-video-check span,
.sx-video-check b,
.sx-video-check small {
  display: block;
}

.sx-video-check b {
  color: #30322c;
  font-size: 10px;
}

.sx-video-check small {
  margin-top: 3px;
  color: var(--sx-muted);
  font-size: 8px;
}

.sx-video-submit-area {
  padding: 16px 18px 18px;
  background: #efefe8;
}

.sx-video-submit-area button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9bbb2;
  background: #d7d8d0;
  color: #777a70;
  font: 800 12px/1 var(--lc-font-sans);
  cursor: not-allowed;
}

.sx-video-submit-area p {
  margin: 8px 0 0;
  color: var(--sx-muted);
  font-size: 9px;
  text-align: center;
}

.sx-video-output-body {
  min-height: 712px;
  display: grid;
  grid-template-rows: minmax(460px, 1fr) auto;
  gap: 10px;
  padding: 10px;
  background: #dfdfd7;
}

.sx-video-output-stage {
  position: relative;
  width: 100%;
  min-height: 460px;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr) 58px;
  border: 1px solid #2b2d27;
  background: #11120f;
  color: #f5f6ef;
}

.sx-video-output-stage[data-ratio="9:16"] {
  width: min(330px, 100%);
  margin: 0 auto;
}

.sx-video-output-stage[data-ratio="1:1"] {
  width: min(520px, 100%);
  margin: 0 auto;
}

.sx-video-frame-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border-bottom: 1px solid #32342e;
  color: #777a70;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.sx-video-frame-guide b {
  color: #aeb1a7;
}

.sx-video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px;
  text-align: center;
}

.sx-video-empty > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border: 1px solid #4b4e45;
  border-radius: 50%;
  color: var(--sx-accent);
  font-size: 17px;
}

.sx-video-empty strong {
  margin-top: 18px;
  color: #f2f3ec;
  font-size: 14px;
}

.sx-video-empty p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #85887e;
  font-size: 10px;
  line-height: 1.7;
  text-wrap: pretty;
}

.sx-video-timeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  padding: 7px;
  border-top: 1px solid #32342e;
}

.sx-video-timeline i {
  border: 1px solid #35372f;
  background: #1d1f1a;
}

.sx-video-contract {
  padding: 16px 18px 18px;
  border: 1px solid var(--sx-line-strong);
  background: #f7f7f1;
}

.sx-video-contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sx-line);
  color: var(--sx-muted);
  font-size: 8px;
}

.sx-video-contract-head b {
  padding: 4px 6px;
  background: var(--sx-accent-soft);
  color: var(--sx-accent-ink);
  font-size: 8px;
}

.sx-video-contract h3 {
  margin: 14px 0 10px;
  color: #22231f;
  font-size: 13px;
  text-wrap: balance;
}

.sx-video-contract dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}

.sx-video-contract dl > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--sx-line);
}

.sx-video-contract dt,
.sx-video-contract dd {
  min-width: 0;
  margin: 0;
  font-size: 9px;
  line-height: 1.6;
}

.sx-video-contract dt {
  color: var(--sx-muted);
}

.sx-video-contract dd {
  overflow-wrap: anywhere;
  color: #292b25;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#suixinda-image-to-video button:focus-visible,
#suixinda-image-to-video a:focus-visible,
#suixinda-image-to-video input:focus-visible,
#suixinda-image-to-video select:focus-visible,
#suixinda-image-to-video textarea:focus-visible {
  outline: 2px solid #5f9100;
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .sx-video-workspace {
    grid-template-columns: 1fr;
  }

  .sx-video-output-body {
    min-height: 650px;
  }
}

@media (max-width: 780px) {
  .sx-video-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sx-video-brand {
    border-right: 0;
  }

  .sx-video-breadcrumb {
    display: none;
  }

  .sx-video-page {
    padding: 20px 16px 40px;
  }

  .sx-video-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sx-video-heading h1 {
    font-size: clamp(36px, 10vw, 54px);
  }

  .sx-video-controls,
  .sx-video-contract dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sx-video-brand {
    min-height: 58px;
  }

  .sx-video-brand > span:last-child {
    display: none;
  }

  .sx-video-status {
    margin-right: 10px;
  }

  .sx-video-status > span,
  .sx-video-status > i {
    display: none;
  }

  .sx-video-panel-head {
    padding: 0 14px;
  }

  .sx-video-panel-head > small {
    display: none;
  }

  .sx-video-panel-body {
    padding: 0 14px;
  }

  .sx-video-field-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .sx-video-field-head > span {
    padding-left: 32px;
    text-align: left;
  }

  .sx-video-dropzone {
    min-height: 180px;
  }

  .sx-video-submit-area {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sx-video-output-body {
    min-height: 590px;
  }

  .sx-video-output-stage {
    min-height: 400px;
  }

  .sx-video-contract dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Pic Copilot-inspired light workbench home.
   This block intentionally uses its own class namespace so the approved home
   direction can evolve without changing the shared tool and admin screens. */
#suixinda-workbench-home {
  --pc-page: #f5f4ef;
  --pc-paper: #fbfaf7;
  --pc-ink: #20231f;
  --pc-muted: #747970;
  --pc-line: #dadbd5;
  --pc-sage: #dfe9e1;
  --pc-sage-strong: #395144;
  --pc-blush: #f1dfdc;
  --pc-sand: #eee3d4;
  --pc-sky: #e7e1d8;
  --pc-butter: #efe9c9;
  --pc-lavender: #e8e2dc;
  --pc-sidebar: #f1eee8;
  --pc-sidebar-hover: #e9e4dc;
  --pc-sidebar-active: #ded4c8;
  --pc-sidebar-text: #6c655c;
  --pc-sidebar-accent: #9b6252;
  --pc-sidebar-note: #e8ddd1;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--pc-page);
  color: var(--pc-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

#suixinda-workbench-home *,
#suixinda-workbench-home *::before,
#suixinda-workbench-home *::after {
  box-sizing: border-box;
}

#suixinda-workbench-home a {
  color: inherit;
  text-decoration: none;
}

#suixinda-workbench-home a:focus-visible {
  outline: 2px solid #8c5649 !important;
  outline-offset: 3px;
}

.sx-pc-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 68px;
  display: grid;
  grid-template-columns: 220px minmax(340px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--pc-line);
  background: rgba(251, 250, 247, 0.97);
}

.sx-pc-brand {
  height: 68px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-right: 1px solid var(--pc-line);
}

.sx-pc-brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  transform: rotate(-4deg);
}

.sx-pc-brand-mark i {
  position: absolute;
  width: 17px;
  height: 10px;
  border: 3px solid var(--pc-ink);
}

.sx-pc-brand-mark i:first-child {
  top: 0;
  left: 0;
  border-radius: 4px 10px 4px 4px;
}

.sx-pc-brand-mark i:last-child {
  right: 0;
  bottom: 0;
  border-color: #a95e4c;
  border-radius: 4px 4px 4px 10px;
}

.sx-pc-brand > span:last-child,
.sx-pc-brand strong,
.sx-pc-brand small {
  min-width: 0;
  display: block;
}

.sx-pc-brand strong {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.sx-pc-brand small {
  margin-top: 2px;
  overflow: hidden;
  color: #8a8e87;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-assistant {
  justify-self: center;
  width: min(720px, calc(100% - 34px));
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 12px;
  border-radius: 15px;
  background: #efeee9;
  color: #666b64 !important;
  font-size: 11px;
  transition: background 160ms ease, transform 160ms ease;
}

.sx-pc-assistant:hover {
  background: #e9e8e2;
  transform: translateY(-1px);
}

.sx-pc-assistant-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pc-sage-strong);
  color: #fff;
  font-size: 10px;
}

.sx-pc-assistant b {
  color: var(--pc-ink);
  font-weight: 650;
}

.sx-pc-assistant strong {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d1d3cd;
  border-radius: 10px;
  background: var(--pc-paper);
  color: var(--pc-ink);
  font-size: 9px;
  white-space: nowrap;
}

.sx-pc-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 20px 0 12px;
  color: var(--pc-muted);
  font-size: 9px;
  white-space: nowrap;
}

.sx-pc-account span b {
  color: var(--pc-ink);
}

.sx-pc-account > a:not(.sx-pc-avatar) {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #bfc2bb;
  border-radius: 11px;
  color: var(--pc-ink);
  transition: background 150ms ease;
}

.sx-pc-account > a:not(.sx-pc-avatar):hover {
  background: #efeee9;
}

.sx-pc-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #374b40;
  color: #fff !important;
  font-size: 9px;
}

.sx-pc-shell {
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sx-pc-sidebar {
  position: sticky;
  top: 68px;
  height: calc(100dvh - 68px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 16px;
  border-right: 1px solid #d7d1c8;
  background: var(--pc-sidebar);
}

.sx-pc-nav {
  padding: 5px 0;
}

.sx-pc-nav a {
  min-height: 45px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  padding: 0 13px;
  border-radius: 13px;
  color: var(--pc-sidebar-text) !important;
  font-size: 11px;
  transition: background 150ms ease, color 150ms ease;
}

.sx-pc-nav a:hover {
  background: var(--pc-sidebar-hover);
  color: var(--pc-ink) !important;
}

.sx-pc-nav a.active {
  background: var(--pc-sidebar-active);
  color: #352f2a !important;
  font-weight: 650;
}

.sx-pc-nav svg {
  width: 17px;
  height: 17px;
}

.sx-pc-nav a.active svg {
  padding: 3px;
  border-radius: 6px;
  background: var(--pc-sidebar-accent);
  color: #fff;
}

.sx-pc-nav b {
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--pc-sidebar-accent);
  color: #fff;
  font-size: 7px;
}

.sx-pc-sidebar-note {
  margin-top: auto;
  padding: 15px;
  border-radius: 16px 16px 5px 16px;
  background: var(--pc-sidebar-note);
}

.sx-pc-sidebar-note small {
  color: #75685e;
  font-size: 8px;
}

.sx-pc-sidebar-note strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 11px;
}

.sx-pc-sidebar-note p {
  margin: 0 0 10px;
  color: #6e6259;
  font-size: 8px;
  line-height: 1.55;
}

.sx-pc-sidebar-note a {
  color: #774f43 !important;
  font-size: 9px;
  font-weight: 650;
}

.sx-pc-main {
  width: min(1580px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 14px 24px 58px;
}

.sx-pc-brief {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(230px, auto) minmax(320px, 1fr);
  align-items: center;
  gap: 17px;
  padding: 12px 22px;
  border-radius: 18px 18px 6px 18px;
  background: var(--pc-sky);
}

.sx-pc-brief::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(#c9d3d8 1px, transparent 1px),
    linear-gradient(90deg, #c9d3d8 1px, transparent 1px);
  background-size: 34px 34px;
}

.sx-pc-brief-symbol,
.sx-pc-brief > div,
.sx-pc-brief > a {
  position: relative;
  z-index: 2;
}

.sx-pc-brief-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pc-paper);
  color: #465c50;
  font-size: 16px;
  box-shadow: 0 7px 20px rgba(64, 72, 67, 0.1);
}

.sx-pc-brief > div small,
.sx-pc-brief > div strong {
  display: block;
}

.sx-pc-brief > div small {
  margin-bottom: 4px;
  color: #65746c;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.sx-pc-brief > div strong {
  font-size: 13px;
}

.sx-pc-brief > a {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 7px 6px 15px;
  border-radius: 14px;
  background: rgba(251, 250, 247, 0.92);
  color: #777c75 !important;
  font-size: 10px;
}

.sx-pc-brief > a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-brief > a b {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--pc-ink);
  color: #fff;
  font-size: 9px;
  white-space: nowrap;
}

.sx-pc-brief > i {
  position: absolute;
  z-index: 1;
  top: -24px;
  right: 18px;
  width: 130px;
  height: 130px;
  border: 18px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.sx-pc-page-head {
  min-height: 84px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 2px 13px;
}

.sx-pc-page-head h1,
.sx-pc-page-head p {
  margin: 0;
}

.sx-pc-page-head h1 {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.sx-pc-page-head p {
  margin-top: 5px;
  color: var(--pc-muted);
  font-size: 10px;
}

.sx-pc-page-head > a {
  color: #4f5750 !important;
  font-size: 9px;
  white-space: nowrap;
}

.sx-pc-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 14px;
}

.sx-pc-feature {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 18px 18px 7px 18px;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.sx-pc-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(56, 63, 57, 0.1);
}

.sx-pc-feature--primary {
  background: var(--pc-sage);
}

.sx-pc-feature--secondary {
  background: var(--pc-blush);
}

.sx-pc-feature-copy {
  position: relative;
  z-index: 3;
  width: 43%;
  display: block;
}

.sx-pc-feature-copy small,
.sx-pc-feature-copy strong,
.sx-pc-feature-copy p {
  display: block;
}

.sx-pc-feature-copy small {
  color: #6c786f;
  font-size: 8px;
  letter-spacing: 0.03em;
}

.sx-pc-feature-copy strong {
  margin: 13px 0 7px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 18px;
}

.sx-pc-feature-copy p {
  margin: 0;
  color: #667168;
  font-size: 9px;
  line-height: 1.6;
}

.sx-pc-feature-go {
  position: absolute;
  z-index: 5;
  left: 22px;
  bottom: 19px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pc-ink);
  color: #fff;
  font-size: 15px;
  transition: transform 170ms ease;
}

.sx-pc-feature:hover .sx-pc-feature-go {
  transform: translateX(3px);
}

.sx-pc-feature-visual {
  position: absolute;
  top: 12px;
  right: 16px;
  bottom: 12px;
  width: 54%;
}

.sx-pc-feature-visual img {
  position: absolute;
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(251, 250, 247, 0.72);
  box-shadow: 0 9px 25px rgba(62, 67, 62, 0.14);
  transition: transform 180ms ease;
}

.sx-pc-feature--primary .image-a {
  right: 144px;
  width: 124px;
  height: 166px;
  border-radius: 14px;
  transform: rotate(-3deg);
}

.sx-pc-feature--primary .image-b {
  right: 38px;
  width: 124px;
  height: 166px;
  border-radius: 14px;
  transform: rotate(3deg);
}

.sx-pc-feature--primary .image-c {
  right: 106px;
  bottom: -2px;
  width: 76px;
  height: 98px;
  border: 5px solid var(--pc-paper);
  border-radius: 11px;
}

.sx-pc-feature--secondary .sx-pc-feature-copy {
  width: 47%;
}

.sx-pc-feature--secondary .image-a {
  right: 116px;
  width: 116px;
  height: 166px;
  border-radius: 58px 58px 13px 13px;
}

.sx-pc-feature--secondary .image-b {
  right: 22px;
  bottom: 3px;
  width: 110px;
  height: 145px;
  border: 5px solid var(--pc-paper);
  border-radius: 14px 14px 40px 14px;
}

.sx-pc-section {
  margin-top: 28px;
}

.sx-pc-section-head {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 10px;
}

.sx-pc-section-head h2,
.sx-pc-section-head p {
  margin: 0;
}

.sx-pc-section-head h2 {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 16px;
}

.sx-pc-section-head p {
  margin-top: 4px;
  color: var(--pc-muted);
  font-size: 9px;
}

.sx-pc-section-head > a,
.sx-pc-section-head > span {
  color: #555d56 !important;
  font-size: 9px;
  white-space: nowrap;
}

.sx-pc-tool-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.sx-pc-tool {
  position: relative;
  min-width: 0;
  height: 218px;
  overflow: hidden;
  padding: 12px;
  border-radius: 16px 16px 6px 16px;
  background: #ecece8;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sx-pc-tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(50, 56, 51, 0.11);
}

.sx-pc-tool--sage { background: var(--pc-sage); }
.sx-pc-tool--sand { background: var(--pc-sand); }
.sx-pc-tool--sky { background: var(--pc-sky); }
.sx-pc-tool--butter { background: var(--pc-butter); }
.sx-pc-tool--blush { background: var(--pc-blush); }
.sx-pc-tool--lavender { background: var(--pc-lavender); }

.sx-pc-tool-title {
  position: relative;
  z-index: 3;
  min-height: 29px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sx-pc-tool-title strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-tool-title small {
  color: #757c74;
  font-size: 8px;
}

.sx-pc-tool-media {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 164px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border-radius: 12px 12px 4px 12px;
  background: rgba(255, 255, 255, 0.75);
}

.sx-pc-tool-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: rgba(251, 250, 247, 0.82);
  transition: transform 180ms ease;
}

.sx-pc-compact-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.sx-pc-compact-tool {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--pc-line);
  border-radius: 13px 13px 5px 13px;
  background: rgba(251, 250, 247, 0.72);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sx-pc-compact-tool:hover {
  border-color: var(--pc-line-strong);
  background: var(--pc-paper);
  transform: translateY(-1px);
}

.sx-pc-compact-index {
  color: #a06c5e;
  font: 650 9px/1 "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: 0.04em;
}

.sx-pc-compact-tool > span:nth-child(2),
.sx-pc-compact-tool strong,
.sx-pc-compact-tool small {
  min-width: 0;
  display: block;
}

.sx-pc-compact-tool strong {
  font-size: 10px;
}

.sx-pc-compact-tool small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--pc-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-compact-tool > b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ece9e2;
  color: #575d57;
  font-size: 10px;
}

.sx-pc-tool:hover .sx-pc-tool-media img:last-child {
  transform: none;
}

.sx-pc-tool-arrow {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 123px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 250, 247, 0.96);
  box-shadow: 0 4px 11px rgba(43, 48, 44, 0.12);
  font-size: 11px;
  transform: translate(-50%, -50%);
}

.sx-pc-recommended {
  position: absolute;
  z-index: 5;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  border-radius: 7px;
  background: #354c40;
  color: #fff;
  font-size: 7px;
}

/* Editorial tool navigator: one active visual, six indexed routes. */
.sx-pc-tool-browser {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
  align-items: stretch;
  gap: 30px;
}

.sx-pc-tool-index {
  min-width: 0;
  border-top: 1px solid var(--pc-line-strong, #c8c5bd);
}

.sx-pc-tool-row {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  border-bottom: 1px solid var(--pc-line);
  transition: padding 170ms ease, color 170ms ease, background 170ms ease;
}

.sx-pc-tool-row:hover,
.sx-pc-tool-row:focus-visible,
.sx-pc-tool-row.is-active {
  padding-right: 10px;
  padding-left: 10px;
  background: rgba(251, 250, 247, 0.7);
}

.sx-pc-tool-row-index {
  color: #9a6656;
  font: 650 10px/1 "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: 0.06em;
}

.sx-pc-tool-row-copy,
.sx-pc-tool-row-copy strong,
.sx-pc-tool-row-copy small {
  min-width: 0;
  display: block;
}

.sx-pc-tool-row-copy strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sx-pc-tool-row-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--pc-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-tool-row-kind {
  color: #898c84;
  font-size: 8px;
}

.sx-pc-tool-row-arrow {
  color: #989b94;
  font-size: 13px;
  text-align: right;
  transition: color 170ms ease, transform 170ms ease;
}

.sx-pc-tool-row.is-active .sx-pc-tool-row-copy strong,
.sx-pc-tool-row:hover .sx-pc-tool-row-copy strong {
  color: #8f5849;
}

.sx-pc-tool-row.is-active .sx-pc-tool-row-arrow,
.sx-pc-tool-row:hover .sx-pc-tool-row-arrow {
  color: var(--pc-ink);
  transform: translate(2px, -2px);
}

.sx-pc-tool-stage {
  min-width: 0;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d3d4cc;
  border-radius: 28px 28px 8px 28px;
  background: #e4e6df;
  transition: border-color 180ms ease, transform 180ms ease;
}

.sx-pc-tool-stage:hover {
  border-color: #b9bdb4;
  transform: translateY(-2px);
}

.sx-pc-tool-stage-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.sx-pc-tool-stage-head > span {
  color: #777c73;
  font: 500 10px/1 "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: 0.05em;
}

.sx-pc-tool-stage-head > span b {
  color: #8f5849;
  font-size: 18px;
}

.sx-pc-tool-stage-head > span i {
  margin: 0 5px;
  font-style: normal;
}

.sx-pc-tool-stage-head div,
.sx-pc-tool-stage-head strong,
.sx-pc-tool-stage-head small,
.sx-pc-tool-stage-head p {
  min-width: 0;
  display: block;
}

.sx-pc-tool-stage-head small {
  color: #71766e;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.sx-pc-tool-stage-head strong {
  margin-top: 4px;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 680;
  letter-spacing: -0.045em;
}

.sx-pc-tool-stage-head p {
  margin: 6px 0 0;
  color: #686e66;
  font-size: 10px;
  line-height: 1.55;
}

.sx-pc-tool-stage-head em {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #bdc1b8;
  border-radius: 11px;
  background: rgba(251, 250, 247, 0.66);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.sx-pc-tool-stage-media {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.sx-pc-tool-stage-media figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(113, 118, 110, 0.18);
  background: #f1f0eb;
}

.sx-pc-tool-stage-media figure:first-child {
  border-radius: 20px 7px 7px 20px;
}

.sx-pc-tool-stage-media figure:last-child {
  border-radius: 7px 20px 20px 7px;
}

.sx-pc-tool-stage-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: opacity 130ms ease;
}

.sx-pc-tool-stage-media figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.9);
  color: #555b53;
  font-size: 8px;
}

.sx-pc-tool-stage-flow {
  align-self: center;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #c9cbc4;
  border-radius: 50%;
  background: var(--pc-paper);
  color: #555b53;
  font-size: 15px;
}

@media (max-width: 1060px) {
  .sx-pc-tool-browser {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sx-pc-tool-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-pc-tool-row:nth-child(odd) {
    border-right: 1px solid var(--pc-line);
  }

  .sx-pc-tool-stage {
    min-height: 530px;
  }
}

@media (max-width: 720px) {
  .sx-pc-tool-index {
    grid-template-columns: 1fr;
  }

  .sx-pc-tool-row:nth-child(odd) {
    border-right: 0;
  }

  .sx-pc-tool-row {
    min-height: 76px;
  }

  .sx-pc-tool-stage {
    min-height: 500px;
    padding: 17px;
    border-radius: 21px 21px 7px 21px;
  }

  .sx-pc-tool-stage-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sx-pc-tool-stage-head em {
    display: none;
  }

  .sx-pc-tool-stage-media {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 7px;
  }

  .sx-pc-tool-stage-flow {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .sx-pc-tool-row {
    grid-template-columns: 30px minmax(0, 1fr) 22px;
  }

  .sx-pc-tool-row-kind {
    display: none;
  }

  .sx-pc-tool-stage {
    min-height: 430px;
  }

  .sx-pc-tool-stage-head p {
    display: none;
  }
}

.sx-pc-home-hero {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(330px, 0.76fr) minmax(0, 1.24fr);
  overflow: hidden;
  border: 1px solid #d2d4cd;
  border-radius: 30px 30px 8px 30px;
  background: #e7e8e2;
}

.sx-pc-home-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 4vw, 56px);
}

.sx-pc-home-hero-copy > small {
  color: #8e5b4c;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.sx-pc-home-hero-copy h1 {
  max-width: 520px;
  margin: 14px 0 0;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.sx-pc-home-hero-copy p {
  max-width: 460px;
  margin: 20px 0 0;
  color: #626860;
  font-size: 12px;
  line-height: 1.75;
}

.sx-pc-home-hero-copy > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 0 18px;
  border-radius: 14px 14px 5px 14px;
  background: #26332c;
  color: #fff !important;
  font-size: 12px;
  font-weight: 650;
  transition: background 170ms ease, transform 170ms ease;
}

.sx-pc-home-hero-copy > a:hover {
  background: #8e5b4c;
  transform: translateY(-2px);
}

.sx-pc-home-hero-copy > a b {
  font-size: 15px;
}

.sx-pc-home-hero-copy > em {
  margin-top: 15px;
  color: #7b8078;
  font-size: 9px;
  font-style: normal;
}

.sx-pc-home-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #dfe3df;
}

.sx-pc-home-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 18px 0 28px rgba(60, 67, 62, 0.08);
}

.sx-pc-home-hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.sx-pc-quick-tools {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr;
  border-top: 1px solid var(--pc-line);
  border-bottom: 1px solid var(--pc-line);
}

.sx-pc-quick-tool {
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  transition: background 170ms ease, padding 170ms ease;
}

.sx-pc-quick-tool + .sx-pc-quick-tool {
  border-left: 1px solid var(--pc-line);
}

.sx-pc-quick-tool:hover {
  padding-right: 18px;
  padding-left: 26px;
  background: rgba(231, 232, 226, 0.72);
}

.sx-pc-quick-tool-index {
  color: #9a6656;
  font: 650 10px/1 "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: 0.06em;
}

.sx-pc-quick-tool-copy,
.sx-pc-quick-tool-copy small,
.sx-pc-quick-tool-copy strong,
.sx-pc-quick-tool-copy p {
  min-width: 0;
  display: block;
}

.sx-pc-quick-tool-copy small {
  color: #848981;
  font-size: 8px;
}

.sx-pc-quick-tool-copy strong {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sx-pc-quick-tool-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--pc-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-quick-tool > b {
  color: #777d75;
  font-size: 14px;
  transition: color 170ms ease, transform 170ms ease;
}

.sx-pc-quick-tool:hover > b {
  color: #8e5b4c;
  transform: translate(2px, -2px);
}

@media (max-width: 980px) {
  .sx-pc-home-hero {
    grid-template-columns: 1fr;
  }

  .sx-pc-home-hero-copy {
    padding: 34px;
  }

  .sx-pc-home-hero-visual {
    min-height: 330px;
  }
}

@media (max-width: 720px) {
  .sx-pc-home-hero {
    min-height: 0;
    border-radius: 22px 22px 7px 22px;
  }

  .sx-pc-home-hero-copy {
    padding: 27px 22px 30px;
  }

  .sx-pc-home-hero-copy h1 {
    font-size: 34px;
  }

  .sx-pc-home-hero-copy p {
    font-size: 11px;
  }

  .sx-pc-home-hero-visual {
    min-height: 230px;
  }

  .sx-pc-quick-tools {
    grid-template-columns: 1fr;
  }

  .sx-pc-quick-tool {
    min-height: 104px;
  }

  .sx-pc-quick-tool + .sx-pc-quick-tool {
    border-top: 1px solid var(--pc-line);
    border-left: 0;
  }
}

.sx-pc-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 28px;
}

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

.sx-pc-resource {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: 14px 14px 5px 14px;
  background: var(--pc-paper);
}

.sx-pc-resource img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f3f0e9;
  filter: saturate(0.9);
  transition: transform 170ms ease, filter 170ms ease;
}

.sx-pc-resource:hover img {
  filter: saturate(1);
  transform: none;
}

.sx-pc-resource > span {
  display: block;
  padding: 10px 11px;
  border-top: 1px solid var(--pc-line);
}

.sx-pc-resource strong,
.sx-pc-resource small {
  display: block;
}

.sx-pc-resource strong {
  font-size: 10px;
}

.sx-pc-resource small {
  margin-top: 3px;
  color: var(--pc-muted);
  font-size: 8px;
}

.sx-pc-unavailable-list {
  border-top: 1px solid var(--pc-line);
}

.sx-pc-unavailable-item {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--pc-line);
  color: #8b8f89;
}

.sx-pc-unavailable-item > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8cac4;
}

.sx-pc-unavailable-item div,
.sx-pc-unavailable-item strong,
.sx-pc-unavailable-item small {
  min-width: 0;
  display: block;
}

.sx-pc-unavailable-item strong {
  font-size: 10px;
  font-weight: 600;
}

.sx-pc-unavailable-item small {
  margin-top: 3px;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-unavailable-item b {
  padding: 4px 6px;
  border-radius: 7px;
  background: #e4e4df;
  color: #8a8d87;
  font-size: 7px;
  font-weight: 600;
}

@media (max-width: 1400px) {
  .sx-pc-topbar {
    grid-template-columns: 200px minmax(300px, 1fr) auto;
  }

  .sx-pc-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .sx-pc-tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .sx-pc-topbar {
    grid-template-columns: 82px minmax(280px, 1fr) auto;
  }

  .sx-pc-brand {
    justify-content: center;
    padding: 0;
  }

  .sx-pc-brand > span:last-child,
  .sx-pc-account > span {
    display: none;
  }

  .sx-pc-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sx-pc-sidebar {
    padding-right: 9px;
    padding-left: 9px;
  }

  .sx-pc-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .sx-pc-nav a > span,
  .sx-pc-nav a > b,
  .sx-pc-sidebar-note {
    display: none;
  }

  .sx-pc-lower-grid {
    grid-template-columns: 1fr;
  }

  .sx-pc-compact-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sx-pc-featured {
    grid-template-columns: 1fr;
  }

  .sx-pc-feature {
    min-height: 210px;
  }

  .sx-pc-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sx-pc-resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sx-pc-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sx-pc-brand {
    justify-content: flex-start;
    padding: 0 16px;
    border-right: 0;
  }

  .sx-pc-brand > span:last-child {
    display: block;
  }

  .sx-pc-assistant {
    display: none;
  }

  .sx-pc-account {
    padding-right: 12px;
  }

  .sx-pc-account > a:not(.sx-pc-avatar) {
    display: none;
  }

  .sx-pc-shell {
    display: block;
  }

  .sx-pc-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: auto;
    height: 68px;
    padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--pc-line);
    border-right: 0;
  }

  .sx-pc-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0;
  }

  .sx-pc-nav a {
    min-height: 56px;
    grid-template-columns: 1fr;
    grid-template-rows: 18px auto;
    align-content: center;
    justify-items: center;
    gap: 4px;
    margin: 0;
    border-radius: 10px;
    font-size: 8px;
  }

  .sx-pc-nav a:nth-child(n + 6) {
    display: none;
  }

  .sx-pc-nav a > span {
    display: block;
  }

  .sx-pc-nav a > b {
    display: none;
  }

  .sx-pc-main {
    padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
  }

  .sx-pc-brief {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .sx-pc-brief > a {
    grid-column: 1 / -1;
  }

  .sx-pc-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-pc-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Extension feature workspaces. These pages expose the real input contract and
   workflow nodes before a model is bound, without presenting a fake runnable
   state. The visual language follows the approved warm workbench palette. */
#suixinda-extension-feature {
  --sx-ext-page: #f3f1eb;
  --sx-ext-paper: #fbfaf6;
  --sx-ext-paper-2: #f7f4ed;
  --sx-ext-ink: #242721;
  --sx-ext-muted: #74786f;
  --sx-ext-line: #d9d9d1;
  --sx-ext-sage: #dfe7dd;
  --sx-ext-sage-strong: #46594a;
  --sx-ext-clay: #9a6656;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 74% 3%, rgba(224, 231, 217, 0.9), transparent 28rem),
    var(--sx-ext-page);
  color: var(--sx-ext-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

#suixinda-extension-feature *,
#suixinda-extension-feature *::before,
#suixinda-extension-feature *::after {
  box-sizing: border-box;
}

#suixinda-extension-feature a {
  color: inherit;
  text-decoration: none;
}

#suixinda-extension-feature a:focus-visible,
#suixinda-extension-feature button:focus-visible,
#suixinda-extension-feature input:focus-visible,
#suixinda-extension-feature select:focus-visible,
#suixinda-extension-feature textarea:focus-visible {
  outline: 2px solid var(--sx-ext-clay);
  outline-offset: 3px;
}

.sx-extension-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 68px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--sx-ext-line);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(18px);
}

.sx-extension-brand {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-right: 1px solid var(--sx-ext-line);
}

.sx-extension-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.sx-extension-brand strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.sx-extension-brand small {
  color: var(--sx-ext-muted);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.sx-extension-topbar nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  color: var(--sx-ext-muted);
  font-size: 12px;
}

.sx-extension-topbar nav strong {
  overflow: hidden;
  color: var(--sx-ext-ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-extension-admin {
  margin-right: 22px;
  padding: 9px 13px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 12px 12px 5px 12px;
  background: var(--sx-ext-paper);
  font-size: 11px;
  font-weight: 600;
}

.sx-extension-page {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.sx-extension-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 50px;
}

.sx-extension-heading > div > a {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--sx-ext-muted);
  font-size: 11px;
}

.sx-extension-heading > div > p {
  margin: 0 0 12px;
  color: var(--sx-ext-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.sx-extension-heading h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 4.2vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.sx-extension-heading aside {
  padding: 22px 24px 20px;
  border: 1px solid rgba(104, 116, 101, 0.22);
  border-radius: 28px 28px 8px 28px;
  background: rgba(223, 231, 221, 0.72);
}

.sx-extension-heading aside span,
.sx-extension-heading aside strong,
.sx-extension-heading aside p {
  display: block;
}

.sx-extension-heading aside span {
  color: var(--sx-ext-muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.sx-extension-heading aside strong {
  margin-top: 7px;
  font-size: 15px;
}

.sx-extension-heading aside p {
  margin: 8px 0 0;
  color: #657064;
  font-size: 11px;
  line-height: 1.65;
}

.sx-extension-intro {
  max-width: 720px;
  margin: 20px 0 36px;
  color: var(--sx-ext-muted);
  font-size: 14px;
  line-height: 1.8;
}

.sx-extension-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  gap: 18px;
  align-items: start;
}

.sx-extension-panel {
  overflow: hidden;
  border: 1px solid var(--sx-ext-line);
  border-radius: 32px 32px 10px 32px;
  background: rgba(251, 250, 246, 0.92);
  box-shadow: 0 18px 55px rgba(69, 66, 58, 0.06);
}

.sx-extension-panel-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--sx-ext-line);
}

.sx-extension-panel-head span,
.sx-extension-panel-head h2 {
  display: block;
  margin: 0;
}

.sx-extension-panel-head span {
  color: var(--sx-ext-clay);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.sx-extension-panel-head h2 {
  margin-top: 5px;
  font-size: 18px;
}

.sx-extension-panel-head small {
  color: var(--sx-ext-muted);
  font-size: 9px;
}

.sx-extension-form-body {
  padding: 22px;
}

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

#suixinda-extension-feature[data-agent-type="image-conversation"] .sx-extension-upload-grid,
#suixinda-extension-feature[data-agent-type="pose-batch"] .sx-extension-upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sx-extension-field {
  min-width: 0;
}

.sx-extension-field + .sx-extension-field,
.sx-extension-upload-grid + .sx-extension-field {
  margin-top: 22px;
}

.sx-extension-upload-grid .sx-extension-field + .sx-extension-field {
  margin-top: 0;
}

.sx-extension-field.is-inactive {
  opacity: 0.48;
}

.sx-extension-field.is-inactive .sx-extension-dropzone {
  cursor: default;
}

.sx-extension-field > header {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.sx-extension-field > header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sx-extension-field > header b {
  color: var(--sx-ext-clay);
  font-size: 9px;
}

.sx-extension-field > header span,
.sx-extension-field > header label {
  font-size: 12px;
  font-weight: 600;
}

.sx-extension-field > header em {
  padding: 2px 5px;
  border-radius: 5px;
  background: #efe0d9;
  color: #865346;
  font-size: 7px;
  font-style: normal;
}

.sx-extension-field > header small {
  color: var(--sx-ext-muted);
  font-size: 8px;
}

.sx-extension-dropzone {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  padding: 18px;
  border: 1px dashed #c7c8bf;
  border-radius: 22px 22px 7px 22px;
  background: var(--sx-ext-paper-2);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sx-extension-dropzone:hover {
  border-color: #9aa395;
  background: #f2f3ec;
  transform: translateY(-1px);
}

.sx-extension-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sx-extension-dropzone > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sx-ext-sage);
  color: var(--sx-ext-sage-strong);
  font-size: 20px;
}

.sx-extension-dropzone > strong {
  font-size: 12px;
}

.sx-extension-dropzone > small {
  max-width: 230px;
  color: var(--sx-ext-muted);
  font-size: 9px;
  line-height: 1.55;
}

.sx-extension-dropzone img,
.sx-extension-dropzone video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #deddd6;
}

.sx-extension-file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px 0;
  color: var(--sx-ext-muted);
  font-size: 8px;
}

.sx-extension-file-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-extension-file-meta button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sx-ext-clay);
  font: inherit;
  cursor: pointer;
}

.sx-extension-prompt-field textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 18px 18px 6px 18px;
  background: #fffefb;
  color: var(--sx-ext-ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.75;
}

.sx-extension-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.sx-extension-mode-switch label {
  position: relative;
  min-height: 78px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 16px 16px 6px 16px;
  background: #fffefb;
  cursor: pointer;
}

.sx-extension-mode-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sx-extension-mode-switch label:has(input:checked) {
  border-color: var(--sx-ext-sage-strong);
  background: var(--sx-ext-sage);
  box-shadow: inset 0 0 0 1px rgba(70, 89, 74, 0.08);
}

.sx-extension-mode-switch span {
  color: var(--sx-ext-ink);
  font-size: 11px;
  font-weight: 700;
}

.sx-extension-mode-switch small {
  color: var(--sx-ext-muted);
  font-size: 8px;
  line-height: 1.5;
}

.sx-extension-scene-picker {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 18px 18px 6px 18px;
  background: var(--sx-ext-paper-2);
}

.sx-extension-scene-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.sx-extension-scene-note span {
  font-size: 10px;
  font-weight: 700;
}

.sx-extension-scene-note small {
  color: var(--sx-ext-muted);
  font-size: 8px;
  text-align: right;
}

.sx-extension-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.sx-extension-scene-grid p {
  grid-column: 1 / -1;
  margin: 8px 0;
  color: var(--sx-ext-muted);
  font-size: 9px;
}

.sx-extension-scene-grid button {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px 12px 5px 12px;
  background: #ecebe5;
  color: var(--sx-ext-ink);
  cursor: pointer;
  text-align: left;
}

.sx-extension-scene-grid button.is-selected {
  border-color: var(--sx-ext-sage-strong);
  box-shadow: 0 0 0 2px rgba(70, 89, 74, 0.14);
}

.sx-extension-scene-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #deddd6;
}

.sx-extension-scene-grid strong {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-extension-scene-selection {
  margin-top: 9px;
  color: var(--sx-ext-sage-strong);
  font-size: 8px;
  font-weight: 700;
}

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

.sx-extension-settings label {
  display: grid;
  gap: 7px;
  color: var(--sx-ext-muted);
  font-size: 9px;
}

.sx-extension-settings select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 12px 12px 5px 12px;
  background: #fffefb;
  color: var(--sx-ext-ink);
  font: inherit;
  font-size: 11px;
}

.sx-extension-template-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 12px 12px 5px 12px;
  background: #fffefb;
  color: var(--sx-ext-ink);
  font: inherit;
  font-size: 11px;
}

.sx-extension-settings .sx-extension-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 12px 12px 5px 12px;
  background: #fffefb;
  color: var(--sx-ext-ink);
  cursor: pointer;
}

.sx-extension-settings .sx-extension-check input {
  accent-color: var(--sx-ext-sage-strong);
}

.sx-extension-submit {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
  border-top: 1px solid var(--sx-ext-line);
  background: #f4f2ec;
}

.sx-extension-submit div,
.sx-extension-submit span,
.sx-extension-submit small {
  min-width: 0;
  display: block;
}

.sx-extension-submit span {
  font-size: 10px;
  font-weight: 600;
}

.sx-extension-submit small {
  margin-top: 4px;
  color: var(--sx-ext-muted);
  font-size: 8px;
}

.sx-extension-submit button {
  min-width: 138px;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 14px 14px 5px 14px;
  background: var(--sx-ext-ink);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sx-extension-submit button:disabled {
  background: #d6d6cf;
  color: #858980;
  cursor: not-allowed;
}

.sx-extension-output {
  padding-bottom: 18px;
}

.sx-extension-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 18px;
  border-radius: 26px 26px 8px 26px;
  background: #e8e6df;
}

.sx-extension-stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(91, 93, 86, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 93, 86, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.sx-extension-stage-assets {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 9px;
  pointer-events: none;
}

.sx-extension-stage-assets img,
.sx-extension-stage-assets video {
  width: 88px;
  height: 108px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px 16px 5px 16px;
  box-shadow: 0 9px 26px rgba(53, 51, 46, 0.14);
}

.sx-extension-stage-empty {
  position: relative;
  z-index: 2;
  max-width: 280px;
  padding: 30px;
  text-align: center;
}

.sx-extension-stage-empty span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.76);
  color: var(--sx-ext-sage-strong);
  font-size: 24px;
}

.sx-extension-stage-empty strong {
  display: block;
  font-size: 14px;
}

.sx-extension-stage-empty p {
  margin: 7px 0 0;
  color: var(--sx-ext-muted);
  font-size: 10px;
  line-height: 1.65;
}

#sx-extension-result {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e8e6df;
}

.sx-extension-flow {
  margin: 0 18px;
  padding: 17px 18px 8px;
  border: 1px solid var(--sx-ext-line);
  border-radius: 22px 22px 7px 22px;
  background: var(--sx-ext-paper-2);
}

.sx-extension-flow > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sx-extension-flow > header span {
  color: var(--sx-ext-clay);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sx-extension-flow > header h3 {
  margin: 4px 0 0;
  font-size: 13px;
}

.sx-extension-flow > header > b {
  color: var(--sx-ext-muted);
  font-size: 8px;
}

.sx-extension-flow ol {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.sx-extension-flow li {
  min-height: 38px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--sx-ext-line);
  font-size: 10px;
}

.sx-extension-flow li i {
  color: var(--sx-ext-clay);
  font-size: 8px;
  font-style: normal;
}

.sx-extension-flow li b {
  color: var(--sx-ext-muted);
  font-size: 7px;
  font-weight: 500;
}

.sx-extension-contract {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 15px 18px 0;
}

.sx-extension-contract div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sx-ext-line);
  font-size: 8px;
}

.sx-extension-contract dt {
  color: var(--sx-ext-muted);
}

.sx-extension-contract dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pc-unavailable-item[href] {
  color: var(--pc-ink);
  cursor: pointer;
  transition: color 160ms ease, padding 160ms ease;
}

.sx-pc-unavailable-item[href] > span {
  background: var(--pc-sidebar-accent);
}

.sx-pc-unavailable-item[href] small {
  color: var(--pc-muted);
}

.sx-pc-unavailable-item[href] b {
  background: var(--pc-sage);
  color: var(--pc-sage-strong);
}

.sx-pc-unavailable-item[href]:hover {
  padding-left: 6px;
  color: var(--pc-ink);
}

.sx-pc-unavailable-item[href]:hover > span {
  background: var(--pc-sidebar-accent);
}

@media (max-width: 1100px) {
  .sx-extension-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .sx-extension-output {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 0 4px;
  }

  .sx-extension-output > .sx-extension-panel-head,
  .sx-extension-output > .sx-extension-contract {
    grid-column: 1 / -1;
  }

  .sx-extension-flow {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .sx-extension-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sx-extension-brand {
    border-right: 0;
  }

  .sx-extension-topbar nav {
    display: none;
  }

  .sx-extension-admin {
    margin-right: 12px;
  }

  .sx-extension-page {
    width: min(100% - 24px, 1480px);
    padding-top: 24px;
  }

  .sx-extension-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .sx-extension-heading > div > a {
    margin-bottom: 22px;
  }

  .sx-extension-heading aside {
    border-radius: 20px 20px 7px 20px;
  }

  .sx-extension-upload-grid,
  #suixinda-extension-feature[data-agent-type="image-conversation"] .sx-extension-upload-grid,
  #suixinda-extension-feature[data-agent-type="pose-batch"] .sx-extension-upload-grid,
  .sx-extension-mode-switch,
  .sx-extension-settings,
  .sx-extension-contract,
  .sx-extension-output {
    grid-template-columns: minmax(0, 1fr);
  }

  .sx-extension-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-extension-output > .sx-extension-panel-head,
  .sx-extension-output > .sx-extension-contract {
    grid-column: auto;
  }

  .sx-extension-panel {
    border-radius: 24px 24px 8px 24px;
  }

  .sx-extension-stage {
    min-height: 340px;
  }

  .sx-extension-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .sx-extension-submit button {
    width: 100%;
  }
}

/* Scene production workspace v2: task rail + production form + result canvas. */
html.sx-local-theme.sx-scene-workspace .studio-page {
  height: calc(100dvh - 4rem) !important;
  display: flex !important;
  align-items: stretch !important;
  background: #eee9e2 !important;
}

html.sx-local-theme.sx-scene-workspace .studio-page > .sidebar-container {
  display: none !important;
}

html.sx-local-theme.sx-scene-workspace .studio-shell {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #eee9e2 !important;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-head {
  min-height: 120px;
  display: grid !important;
  grid-template-columns: minmax(360px, 0.8fr) minmax(420px, auto);
  align-items: center !important;
  gap: 24px !important;
  padding: 14px 22px !important;
  border-bottom: 1px solid #cfc7bd !important;
  background: #faf7f2 !important;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #99938b;
  font-size: 10px;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-breadcrumb a {
  color: #7d5549;
  text-decoration: none;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-breadcrumb a:hover {
  color: #493d36;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-breadcrumb strong {
  color: #68645e;
  font-weight: 600;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-title {
  display: block;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-title > span {
  display: block;
  margin-bottom: 5px;
  color: #9b6252;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-title h1 {
  margin: 0;
  color: #242621;
  font: 760 clamp(25px, 2.1vw, 34px)/1.05 var(--lc-font-sans);
  letter-spacing: -0.045em;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-title p {
  margin: 6px 0 0;
  color: #76736c;
  font-size: 11px;
  line-height: 1.45;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d5cdc3;
  border-radius: 13px 13px 5px 13px;
  background: #f0ebe5;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button {
  min-width: 112px;
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #817d76;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button strong,
html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button small {
  display: block;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button strong {
  font-size: 11px;
  font-weight: 720;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button small {
  color: inherit;
  font-size: 9px;
  opacity: 0.72;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button:hover:not(:disabled) {
  color: #5f463d;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button.active {
  border-color: #d6c7bd;
  background: #fffdf9;
  color: #684439;
  box-shadow: 0 3px 10px rgba(55, 49, 43, 0.06);
}

html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button:disabled {
  color: #aaa59e;
  cursor: not-allowed;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-model-settings {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid #756e65;
  color: #4f4d47;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-model-settings:hover {
  border-color: #9b6252;
  color: #75463b;
}

html.sx-local-theme.sx-scene-workspace .studio-grid {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  display: grid !important;
  grid-template-columns: 204px minmax(440px, 486px) minmax(0, 1fr) !important;
  gap: 0 !important;
  background: #eee9e2 !important;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  border-right: 1px solid #cbc2b7;
  background: #e7e0d7;
  color: #3f403b;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header {
  padding: 2px 8px 18px;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header small,
html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header strong,
html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header p {
  display: block;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header small {
  margin-bottom: 8px;
  color: #9b6252;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header strong {
  color: #2f312d;
  font-size: 16px;
  letter-spacing: -0.02em;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header p {
  margin: 6px 0 0;
  color: #79756f;
  font-size: 10px;
  line-height: 1.55;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav {
  display: grid;
  gap: 3px;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 9px 8px;
  border: 0;
  border-radius: 9px 9px 3px 9px;
  background: transparent;
  color: #76726c;
  text-align: left;
  cursor: pointer;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button:hover {
  background: rgba(255, 253, 249, 0.44);
  color: #4f4d47;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button.active {
  background: #f8f4ee;
  color: #4f382f;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button.active::before {
  background: #9b6252;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav i {
  color: #a39c94;
  font: 650 12px/1 var(--lc-font-sans);
  font-style: normal;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button.active i {
  color: #9b6252;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav span,
html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav b,
html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav small {
  min-width: 0;
  display: block;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav b {
  margin-bottom: 3px;
  color: inherit;
  font-size: 11px;
  font-weight: 720;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav small {
  overflow: hidden;
  color: #99938b;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav em {
  padding: 3px 5px;
  border: 1px solid #d5c4bb;
  border-radius: 999px;
  color: #8b5a4d;
  font-size: 7px;
  font-style: normal;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > footer {
  margin-top: auto;
  padding: 12px 10px 9px;
  border-top: 1px solid #c9c0b5;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > footer span,
html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > footer strong {
  display: block;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > footer span {
  color: #8b867f;
  font-size: 9px;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > footer strong {
  margin-top: 5px;
  color: #4c4d47;
  font-size: 11px;
}

html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > footer p {
  margin: 8px 0 0;
  color: #8c8780;
  font-size: 9px;
  line-height: 1.55;
}

html.sx-local-theme.sx-scene-workspace .studio-input-column {
  min-width: 0 !important;
  padding: 14px 12px 16px !important;
  border-right: 1px solid #d1c8bd;
  background: #f5f1eb !important;
}

html.sx-local-theme.sx-scene-workspace .studio-result-column {
  min-width: 0 !important;
  padding: 14px 16px 16px !important;
  background: #eee9e2 !important;
}

html.sx-local-theme.sx-scene-workspace .studio-input-panel {
  border-radius: 18px 18px 7px 18px !important;
}

html.sx-local-theme.sx-scene-workspace .studio-result-panel {
  border-radius: 14px 14px 5px 14px !important;
}

html.sx-local-theme.sx-scene-workspace .studio-generate-panel {
  border-radius: 12px 12px 5px 12px !important;
}

/* Keep the scene-generation action inside the input column when the
   three-column workspace makes the output panel narrow. */
@container (max-width: 680px) {
  html.sx-local-theme.sx-scene-workspace .studio-generate-row {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 160px !important;
    align-items: end !important;
    gap: 12px 14px !important;
    overflow: hidden;
  }

  html.sx-local-theme.sx-scene-workspace .studio-generate-row .studio-control-section {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
  }

  html.sx-local-theme.sx-scene-workspace .studio-generate-row .studio-param-grid {
    width: auto !important;
    min-width: 0 !important;
  }

  html.sx-local-theme.sx-scene-workspace .studio-generate-row .studio-submit-stack {
    width: 160px !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
}

@container (max-width: 440px) {
  html.sx-local-theme.sx-scene-workspace .studio-generate-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.sx-local-theme.sx-scene-workspace .studio-generate-row .studio-control-section,
  html.sx-local-theme.sx-scene-workspace .studio-generate-row .studio-param-grid,
  html.sx-local-theme.sx-scene-workspace .studio-generate-row .studio-submit-stack {
    grid-column: 1;
    width: 100% !important;
  }
}

html.sx-local-theme.sx-scene-workspace #suixinda-model-admin-link {
  display: none !important;
}

@media (max-width: 1100px) {
  html.sx-local-theme.sx-scene-workspace .sx-scene-command-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start !important;
    gap: 12px !important;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-actions {
    justify-content: space-between;
  }

  html.sx-local-theme.sx-scene-workspace .studio-grid {
    grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr) !important;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail {
    grid-column: 1 / -1;
    min-height: 72px;
    display: block;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid #cbc2b7;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > header,
  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail > footer {
    display: none;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button {
    min-height: 54px;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button::before {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: -8px;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }
}

@media (max-width: 720px) {
  html.sx-local-theme.sx-scene-workspace .studio-page {
    height: auto !important;
  }

  html.sx-local-theme.sx-scene-workspace .studio-shell {
    min-height: calc(100dvh - 4rem) !important;
    padding: 0 0 72px !important;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-head {
    min-height: 0;
    padding: 14px 12px 12px !important;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-title {
    grid-template-columns: minmax(0, 1fr);
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-title > span {
    grid-row: auto;
    width: max-content;
    margin-bottom: 2px;
    padding: 0;
    border: 0;
    writing-mode: initial;
    transform: none;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-title h1 {
    font-size: 28px;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-actions {
    align-items: stretch;
    flex-direction: column;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes {
    width: 100%;
    overflow-x: auto;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-command-modes button {
    min-width: 118px;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-model-settings {
    display: none;
  }

  html.sx-local-theme.sx-scene-workspace .studio-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail {
    position: sticky;
    top: 4rem;
    z-index: 8;
    overflow-x: auto;
    padding: 7px 8px;
    background: #e7e0d7;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav {
    width: max-content;
    min-width: 100%;
    display: flex;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav button {
    min-width: 88px;
    min-height: 48px;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 4px;
    padding: 6px;
  }

  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav small,
  html.sx-local-theme.sx-scene-workspace .sx-scene-task-rail nav em {
    display: none;
  }

  html.sx-local-theme.sx-scene-workspace .studio-input-column,
  html.sx-local-theme.sx-scene-workspace .studio-result-column {
    width: 100% !important;
    padding: 10px 10px 12px !important;
    border-right: 0;
  }

  html.sx-local-theme.sx-scene-workspace .studio-result-column {
    padding-top: 0 !important;
  }
}

/* Product scene-image structure: business brief -> native prompt -> existing workflow. */
html.sx-local-theme .sx-scene-brief-section {
  border-color: #d8cec4 !important;
  background: #faf6f1 !important;
}

html.sx-local-theme .sx-scene-brief-body {
  display: grid;
  gap: 13px;
}

html.sx-local-theme .sx-scene-modebar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid #d9d7ce;
  border-radius: 12px 12px 5px 12px;
  background: var(--pc-sage);
}

html.sx-local-theme .sx-scene-modebar > div:first-child,
html.sx-local-theme .sx-scene-modebar small,
html.sx-local-theme .sx-scene-modebar strong {
  min-width: 0;
  display: block;
}

html.sx-local-theme .sx-scene-modebar small {
  color: #647068;
  font-size: 9px;
}

html.sx-local-theme .sx-scene-modebar strong {
  margin-top: 3px;
  color: #2d3731;
  font-size: 12px;
}

html.sx-local-theme .sx-scene-mode-options {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.62);
}

html.sx-local-theme .sx-scene-mode {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #657068;
  font: 650 10px/1 var(--lc-font-sans);
  cursor: pointer;
}

html.sx-local-theme .sx-scene-mode.active {
  border-color: rgba(57, 81, 68, 0.18);
  background: #fffdf9;
  color: #395144;
}

html.sx-local-theme .sx-scene-mode:disabled {
  color: #969b96;
  cursor: not-allowed;
}

html.sx-local-theme .sx-scene-mode span {
  margin-left: 3px;
  font-size: 8px;
  font-weight: 500;
}

html.sx-local-theme .sx-scene-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

html.sx-local-theme .sx-scene-field,
html.sx-local-theme .sx-scene-field > span {
  min-width: 0;
  display: block;
}

html.sx-local-theme .sx-scene-field > span {
  margin-bottom: 6px;
  color: #595b55;
  font-size: 10px;
  font-weight: 700;
}

html.sx-local-theme .sx-scene-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--pc-line-strong);
  border-radius: 9px;
  background: #fffdf9;
  color: var(--pc-ink);
  font: 500 11px/1 var(--lc-font-sans);
  cursor: pointer;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}

html.sx-local-theme .sx-scene-field select:hover {
  border-color: #b79284;
  background: #fffaf6;
}

html.sx-local-theme .sx-scene-field select:focus-visible {
  border-color: var(--pc-sidebar-accent);
  outline: 2px solid rgba(155, 98, 82, 0.24) !important;
  outline-offset: 1px !important;
}

html.sx-local-theme .sx-scene-advanced {
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: 11px;
  background: #fffdf9;
}

html.sx-local-theme .sx-scene-advanced summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px;
  color: #4f514b;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

html.sx-local-theme .sx-scene-advanced summary::-webkit-details-marker {
  display: none;
}

html.sx-local-theme .sx-scene-advanced summary::after {
  content: "+";
  color: var(--pc-sidebar-accent);
  font-size: 16px;
  font-weight: 400;
}

html.sx-local-theme .sx-scene-advanced[open] summary::after {
  content: "−";
}

html.sx-local-theme .sx-scene-advanced summary span {
  margin-left: auto;
  color: #98978f;
  font-size: 9px;
  font-weight: 500;
}

html.sx-local-theme .sx-scene-advanced-body {
  display: grid;
  gap: 11px;
  padding: 11px;
  border-top: 1px solid var(--pc-line);
  background: #f8f4ef;
}

html.sx-local-theme .sx-scene-constraint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html.sx-local-theme .sx-scene-constraint-list button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--pc-line-strong);
  border-radius: 999px;
  background: #fffdf9;
  color: #777870;
  font: 600 9px/1 var(--lc-font-sans);
  cursor: pointer;
  transition: background 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}

html.sx-local-theme .sx-scene-constraint-list button:hover {
  border-color: #b79284;
  color: #684439;
}

html.sx-local-theme .sx-scene-constraint-list button[aria-pressed="true"] {
  border-color: #d4bdb3;
  background: #efe3dc;
  color: #75463b;
}

html.sx-local-theme .sx-scene-brief-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

html.sx-local-theme .sx-scene-brief-actions p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 9px;
  line-height: 1.55;
}

html.sx-local-theme .sx-scene-brief-actions p[data-state="success"] {
  color: #426650;
}

html.sx-local-theme .sx-scene-brief-actions p[data-state="error"] {
  color: #9d494d;
}

html.sx-local-theme #sx-scene-apply {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--pc-ink);
  border-radius: 10px;
  background: var(--pc-ink);
  color: #fff;
  font: 700 10px/1 var(--lc-font-sans);
  cursor: pointer;
  transition: background 150ms ease-out, transform 150ms ease-out;
}

html.sx-local-theme #sx-scene-apply:hover {
  background: #343832;
  transform: translateY(-1px);
}

html.sx-local-theme #sx-scene-apply:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  html.sx-local-theme .sx-scene-modebar {
    align-items: flex-start;
    flex-direction: column;
  }

  html.sx-local-theme .sx-scene-mode-options {
    width: 100%;
  }

  html.sx-local-theme .sx-scene-mode {
    flex: 1;
  }

  html.sx-local-theme .sx-scene-field-grid,
  html.sx-local-theme .sx-scene-brief-actions {
    grid-template-columns: 1fr;
  }

  html.sx-local-theme #sx-scene-apply {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .sx-pc-brand small {
    display: none;
  }

  .sx-pc-brief {
    gap: 12px;
    padding: 12px;
  }

  .sx-pc-brief > a span {
    display: none;
  }

  .sx-pc-brief > a {
    grid-template-columns: 1fr;
    padding-left: 7px;
  }

  .sx-pc-brief > a b {
    justify-content: center;
  }

  .sx-pc-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .sx-pc-feature {
    min-height: 330px;
  }

  .sx-pc-feature-copy,
  .sx-pc-feature--secondary .sx-pc-feature-copy {
    width: 100%;
    padding-right: 24px;
  }

  .sx-pc-feature-visual {
    top: 126px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .sx-pc-feature--primary .image-a {
    right: 45%;
  }

  .sx-pc-feature--primary .image-b {
    right: 7%;
  }

  .sx-pc-feature--primary .image-c {
    right: 34%;
  }

  .sx-pc-feature--secondary .image-a {
    right: 46%;
  }

  .sx-pc-feature--secondary .image-b {
    right: 8%;
  }

  .sx-pc-tool-grid {
    grid-template-columns: 1fr;
  }

  .sx-pc-compact-tools {
    grid-template-columns: 1fr;
  }

  .sx-pc-tool {
    height: 250px;
  }

  .sx-pc-tool-media {
    height: 196px;
  }

  .sx-pc-tool-arrow {
    top: 138px;
  }

  .sx-pc-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared Pic Copilot workbench theme.
   The approved home page used an isolated namespace; these rules carry that
   direction into the real tools, resource library, history and directory. */
html.sx-local-theme {
  --pc-page: #f5f4ef;
  --pc-paper: #fbfaf7;
  --pc-ink: #20231f;
  --pc-muted: #747970;
  --pc-line: #dadbd5;
  --pc-line-strong: #c8c5bd;
  --pc-sage: #dfe9e1;
  --pc-sage-strong: #395144;
  --pc-blush: #f1dfdc;
  --pc-sand: #eee3d4;
  --pc-sky: #e7e1d8;
  --pc-butter: #efe9c9;
  --pc-sidebar: #f1eee8;
  --pc-sidebar-hover: #e9e4dc;
  --pc-sidebar-active: #ded4c8;
  --pc-sidebar-text: #6c655c;
  --pc-sidebar-accent: #9b6252;
  --pc-sidebar-note: #e8ddd1;
  --pc-shadow: 0 16px 40px rgba(63, 57, 50, 0.08);

  --sx-canvas: var(--pc-page);
  --sx-panel: var(--pc-paper);
  --sx-panel-muted: #f7f4ef;
  --sx-ink: var(--pc-ink);
  --sx-muted: var(--pc-muted);
  --sx-faint: #98978f;
  --sx-line: var(--pc-line);
  --sx-line-strong: var(--pc-line-strong);
  --sx-accent: var(--pc-sidebar-accent);
  --sx-accent-hover: #824f42;
  --sx-accent-soft: #efe3dc;
  --sx-accent-ink: #75463b;
  --lc-page-bg: var(--pc-page);
  --lc-page-bg-soft: #eeeae4;
  --lc-surface: var(--pc-paper);
  --lc-surface-soft: #f7f4ef;
  --lc-border-blue: var(--pc-line);
  --lc-text-main: var(--pc-ink);
  --lc-text-muted: var(--pc-muted);
  --lc-action-blue: var(--pc-sidebar-accent);
  --lc-action-blue-hover: #824f42;
  --lc-focus-blue: rgba(155, 98, 82, 0.28);
  --lc-header-bg: var(--pc-paper);
  --lc-header-bg-soft: #f7f4ef;
  --lc-header-border: var(--pc-line);
  --lc-studio-bg: var(--pc-page);
  --lc-studio-bg-top: var(--pc-page);
  --lc-studio-bg-bottom: var(--pc-page);
  --lc-studio-heading: var(--pc-ink);
  --lc-studio-text: #454840;
  --lc-studio-muted: var(--pc-muted);
  --lc-studio-faint: #98978f;
  --lc-studio-panel: var(--pc-paper);
  --lc-studio-panel-strong: #fffdf9;
  --lc-studio-panel-soft: #f7f4ef;
  --lc-studio-border: var(--pc-line);
  --lc-studio-border-strong: var(--pc-line-strong);
  --lc-studio-action: var(--pc-ink);
  --lc-studio-action-hover: #343832;
  --lc-radius-panel: 16px;
  --lc-radius-card: 12px;
  --lc-radius-media: 11px;
  --lc-radius-control: 10px;
  --lc-radius-dialog: 18px;
  --lc-shadow-panel: none;
  --lc-shadow-panel-raised: var(--pc-shadow);
  --lc-shadow-action: none;
  --color-primary-50: #faf4f1;
  --color-primary-100: #f1e2dc;
  --color-primary-200: #e1c5bc;
  --color-primary-300: #cfa69a;
  --color-primary-400: #b88272;
  --color-primary-500: #9b6252;
  --color-primary-600: #824f42;
  --color-primary-700: #6b4036;
  --ui-primary: #9b6252;
}

html.sx-local-theme,
html.sx-local-theme body,
html.sx-local-theme .app-layout-shell,
html.sx-local-theme .studio-page,
html.sx-local-theme .studio-shell,
html.sx-local-theme .resource-library-page,
html.sx-local-theme .workflow-page,
html.sx-local-theme .lc-studio-surface {
  background: var(--pc-page) !important;
  color: var(--pc-ink) !important;
}

/* Shared top navigation */
html.sx-local-theme .app-layout-header {
  border-color: var(--pc-line) !important;
  background: rgba(251, 250, 247, 0.97) !important;
  color: var(--pc-ink) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px) !important;
}

html.sx-local-theme .app-header-inner {
  width: min(1760px, calc(100vw - 32px)) !important;
}

html.sx-local-theme .app-layout-header .app-brand-button {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .app-layout-header .app-brand-button:focus-visible {
  outline: 2px solid #8c5649;
  outline-offset: 3px;
}

html.sx-local-theme .app-layout-header .sx-app-brand {
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  gap: 8px;
  pointer-events: none;
}

html.sx-local-theme .app-layout-header .sx-app-brand .sx-pc-brand-mark {
  width: 24px;
  height: 24px;
}

html.sx-local-theme .app-layout-header .sx-app-brand strong {
  color: var(--pc-ink);
}

html.sx-local-theme .app-layout-header .sx-app-brand small {
  color: var(--pc-muted);
}

html.sx-local-theme .app-layout-header .lingcai-brand {
  --gold: var(--pc-sidebar-accent);
  --gold-deep: #824f42;
  --dark: var(--pc-ink);
  --mark-color: var(--pc-sidebar-accent);
  --copy-color: var(--pc-ink);
}

html.sx-local-theme .app-layout-header .lingcai-brand__copy small {
  color: var(--pc-muted) !important;
}

html.sx-local-theme .app-nav-item {
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  color: #706d67 !important;
}

html.sx-local-theme .app-nav-item:hover {
  background: var(--pc-sidebar-hover) !important;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .app-nav-item--active {
  border-color: transparent !important;
  background: var(--pc-sidebar-active) !important;
  color: #684439 !important;
  box-shadow: none !important;
}

html.sx-local-theme .app-nav-dot {
  display: none !important;
}

html.sx-local-theme .app-header-action,
html.sx-local-theme .app-header-user {
  border-color: var(--pc-line) !important;
  border-radius: 11px !important;
  background: #fffdf9 !important;
  color: #5f5d57 !important;
  box-shadow: none !important;
}

html.sx-local-theme .app-header-action:hover,
html.sx-local-theme .app-header-user:hover {
  border-color: #c5bbb1 !important;
  background: var(--pc-sidebar-hover) !important;
  color: var(--pc-ink) !important;
}

/* Tool navigation */
html.sx-local-theme .sidebar-container {
  width: 13.5rem !important;
  padding: 15px 12px !important;
  border-color: var(--pc-line) !important;
  background: var(--pc-sidebar) !important;
}

html.sx-local-theme .sidebar-back-link,
html.sx-local-theme .sidebar-category-title,
html.sx-local-theme .sidebar-nav-item,
html.sx-local-theme .sidebar-expand-button {
  color: var(--pc-sidebar-text) !important;
}

html.sx-local-theme .sidebar-category-title {
  color: #8b5a4d !important;
}

html.sx-local-theme .sidebar-nav-item {
  min-height: 36px !important;
  border-radius: 10px !important;
}

html.sx-local-theme .sidebar-nav-item:hover {
  background: var(--pc-sidebar-hover) !important;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .sidebar-nav-item.active,
html.sx-local-theme .sidebar-nav-item.parent-active {
  background: var(--pc-sidebar-active) !important;
  color: #684439 !important;
  box-shadow: none !important;
}

html.sx-local-theme .sidebar-nav-item.active svg,
html.sx-local-theme .sidebar-nav-item.parent-active svg,
html.sx-local-theme .sidebar-expand-button--active {
  color: var(--pc-sidebar-accent) !important;
}

html.sx-local-theme .sidebar-submenu {
  border-color: #d4cac0 !important;
}

/* Image tool workspace */
html.sx-local-theme .studio-shell {
  gap: 12px !important;
  padding: 15px 16px 17px !important;
}

html.sx-local-theme .studio-head {
  padding-bottom: 11px !important;
  border-color: var(--pc-line-strong) !important;
}

html.sx-local-theme .studio-eyebrow,
html.sx-local-theme .studio-panel-kicker,
html.sx-local-theme .lc-studio-kicker {
  color: var(--pc-sidebar-accent) !important;
  font-weight: 700 !important;
}

html.sx-local-theme .studio-title-row h1,
html.sx-local-theme .resource-library-title h1,
html.sx-local-theme .workflow-page__title h1,
html.sx-local-theme .lc-studio-title {
  color: var(--pc-ink) !important;
  letter-spacing: -0.025em !important;
}

html.sx-local-theme .studio-title-row span,
html.sx-local-theme .resource-library-title > span,
html.sx-local-theme .workflow-page__title > span {
  color: var(--pc-muted) !important;
}

html.sx-local-theme .studio-flow-strip b {
  border-color: #d9c4bb !important;
  border-radius: 50% !important;
  background: #fffdf9 !important;
  color: var(--pc-sidebar-accent) !important;
}

html.sx-local-theme .studio-panel,
html.sx-local-theme .studio-generate-panel,
html.sx-local-theme .lc-studio-panel {
  overflow: hidden;
  border-color: var(--pc-line) !important;
  border-radius: 16px 16px 7px 16px !important;
  background: var(--pc-paper) !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-panel-head,
html.sx-local-theme .lc-studio-panel-head {
  border-color: var(--pc-line) !important;
  background: #f7f3ee !important;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .studio-panel-head h2,
html.sx-local-theme .studio-panel-head p,
html.sx-local-theme .studio-panel-head span:not(.studio-panel-kicker) {
  color: inherit !important;
}

html.sx-local-theme .studio-panel-head p {
  color: var(--pc-muted) !important;
}

html.sx-local-theme .studio-panel-badge,
html.sx-local-theme .studio-result-state {
  border-color: #dac7be !important;
  border-radius: 999px !important;
  background: #efe3dc !important;
  color: #75463b !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-form-section,
html.sx-local-theme .studio-result-stage,
html.sx-local-theme .studio-result-workspace,
html.sx-local-theme .studio-result-side,
html.sx-local-theme .studio-recent-strip,
html.sx-local-theme .studio-thumb-section,
html.sx-local-theme .garment-view-upload--contained > .relative,
html.sx-local-theme .garment-view-upload--contained .garment-main-preview,
html.sx-local-theme .garment-view-upload--contained .garment-supplement-preview {
  border-color: var(--pc-line) !important;
  border-radius: 12px !important;
  background: #fffdf9 !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-form-section-head.clickable:hover,
html.sx-local-theme .studio-recent-item:hover,
html.sx-local-theme .studio-recent-item.active {
  border-color: #d3c3b9 !important;
  background: #f4ece7 !important;
  color: #684439 !important;
}

html.sx-local-theme .studio-form-section-step {
  border-color: #d9c4bb !important;
  background: #efe3dc !important;
  color: #75463b !important;
}

html.sx-local-theme .upload-field,
html.sx-local-theme .garment-upload-placeholder,
html.sx-local-theme .garment-supplement-slot,
html.sx-local-theme .dropzone,
html.sx-local-theme .frame-dropzone,
html.sx-local-theme .image-add-card {
  border-color: #cfc9c0 !important;
  border-radius: 12px !important;
  background: #f7f4ef !important;
  color: #767870 !important;
}

html.sx-local-theme .upload-field:hover,
html.sx-local-theme .garment-upload-placeholder:hover,
html.sx-local-theme .garment-supplement-slot:hover,
html.sx-local-theme .dropzone:hover,
html.sx-local-theme .frame-dropzone:hover,
html.sx-local-theme .image-add-card:hover {
  border-color: #b79284 !important;
  background: #f3ebe6 !important;
}

html.sx-local-theme .studio-resolution-pill,
html.sx-local-theme .studio-control-input,
html.sx-local-theme .choice-pill,
html.sx-local-theme .mode-option {
  border-color: var(--pc-line-strong) !important;
  border-radius: 10px !important;
  background: #fffdf9 !important;
  color: #575a53 !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-resolution-pill:not(:disabled):hover,
html.sx-local-theme .studio-resolution-pill.active,
html.sx-local-theme .studio-choice-item:hover:not(:disabled),
html.sx-local-theme .studio-choice-item.active,
html.sx-local-theme .choice-pill:hover,
html.sx-local-theme .choice-pill.active,
html.sx-local-theme .mode-option.active {
  border-color: #b79284 !important;
  background: #efe3dc !important;
  color: #684439 !important;
  box-shadow: none !important;
}

html.sx-local-theme .mode-option.active span,
html.sx-local-theme .mode-option.active p,
html.sx-local-theme .mode-option.active small,
html.sx-local-theme .mode-option.active strong {
  color: #684439 !important;
}

html.sx-local-theme .model-tile,
html.sx-local-theme .scene-tile,
html.sx-local-theme .studio-workflow-tile,
html.sx-local-theme .studio-choice-item {
  overflow: hidden;
  border-color: var(--pc-line) !important;
  border-radius: 13px !important;
  background: #fffdf9 !important;
  box-shadow: none !important;
}

html.sx-local-theme .model-tile:hover,
html.sx-local-theme .scene-tile:hover,
html.sx-local-theme .studio-workflow-tile:hover,
html.sx-local-theme .studio-choice-item:hover {
  border-color: #b79284 !important;
  box-shadow: 0 10px 24px rgba(71, 61, 53, 0.08) !important;
}

html.sx-local-theme .model-tile.border-primary,
html.sx-local-theme .scene-tile.border-primary,
html.sx-local-theme .studio-choice-item.active {
  border-color: var(--pc-sidebar-accent) !important;
  background: #f4ece7 !important;
  box-shadow: 0 0 0 1px var(--pc-sidebar-accent) !important;
}

html.sx-local-theme .studio-generate-panel {
  background: #f0ebe5 !important;
}

html.sx-local-theme .studio-generate-button,
html.sx-local-theme .stylist-primary-action {
  border-color: var(--pc-ink) !important;
  border-radius: 11px !important;
  background: var(--pc-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-generate-button:hover,
html.sx-local-theme .stylist-primary-action:hover {
  border-color: #343832 !important;
  background: #343832 !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

html.sx-local-theme .studio-result-actions > :first-child,
html.sx-local-theme .model-picker-tabs button[class*="bg-primary"],
html.sx-local-theme .bg-primary {
  background: #efe3dc !important;
  color: #75463b !important;
}

html.sx-local-theme .text-primary {
  color: #824f42 !important;
}

html.sx-local-theme .studio-generating-overlay {
  background: rgba(251, 250, 247, 0.94) !important;
}

html.sx-local-theme .studio-workflow-guide-item > span,
html.sx-local-theme .studio-generating-spinner,
html.sx-local-theme .studio-recent-item em {
  border-color: #dac7be !important;
  background: #efe3dc !important;
  color: #75463b !important;
}

html.sx-local-theme .studio-workflow-tile figcaption {
  background: rgba(32, 35, 31, 0.78) !important;
}

/* Resource library */
html.sx-local-theme .resource-library-shell,
html.sx-local-theme .workflow-page__shell {
  width: min(1180px, calc(100% - 40px)) !important;
}

html.sx-local-theme .resource-library-head,
html.sx-local-theme .workflow-page__head {
  border-color: var(--pc-line) !important;
}

html.sx-local-theme .resource-library-body {
  gap: 18px !important;
}

html.sx-local-theme .resource-library-nav {
  overflow: hidden;
  border-color: var(--pc-line) !important;
  border-radius: 15px 15px 6px 15px !important;
  background: var(--pc-sidebar) !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav__title,
html.sx-local-theme .resource-library-nav__item {
  color: var(--pc-sidebar-text) !important;
}

html.sx-local-theme .resource-library-nav__item {
  border-radius: 9px !important;
}

html.sx-local-theme .resource-library-nav__item:hover {
  background: var(--pc-sidebar-hover) !important;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .resource-library-nav__item--active,
html.sx-local-theme .resource-library-nav__item--active:hover {
  border-color: transparent !important;
  background: var(--pc-sidebar-active) !important;
  color: #684439 !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav__item--active::before {
  background: var(--pc-sidebar-accent) !important;
}

html.sx-local-theme .resource-library-nav__item--active .resource-library-nav__icon {
  background: transparent !important;
  color: var(--pc-sidebar-accent) !important;
}

html.sx-local-theme .resource-library-main .model-tile,
html.sx-local-theme .resource-library-main .scene-tile {
  border-radius: 15px 15px 6px 15px !important;
  background: var(--pc-paper) !important;
}

html.sx-local-theme .resource-library-main .bg-success {
  border-radius: 999px !important;
  background: #4d765f !important;
  color: #fff !important;
}

html.sx-local-theme .resource-library-main .sx-managed-load-sentinel {
  min-height: 1px !important;
  height: 1px;
  margin-top: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

html.sx-local-theme .resource-library-main .sx-resource-load-more {
  min-width: 168px;
  min-height: 42px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9c4bb;
  border-radius: 12px;
  background: #fffdf9;
  color: #5d4b43;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

html.sx-local-theme .resource-library-main .sx-resource-load-more:hover:not(:disabled) {
  border-color: #a9887a;
  background: #f3e8e1;
  color: #75463b;
}

html.sx-local-theme .resource-library-main .sx-resource-load-more:focus-visible {
  outline: 2px solid #8c5649;
  outline-offset: 3px;
}

html.sx-local-theme .resource-library-main .sx-resource-load-more:disabled {
  cursor: wait;
  opacity: 0.62;
}

html.sx-local-theme .resource-library-main .sx-resource-load-more[hidden] {
  display: none !important;
}

/* History and workflow pages */
html.sx-local-theme .workflow-quick-nav {
  gap: 12px !important;
}

html.sx-local-theme .workflow-quick-nav__item,
html.sx-local-theme .workflow-card,
html.sx-local-theme .task-status-card,
html.sx-local-theme .history-sidebar {
  border-color: var(--pc-line) !important;
  border-radius: 14px 14px 6px 14px !important;
  background: var(--pc-paper) !important;
  box-shadow: none !important;
}

html.sx-local-theme .workflow-quick-nav__item:nth-child(4n + 1) { background: var(--pc-sage) !important; }
html.sx-local-theme .workflow-quick-nav__item:nth-child(4n + 2) { background: var(--pc-sand) !important; }
html.sx-local-theme .workflow-quick-nav__item:nth-child(4n + 3) { background: var(--pc-sky) !important; }
html.sx-local-theme .workflow-quick-nav__item:nth-child(4n + 4) { background: var(--pc-blush) !important; }

html.sx-local-theme .workflow-quick-nav__item:hover,
html.sx-local-theme .workflow-card:hover,
html.sx-local-theme .task-status-card:hover {
  border-color: #bdaea3 !important;
  box-shadow: 0 12px 28px rgba(71, 61, 53, 0.08) !important;
  transform: translateY(-1px);
}

html.sx-local-theme .workflow-quick-nav__icon,
html.sx-local-theme .history-sidebar__icon,
html.sx-local-theme .task-card__module-icon {
  border-color: rgba(110, 78, 66, 0.14) !important;
  background: rgba(255, 253, 249, 0.72) !important;
  color: #824f42 !important;
}

html.sx-local-theme .history-sidebar nav button:hover,
html.sx-local-theme .history-sidebar nav button.active,
html.sx-local-theme .task-type-filter__options button:hover,
html.sx-local-theme .task-type-filter__options button.active,
html.sx-local-theme .task-status-card--active {
  border-color: #c8b2a8 !important;
  background: #efe3dc !important;
  color: #684439 !important;
  box-shadow: none !important;
}

html.sx-local-theme .history-copy-preview,
html.sx-local-theme .history-media-placeholder,
html.sx-local-theme .file-row__text-thumb {
  background: #f1eee8 !important;
}

html.sx-local-theme .workflow-page .bg-primary {
  background: var(--pc-ink) !important;
  color: #fff !important;
}

html.sx-local-theme .upload-rules-trigger {
  border-color: #d8c4ba !important;
  border-radius: 999px !important;
  background: #f4ece7 !important;
  color: #75463b !important;
}

/* Tool directory */
html.sx-local-theme .stylist-page {
  background: var(--pc-page) !important;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .stylist-hero {
  padding: 28px 0 30px !important;
  background: var(--pc-page) !important;
}

html.sx-local-theme .stylist-hero__inner {
  gap: 18px !important;
}

html.sx-local-theme .stylist-hero__copy {
  min-height: 350px !important;
  padding: 34px !important;
  border: 0 !important;
  border-radius: 20px 20px 7px 20px !important;
  background: var(--pc-sage) !important;
}

html.sx-local-theme .stylist-hero__eyebrow {
  margin-bottom: 24px !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 249, 0.72) !important;
  color: #52675a !important;
}

html.sx-local-theme .stylist-hero__copy h1 {
  color: var(--pc-ink) !important;
  font-size: clamp(38px, 5vw, 68px) !important;
}

html.sx-local-theme .stylist-hero__copy > span {
  color: #647068 !important;
}

html.sx-local-theme .stylist-hero__actions .support-contact__trigger {
  border-color: rgba(57, 81, 68, 0.28) !important;
  border-radius: 11px !important;
  background: rgba(255, 253, 249, 0.58) !important;
  color: #395144 !important;
}

html.sx-local-theme .stylist-content {
  background: var(--pc-page) !important;
}

html.sx-local-theme .workflow-preview,
html.sx-local-theme .feature-card,
html.sx-local-theme .side-panel__body,
html.sx-local-theme .task-item {
  border-color: var(--pc-line) !important;
  border-radius: 15px 15px 6px 15px !important;
  background: var(--pc-paper) !important;
  color: var(--pc-ink) !important;
  box-shadow: none !important;
}

html.sx-local-theme .feature-card.highlighted {
  border-color: #c7b1a7 !important;
  background: var(--pc-blush) !important;
}

html.sx-local-theme .feature-card:hover,
html.sx-local-theme .workflow-tool:hover,
html.sx-local-theme .task-item:hover {
  border-color: #bdaea3 !important;
  box-shadow: 0 12px 28px rgba(71, 61, 53, 0.08) !important;
}

html.sx-local-theme .feature-card::before {
  display: none !important;
}

html.sx-local-theme .feature-card__icon,
html.sx-local-theme .workflow-tool > svg {
  background: #efe3dc !important;
  color: #824f42 !important;
}

html.sx-local-theme .feature-card__recommend,
html.sx-local-theme .feature-card__status,
html.sx-local-theme .feature-card__tags span {
  border-color: #d9c4bb !important;
  background: #f4ece7 !important;
  color: #75463b !important;
}

/* Standalone video workspaces */
html.sx-local-theme .sx-video-page {
  background: var(--pc-page) !important;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .sx-video-intro,
html.sx-local-theme .sx-video-panel,
html.sx-local-theme .sx-video-contract {
  border-color: var(--pc-line) !important;
  border-radius: 16px 16px 7px 16px !important;
  background: var(--pc-paper) !important;
  box-shadow: none !important;
}

html.sx-local-theme .sx-video-panel-head,
html.sx-local-theme .sx-video-contract-head {
  border-color: var(--pc-line) !important;
  background: #f7f3ee !important;
  color: var(--pc-ink) !important;
}

html.sx-local-theme .sx-video-dropzone,
html.sx-local-theme .sx-video-form-section,
html.sx-local-theme .sx-video-check,
html.sx-local-theme .sx-video-output-stage {
  border-color: var(--pc-line-strong) !important;
  border-radius: 12px !important;
  background: #fffdf9 !important;
}

html.sx-local-theme .sx-video-dropzone:hover {
  border-color: #b79284 !important;
  background: #f3ebe6 !important;
}

html.sx-local-theme .sx-video-upload-icon {
  border-color: #c8b2a8 !important;
  border-radius: 50% !important;
  background: #efe3dc !important;
  color: #75463b !important;
}

html.sx-local-theme .sx-video-submit-area {
  background: #f0ebe5 !important;
}

html.sx-local-theme .sx-video-submit-area button:not(:disabled) {
  border-color: var(--pc-ink) !important;
  border-radius: 11px !important;
  background: var(--pc-ink) !important;
  color: #fff !important;
  cursor: pointer !important;
}

#sx-video-result {
  position: absolute;
  z-index: 4;
  inset: 36px 0 58px;
  width: 100%;
  height: calc(100% - 94px);
  object-fit: contain;
  background: #11120f;
}

/* Global states */
html.sx-local-theme button:focus-visible,
html.sx-local-theme a:focus-visible,
html.sx-local-theme input:focus-visible,
html.sx-local-theme select:focus-visible,
html.sx-local-theme textarea:focus-visible,
#suixinda-workbench-home a:focus-visible {
  outline: 2px solid rgba(155, 98, 82, 0.58) !important;
  outline-offset: 2px !important;
}

#suixinda-model-admin-link {
  border-color: var(--pc-ink) !important;
  border-radius: 11px !important;
  background: var(--pc-ink) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(55, 49, 43, 0.14) !important;
}

#suixinda-model-admin-link:hover {
  background: #343832 !important;
}

@media (max-width: 900px) {
  html.sx-local-theme .resource-library-shell,
  html.sx-local-theme .workflow-page__shell {
    width: min(100% - 24px, 1180px) !important;
  }

  html.sx-local-theme .studio-shell {
    padding-inline: 12px !important;
  }
}

@media (max-width: 720px) {
  html.sx-local-theme .app-layout-header {
    background: var(--pc-paper) !important;
  }

  html.sx-local-theme .sidebar-container {
    display: none !important;
  }

  html.sx-local-theme .studio-page {
    height: auto !important;
    min-height: calc(100dvh - 4rem) !important;
    display: block !important;
  }

  html.sx-local-theme .studio-shell {
    width: 100% !important;
    max-width: none !important;
    padding: 13px 12px 84px !important;
  }

  html.sx-local-theme .studio-head {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  html.sx-local-theme .studio-flow-strip,
  html.sx-local-theme .studio-panel-actions,
  html.sx-local-theme .studio-resolution-row,
  html.sx-local-theme .studio-result-actions {
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }

  html.sx-local-theme .studio-grid,
  html.sx-local-theme .studio-result-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.sx-local-theme .studio-input-column,
  html.sx-local-theme .studio-result-column,
  html.sx-local-theme .studio-panel,
  html.sx-local-theme .studio-generate-panel {
    min-width: 0 !important;
    width: 100% !important;
  }

  #suixinda-model-admin-link {
    display: none !important;
  }

  html.sx-local-theme .studio-panel,
  html.sx-local-theme .studio-generate-panel,
  html.sx-local-theme .resource-library-nav,
  html.sx-local-theme .workflow-quick-nav__item,
  html.sx-local-theme .workflow-card {
    border-radius: 13px 13px 5px 13px !important;
  }
}

/* Stylist directory polish: softer cards and icon marks without stock square chips. */
html.sx-local-theme .stylist-page {
  --sx-directory-line: rgba(93, 73, 63, 0.15);
  --sx-directory-line-hover: rgba(122, 82, 66, 0.34);
  --sx-directory-clay: #9b6655;
  --sx-directory-olive: #657e3e;
  --sx-directory-shadow: 0 16px 42px rgba(78, 63, 54, 0.09);
}

html.sx-local-theme .workflow-preview {
  border-color: var(--sx-directory-line) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 52px rgba(78, 63, 54, 0.07) !important;
}

html.sx-local-theme .workflow-preview__head {
  border-color: var(--sx-directory-line) !important;
  border-radius: 23px 23px 0 0 !important;
  background: rgba(244, 239, 232, 0.72) !important;
}

html.sx-local-theme .material-image-wrap {
  overflow: hidden !important;
  border-color: transparent !important;
  border-radius: 18px !important;
  background: #e8e7df !important;
}

html.sx-local-theme .material-label {
  border-radius: 12px !important;
  background: rgba(244, 239, 232, 0.9) !important;
}

html.sx-local-theme .workflow-tool {
  min-height: 72px !important;
  border-color: var(--sx-directory-line) !important;
  border-radius: 17px !important;
  background: rgba(255, 253, 249, 0.84) !important;
  box-shadow: 0 7px 20px rgba(78, 63, 54, 0.04) !important;
  transition: transform 180ms cubic-bezier(0.22, 0.8, 0.3, 1), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
}

html.sx-local-theme .workflow-tool:hover {
  border-color: var(--sx-directory-line-hover) !important;
  background: #fffdfa !important;
  box-shadow: 0 13px 28px rgba(78, 63, 54, 0.09) !important;
  transform: translateY(-2px) !important;
}

html.sx-local-theme .workflow-tool > svg {
  width: 25px !important;
  height: 25px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sx-directory-clay) !important;
  stroke-width: 1.7 !important;
}

html.sx-local-theme .workflow-preview__steps {
  gap: 8px !important;
  margin: 18px 20px 22px !important;
  padding-inline: 0 !important;
}

html.sx-local-theme .step-btn {
  min-height: 52px !important;
  border-color: var(--sx-directory-line) !important;
  border-radius: 15px !important;
  background: rgba(255, 253, 249, 0.86) !important;
  transition: transform 180ms cubic-bezier(0.22, 0.8, 0.3, 1), border-color 180ms ease, background 180ms ease !important;
}

html.sx-local-theme .step-btn:hover {
  border-color: rgba(101, 126, 62, 0.42) !important;
  background: #f3f6eb !important;
  transform: translateY(-1px) !important;
}

html.sx-local-theme .step-btn.step-active {
  border-color: transparent !important;
  border-radius: 16px !important;
  background: #a76d5b !important;
  color: #fffdf9 !important;
  box-shadow: 0 9px 22px rgba(122, 82, 66, 0.2) !important;
}

html.sx-local-theme .step-btn.step-active span,
html.sx-local-theme .step-btn.step-active svg {
  color: #fffdf9 !important;
}

html.sx-local-theme .step-btn svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--sx-directory-olive) !important;
  stroke-width: 1.8 !important;
}

html.sx-local-theme .step-arrow {
  color: #aaa298 !important;
}

html.sx-local-theme .feature-grid {
  gap: 18px !important;
}

html.sx-local-theme .feature-card {
  --sx-card-accent: var(--sx-directory-clay);
  min-height: 190px !important;
  gap: 14px !important;
  overflow: visible !important;
  padding: 22px 22px 20px !important;
  border: 1px solid var(--sx-directory-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 249, 0.88) !important;
  box-shadow: 0 8px 24px rgba(78, 63, 54, 0.035) !important;
  transition: transform 200ms cubic-bezier(0.22, 0.8, 0.3, 1), border-color 200ms ease, background 200ms ease, box-shadow 200ms ease !important;
}

html.sx-local-theme .feature-card:nth-child(3n + 2) {
  --sx-card-accent: var(--sx-directory-olive);
}

html.sx-local-theme .feature-card:nth-child(3n) {
  --sx-card-accent: #816e5d;
}

html.sx-local-theme .feature-card:hover,
html.sx-local-theme .feature-card.highlighted {
  border-color: var(--sx-directory-line-hover) !important;
  background: #fffefa !important;
  box-shadow: var(--sx-directory-shadow) !important;
  transform: translateY(-4px) !important;
}

html.sx-local-theme .feature-card.highlighted {
  background: linear-gradient(145deg, #f5e9e3 0%, #fffaf5 72%) !important;
}

html.sx-local-theme .feature-card:active:not(:disabled) {
  transform: translateY(-1px) scale(0.992) !important;
}

html.sx-local-theme .feature-card:focus-visible {
  outline: 3px solid rgba(155, 102, 85, 0.24) !important;
  outline-offset: 4px !important;
}

html.sx-local-theme .feature-card.disabled {
  opacity: 0.62 !important;
  filter: saturate(0.68) !important;
}

html.sx-local-theme .feature-card.disabled:hover {
  border-color: var(--sx-directory-line) !important;
  background: rgba(250, 248, 243, 0.78) !important;
  box-shadow: 0 8px 24px rgba(78, 63, 54, 0.025) !important;
  transform: none !important;
}

html.sx-local-theme .feature-card__icon {
  position: relative !important;
  width: 54px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sx-card-accent) !important;
  transition: transform 200ms cubic-bezier(0.22, 0.8, 0.3, 1), color 200ms ease !important;
}

html.sx-local-theme .feature-card__icon::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 46px;
  height: 19px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sx-card-accent) 13%, transparent);
  transform: rotate(-7deg);
}

html.sx-local-theme .feature-card__icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 4px;
  width: 34px;
  height: 1px;
  background: color-mix(in srgb, var(--sx-card-accent) 42%, transparent);
  transform: rotate(-5deg);
}

html.sx-local-theme .feature-card__icon svg {
  position: relative;
  z-index: 1;
  width: 26px !important;
  height: 26px !important;
  stroke-width: 1.7 !important;
}

html.sx-local-theme .feature-card:hover .feature-card__icon,
html.sx-local-theme .feature-card.highlighted .feature-card__icon {
  border: 0 !important;
  background: transparent !important;
  color: var(--sx-card-accent) !important;
  transform: translateX(3px) rotate(-2deg) !important;
}

html.sx-local-theme .feature-card__body {
  gap: 7px !important;
}

html.sx-local-theme .feature-card__body strong {
  color: #2c2924 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

html.sx-local-theme .feature-card__body small {
  color: #777168 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  -webkit-line-clamp: 2 !important;
}

html.sx-local-theme .feature-card__recommend,
html.sx-local-theme .feature-card__status {
  top: 15px !important;
  right: 15px !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(155, 102, 85, 0.15) !important;
  border-radius: 999px !important;
  background: rgba(246, 234, 228, 0.94) !important;
  color: #7c4d3f !important;
  font-size: 10px !important;
  box-shadow: none !important;
}

html.sx-local-theme .feature-card__status {
  border-color: rgba(106, 105, 93, 0.12) !important;
  background: rgba(237, 236, 229, 0.92) !important;
  color: #777168 !important;
}

html.sx-local-theme .feature-card__tags {
  gap: 7px !important;
  padding-right: 46px !important;
}

html.sx-local-theme .feature-card__tags span {
  min-height: 25px !important;
  padding: 0 10px !important;
  border-color: rgba(155, 102, 85, 0.15) !important;
  border-radius: 999px !important;
  background: rgba(246, 238, 232, 0.74) !important;
  color: #78584c !important;
  font-size: 10px !important;
}

html.sx-local-theme .feature-card__arrow {
  right: 17px !important;
  bottom: 16px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 8px !important;
  border: 1px solid rgba(101, 126, 62, 0.2) !important;
  border-radius: 50% !important;
  background: #f1f4e9 !important;
  color: var(--sx-directory-olive) !important;
  transition: transform 200ms cubic-bezier(0.22, 0.8, 0.3, 1), background 200ms ease, color 200ms ease !important;
}

html.sx-local-theme .feature-card:hover .feature-card__arrow {
  background: var(--sx-directory-olive) !important;
  color: #fffdf9 !important;
  transform: rotate(12deg) translate(1px, -1px) !important;
}

html.sx-local-theme .lc-studio-panel.side-panel {
  overflow: hidden !important;
  border-color: var(--sx-directory-line) !important;
  border-radius: 20px !important;
  background: rgba(255, 253, 249, 0.88) !important;
  box-shadow: 0 9px 26px rgba(78, 63, 54, 0.035) !important;
}

html.sx-local-theme .lc-studio-panel.side-panel > .lc-studio-panel-head {
  padding: 18px 20px 15px !important;
}

html.sx-local-theme .side-link {
  border-color: rgba(101, 126, 62, 0.2) !important;
  border-radius: 999px !important;
  background: #f1f4e9 !important;
  color: #536c30 !important;
}

html.sx-local-theme .side-link:hover {
  border-color: var(--sx-directory-olive) !important;
  background: var(--sx-directory-olive) !important;
  color: #fffdf9 !important;
}

html.sx-local-theme .task-item {
  border-radius: 13px !important;
}

@media (max-width: 760px) {
  html.sx-local-theme .workflow-page,
  html.sx-local-theme .workflow-page__shell {
    max-width: 100vw;
    overflow-x: clip;
  }

  html.sx-local-theme .task-type-filter {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  html.sx-local-theme .task-type-filter__options {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  html.sx-local-theme .feature-card {
    min-height: 178px !important;
    border-radius: 19px !important;
  }

  html.sx-local-theme .workflow-preview {
    border-radius: 20px !important;
  }

  html.sx-local-theme .workflow-preview__steps {
    gap: 6px !important;
  }
}

/* Unified production workbench for the later feature routes.
   The home and mature image tools remain the visual baseline: compact global
   navigation, a numbered production rail, a dense input column and one result
   canvas. Workflow behavior and API contracts are unchanged. */
#suixinda-extension-feature,
#suixinda-image-to-video {
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--pc-page, #f5f4ef) !important;
  color: var(--pc-ink, #20231f);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

#suixinda-extension-feature *,
#suixinda-extension-feature *::before,
#suixinda-extension-feature *::after,
#suixinda-image-to-video *,
#suixinda-image-to-video *::before,
#suixinda-image-to-video *::after {
  box-sizing: border-box;
}

.sx-production-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 64px;
  display: grid;
  grid-template-columns: 215px minmax(380px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--pc-line, #dadbd5);
  background: rgba(251, 250, 247, 0.98);
}

.sx-production-brand {
  height: 64px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-right: 1px solid var(--pc-line, #dadbd5);
  color: inherit;
  text-decoration: none;
}

.sx-production-brand > span:last-child,
.sx-production-brand strong,
.sx-production-brand small {
  min-width: 0;
  display: block;
}

.sx-production-brand strong {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.sx-production-brand small {
  margin-top: 2px;
  overflow: hidden;
  color: #8a8e87;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-production-nav {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sx-production-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: #686c65 !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.sx-production-nav a:hover {
  background: #efede7;
  color: var(--pc-ink, #20231f) !important;
}

.sx-production-nav a.active {
  background: #e5ddd3;
  color: #6f493f !important;
}

.sx-production-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 22px;
}

.sx-production-current {
  max-width: 150px;
  overflow: hidden;
  color: var(--pc-muted, #747970);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-production-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--pc-line, #dadbd5);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--pc-ink, #20231f) !important;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.sx-extension-page,
html.sx-local-theme .sx-video-page {
  width: 100% !important;
  height: calc(100dvh - var(--sx-production-header-height));
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 14px 14px !important;
  background: var(--pc-page, #f5f4ef) !important;
}

.sx-production-page-head {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 15px 8px 14px;
  border-bottom: 1px solid var(--pc-line-strong, #c8c5bd);
}

.sx-production-page-head > div {
  min-width: 0;
}

.sx-production-page-head p,
.sx-production-page-head h1,
.sx-production-page-head > div > span {
  display: block;
  margin: 0;
}

.sx-production-page-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #9a6757;
  font-size: 9px;
  font-weight: 700;
}

.sx-production-page-head p a {
  color: var(--pc-muted, #747970) !important;
  text-decoration: none;
}

.sx-production-page-head h1 {
  color: var(--pc-ink, #20231f);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.sx-production-page-head > div > span {
  max-width: 760px;
  margin-top: 6px;
  overflow: hidden;
  color: var(--pc-muted, #747970);
  font-size: 11px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-production-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sx-production-progress li {
  position: relative;
  min-width: 106px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8d8d86;
  font-size: 10px;
}

.sx-production-progress li + li::before {
  content: "";
  width: 24px;
  height: 1px;
  margin-right: 10px;
  background: var(--pc-line-strong, #c8c5bd);
}

.sx-production-progress b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pc-line-strong, #c8c5bd);
  border-radius: 50%;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.sx-production-progress li.active {
  color: var(--pc-ink, #20231f);
  font-weight: 700;
}

.sx-production-progress li.active b {
  border-color: #9b6252;
  background: #9b6252;
  color: #fff;
}

.sx-extension-workspace,
html.sx-local-theme .sx-video-workspace {
  min-height: 0;
  flex: 1 1 auto;
  display: grid !important;
  grid-template-columns: 190px minmax(390px, 470px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin: 12px 0 0 !important;
}

.sx-production-rail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d2ccc3;
  border-radius: 15px;
  background: #e9e3da;
}

.sx-production-rail-head {
  padding: 18px 16px 16px;
  border-bottom: 1px solid #d2ccc3;
}

.sx-production-rail-head small {
  color: #9b6252;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sx-production-rail-head h2 {
  margin: 8px 0 0;
  color: var(--pc-ink, #20231f);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.35;
}

.sx-production-rail-head p {
  margin: 8px 0 0;
  color: #746f68;
  font-size: 9px;
  line-height: 1.6;
}

.sx-production-rail-steps,
.sx-production-rail .sx-extension-flow {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0 !important;
  padding: 9px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  list-style: none;
}

.sx-production-rail-steps li,
.sx-production-rail .sx-extension-flow li {
  min-height: 53px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 0 !important;
  border-radius: 9px;
  color: #706c65;
}

.sx-production-rail-steps li.active,
.sx-production-rail .sx-extension-flow li.active {
  background: rgba(255, 253, 249, 0.82);
  color: var(--pc-ink, #20231f);
}

.sx-production-rail-steps li > b,
.sx-production-rail .sx-extension-flow li > i {
  color: #a26857 !important;
  font-size: 9px !important;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.sx-production-rail-steps li > span,
.sx-production-rail-steps strong,
.sx-production-rail-steps small,
.sx-production-rail .sx-extension-flow li > span,
.sx-production-rail .sx-extension-flow li > b {
  min-width: 0;
  display: block;
}

.sx-production-rail-steps strong,
.sx-production-rail .sx-extension-flow li > span {
  font-size: 10px;
  font-weight: 700;
}

.sx-production-rail-steps small {
  margin-top: 3px;
  color: #8e8982;
  font-size: 8px;
  line-height: 1.35;
}

.sx-production-rail .sx-extension-flow li > b {
  color: #9b968f !important;
  font-size: 7px !important;
  font-weight: 500 !important;
}

.sx-production-rail .sx-video-status {
  min-height: 54px;
  display: block;
  margin: auto 10px 10px !important;
  padding: 10px 11px !important;
  border: 1px solid #d0c8bd !important;
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.64) !important;
  color: #777169 !important;
}

.sx-production-rail .sx-video-status span,
.sx-production-rail .sx-video-status b {
  display: block;
  padding: 0 !important;
  background: transparent !important;
}

.sx-production-rail .sx-video-status span {
  font-size: 8px;
}

.sx-production-rail .sx-video-status b {
  margin-top: 4px;
  color: var(--pc-ink, #20231f) !important;
  font-size: 9px;
  line-height: 1.4;
}

.sx-production-rail .sx-extension-contract,
.sx-production-rail .sx-video-contract {
  display: block !important;
  margin: 0 !important;
  padding: 9px 14px 13px !important;
  border: 0 !important;
  border-top: 1px solid #d2ccc3 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sx-production-rail .sx-extension-contract div,
.sx-production-rail .sx-video-contract dl > div {
  min-width: 0;
  display: block !important;
  padding: 5px 0 !important;
  border: 0 !important;
}

.sx-production-rail .sx-extension-contract dt,
.sx-production-rail .sx-video-contract dt {
  color: #8a847c;
  font-size: 7px;
}

.sx-production-rail .sx-extension-contract dd,
.sx-production-rail .sx-video-contract dd {
  display: block;
  margin: 2px 0 0;
  overflow: hidden;
  color: #5d5953;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-extension-panel,
html.sx-local-theme .sx-video-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden !important;
  border: 1px solid var(--pc-line, #dadbd5) !important;
  border-radius: 15px !important;
  background: var(--pc-paper, #fbfaf7) !important;
  box-shadow: none !important;
}

.sx-extension-form,
html.sx-local-theme .sx-video-input-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.sx-extension-output,
html.sx-local-theme .sx-video-output-panel {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 !important;
}

.sx-extension-panel-head,
html.sx-local-theme .sx-video-panel-head {
  min-height: 54px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--pc-line, #dadbd5) !important;
  background: #f7f3ee !important;
  color: var(--pc-ink, #20231f) !important;
}

.sx-extension-panel-head span,
html.sx-local-theme .sx-video-panel-head span {
  color: #9b6252 !important;
  font-size: 7px !important;
  letter-spacing: 0.1em;
}

.sx-extension-panel-head h2,
html.sx-local-theme .sx-video-panel-head h2 {
  margin-top: 3px !important;
  font-size: 15px !important;
}

.sx-extension-panel-head small,
html.sx-local-theme .sx-video-panel-head small {
  color: var(--pc-muted, #747970) !important;
  font-size: 8px !important;
}

.sx-extension-form-body,
html.sx-local-theme .sx-video-panel-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px !important;
  scrollbar-color: #c8c2b9 transparent;
  scrollbar-width: thin;
}

.sx-extension-upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

#suixinda-extension-feature[data-agent-type="image-conversation"] .sx-extension-upload-grid,
#suixinda-extension-feature[data-agent-type="pose-batch"] .sx-extension-upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#suixinda-extension-feature[data-agent-type="image-conversation"] .sx-extension-upload-grid .sx-extension-field:last-child,
#suixinda-extension-feature[data-agent-type="pose-batch"] .sx-extension-upload-grid .sx-extension-field:last-child {
  grid-column: 1 / -1;
}

.sx-extension-field + .sx-extension-field,
.sx-extension-upload-grid + .sx-extension-field {
  margin-top: 16px !important;
}

.sx-extension-upload-grid .sx-extension-field + .sx-extension-field {
  margin-top: 0 !important;
}

.sx-extension-dropzone,
html.sx-local-theme .sx-video-dropzone {
  min-height: 160px !important;
  padding: 16px !important;
  border-color: #c8c5bd !important;
  border-radius: 11px !important;
  background: #fffdf9 !important;
  transform: none !important;
}

.sx-extension-dropzone:hover,
html.sx-local-theme .sx-video-dropzone:hover {
  border-color: #9f8a7e !important;
  background: #f7f1eb !important;
}

.sx-extension-dropzone > span,
html.sx-local-theme .sx-video-upload-icon {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid #c9b5aa !important;
  border-radius: 50% !important;
  background: #efe3dc !important;
  color: #75463b !important;
}

.sx-extension-prompt-field textarea,
.sx-extension-settings select,
.sx-extension-template-field select,
html.sx-local-theme .sx-video-form-section textarea,
html.sx-local-theme .sx-video-controls select {
  border-color: var(--pc-line-strong, #c8c5bd) !important;
  border-radius: 9px !important;
  background: #fffdf9 !important;
}

.sx-extension-prompt-field textarea,
html.sx-local-theme .sx-video-form-section textarea {
  min-height: 108px !important;
}

.sx-extension-mode-switch {
  gap: 7px !important;
}

.sx-extension-mode-switch label {
  min-height: 66px !important;
  padding: 10px !important;
  border-radius: 9px !important;
  background: #fffdf9 !important;
}

.sx-extension-mode-switch label:has(input:checked) {
  border-color: #8d6558 !important;
  background: #efe3dc !important;
  box-shadow: none !important;
}

.sx-extension-scene-picker {
  border-radius: 10px !important;
}

.sx-extension-scene-grid button {
  border-radius: 8px !important;
}

.sx-extension-settings {
  gap: 8px !important;
}

.sx-extension-settings select,
.sx-extension-template-field select {
  height: 40px !important;
}

.sx-extension-settings .sx-extension-check,
html.sx-local-theme .sx-video-check {
  min-height: 40px !important;
  border-radius: 9px !important;
  background: #fffdf9 !important;
}

.sx-extension-submit,
html.sx-local-theme .sx-video-submit-area {
  min-height: 66px;
  padding: 10px 14px !important;
  border-top: 1px solid var(--pc-line, #dadbd5);
  background: #f0ebe5 !important;
}

html.sx-local-theme .sx-video-submit-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sx-extension-submit button,
html.sx-local-theme .sx-video-submit-area button {
  min-height: 42px !important;
  border-radius: 9px !important;
}

html.sx-local-theme .sx-video-submit-area button {
  width: 155px !important;
  flex: 0 0 auto;
  order: 2;
}

html.sx-local-theme .sx-video-submit-area p {
  flex: 1 1 auto;
  margin: 0 !important;
  text-align: left !important;
}

.sx-extension-stage {
  min-height: 0 !important;
  height: auto;
  margin: 12px !important;
  border: 1px solid var(--pc-line, #dadbd5);
  border-radius: 12px !important;
  background: #eeece6 !important;
}

.sx-extension-stage-grid {
  opacity: 0.26 !important;
  background-size: 28px 28px !important;
}

.sx-extension-stage-assets img,
.sx-extension-stage-assets video {
  border-width: 3px !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 20px rgba(53, 51, 46, 0.12) !important;
}

.sx-extension-stage-empty span {
  border: 1px solid #c9b5aa;
  background: #fffdf9 !important;
  color: #75463b !important;
}

.sx-extension-output-actions {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border-top: 1px solid var(--pc-line, #dadbd5);
  color: var(--pc-muted, #747970);
  font-size: 8px;
}

.sx-extension-output-actions a {
  color: #7a4d41 !important;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

html.sx-local-theme .sx-video-output-body {
  min-height: 0 !important;
  height: 100%;
  display: block !important;
  padding: 12px !important;
  background: transparent !important;
}

html.sx-local-theme .sx-video-output-stage {
  width: 100% !important;
  height: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #2b2d27 !important;
  border-radius: 12px !important;
  background: #171814 !important;
}

html.sx-local-theme .sx-video-form-section {
  padding: 15px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pc-line, #dadbd5) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html.sx-local-theme .sx-video-field-head b {
  border: 0 !important;
  border-radius: 3px !important;
  background: #efe3dc !important;
  color: #805043 !important;
}

@media (max-width: 1180px) {
  .sx-extension-workspace,
  html.sx-local-theme .sx-video-workspace {
    grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr) !important;
  }

  .sx-production-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .sx-production-topbar {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .sx-production-current {
    display: none;
  }

  .sx-production-nav a {
    padding: 0 9px;
  }

  .sx-extension-page,
  html.sx-local-theme .sx-video-page {
    height: auto;
    min-height: calc(100dvh - var(--sx-production-header-height));
  }

  .sx-extension-workspace,
  html.sx-local-theme .sx-video-workspace {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sx-extension-form,
  html.sx-local-theme .sx-video-input-panel,
  .sx-extension-output,
  html.sx-local-theme .sx-video-output-panel {
    min-height: 640px;
  }

  .sx-extension-form-body,
  html.sx-local-theme .sx-video-panel-body {
    overflow: visible;
  }

  .sx-extension-stage,
  html.sx-local-theme .sx-video-output-stage {
    min-height: 520px !important;
  }
}

@media (max-width: 680px) {
  .sx-production-topbar {
    height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sx-production-brand {
    height: 58px;
    padding: 0 13px;
    border-right: 0;
  }

  .sx-production-brand > span:last-child {
    display: block;
  }

  .sx-production-brand small,
  .sx-production-nav {
    display: none;
  }

  .sx-production-actions {
    padding-right: 10px;
  }

  .sx-production-actions a {
    min-height: 32px;
    padding: 0 10px;
  }

  .sx-extension-page,
  html.sx-local-theme .sx-video-page {
    min-height: calc(100dvh - 58px);
    padding: 0 10px 18px !important;
  }

  .sx-production-page-head {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 14px 2px 13px;
  }

  .sx-production-page-head h1 {
    font-size: 22px;
  }

  .sx-production-page-head > div > span {
    overflow: visible;
    font-size: 10px;
    white-space: normal;
  }

  .sx-production-progress {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .sx-production-progress li {
    min-width: max-content;
  }

  .sx-production-progress li + li::before {
    width: 18px;
    margin-left: 12px;
  }

  .sx-extension-workspace,
  html.sx-local-theme .sx-video-workspace {
    gap: 10px !important;
    margin-top: 10px !important;
  }

  .sx-extension-panel,
  html.sx-local-theme .sx-video-panel {
    border-radius: 12px !important;
  }

  .sx-extension-form,
  html.sx-local-theme .sx-video-input-panel {
    min-height: auto;
  }

  .sx-extension-output,
  html.sx-local-theme .sx-video-output-panel {
    min-height: 520px;
  }

  .sx-extension-upload-grid,
  #suixinda-extension-feature[data-agent-type="image-conversation"] .sx-extension-upload-grid,
  #suixinda-extension-feature[data-agent-type="pose-batch"] .sx-extension-upload-grid,
  .sx-extension-mode-switch,
  .sx-extension-settings,
  html.sx-local-theme .sx-video-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #suixinda-extension-feature[data-agent-type="image-conversation"] .sx-extension-upload-grid .sx-extension-field:last-child,
  #suixinda-extension-feature[data-agent-type="pose-batch"] .sx-extension-upload-grid .sx-extension-field:last-child {
    grid-column: auto;
  }

  .sx-extension-upload-grid .sx-extension-field + .sx-extension-field {
    margin-top: 14px !important;
  }

  .sx-extension-dropzone,
  html.sx-local-theme .sx-video-dropzone {
    min-height: 180px !important;
  }

  .sx-extension-scene-note,
  .sx-extension-output-actions,
  html.sx-local-theme .sx-video-submit-area {
    align-items: stretch;
    flex-direction: column;
  }

  .sx-extension-scene-note small {
    text-align: left;
  }

  .sx-extension-output-actions {
    padding: 10px 13px;
  }

  html.sx-local-theme .sx-video-submit-area button {
    width: 100% !important;
    order: 0;
  }

  html.sx-local-theme .sx-video-submit-area p {
    text-align: center !important;
  }

  .sx-extension-stage,
  html.sx-local-theme .sx-video-output-stage {
    min-height: 410px !important;
  }
}

/* Fallback for recovered routes whose original sidebar does not expose a
   return link. It is only mounted when the page has no native back control. */
.sx-workspace-back {
  position: fixed;
  top: 76px;
  left: 16px;
  z-index: 65;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--pc-line, #dadbd5);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--pc-muted, #747970) !important;
  box-shadow: 0 5px 16px rgba(63, 57, 50, 0.08);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.sx-workspace-back:hover {
  border-color: #c5bbb1;
  background: var(--pc-sidebar-hover, #e9e3da);
  color: var(--pc-ink, #20231f) !important;
}

.sx-workspace-back span:first-child {
  color: #9b6252;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 680px) {
  .sx-workspace-back {
    top: 68px;
    left: 10px;
  }
}

/* New production routes use the same shell as the established studio pages.
   The custom workflow rail stays available in the markup for its contract data,
   but the visible navigation is the shared left tool navigation so every route
   has the same orientation and working proportions. */
.sx-production-app-shell {
  min-height: calc(100dvh - var(--sx-production-header-height));
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  align-items: stretch;
  background: var(--pc-page, #f5f4ef);
}

.sx-production-sidebar {
  min-width: 0;
  height: calc(100dvh - var(--sx-production-header-height));
  position: sticky;
  top: var(--sx-production-header-height);
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--pc-line, #dadbd5);
  background: var(--pc-sidebar, #f0ede7);
}

.sx-production-sidebar-back {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border-bottom: 1px solid var(--pc-line, #dadbd5);
  color: var(--pc-muted, #747970) !important;
  font-size: 11px;
  text-decoration: none;
}

.sx-production-sidebar-back:hover {
  color: var(--pc-ink, #20231f) !important;
  background: var(--pc-sidebar-hover, #e9e3da);
}

.sx-production-sidebar-back span {
  font-size: 15px;
  line-height: 1;
}

.sx-production-sidebar-heading {
  display: grid;
  gap: 3px;
  padding: 18px 15px 10px;
  color: #8b5a4d;
}

.sx-production-sidebar-heading span {
  font-size: 13px;
  font-weight: 750;
}

.sx-production-sidebar-heading small {
  color: #a18f83;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sx-production-sidebar-nav {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: #c9c0b7 transparent;
}

.sx-production-sidebar-item {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--pc-sidebar-text, #625e58) !important;
  font-size: 11px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.sx-production-sidebar-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sx-production-sidebar-item:hover {
  background: var(--pc-sidebar-hover, #e9e3da);
  color: var(--pc-ink, #20231f) !important;
}

.sx-production-sidebar-item.active {
  background: var(--pc-sidebar-active, #e5ddd3);
  color: #684439 !important;
  font-weight: 700;
}

.sx-production-sidebar-item.active svg {
  color: var(--pc-sidebar-accent, #9b6252);
}

.sx-production-sidebar-admin {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 12px;
  padding: 0 10px;
  border-top: 1px solid var(--pc-line, #dadbd5);
  color: var(--pc-muted, #747970) !important;
  font-size: 10px;
  text-decoration: none;
}

.sx-production-sidebar-admin:hover {
  color: var(--pc-ink, #20231f) !important;
}

.sx-production-sidebar-admin span {
  color: #9b6252;
  font-size: 14px;
}

html.sx-local-theme .studio-page > .sx-native-production-sidebar {
  position: sticky;
  top: var(--sx-production-header-height);
  flex: 0 0 214px;
  width: 214px;
}

html.sx-local-theme .studio-page > .sx-native-sidebar-original {
  display: none !important;
}

.sx-production-app-shell > .sx-extension-page,
.sx-production-app-shell > .sx-video-page {
  min-width: 0;
  width: 100% !important;
  height: calc(100dvh - var(--sx-production-header-height));
  min-height: 0;
  overflow: hidden;
}

.sx-production-app-shell .sx-production-page-head {
  flex: 0 0 auto;
}

.sx-production-app-shell .sx-extension-workspace,
.sx-production-app-shell .sx-video-workspace {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr) !important;
}

.sx-production-app-shell .sx-production-rail {
  display: none !important;
}

.sx-production-app-shell .sx-extension-form,
.sx-production-app-shell .sx-extension-output,
.sx-production-app-shell .sx-video-input-panel,
.sx-production-app-shell .sx-video-output-panel {
  min-width: 0;
}

@media (max-width: 1180px) {
  .sx-production-app-shell {
    grid-template-columns: 198px minmax(0, 1fr);
  }

  .sx-production-app-shell .sx-extension-workspace,
  .sx-production-app-shell .sx-video-workspace {
    grid-template-columns: minmax(370px, 0.92fr) minmax(0, 1.08fr) !important;
  }

  html.sx-local-theme .studio-page > .sx-native-production-sidebar {
    flex-basis: 198px;
    width: 198px;
  }
}

@media (max-width: 920px) {
  .sx-production-app-shell {
    display: block;
  }

  .sx-production-sidebar {
    display: none;
  }

  html.sx-local-theme .studio-page > .sx-native-production-sidebar {
    display: none;
  }

  .sx-production-app-shell > .sx-extension-page,
  .sx-production-app-shell > .sx-video-page {
    height: auto;
    min-height: calc(100dvh - var(--sx-production-header-height));
    overflow: visible;
  }

  .sx-production-app-shell .sx-extension-workspace,
  .sx-production-app-shell .sx-video-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .sx-production-app-shell > .sx-extension-page,
  .sx-production-app-shell > .sx-video-page {
    min-height: calc(100dvh - 58px);
  }

  .sx-production-app-shell .sx-extension-workspace,
  .sx-production-app-shell .sx-video-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Image-to-video uses a hidden workflow rail inside the shared production
   shell. The generic three-track selector above has higher specificity than
   the shared two-column override, which previously left a 1,300px empty
   track on wide screens and squeezed the form into 190px. Keep this page as
   a deliberate control-panel + preview-canvas workspace. */
html.sx-local-theme #suixinda-image-to-video .sx-video-workspace {
  grid-template-columns: minmax(500px, 600px) minmax(0, 1fr) !important;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-output-body {
  display: grid !important;
  place-items: center;
  padding: 16px !important;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage {
  min-height: 0 !important;
  max-width: 1120px;
  max-height: 100%;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-dropzone img[hidden],
html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage video[hidden] {
  display: none !important;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage[data-ratio="auto"],
html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage[data-ratio="16:9"] {
  width: min(100%, 1120px) !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage[data-ratio="9:16"] {
  width: auto !important;
  height: min(100%, 820px) !important;
  aspect-ratio: 9 / 16;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage[data-ratio="1:1"] {
  width: auto !important;
  height: min(100%, 820px) !important;
  aspect-ratio: 1;
}

@media (max-width: 1500px) {
  html.sx-local-theme #suixinda-image-to-video .sx-video-workspace {
    grid-template-columns: minmax(430px, 500px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 1180px) {
  html.sx-local-theme #suixinda-image-to-video .sx-video-workspace {
    grid-template-columns: minmax(370px, 0.92fr) minmax(0, 1.08fr) !important;
  }
}

@media (max-width: 760px) {
  html.sx-local-theme #suixinda-image-to-video .sx-video-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage[data-ratio="9:16"],
  html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage[data-ratio="1:1"] {
    width: min(100%, 460px) !important;
    height: auto !important;
  }
}

/* 2026 workspace information architecture
   Home explains the platform, the creation assistant owns the full tool
   directory, and individual tools use one shared header without a left rail. */
.sx-global-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sx-global-nav-link {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  color: #666a63 !important;
  font-size: 12px;
  font-weight: 620;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.sx-global-nav-link:hover {
  background: #eeece6;
  color: var(--pc-ink, #20231f) !important;
}

.sx-global-nav-link.active {
  background: #e7ded3;
  color: #70483d !important;
  font-weight: 700;
}

.sx-global-nav-link:focus-visible,
.sx-native-tool-switch:focus-visible,
.sx-user-menu-admin:focus-visible {
  outline: 2px solid #8c5649;
  outline-offset: 2px;
}

.sx-global-nav--home,
.sx-global-nav--production {
  height: 100%;
}

html.sx-local-theme .sx-global-nav--native {
  min-width: 430px;
  height: 100%;
  flex: 1 1 auto;
  margin: 0 clamp(12px, 3vw, 52px);
}

html.sx-local-theme .app-layout-header .sx-global-nav-link {
  color: #666a63 !important;
}

html.sx-local-theme .app-layout-header .sx-global-nav-link.active {
  color: #70483d !important;
}

.sx-user-menu-admin {
  text-decoration: none;
}

.sx-user-menu-admin-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #eee3dc;
  color: #75463b;
  font-size: 10px;
  font-weight: 750;
}

/* Home: one platform-facing page, no duplicated tool navigation. */
.sx-pc-topbar {
  grid-template-columns: minmax(190px, 230px) minmax(430px, 1fr) auto;
  padding: 0 clamp(16px, 2.4vw, 36px);
}

.sx-pc-topbar > .sx-pc-brand {
  height: 68px;
  padding: 0;
  border-right: 0;
}

.sx-pc-account {
  padding: 0;
}

.sx-pc-shell {
  display: block;
  grid-template-columns: minmax(0, 1fr);
}

.sx-pc-sidebar,
.sx-pc-nav {
  display: none !important;
}

.sx-pc-main {
  width: min(1540px, 100%);
  padding: 22px clamp(18px, 3.2vw, 50px) 64px;
}

.sx-pc-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
}

.sx-pc-home-primary,
.sx-pc-home-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.sx-pc-home-primary {
  gap: 28px;
  padding: 0 18px;
  border: 1px solid #26332c;
  border-radius: 14px 14px 5px 14px;
  background: #26332c;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
}

.sx-pc-home-primary:hover {
  border-color: #8e5b4c;
  background: #8e5b4c;
  transform: translateY(-2px);
}

.sx-pc-home-primary b {
  font-size: 15px;
}

.sx-pc-home-secondary {
  padding: 0 16px;
  border: 1px solid #bbbdb6;
  border-radius: 14px 14px 5px 14px;
  background: rgba(255, 253, 249, 0.72);
  color: #343a35 !important;
  font-size: 11px;
  font-weight: 650;
}

.sx-pc-home-secondary:hover {
  border-color: #8f938b;
  background: #fffdf9;
  transform: translateY(-2px);
}

.sx-pc-section-head > a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  border-bottom: 1px solid #9d776b;
  color: #70483d !important;
  font-weight: 700;
}

/* Custom feature pages: the header carries orientation; the canvas owns the
   full viewport width. */
.sx-production-topbar {
  grid-template-columns: minmax(190px, 230px) minmax(430px, 1fr) auto;
  padding: 0 clamp(16px, 2.4vw, 32px);
}

.sx-production-brand {
  padding: 0;
  border-right: 0;
}

.sx-production-app-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

.sx-production-sidebar {
  display: none !important;
}

.sx-production-app-shell > .sx-extension-page,
.sx-production-app-shell > .sx-video-page {
  grid-column: 1;
}

/* Native Vue tools: remove the duplicated product rail and add a compact
   breadcrumb row inside the existing studio shell. */
html.sx-local-theme .studio-page > .sidebar-container,
html.sx-local-theme .studio-page > .sx-native-production-sidebar,
html.sx-local-theme .studio-page > .sx-native-sidebar-original {
  display: none !important;
}

html.sx-local-theme .studio-page {
  width: 100%;
  min-width: 0;
}

html.sx-local-theme .studio-page > .studio-shell,
html.sx-local-theme .studio-shell {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.sx-native-tool-context {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 3px 8px;
  border-bottom: 1px solid var(--pc-line, #dadbd5);
  color: var(--pc-muted, #747970);
  font-size: 10px;
}

.sx-native-tool-context nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.sx-native-tool-context nav a {
  color: #75675f !important;
  text-decoration: none;
}

.sx-native-tool-context nav a:hover {
  color: #70483d !important;
}

.sx-native-tool-context nav span {
  color: #b0aaa2;
}

.sx-native-tool-context nav strong {
  overflow: hidden;
  color: var(--pc-ink, #20231f);
  font-weight: 700;
  text-overflow: ellipsis;
}

.sx-native-tool-switch {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 3px;
  border-bottom: 1px solid #9d776b;
  color: #70483d !important;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .sx-pc-topbar,
  .sx-production-topbar {
    grid-template-columns: minmax(150px, 190px) minmax(390px, 1fr) auto;
  }

  .sx-pc-account > span {
    display: none;
  }

  .sx-global-nav-link {
    padding-right: 10px;
    padding-left: 10px;
  }

  html.sx-local-theme .sx-global-nav--native {
    min-width: 390px;
    margin-right: 16px;
    margin-left: 16px;
  }
}

@media (max-width: 860px) {
  .sx-pc-topbar,
  .sx-production-topbar {
    min-height: 108px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px 44px;
    padding: 0 14px;
  }

  .sx-global-nav--home,
  .sx-global-nav--production {
    width: calc(100% + 28px);
    height: 44px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-left: -14px;
    overflow-x: auto;
    padding: 0 14px;
    border-top: 1px solid var(--pc-line, #dadbd5);
    scrollbar-width: none;
  }

  .sx-global-nav--home::-webkit-scrollbar,
  .sx-global-nav--production::-webkit-scrollbar,
  html.sx-local-theme .sx-global-nav--native::-webkit-scrollbar {
    display: none;
  }

  .sx-pc-topbar > .sx-pc-brand,
  .sx-production-brand {
    height: 64px;
  }

  .sx-pc-account,
  .sx-production-actions {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
  }

  .sx-production-app-shell {
    min-height: calc(100dvh - 108px);
  }

  .sx-production-app-shell > .sx-extension-page,
  .sx-production-app-shell > .sx-video-page {
    height: auto;
    min-height: calc(100dvh - 108px);
  }

  html.sx-local-theme .app-layout-header {
    position: sticky !important;
  }

  html.sx-local-theme .app-header-inner {
    width: 100% !important;
    height: auto !important;
    min-height: 108px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px 44px;
    padding: 0 14px;
  }

  html.sx-local-theme .app-header-inner > .app-brand-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  html.sx-local-theme .app-header-inner > div:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  html.sx-local-theme .sx-global-nav--native {
    width: calc(100% + 28px);
    min-width: 0;
    height: 44px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin: 0 0 0 -14px;
    overflow-x: auto;
    padding: 0 14px;
    border-top: 1px solid var(--pc-line, #dadbd5);
    scrollbar-width: none;
  }

  html.sx-local-theme .studio-page {
    height: calc(100dvh - 108px) !important;
  }
}

@media (max-width: 680px) {
  .sx-pc-topbar,
  .sx-production-topbar {
    min-height: 102px;
    grid-template-rows: 58px 44px;
  }

  .sx-pc-topbar > .sx-pc-brand,
  .sx-production-brand {
    height: 58px;
    padding: 0;
  }

  .sx-pc-brand small,
  .sx-production-brand small {
    display: none;
  }

  .sx-pc-account {
    gap: 7px;
  }

  .sx-pc-account > a:not(.sx-pc-avatar),
  .sx-production-current {
    display: none;
  }

  .sx-production-actions a {
    min-height: 32px;
    padding: 0 10px;
  }

  .sx-global-nav-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .sx-pc-main {
    padding: 14px 14px 42px;
  }

  .sx-pc-home-actions {
    width: 100%;
    margin-top: 24px;
  }

  .sx-pc-home-primary,
  .sx-pc-home-secondary {
    min-height: 44px;
  }

  .sx-pc-home-primary {
    flex: 1 1 180px;
  }

  .sx-pc-home-secondary {
    flex: 0 1 auto;
  }

  .sx-pc-section-head {
    align-items: flex-start;
  }

  .sx-pc-section-head p {
    max-width: 240px;
    line-height: 1.55;
  }

  .sx-production-app-shell {
    min-height: calc(100dvh - 102px);
  }

  .sx-production-app-shell > .sx-extension-page,
  .sx-production-app-shell > .sx-video-page {
    min-height: calc(100dvh - 102px);
  }

  html.sx-local-theme .app-header-inner {
    min-height: 102px;
    grid-template-rows: 58px 44px;
    padding: 0 10px;
  }

  html.sx-local-theme .app-layout-header .app-brand-button {
    min-width: 0;
  }

  html.sx-local-theme .app-layout-header .sx-app-brand small {
    display: none;
  }

  html.sx-local-theme .app-header-inner > div:last-child {
    gap: 6px !important;
  }

  html.sx-local-theme .app-header-action {
    display: none !important;
  }

  html.sx-local-theme .app-header-user {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  html.sx-local-theme .sx-global-nav--native {
    width: calc(100% + 20px);
    margin-left: -10px;
    padding: 0 10px;
  }

  html.sx-local-theme .studio-page {
    height: auto !important;
    min-height: calc(100dvh - 102px);
  }

  html.sx-local-theme .studio-shell {
    padding: 10px !important;
  }

  .sx-native-tool-context {
    min-height: 34px;
    gap: 10px;
    padding-bottom: 7px;
  }

  .sx-native-tool-context nav a:first-child,
  .sx-native-tool-context nav span:first-of-type {
    display: none;
  }

  .sx-native-tool-switch {
    min-height: 28px;
  }
}

/* Final cascade activation for the Pic commerce direction. The legacy theme
   contains several later compatibility blocks, so the structural decisions
   below intentionally close the cascade with route-scoped selectors. */
html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
  position: relative !important;
  min-height: clamp(600px, 66vw, 740px) !important;
  grid-template-columns: minmax(410px, 0.82fr) minmax(620px, 1.18fr) !important;
  overflow: hidden !important;
  border: 1px solid var(--pic-ink) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(rgba(32, 32, 32, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 32, 0.12) 1px, transparent 1px),
    linear-gradient(108deg, #d8b5ff 0%, #e1c7ff 43%, #efff70 72%, #dfff2f 100%) !important;
  background-size: 44px 44px, 44px 44px, auto !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy {
  position: relative !important;
  z-index: 10 !important;
  justify-content: center !important;
  padding: clamp(46px, 5vw, 84px) clamp(32px, 4.3vw, 72px) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy > small {
  width: fit-content !important;
  padding: 6px 9px !important;
  border: 1px solid var(--pic-ink) !important;
  border-radius: 4px !important;
  background: var(--pic-paper) !important;
  color: var(--pic-ink) !important;
  box-shadow: 3px 3px 0 var(--pic-ink) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy h1 {
  max-width: 690px !important;
  margin: 28px 0 0 !important;
  color: var(--pic-ink) !important;
  font: 900 clamp(48px, 5vw, 78px)/0.98 var(--pic-font-display) !important;
  letter-spacing: -0.075em !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy p {
  max-width: 520px !important;
  margin: 24px 0 0 !important;
  color: #373630 !important;
  font-size: 15px !important;
  font-weight: 560 !important;
  line-height: 1.75 !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-section {
  margin-top: 54px !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-section-head h2 {
  color: var(--pic-ink) !important;
  font: 900 clamp(28px, 3vw, 44px)/1 var(--pic-font-display) !important;
  letter-spacing: -0.055em !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-section-head p {
  margin-top: 8px !important;
  color: #68665f !important;
  font-size: 11px !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-account > a.sx-pic-start {
  background: var(--pic-ink) !important;
  color: #fff !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-account > a.sx-pic-start:hover {
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
}

html.sx-local-theme .sx-global-nav-link::after {
  right: 0 !important;
  left: 0 !important;
  box-shadow: 0 1px 0 var(--pic-ink) !important;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 150ms ease !important;
}

html.sx-local-theme .sx-global-nav-link:hover::after,
html.sx-local-theme .sx-global-nav-link.active::after {
  transform: scaleX(1);
}

html.sx-local-theme .stylist-page .stylist-hero {
  padding: 64px 0 70px !important;
  border-bottom: 0 !important;
  background:
    linear-gradient(rgba(32, 32, 32, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 32, 0.1) 1px, transparent 1px),
    linear-gradient(110deg, var(--pic-lavender), #f0ddff 47%, var(--pic-lime-soft)) !important;
  background-size: 42px 42px, 42px 42px, auto !important;
}

html.sx-local-theme .stylist-page .stylist-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(130px, 15vw, 210px);
  background: linear-gradient(
    180deg,
    rgba(255, 254, 247, 0) 0%,
    rgba(255, 254, 247, 0.16) 30%,
    rgba(255, 254, 247, 0.66) 70%,
    var(--pic-paper) 100%
  );
  pointer-events: none;
}

html.sx-local-theme .stylist-page .stylist-hero::after {
  z-index: 0;
}

html.sx-local-theme .stylist-page .stylist-hero__inner {
  grid-template-columns: minmax(360px, 0.72fr) minmax(600px, 1.28fr) !important;
}

html.sx-local-theme .stylist-page .workflow-preview {
  border: 1.5px solid var(--pic-ink) !important;
  border-radius: 12px !important;
  background: var(--pic-paper) !important;
  box-shadow: 8px 8px 0 var(--pic-ink) !important;
}

html.sx-local-theme .stylist-page .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

html.sx-local-theme .stylist-page .feature-card {
  min-height: 410px !important;
  padding: 0 !important;
  border: 1.5px solid var(--pic-ink) !important;
  border-radius: 11px !important;
  box-shadow: 6px 6px 0 var(--pic-ink) !important;
}

html.sx-local-theme .studio-page {
  height: calc(100dvh - 72px) !important;
  background: var(--pic-paper) !important;
}

html.sx-local-theme .studio-panel,
html.sx-local-theme .studio-input-panel,
html.sx-local-theme .studio-result-panel,
html.sx-local-theme .studio-generate-panel {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 9px !important;
  background: var(--pic-paper) !important;
  box-shadow: none !important;
}

html.sx-local-theme .upload-field [class*="border-dashed"],
html.sx-local-theme .upload-card [class*="border-dashed"],
html.sx-local-theme .garment-view-upload--contained [class*="border-dashed"] {
  border-color: var(--pic-ink) !important;
  border-radius: 7px !important;
  background: var(--pic-lime-soft) !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-panel,
html.sx-local-theme #suixinda-image-to-video .sx-video-panel {
  border: 1px solid var(--pic-ink) !important;
  border-radius: 9px !important;
  background: var(--pic-paper) !important;
  box-shadow: 5px 5px 0 var(--pic-ink) !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-dropzone,
html.sx-local-theme #suixinda-image-to-video .sx-video-dropzone {
  border: 1.5px dashed var(--pic-ink) !important;
  border-radius: 7px !important;
  background: var(--pic-lime-soft) !important;
}

@media (max-width: 1280px) {
  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
    grid-template-columns: minmax(360px, 0.78fr) minmax(560px, 1.22fr) !important;
  }

  html.sx-local-theme .stylist-page .stylist-hero__inner {
    grid-template-columns: minmax(330px, 0.82fr) minmax(520px, 1.18fr) !important;
  }

  html.sx-local-theme .stylist-page .feature-grid,
  html.sx-local-theme #suixinda-workbench-home .sx-pic-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero,
  html.sx-local-theme .stylist-page .stylist-hero__inner {
    grid-template-columns: 1fr !important;
  }

  html.sx-local-theme .stylist-page .feature-grid,
  html.sx-local-theme #suixinda-workbench-home .sx-pic-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    border-radius: 12px !important;
    background-size: 30px 30px, 30px 30px, auto !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy {
    padding: 42px 22px 34px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy h1 {
    font-size: clamp(43px, 13vw, 58px) !important;
  }

  html.sx-local-theme .stylist-page .feature-grid,
  html.sx-local-theme #suixinda-workbench-home .sx-pic-tool-grid {
    grid-template-columns: 1fr !important;
  }

  html.sx-local-theme .stylist-page .stylist-hero {
    padding: 42px 0 52px !important;
  }

  html.sx-local-theme .stylist-page .stylist-hero__copy h1 {
    font-size: 48px !important;
  }

  html.sx-local-theme .studio-page {
    height: auto !important;
  }
}

/* Motion pass: retain the calm original cards while bringing the reference
   site's interactive grid and menu-arrow rhythm into the shared shell. */
.sx-hero-motion {
  --sx-grid-size: 44px;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.sx-hero-motion-wash {
  position: absolute;
  width: clamp(360px, 42vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.48;
}

.sx-hero-motion-wash--lavender {
  top: -48%;
  left: -12%;
  background: radial-gradient(circle, rgba(211, 162, 255, 0.78) 0%, rgba(211, 162, 255, 0) 68%);
}

.sx-hero-motion-wash--lime {
  right: -12%;
  bottom: -62%;
  background: radial-gradient(circle, rgba(216, 255, 0, 0.78) 0%, rgba(216, 255, 0, 0) 69%);
}

.sx-hero-motion-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-position: 0 0;
  background-size: var(--sx-grid-size) var(--sx-grid-size);
  transform: translateZ(0);
}

.sx-hero-motion-cell {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--sx-grid-size);
  height: var(--sx-grid-size);
  border: 0;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  transform: translate3d(var(--sx-cell-x, 0), var(--sx-cell-y, 0), 0) scale(1);
  transition:
    background-color 800ms linear var(--sx-cell-delay, 0ms),
    opacity 800ms linear var(--sx-cell-delay, 0ms),
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.sx-hero-motion-cell.is-active {
  background: rgba(255, 255, 255, 0.76);
  opacity: 1;
  transform: translate3d(var(--sx-cell-x, 0), var(--sx-cell-y, 0), 0) scale(0.96);
  transition-duration: 100ms;
  transition-delay: 0ms;
}

.sx-hero-motion-cell--hover {
  z-index: 3;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition:
    background-color 100ms linear,
    opacity 100ms linear,
    transform 90ms linear;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero,
html.sx-local-theme .stylist-page .stylist-hero {
  --sx-hero-pointer-x: 0;
  --sx-hero-pointer-y: 0;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
  background: linear-gradient(108deg, #d8b5ff 0%, #e1c7ff 43%, #efff70 72%, #dfff2f 100%) !important;
}

html.sx-local-theme .stylist-page .stylist-hero {
  background: linear-gradient(110deg, var(--pic-lavender), #f0ddff 47%, var(--pic-lime-soft)) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy,
html.sx-local-theme #suixinda-workbench-home .sx-pic-collage,
html.sx-local-theme .stylist-page .stylist-hero__inner {
  position: relative;
  z-index: 2;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-card {
  animation: none !important;
  will-change: auto;
}

/* Compact Pic-style menu hover with a real animated arrow element. */
html.sx-local-theme .sx-global-nav-link {
  position: relative;
  min-height: 36px;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0 10px !important;
  border-radius: 10px !important;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.sx-local-theme .sx-global-nav-link.has-arrow:hover,
html.sx-local-theme .sx-global-nav-link.has-arrow:focus-visible {
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
  transform: translateY(-1px);
}

html.sx-local-theme .sx-global-nav-link::after {
  right: 10px !important;
  left: 10px !important;
  bottom: -1px !important;
}

.sx-global-nav-arrow {
  width: 17px;
  height: 17px;
  display: inline-grid;
  flex: 0 0 17px;
  place-items: center;
  border: 1px solid rgba(31, 31, 31, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  transform: rotate(0deg) translateZ(0);
  transition:
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 180ms ease,
    border-color 180ms ease;
  will-change: transform;
}

.sx-global-nav-arrow svg {
  width: 10px;
  height: 10px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.sx-global-nav-link.has-arrow:hover .sx-global-nav-arrow,
.sx-global-nav-link.has-arrow:focus-visible .sx-global-nav-arrow {
  border-color: var(--pic-ink);
  background: var(--pic-paper);
  transform: rotate(180deg) translateZ(0);
}

.sx-global-nav-link.has-arrow.active .sx-global-nav-arrow {
  border-color: var(--pic-ink);
  background: var(--pic-lime);
}

/* Restore the directory's original calm card surfaces. Colour is now kept in
   small interaction accents instead of filling the whole feature block. */
html.sx-local-theme .stylist-page .feature-card,
html.sx-local-theme .stylist-page .feature-card[data-sx-tone] {
  border: 1px solid rgba(76, 70, 62, 0.24) !important;
  border-radius: 18px !important;
  background: #fffdf9 !important;
  box-shadow: 0 8px 26px rgba(65, 56, 47, 0.07) !important;
  transform: none !important;
}

html.sx-local-theme .stylist-page .feature-card:hover:not(:disabled),
html.sx-local-theme .stylist-page .feature-card.highlighted {
  border-color: rgba(93, 74, 62, 0.5) !important;
  background: #fffefa !important;
  box-shadow: 0 18px 38px rgba(65, 56, 47, 0.12) !important;
  transform: translateY(-5px) !important;
}

html.sx-local-theme .stylist-page .feature-card.highlighted {
  background: #f8f3ed !important;
}

html.sx-local-theme .stylist-page .sx-feature-card-cover {
  border-color: rgba(76, 70, 62, 0.28) !important;
  background: #f1f0eb !important;
}

html.sx-local-theme .stylist-page .feature-card__tags span,
html.sx-local-theme .stylist-page .feature-card__status,
html.sx-local-theme .stylist-page .feature-card__recommend {
  border-color: rgba(94, 79, 68, 0.18) !important;
  background: #f7f1eb !important;
  color: #76584b !important;
  box-shadow: none !important;
}

html.sx-local-theme .stylist-page .feature-card__arrow {
  border-color: rgba(83, 104, 55, 0.28) !important;
  background: #f1f4e9 !important;
  color: #5b7438 !important;
}

/* Image/video categories return to a real left rail on the catalogue page. */
@media (min-width: 901px) {
  html.sx-local-theme .stylist-content > .stylist-shell {
    display: grid !important;
    grid-template-columns: 188px minmax(0, 1fr) !important;
    align-items: start;
    gap: clamp(24px, 2.6vw, 42px) !important;
  }

  html.sx-local-theme .stylist-content .section-tabs {
    position: sticky;
    top: 94px;
    z-index: 8;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    gap: 6px !important;
    margin: 0 !important;
    padding: 11px !important;
    border: 1px solid rgba(76, 70, 62, 0.2) !important;
    border-radius: 15px !important;
    background: rgba(255, 253, 249, 0.92) !important;
    box-shadow: 0 10px 28px rgba(65, 56, 47, 0.06) !important;
    backdrop-filter: blur(16px);
  }

  html.sx-local-theme .stylist-content .section-tab {
    position: relative;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #6b675f !important;
    box-shadow: none !important;
    text-align: left;
    transition:
      color 180ms ease,
      background-color 180ms ease,
      transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  html.sx-local-theme .stylist-content .section-tab::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    transition: background-color 180ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  html.sx-local-theme .stylist-content .section-tab::after {
    content: "→";
    margin-left: auto;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 180ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.sx-local-theme .stylist-content .section-tab:hover {
    background: #f3f1eb !important;
    color: var(--pic-ink) !important;
    transform: translateX(2px);
  }

  html.sx-local-theme .stylist-content .section-tab.active {
    background: var(--pic-ink) !important;
    color: #fff !important;
  }

  html.sx-local-theme .stylist-content .section-tab:hover::after,
  html.sx-local-theme .stylist-content .section-tab.active::after {
    opacity: 1;
    transform: translateX(0);
  }

  html.sx-local-theme .stylist-content .section-tab.active::before {
    border-color: var(--pic-lime);
    background: var(--pic-lime);
    transform: scale(1.2);
  }

  html.sx-local-theme .stylist-content .stylist-main-layout {
    min-width: 0;
    grid-column: 2;
  }

  html.sx-local-theme .stylist-page .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  }
}

/* Production pages also regain the shared image/video tool rail. */
@media (min-width: 921px) {
  .sx-production-topbar,
  html.sx-local-theme .app-layout-header {
    height: var(--sx-production-header-height) !important;
    min-height: var(--sx-production-header-height) !important;
  }

  .sx-production-app-shell {
    grid-template-columns: 214px minmax(0, 1fr) !important;
  }

  .sx-production-app-shell > .sx-production-sidebar,
  html.sx-local-theme .studio-page > .sx-native-production-sidebar {
    display: flex !important;
  }

  .sx-production-app-shell > .sx-extension-page,
  .sx-production-app-shell > .sx-video-page {
    grid-column: 2 !important;
  }

  html.sx-local-theme .studio-page > .sx-native-production-sidebar {
    flex: 0 0 214px;
    width: 214px;
  }

  html.sx-local-theme .studio-page > .sx-native-sidebar-original {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .sx-hero-motion {
    --sx-grid-size: 30px;
  }

  html.sx-local-theme .stylist-content > .stylist-shell {
    display: block !important;
  }

  html.sx-local-theme .stylist-content .section-tabs {
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: 18px !important;
    margin: 0 0 28px !important;
    padding: 0 0 10px !important;
    overflow-x: auto;
    border: 0 !important;
    border-bottom: 1px solid rgba(76, 70, 62, 0.2) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-hero-motion-wash,
  html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-card {
    animation: none !important;
  }

  .sx-hero-motion-grid,
  .sx-hero-motion-cell,
  .sx-global-nav-arrow,
  .sx-global-nav-link,
  html.sx-local-theme .stylist-content .section-tab {
    transition: none !important;
  }
}

/* Final reference-scale calibration against piccopilot.com/zh at 1440px.
   The original site uses a 36px interactive grid, a 1200px content frame and
   an approximately viewport-height hero rather than a rounded colour card. */
html.sx-local-theme #suixinda-workbench-home {
  background: var(--pic-paper) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar {
  top: 0 !important;
  width: min(1200px, calc(100% - 32px)) !important;
  min-height: 78px !important;
  margin: 0 auto -78px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  isolation: isolate;
  transition: color 180ms ease !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-bottom: 1px solid rgba(66, 61, 54, 0.12);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 10px 28px rgba(52, 46, 39, 0.07);
  opacity: 0;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  pointer-events: none;
  transition: opacity 180ms ease;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar.is-scrolled::before {
  opacity: 1;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar > .sx-pc-brand {
  height: 78px !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 64px !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
  position: relative !important;
  min-height: 804px !important;
  grid-template-columns: minmax(0, 560px) minmax(0, 640px) !important;
  justify-content: center !important;
  padding: 0 max(24px, calc((100vw - 1200px) / 2)) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(0deg, rgba(216, 255, 0, 0.4) 0%, rgba(211, 162, 255, 0.4) 100%), #fff !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(150px, 16vw, 230px);
  background: linear-gradient(
    180deg,
    rgba(255, 254, 247, 0) 0%,
    rgba(255, 254, 247, 0.18) 30%,
    rgba(255, 254, 247, 0.68) 70%,
    var(--pic-paper) 100%
  );
  pointer-events: none;
}

html.sx-local-theme #suixinda-workbench-home .sx-hero-motion {
  --sx-grid-size: 36px;
}

html.sx-local-theme #suixinda-workbench-home .sx-hero-motion-wash {
  opacity: 0.2;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy {
  justify-content: flex-start !important;
  padding: 205px 24px 70px 0 !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy h1 {
  max-width: 560px !important;
  margin-top: 22px !important;
  font-size: 58px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.06em !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy p {
  max-width: 520px !important;
  margin-top: 24px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage {
  min-height: 620px !important;
  align-self: center;
  margin-top: 82px;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-product {
  width: 34% !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-model {
  width: 36% !important;
  height: 76% !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-scene {
  width: 36% !important;
  height: 56% !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-video {
  width: 27% !important;
  height: 34% !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-capability-strip,
html.sx-local-theme #suixinda-workbench-home .sx-pc-section {
  width: min(1200px, calc(100% - 32px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-capability-strip {
  margin-top: 14px !important;
}

@media (max-width: 980px) {
  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar {
    width: calc(100% - 24px) !important;
    min-height: 108px !important;
    margin-bottom: -108px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    padding: 108px 24px 46px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy {
    padding: 70px 0 28px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pic-collage {
    width: 100%;
    min-height: 560px !important;
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy h1 {
    font-size: clamp(42px, 13vw, 56px) !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pic-collage {
    min-height: 430px !important;
  }
}

/* Same-size finishing pass after side-by-side desktop capture. */
html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
  grid-template-columns: minmax(0, 600px) minmax(0, 600px) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero-copy h1 {
  max-width: 600px !important;
  font-size: 56px !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-global-nav--home {
  justify-self: start;
  justify-content: flex-start;
  gap: 10px !important;
  margin-left: 18px;
}

html.sx-local-theme #suixinda-workbench-home .sx-global-nav-link {
  font-size: 14px !important;
}

.sx-global-nav-arrow {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sx-global-nav-arrow svg {
  width: 9px;
  height: 9px;
  stroke-width: 1.8;
}

.sx-global-nav-link.has-arrow:hover .sx-global-nav-arrow,
.sx-global-nav-link.has-arrow:focus-visible .sx-global-nav-arrow,
.sx-global-nav-link.has-arrow.active .sx-global-nav-arrow {
  border: 0;
  background: transparent;
}

/* Catalogue hero uses the same full background plane. The copy is not a
   separate pastel rectangle; only the workflow preview remains a card. */
html.sx-local-theme .stylist-page .stylist-hero {
  min-height: 560px;
  padding: 108px 0 66px !important;
  background: linear-gradient(0deg, rgba(216, 255, 0, 0.4) 0%, rgba(211, 162, 255, 0.4) 100%), #fff !important;
}

html.sx-local-theme .stylist-page .stylist-shell.stylist-hero__inner {
  width: min(1200px, calc(100% - 32px)) !important;
  grid-template-columns: minmax(0, 430px) minmax(0, 770px) !important;
  gap: 36px !important;
}

html.sx-local-theme .stylist-page .stylist-hero__copy {
  min-height: 0 !important;
  align-self: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.sx-local-theme .stylist-page .stylist-hero__copy h1 {
  max-width: 430px !important;
  margin-top: 25px !important;
  font-size: 52px !important;
  line-height: 1.08 !important;
}

html.sx-local-theme .stylist-page .stylist-hero__copy > span {
  max-width: 410px;
  font-size: 13px !important;
}

html.sx-local-theme .stylist-page .workflow-preview {
  align-self: center;
}

@media (max-width: 980px) {
  html.sx-local-theme .stylist-page .stylist-shell.stylist-hero__inner {
    grid-template-columns: 1fr !important;
  }

  html.sx-local-theme .stylist-page .stylist-hero__copy h1 {
    max-width: 620px !important;
  }
}

/* Quiet hierarchy for creation workspaces.
   Containers still read as separate working areas, but repeated black frames
   no longer compete with the content and active controls. */
html.sx-local-theme {
  --sx-studio-line-outer: rgba(74, 70, 62, 0.2);
  --sx-studio-line-inner: rgba(74, 70, 62, 0.12);
  --sx-studio-line-hover: rgba(74, 70, 62, 0.3);
  --sx-studio-paper: #fffdf9;
  --sx-studio-paper-soft: #faf8f3;
}

html.sx-local-theme .studio-panel,
html.sx-local-theme .studio-input-panel,
html.sx-local-theme .studio-result-panel,
html.sx-local-theme .studio-generate-panel,
html.sx-local-theme .lc-studio-panel {
  border-color: var(--sx-studio-line-outer) !important;
  background: var(--sx-studio-paper) !important;
  box-shadow: 0 1px 2px rgba(42, 38, 31, 0.035), 0 8px 22px rgba(42, 38, 31, 0.025) !important;
}

html.sx-local-theme .studio-panel-head,
html.sx-local-theme .lc-studio-panel-head {
  border-color: var(--sx-studio-line-inner) !important;
  background: var(--sx-studio-paper-soft) !important;
  color: #292720 !important;
}

html.sx-local-theme .studio-panel-head h2,
html.sx-local-theme .studio-panel-head span:not(.studio-panel-kicker),
html.sx-local-theme .lc-studio-panel-head h2,
html.sx-local-theme .lc-studio-panel-head span:not(.studio-panel-kicker) {
  color: #292720 !important;
}

html.sx-local-theme .studio-panel-head p,
html.sx-local-theme .lc-studio-panel-head p {
  color: #77736a !important;
}

html.sx-local-theme .studio-panel-badge {
  border-color: var(--sx-studio-line-inner) !important;
  background: #f1ede6 !important;
  color: #4e4a42 !important;
}

html.sx-local-theme .studio-form-section,
html.sx-local-theme .studio-result-stage,
html.sx-local-theme .studio-result-workspace,
html.sx-local-theme .studio-result-side,
html.sx-local-theme .studio-result-actions,
html.sx-local-theme .studio-thumb-section,
html.sx-local-theme .studio-recent-strip {
  border-color: var(--sx-studio-line-inner) !important;
  background: #fffefa !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-choice-item,
html.sx-local-theme .studio-resolution-pill,
html.sx-local-theme .studio-control-input,
html.sx-local-theme .choice-pill,
html.sx-local-theme .dropzone,
html.sx-local-theme .frame-dropzone,
html.sx-local-theme .image-add-card {
  border-color: var(--sx-studio-line-inner) !important;
  box-shadow: none !important;
}

html.sx-local-theme .studio-choice-item:hover:not(:disabled),
html.sx-local-theme .studio-resolution-pill:not(:disabled):hover,
html.sx-local-theme .choice-pill:hover,
html.sx-local-theme .dropzone:hover,
html.sx-local-theme .frame-dropzone:hover,
html.sx-local-theme .image-add-card:hover {
  border-color: var(--sx-studio-line-hover) !important;
}

html.sx-local-theme .studio-form-section-step {
  border-color: var(--sx-studio-line-inner) !important;
  background: #eee9e1 !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-panel,
html.sx-local-theme #suixinda-image-to-video .sx-video-panel,
html.sx-local-theme .sx-video-panel {
  border-color: var(--sx-studio-line-outer) !important;
  background: var(--sx-studio-paper) !important;
  box-shadow: 0 1px 2px rgba(42, 38, 31, 0.035), 0 8px 22px rgba(42, 38, 31, 0.025) !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-panel-head,
html.sx-local-theme #suixinda-image-to-video .sx-video-panel-head,
html.sx-local-theme .sx-video-panel-head {
  border-color: var(--sx-studio-line-inner) !important;
  background: var(--sx-studio-paper-soft) !important;
  color: #292720 !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-dropzone,
html.sx-local-theme #suixinda-image-to-video .sx-video-dropzone,
html.sx-local-theme .sx-video-dropzone,
html.sx-local-theme .sx-extension-mode-switch label,
html.sx-local-theme .sx-extension-check,
html.sx-local-theme .sx-extension-stage {
  border-color: var(--sx-studio-line-inner) !important;
  box-shadow: none !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-dropzone:hover,
html.sx-local-theme #suixinda-image-to-video .sx-video-dropzone:hover,
html.sx-local-theme .sx-video-dropzone:hover,
html.sx-local-theme .sx-extension-mode-switch label:hover {
  border-color: var(--sx-studio-line-hover) !important;
}

/* The top-level arrows now open real tool menus. Keep them text-led and
   compact: previews belong in the workspace, not in navigation. */
.sx-global-nav-item {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.sx-global-nav-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% - 1px);
  left: 50%;
  width: min(680px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(67, 63, 55, 0.2);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.985);
  box-shadow: 0 18px 42px rgba(42, 36, 29, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transform-origin: top center;
  transition: opacity 150ms ease, visibility 150ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-global-nav-menu--image {
  width: min(720px, calc(100vw - 32px));
}

.sx-global-nav-menu--resources {
  width: min(330px, calc(100vw - 32px));
}

.sx-global-nav-item:hover > .sx-global-nav-menu,
.sx-global-nav-item.is-open > .sx-global-nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sx-global-nav-item.is-open > .sx-global-nav-link .sx-global-nav-arrow {
  transform: rotate(180deg) translateZ(0);
}

.sx-global-nav-menu-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 8px 9px;
  border-bottom: 1px solid rgba(67, 63, 55, 0.1);
}

.sx-global-nav-menu-head strong {
  color: #292720;
  font-size: 13px;
  font-weight: 750;
}

.sx-global-nav-menu-head span {
  color: #888278;
  font-size: 10px;
}

.sx-global-nav-menu-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 9px;
}

.sx-global-nav-menu--resources .sx-global-nav-menu-groups {
  grid-template-columns: 1fr;
}

.sx-global-nav-menu-group {
  min-width: 0;
}

.sx-global-nav-menu-title {
  display: block;
  padding: 5px 8px 7px;
  color: #9a6252;
  font-size: 10px;
  font-weight: 750;
}

.sx-global-nav-menu-links {
  display: grid;
  gap: 2px;
}

.sx-global-nav-menu-link {
  position: relative;
  min-height: 38px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #4e4a43 !important;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background-color 140ms ease, color 140ms ease, transform 160ms ease;
}

.sx-global-nav-menu-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #777168;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx-global-nav-menu-link:hover,
.sx-global-nav-menu-link:focus-visible {
  background: #f1eee8;
  color: #24221d !important;
  transform: translateX(2px);
}

.sx-global-nav-menu-link.active {
  background: #f1eee8;
  color: #24221d !important;
  font-weight: 700;
}

.sx-global-nav-menu-link.active svg {
  stroke: #24221d;
}

.sx-global-nav-menu-link.active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid #24221d;
  border-radius: 999px;
  background: var(--pic-lime);
  transform: translateY(-50%);
}

/* Restore the catalogue cards to their useful horizontal proportion. */
html.sx-local-theme .stylist-page .sx-feature-card-cover {
  display: none !important;
}

html.sx-local-theme .stylist-page .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html.sx-local-theme .stylist-page .feature-card,
html.sx-local-theme .stylist-page .feature-card[data-sx-tone] {
  min-height: 152px !important;
  gap: 6px !important;
  padding: 14px 16px 13px !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 16px rgba(65, 56, 47, 0.045) !important;
  overflow: hidden !important;
}

html.sx-local-theme .stylist-page .feature-card:hover:not(:disabled),
html.sx-local-theme .stylist-page .feature-card.highlighted {
  box-shadow: 0 10px 24px rgba(65, 56, 47, 0.085) !important;
  transform: translateY(-2px) !important;
}

html.sx-local-theme .stylist-page .feature-card__icon {
  width: 42px !important;
  height: 32px !important;
}

html.sx-local-theme .stylist-page .feature-card__icon::before {
  left: -4px;
  width: 36px;
  height: 14px;
}

html.sx-local-theme .stylist-page .feature-card__icon::after {
  width: 27px;
}

html.sx-local-theme .stylist-page .feature-card__icon svg {
  width: 21px !important;
  height: 21px !important;
}

html.sx-local-theme .stylist-page .feature-card__body {
  padding: 0 !important;
}

html.sx-local-theme .stylist-page .feature-card__body strong {
  font-size: 15px !important;
}

html.sx-local-theme .stylist-page .feature-card__body small {
  min-height: 0 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

html.sx-local-theme .stylist-page .feature-card__tags {
  gap: 5px !important;
  margin: auto 36px 0 0 !important;
  padding: 0 !important;
}

html.sx-local-theme .stylist-page .feature-card__tags span {
  min-height: 21px !important;
  padding: 0 7px !important;
  font-size: 9px !important;
}

html.sx-local-theme .stylist-page .feature-card__recommend,
html.sx-local-theme .stylist-page .feature-card__status {
  top: 10px !important;
  right: 10px !important;
  min-height: 22px !important;
  padding: 0 8px !important;
  font-size: 9px !important;
}

html.sx-local-theme .stylist-page .feature-card__arrow {
  right: 11px !important;
  bottom: 11px !important;
  width: 29px !important;
  height: 29px !important;
  padding: 6px !important;
}

@media (max-width: 1280px) {
  html.sx-local-theme .stylist-page .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  html.sx-local-theme .stylist-page .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .sx-global-nav-menu {
    position: fixed;
    top: 108px;
    right: 12px;
    left: 12px;
    width: auto !important;
    max-height: calc(100dvh - 124px);
    overflow-y: auto;
    transform: translateY(8px);
  }

  .sx-global-nav-item:hover > .sx-global-nav-menu,
  .sx-global-nav-item.is-open > .sx-global-nav-menu {
    transform: translateY(0);
  }
}

/* Dropdowns extend below the navigation row. Keep every shared header in the
   same visible stacking plane so the menu cannot be clipped or painted below
   the following hero/workspace, while preserving the mobile scroll row. */
@media (min-width: 861px) {
  .sx-pc-topbar,
  .sx-production-topbar,
  html.sx-local-theme .app-layout-header,
  html.sx-local-theme .app-header-inner,
  .sx-global-nav {
    overflow: visible !important;
  }

  .sx-pc-topbar,
  .sx-production-topbar,
  html.sx-local-theme .app-layout-header {
    z-index: 180 !important;
  }
}

/* The three-column image menu is wider than the space around its trigger at
   tablet/compact-laptop widths. Anchor it to the viewport before it can cross
   the left edge; the 860px layout below keeps its taller two-row header. */
@media (min-width: 861px) and (max-width: 980px) {
  .sx-global-nav-menu {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto !important;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    transform: translateY(8px);
  }

  .sx-global-nav-item:hover > .sx-global-nav-menu,
  .sx-global-nav-item.is-open > .sx-global-nav-menu {
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .sx-global-nav-menu-groups {
    grid-template-columns: 1fr;
  }

  html.sx-local-theme .stylist-page .feature-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Resource library: keep model imagery prominent without the heavy black
   editorial frame used by the landing page. */
html.sx-local-theme .resource-library-aside {
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav {
  border: 1px solid rgba(86, 78, 69, 0.16) !important;
  border-radius: 16px !important;
  background: #f3f0ea !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-main .digital-human-preview,
html.sx-local-theme .resource-library-main [class*="aspect-[4/5]"] {
  border: 0 !important;
  border-bottom: 1px solid rgba(86, 78, 69, 0.12) !important;
  border-radius: 0 !important;
  background: #f0ede7 !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-main .digital-human-preview:has(img) {
  background: #ebe8e2 !important;
}

html.sx-local-theme .resource-library-main .digital-human-preview + div {
  background: #fffdf9 !important;
}

html.sx-local-theme .resource-library-main > div > div:has(> .digital-human-preview) {
  overflow: hidden !important;
  border: 1px solid rgba(86, 78, 69, 0.18) !important;
  border-radius: 14px !important;
  background: #fffdf9 !important;
  box-shadow: none !important;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease !important;
}

html.sx-local-theme .resource-library-main > div > div:has(> .digital-human-preview):hover {
  border-color: rgba(120, 92, 80, 0.36) !important;
  box-shadow: 0 12px 28px rgba(71, 61, 53, 0.075) !important;
  transform: translateY(-2px) !important;
}

/* Portrait resources read better as a calmer, denser catalogue.  The
   recovered four-column grid made each vertical image too wide and amplified
   the neutral space on both sides of the model.  Keep the full image visible,
   reduce the card footprint, and give each item more breathing room. */
html.sx-local-theme .resource-library-main .grid:has(> div > .digital-human-preview),
html.sx-local-theme .resource-library-main .grid:has(> div > [class*="aspect-"]) {
  column-gap: 20px !important;
  row-gap: 24px !important;
}

@media (min-width: 1220px) {
  html.sx-local-theme .resource-library-main .grid:has(> div > .digital-human-preview),
  html.sx-local-theme .resource-library-main .grid:has(> div > [class*="aspect-"]) {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Production workspace alignment: use the homepage's paper/ink system for
   every image and video tool, reserving lime for small active accents only. */
.sx-production-sidebar,
html.sx-local-theme .studio-page > .sx-native-production-sidebar {
  box-sizing: border-box !important;
  margin: 0 !important;
  align-self: stretch !important;
  border-right: 1px solid rgba(67, 63, 55, 0.14) !important;
  background: #fffefa !important;
  box-shadow: none !important;
}

/* Vue leaves a full-viewport helper SVG as a direct body child when switching
   from a native tool to a locally rendered production route.  It is not used
   by the local workspace and otherwise creates a 16px anonymous flow offset. */
html.sx-local-theme body.sx-local-production-route > svg {
  display: none !important;
}

/* Route changes should not move the whole production canvas.  Keep motion as
   a small hover response on the item the user is interacting with. */
.sx-production-app-shell > .sx-extension-page,
.sx-production-app-shell > .sx-video-page,
html.sx-local-theme .studio-shell.sx-production-content-enter {
  animation: none !important;
}

.sx-production-sidebar-item {
  box-sizing: border-box !important;
  height: 38px !important;
  min-height: 38px !important;
  font-family: var(--pic-font-body) !important;
  line-height: 1.2 !important;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 160ms ease !important;
}

.sx-production-sidebar-item.active,
.sx-production-sidebar-item.active:hover {
  animation: none !important;
}

.sx-production-sidebar-back {
  box-sizing: border-box !important;
  height: 42px !important;
  min-height: 42px !important;
  flex: 0 0 42px !important;
  border-bottom-color: rgba(67, 63, 55, 0.1) !important;
  background: #f7f4ed !important;
  color: #777168 !important;
  transition: background-color 160ms ease, color 160ms ease, padding-left 180ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sx-production-sidebar-back:hover {
  padding-left: 18px;
  background: #efebe3 !important;
  color: var(--pic-ink) !important;
}

.sx-production-sidebar-heading {
  box-sizing: border-box !important;
  height: 63px !important;
  min-height: 63px !important;
  flex: 0 0 63px !important;
  color: #292720 !important;
}

.sx-production-sidebar-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sx-production-sidebar-heading span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 1px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-lime);
}

.sx-production-sidebar-heading small {
  color: #8b857b !important;
}

/* Native Vue workspaces scroll their content inside `.studio-shell`; the
   shared rail does not need sticky viewport offsets there. Keeping it in the
   normal flex position prevents the scene workspace's legacy 64px height
   calculation from pushing only that rail 8px below the common 72px header. */
html.sx-local-theme .studio-page > .sx-native-production-sidebar {
  position: relative !important;
  top: 0 !important;
}

html.sx-local-theme.sx-scene-workspace .studio-page {
  height: calc(100dvh - var(--sx-production-header-height)) !important;
}

.sx-production-sidebar-nav {
  padding: 4px 9px 12px !important;
  scrollbar-color: #c9c3ba transparent !important;
}

.sx-production-sidebar-item {
  position: relative;
  min-height: 38px;
  gap: 9px;
  padding: 0 10px !important;
  border: 1px solid transparent;
  border-radius: 10px !important;
  background: transparent !important;
  color: #625e57 !important;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sx-production-sidebar-item::after {
  content: "→";
  margin-left: auto;
  color: currentColor;
  opacity: 0;
  transform: translateX(-7px);
  transition: opacity 150ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-production-sidebar-item:hover {
  border-color: rgba(67, 63, 55, 0.08) !important;
  background: #f2efe9 !important;
  color: var(--pic-ink) !important;
  transform: translateX(2px);
}

.sx-production-sidebar-item:hover::after {
  opacity: 0.5;
  transform: translateX(0);
}

.sx-production-sidebar-item.active,
.sx-production-sidebar-item.active:hover {
  border-color: var(--pic-ink) !important;
  background: var(--pic-ink) !important;
  color: #fff !important;
  font-weight: 720;
  box-shadow: none !important;
  transform: translateX(0);
  animation: sxProductionNavSelect 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-production-sidebar-item.active svg {
  color: var(--pic-lime) !important;
}

.sx-production-sidebar-item.active::after {
  color: var(--pic-lime);
  opacity: 1;
  transform: translateX(0);
}

.sx-production-sidebar-admin {
  border-top-color: rgba(67, 63, 55, 0.1) !important;
  color: #777168 !important;
}

.sx-tool-coming-soon,
.sx-feature-coming-soon,
.sx-extension-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border: 1px solid #d9a441;
  border-radius: 999px;
  background: #fff6df;
  color: #8a5b00;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sx-production-sidebar-item .sx-tool-coming-soon {
  margin-left: auto;
  padding: 4px 6px;
}

.sx-production-sidebar-item.is-coming-soon::after {
  display: none;
}

.sx-production-sidebar-item.active .sx-tool-coming-soon {
  border-color: rgba(217, 164, 65, 0.65);
  background: rgba(255, 246, 223, 0.12);
  color: #f6d98e;
}

.sx-global-nav-menu-link .sx-tool-coming-soon {
  margin-left: auto;
  padding: 4px 6px;
}

.sx-global-nav-menu-link[aria-disabled="true"],
.sx-production-sidebar-item[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.sx-global-nav-menu-link[aria-disabled="true"]:hover,
.sx-production-sidebar-item[aria-disabled="true"]:hover {
  background: transparent !important;
  color: inherit !important;
  transform: none !important;
}

#sxd-native-route-status {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 2147483600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(42, 42, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.96);
  color: #34352f;
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

html.sx-native-route-loading {
  overflow: hidden;
}

html.sx-native-route-loading #sxd-native-route-status {
  inset: 72px 0 0;
  z-index: 2147483647;
  min-height: 0;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #f1f1eb;
  font-size: 13px;
  opacity: 1;
  transform: none;
}

#sxd-native-route-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#sxd-native-route-status i {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(52, 53, 47, 0.2);
  border-top-color: #34352f;
  border-radius: 50%;
  animation: sx-route-status-spin 720ms linear infinite;
}

@keyframes sx-route-status-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #sxd-native-route-status {
    transition: none;
  }

  #sxd-native-route-status i {
    animation: none;
  }
}

.sx-feature-card--coming-soon,
.sx-feature-card--coming-soon button {
  position: relative;
}

.sx-feature-coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
}

.sx-extension-coming-soon {
  margin-left: 12px;
  padding: 6px 9px;
  vertical-align: middle;
  transform: translateY(-0.16em);
}

.sx-extension-is-coming-soon .sx-extension-form-body {
  opacity: 0.58;
}

.sx-extension-is-coming-soon .sx-extension-upload,
.sx-extension-is-coming-soon textarea,
.sx-extension-is-coming-soon select {
  cursor: not-allowed !important;
}

.sx-production-sidebar-admin:hover {
  color: var(--pic-ink) !important;
}

.sx-production-sidebar-admin span {
  color: #6c7f3d !important;
}

.sx-production-actions > a {
  border-color: var(--pic-ink) !important;
  background: var(--pic-ink) !important;
  color: #fff !important;
}

.sx-production-actions > a:hover {
  border-color: var(--pic-ink) !important;
  background: var(--pic-lime) !important;
  color: var(--pic-ink) !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-dropzone,
html.sx-local-theme #suixinda-image-to-video .sx-video-dropzone,
html.sx-local-theme .sx-video-dropzone,
html.sx-local-theme .upload-field,
html.sx-local-theme .garment-upload-placeholder,
html.sx-local-theme .garment-supplement-slot,
html.sx-local-theme .dropzone,
html.sx-local-theme .frame-dropzone,
html.sx-local-theme .image-add-card,
html.sx-local-theme .upload-field [class*="border-dashed"],
html.sx-local-theme .upload-card [class*="border-dashed"],
html.sx-local-theme .garment-view-upload--contained [class*="border-dashed"] {
  border-color: rgba(67, 63, 55, 0.34) !important;
  background: #faf8f3 !important;
  color: #5f5b54 !important;
  box-shadow: none !important;
  transition: border-color 160ms ease, background-color 160ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-dropzone:hover,
html.sx-local-theme #suixinda-image-to-video .sx-video-dropzone:hover,
html.sx-local-theme .sx-video-dropzone:hover,
html.sx-local-theme .upload-field:hover,
html.sx-local-theme .garment-upload-placeholder:hover,
html.sx-local-theme .garment-supplement-slot:hover,
html.sx-local-theme .dropzone:hover,
html.sx-local-theme .frame-dropzone:hover,
html.sx-local-theme .image-add-card:hover,
html.sx-local-theme .upload-field [class*="border-dashed"]:hover,
html.sx-local-theme .upload-card [class*="border-dashed"]:hover,
html.sx-local-theme .garment-view-upload--contained [class*="border-dashed"]:hover {
  border-color: rgba(67, 63, 55, 0.58) !important;
  background: #f3efe8 !important;
  transform: translateY(-1px);
}

html.sx-local-theme #suixinda-extension-feature .sx-extension-dropzone > span,
html.sx-local-theme #suixinda-image-to-video .sx-video-upload-icon,
html.sx-local-theme .sx-video-dropzone > span {
  border-color: rgba(132, 88, 72, 0.22) !important;
  background: #f1e7e1 !important;
  color: #815849 !important;
  box-shadow: none !important;
}

.sx-production-app-shell > .sx-extension-page,
.sx-production-app-shell > .sx-video-page,
html.sx-local-theme .studio-shell.sx-production-content-enter {
  animation: sxProductionContentIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sxProductionNavSelect {
  from { opacity: 0.72; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sxProductionContentIn {
  from { opacity: 0.72; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-production-sidebar-item,
  .sx-production-sidebar-back,
  .sx-production-app-shell > .sx-extension-page,
  .sx-production-app-shell > .sx-video-page,
  html.sx-local-theme .studio-shell.sx-production-content-enter {
    animation: none !important;
    transition: none !important;
  }
}

/* Pic Copilot navigation parity, verified against the live desktop header.
   The reference uses one hover signal only: a lime rounded background. */
html.sx-local-theme .sx-global-nav-link::before,
html.sx-local-theme .sx-global-nav-link::after {
  content: none !important;
  display: none !important;
}

@media (min-width: 761px) {
  html.sx-local-theme .sx-global-nav,
  html.sx-local-theme #suixinda-workbench-home .sx-global-nav--home {
    gap: 12px !important;
  }

  html.sx-local-theme .sx-global-nav-link,
  html.sx-local-theme .app-layout-header .sx-global-nav-link,
  html.sx-local-theme #suixinda-workbench-home .sx-global-nav-link {
    height: 36px;
    min-height: 36px;
    gap: 10px;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #1f1f1f !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 24px;
    box-shadow: none !important;
    transform: none !important;
    transition: all 150ms ease !important;
  }

  html.sx-local-theme .sx-global-nav-link.active,
  html.sx-local-theme .app-layout-header .sx-global-nav-link.active {
    background: transparent !important;
    color: #1f1f1f !important;
    font-weight: 500 !important;
  }

  html.sx-local-theme .sx-global-nav-link:hover,
  html.sx-local-theme .sx-global-nav-link:focus-visible,
  html.sx-local-theme .sx-global-nav-item:hover > .sx-global-nav-link,
  html.sx-local-theme .sx-global-nav-item.is-open > .sx-global-nav-link,
  html.sx-local-theme .sx-global-nav-link[aria-expanded="true"] {
    background: #d8ff00 !important;
    color: #1f1f1f !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html.sx-local-theme .sx-global-nav-arrow {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: rotate(0deg) translateZ(0);
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  html.sx-local-theme .sx-global-nav-arrow svg {
    width: 8px;
    height: 8px;
    stroke-width: 1.8;
  }

  html.sx-local-theme .sx-global-nav-link.has-arrow:hover .sx-global-nav-arrow,
  html.sx-local-theme .sx-global-nav-link.has-arrow:focus-visible .sx-global-nav-arrow,
  html.sx-local-theme .sx-global-nav-item:hover > .sx-global-nav-link .sx-global-nav-arrow,
  html.sx-local-theme .sx-global-nav-item.is-open > .sx-global-nav-link .sx-global-nav-arrow,
  html.sx-local-theme .sx-global-nav-link[aria-expanded="true"] .sx-global-nav-arrow {
    border: 0;
    background: transparent;
    transform: rotate(180deg) translateZ(0);
  }
}

/* Cross-page alignment: the image/video catalogue follows the homepage's
   1200px frame, 36px grid and earlier content start.  The previous 1376px
   frame, 44px grid and 108px top padding made the catalogue feel like a
   separate oversized page. */
html.sx-local-theme .stylist-page .stylist-hero {
  min-height: 500px !important;
  padding: 52px 0 56px !important;
}

html.sx-local-theme .stylist-page .sx-hero-motion {
  --sx-grid-size: 36px;
}

html.sx-local-theme .stylist-page .stylist-shell,
html.sx-local-theme .stylist-content > .stylist-shell,
html.sx-local-theme .resource-library-shell,
html.sx-local-theme .workflow-page__shell {
  width: min(1200px, calc(100% - 32px)) !important;
}

html.sx-local-theme .stylist-page .feature-grid {
  gap: 16px !important;
}

@media (max-width: 980px) {
  html.sx-local-theme .stylist-page .stylist-hero {
    min-height: auto !important;
    padding: 36px 0 48px !important;
  }
}

@media (max-width: 900px) {
  html.sx-local-theme .stylist-page .sx-hero-motion {
    --sx-grid-size: 30px;
  }
}

@media (max-width: 720px) {
  /* Keep the three-step material story horizontal on phones.  The recovered
     stylesheet stacked three square images vertically and pushed the first
     real tool card below 2000px. */
  html.sx-local-theme .stylist-page .workflow-preview__materials {
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding-bottom: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  html.sx-local-theme .stylist-page .workflow-preview__materials .material-card {
    width: 132px !important;
    min-width: 132px !important;
    flex: 0 0 132px !important;
    scroll-snap-align: start;
  }

  html.sx-local-theme .stylist-page .workflow-preview__materials .material-arrow {
    flex: 0 0 16px;
    margin-top: -24px !important;
    transform: none !important;
  }
}

/* The reference hero stays still until the user interacts.  Keep the collage
   response deliberately small: no enlarged shadow and no 8px lift. */
html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-card {
  transition: transform 160ms ease-out !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-card:hover {
  box-shadow: var(--pic-shadow) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-product:hover {
  transform: rotate(-6deg) translateY(-3px) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-model:hover {
  transform: rotate(2.2deg) translateY(-3px) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-scene:hover {
  transform: rotate(4deg) translateY(-3px) !important;
}

html.sx-local-theme #suixinda-workbench-home .sx-pic-collage-video:hover {
  transform: rotate(-3deg) translateY(-3px) !important;
}

/* Resource navigation uses the warm paper palette.  This selector must be
   more specific than the recovered generic button:hover rule that painted an
   inactive row neon lime. */
html.sx-local-theme .resource-library-nav button.resource-library-nav__item:hover:not(.resource-library-nav__item--active),
html.sx-local-theme .resource-library-nav button.resource-library-nav__item:focus-visible:not(.resource-library-nav__item--active),
html.sx-local-theme .resource-library-nav a.resource-library-nav__item:hover:not(.resource-library-nav__item--active),
html.sx-local-theme .resource-library-nav a.resource-library-nav__item:focus-visible:not(.resource-library-nav__item--active) {
  background: #e9e4dc !important;
  color: #3d3933 !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav .resource-library-nav__item:hover:not(.resource-library-nav__item--active) .resource-library-nav__icon,
html.sx-local-theme .resource-library-nav .resource-library-nav__item:focus-visible:not(.resource-library-nav__item--active) .resource-library-nav__icon {
  color: #8c5649 !important;
}

/* Keep the selected resource category on its existing muted clay surface.
   The recovered generic button:hover rule is more specific than the base
   active style, so active hover/focus needs an equally explicit override. */
html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active:hover,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active:focus-visible,
html.sx-local-theme .resource-library-nav a.resource-library-nav__item.resource-library-nav__item--active:hover,
html.sx-local-theme .resource-library-nav a.resource-library-nav__item.resource-library-nav__item--active:focus-visible {
  border-color: transparent !important;
  background: var(--pc-sidebar-active, #ded4c8) !important;
  color: #684439 !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav .resource-library-nav__item.resource-library-nav__item--active:hover .resource-library-nav__icon,
html.sx-local-theme .resource-library-nav .resource-library-nav__item.resource-library-nav__item--active:focus-visible .resource-library-nav__icon {
  color: var(--pc-sidebar-accent, #9b6252) !important;
}

/* Shared header frame -----------------------------------------------------
   Home, recovered Vue pages and local production pages use different DOM
   shells. Keep their brand on one 1200px content axis instead of allowing
   each shell to invent its own viewport padding. */
html.sx-local-theme {
  --sx-header-frame-width: 1200px;
  --sx-header-gutter: 16px;
}

html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar {
  width: min(var(--sx-header-frame-width), calc(100% - (2 * var(--sx-header-gutter)))) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

html.sx-local-theme .sx-production-topbar {
  width: 100% !important;
  padding-right: max(var(--sx-header-gutter), calc((100vw - var(--sx-header-frame-width)) / 2)) !important;
  padding-left: max(var(--sx-header-gutter), calc((100vw - var(--sx-header-frame-width)) / 2)) !important;
}

html.sx-local-theme .app-header-inner {
  width: min(var(--sx-header-frame-width), calc(100vw - (2 * var(--sx-header-gutter)))) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 860px) {
  html.sx-local-theme,
  html.sx-local-theme #suixinda-workbench-home,
  html.sx-local-theme #suixinda-image-to-video,
  html.sx-local-theme #suixinda-extension-feature {
    --sx-production-header-height: 108px;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar,
  html.sx-local-theme .sx-production-topbar,
  html.sx-local-theme .app-header-inner {
    min-height: 108px !important;
    grid-template-rows: 64px 44px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar {
    width: calc(100% - (2 * var(--sx-header-gutter))) !important;
    margin-bottom: -108px !important;
  }

  html.sx-local-theme .sx-production-topbar {
    padding-right: var(--sx-header-gutter) !important;
    padding-left: var(--sx-header-gutter) !important;
  }

  html.sx-local-theme .app-header-inner {
    width: calc(100% - (2 * var(--sx-header-gutter))) !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar > .sx-pc-brand,
  html.sx-local-theme .sx-production-brand {
    height: 64px !important;
    align-self: center;
  }

  html.sx-local-theme .sx-global-nav--home,
  html.sx-local-theme .sx-global-nav--production,
  html.sx-local-theme .sx-global-nav--native {
    width: calc(100% + (2 * var(--sx-header-gutter))) !important;
    margin-left: calc(-1 * var(--sx-header-gutter)) !important;
    padding-right: var(--sx-header-gutter) !important;
    padding-left: var(--sx-header-gutter) !important;
  }

  html.sx-local-theme .studio-page {
    height: calc(100dvh - 108px) !important;
  }
}

@media (max-width: 680px) {
  html.sx-local-theme,
  html.sx-local-theme #suixinda-workbench-home,
  html.sx-local-theme #suixinda-image-to-video,
  html.sx-local-theme #suixinda-extension-feature {
    --sx-production-header-height: 102px;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar,
  html.sx-local-theme .sx-production-topbar,
  html.sx-local-theme .app-header-inner {
    min-height: 102px !important;
    grid-template-rows: 58px 44px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar {
    margin-bottom: -102px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-topbar > .sx-pc-brand,
  html.sx-local-theme .sx-production-brand {
    height: 58px !important;
  }

  html.sx-local-theme #suixinda-workbench-home .sx-pc-home-hero {
    padding-top: 102px !important;
  }

  html.sx-local-theme .studio-page {
    height: auto !important;
    min-height: calc(100dvh - 102px) !important;
  }
}

/* Resource library rail --------------------------------------------------
   The model and scene library is rendered by the recovered Vue shell, but
   its navigation should read as the same control family as the image/video
   production rail: white paper, ink active row and a restrained lime cue. */
html.sx-local-theme .resource-library-body {
  grid-template-columns: 214px minmax(0, 1fr) !important;
  gap: 18px !important;
}

html.sx-local-theme .resource-library-aside {
  width: 214px;
  min-height: min(620px, calc(100dvh - 230px));
  overflow: hidden;
  border: 0 !important;
  border-right: 1px solid rgba(67, 63, 55, 0.14) !important;
  border-radius: 0 !important;
  background: #fffefa !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav {
  height: 100%;
  padding: 10px 9px 14px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav__group {
  padding: 9px 0 !important;
}

html.sx-local-theme .resource-library-nav__group:first-child {
  padding-top: 0 !important;
}

html.sx-local-theme .resource-library-nav__title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 7px !important;
  color: #292720 !important;
  font-family: var(--pic-font-body) !important;
  font-size: 11px !important;
  font-weight: 720 !important;
}

html.sx-local-theme .resource-library-nav__title::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 1px solid var(--pic-ink);
  border-radius: 50%;
  background: var(--pic-lime);
}

html.sx-local-theme .resource-library-nav__items {
  gap: 2px !important;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item {
  position: relative;
  width: 100%;
  height: 38px !important;
  min-height: 38px !important;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 10px !important;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #625e57 !important;
  box-shadow: none !important;
  font-family: var(--pic-font-body) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, transform 180ms ease-out !important;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item::before {
  content: none !important;
  display: none !important;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item::after {
  content: "→";
  flex: 0 0 auto;
  margin-left: 0;
  color: currentColor;
  opacity: 0;
  transform: translateX(-7px);
  transition: opacity 150ms ease-out, transform 180ms ease-out;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item:hover:not(.resource-library-nav__item--active),
html.sx-local-theme .resource-library-nav button.resource-library-nav__item:focus-visible:not(.resource-library-nav__item--active) {
  border-color: rgba(67, 63, 55, 0.08) !important;
  background: #f2efe9 !important;
  color: var(--pic-ink) !important;
  box-shadow: none !important;
  transform: translateX(2px);
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item:hover:not(.resource-library-nav__item--active) .resource-library-nav__icon,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item:focus-visible:not(.resource-library-nav__item--active) .resource-library-nav__icon {
  color: var(--pic-ink) !important;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item:hover::after,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item:focus-visible::after {
  opacity: 0.5;
  transform: translateX(0);
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item:focus-visible {
  outline: 2px solid #b9d800 !important;
  outline-offset: 1px;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active:hover,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active:focus-visible {
  border-color: var(--pic-ink) !important;
  background: var(--pic-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 720 !important;
  transform: translateX(0);
  animation: none !important;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active .resource-library-nav__icon,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active:hover .resource-library-nav__icon,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active:focus-visible .resource-library-nav__icon {
  color: var(--pic-lime) !important;
}

html.sx-local-theme .resource-library-nav button.resource-library-nav__item.resource-library-nav__item--active::after {
  color: var(--pic-lime);
  opacity: 1;
  transform: translateX(0);
}

html.sx-local-theme .resource-library-nav__count {
  margin-left: auto;
  border-radius: 999px !important;
  background: rgba(67, 63, 55, 0.08) !important;
  color: #777168 !important;
  font-size: 10px !important;
  box-shadow: none !important;
}

html.sx-local-theme .resource-library-nav__item--active .resource-library-nav__count {
  background: rgba(216, 255, 0, 0.14) !important;
  color: var(--pic-lime) !important;
}

/* One shared micro-feedback cadence for image/video tools and resources. */
html.sx-local-theme .sx-production-sidebar-item,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item {
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, transform 180ms ease-out !important;
}

html.sx-local-theme .sx-production-sidebar-item::after,
html.sx-local-theme .resource-library-nav button.resource-library-nav__item::after {
  transition: opacity 150ms ease-out, transform 180ms ease-out !important;
}

@media (prefers-reduced-motion: reduce) {
  html.sx-local-theme .resource-library-nav button.resource-library-nav__item,
  html.sx-local-theme .resource-library-nav button.resource-library-nav__item::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  html.sx-local-theme .resource-library-body {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.sx-local-theme .resource-library-aside {
    width: 100%;
    min-height: 0;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(67, 63, 55, 0.14) !important;
  }
}

/* Account menu -----------------------------------------------------------
   The recovered application popover still ships with a blue SaaS palette.
   Bring the panel, icons and active row into the same paper/ink/lime system
   used by the header and production navigation. */
html.sx-local-theme *:has(> .app-user-menu-list) {
  z-index: 220 !important;
  border-color: rgba(67, 63, 55, 0.16) !important;
  border-radius: 12px !important;
  background: #fffefa !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Toasts must not cover the sticky account controls on compact screens.
   Keep them below the shared header; account popovers remain above them. */
html.sx-local-theme .fixed.flex.flex-col:has(> li[role="alert"][data-state]) {
  top: 84px !important;
}

html.sx-local-theme .app-user-menu-list {
  gap: 2px !important;
  background: transparent !important;
}

html.sx-local-theme .app-user-menu-item {
  min-height: 36px;
  gap: 8px;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #625e57 !important;
  box-shadow: none !important;
  font-size: 13px;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, transform 180ms ease-out !important;
}

html.sx-local-theme .app-user-menu-icon {
  color: #777168 !important;
  transition: color 150ms ease-out !important;
}

html.sx-local-theme .app-user-menu-item:hover:not(.app-user-menu-item--active):not(.app-user-menu-item--logout),
html.sx-local-theme .app-user-menu-item:focus-visible:not(.app-user-menu-item--active):not(.app-user-menu-item--logout) {
  border-color: rgba(67, 63, 55, 0.08) !important;
  background: #f2efe9 !important;
  color: var(--pic-ink) !important;
  transform: translateX(2px);
}

html.sx-local-theme .app-user-menu-item:hover:not(.app-user-menu-item--active):not(.app-user-menu-item--logout) .app-user-menu-icon,
html.sx-local-theme .app-user-menu-item:focus-visible:not(.app-user-menu-item--active):not(.app-user-menu-item--logout) .app-user-menu-icon {
  color: var(--pic-ink) !important;
}

html.sx-local-theme .app-user-menu-item.app-user-menu-item--active,
html.sx-local-theme .app-user-menu-item.app-user-menu-item--active:hover,
html.sx-local-theme .app-user-menu-item.app-user-menu-item--active:focus-visible {
  border-color: var(--pic-ink) !important;
  background: var(--pic-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

html.sx-local-theme .app-user-menu-item.app-user-menu-item--active::after {
  top: 9px;
  bottom: 9px;
  left: 5px;
  width: 2px;
  border-radius: 999px;
  background: var(--pic-lime) !important;
}

html.sx-local-theme .app-user-menu-item.app-user-menu-item--active .app-user-menu-icon,
html.sx-local-theme .app-user-menu-item.app-user-menu-item--active:hover .app-user-menu-icon,
html.sx-local-theme .app-user-menu-item.app-user-menu-item--active:focus-visible .app-user-menu-icon {
  color: var(--pic-lime) !important;
}

html.sx-local-theme .app-user-menu-separator {
  background: rgba(67, 63, 55, 0.12) !important;
}

html.sx-local-theme .sx-user-menu-admin-mark {
  border: 1px solid rgba(67, 63, 55, 0.12);
  background: #f2efe9 !important;
  color: var(--pic-ink) !important;
}

html.sx-local-theme .app-user-menu-item:focus-visible {
  outline: 2px solid #b9d800 !important;
  outline-offset: 1px;
}

html.sx-local-theme .app-user-menu-item--logout:hover,
html.sx-local-theme .app-user-menu-item--logout:focus-visible {
  border-color: rgba(180, 61, 61, 0.1) !important;
  background: #fbefec !important;
  color: #a63f39 !important;
  transform: translateX(2px);
}

html.sx-local-theme .app-user-menu-item--logout:hover .app-user-menu-icon,
html.sx-local-theme .app-user-menu-item--logout:focus-visible .app-user-menu-icon {
  color: #a63f39 !important;
}

@media (prefers-reduced-motion: reduce) {
  html.sx-local-theme .app-user-menu-item,
  html.sx-local-theme .app-user-menu-icon {
    transition: none !important;
  }
}

/* The shared header already owns the four catalogue-level destinations.
   Remove the duplicate image/video/resource/history rail from both stylist
   directories and return the tool catalogue to the full 1200px content frame. */
html.sx-local-theme .stylist-content > .stylist-shell {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

html.sx-local-theme .stylist-content .section-tabs {
  display: none !important;
}

html.sx-local-theme .stylist-content .stylist-main-layout {
  width: 100% !important;
  max-width: none !important;
  grid-column: 1 !important;
}

/* Continue the hero's paper fade through the catalogue boundary. The first
   content pixel repeats the hero's final colour wash, then settles into the
   warmer catalogue canvas over 200px instead of switching in one line. */
html.sx-local-theme .stylist-page .stylist-hero::before {
  height: clamp(170px, 18vw, 250px);
  background: linear-gradient(
    180deg,
    rgba(255, 254, 247, 0) 0%,
    rgba(255, 254, 247, 0.2) 28%,
    rgba(255, 254, 247, 0.58) 66%,
    rgba(255, 254, 247, 0.82) 100%
  );
}

html.sx-local-theme .stylist-page .sx-hero-motion {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0, 0, 0, 0.42) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0, 0, 0, 0.42) 80%, transparent 100%);
}

html.sx-local-theme .stylist-page .stylist-hero::after {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 30%, transparent 54%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 30%, transparent 54%);
}

/* Keep the three preview cards and their offset shadows clear of the outer
   frame. This raises the material story without shrinking its imagery. */
html.sx-local-theme .stylist-page .workflow-preview__materials {
  padding-bottom: 18px !important;
}

@media (max-width: 720px) {
  html.sx-local-theme .stylist-page .workflow-preview__materials {
    padding-bottom: 12px !important;
  }
}

html.sx-local-theme .stylist-content {
  background:
    linear-gradient(
      180deg,
      rgba(255, 254, 247, 0.82) 0%,
      rgba(255, 254, 247, 0.94) 50%,
      var(--pc-page) 100%
    ) top / 100% 200px no-repeat,
    linear-gradient(180deg, rgba(216, 255, 0, 0.4) 0%, rgba(216, 255, 0, 0) 100%) top / 100% 200px no-repeat,
    linear-gradient(180deg, #fff 0%, var(--pc-page) 100%) top / 100% 200px no-repeat,
    var(--pc-page) !important;
}

/* Image-to-video tutorial state. Keep the instructional canvas light and
   useful before generation; only restore the dark player chrome when a real
   video result exists. */
html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage:not(.has-result) {
  width: 100% !important;
  height: auto !important;
  min-height: clamp(420px, 55vh, 650px) !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  place-items: center;
  aspect-ratio: auto !important;
  border: 1px solid #e1ddd2 !important;
  border-radius: 14px !important;
  background-color: #f7f4ec !important;
  background-image:
    linear-gradient(rgba(117, 110, 94, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 110, 94, 0.07) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  color: #292923 !important;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage:not(.has-result) .sx-video-frame-guide,
html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage:not(.has-result) .sx-video-timeline {
  display: none !important;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial {
  width: min(100%, 920px);
  padding: clamp(20px, 3vw, 34px);
  color: #292923;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial[hidden] {
  display: none !important;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid figure {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(81, 77, 67, 0.14);
  border-radius: 14px;
  background: #e9e6df;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid figure:first-child img {
  object-position: center 24%;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid figure:nth-child(2) img {
  object-position: center;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid figure:last-child img {
  object-position: center;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(42, 43, 38, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-copy {
  margin-top: clamp(16px, 2vw, 22px);
  text-align: center;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-copy strong {
  display: block;
  color: #292923;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 720;
  line-height: 1.35;
  text-wrap: balance;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-copy p {
  margin: 7px 0 0;
  color: #77746c;
  font-size: 12px;
  line-height: 1.6;
  text-wrap: pretty;
}

html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage.has-result {
  display: grid !important;
  grid-template-rows: 36px minmax(0, 1fr) 58px;
  border-color: #2b2d27 !important;
  background: #171814 !important;
  color: #f5f6ef !important;
}

@media (max-width: 760px) {
  html.sx-local-theme #suixinda-image-to-video .sx-video-output-stage:not(.has-result) {
    min-height: 430px !important;
  }

  html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial {
    width: 100%;
    overflow-x: auto;
  }

  html.sx-local-theme #suixinda-image-to-video .sx-video-tutorial-grid {
    width: 610px;
    grid-template-columns: repeat(3, 190px);
  }
}

/* Shared authenticated account control ----------------------------------
   Home and locally-rendered production pages now read the authenticated
   account instead of presenting a hard-coded SX shortcut to the admin UI. */
html.sx-local-theme [data-sx-admin-only][hidden],
html.sx-local-theme [data-sx-account-menu][hidden] {
  display: none !important;
}

html.sx-local-theme .sx-account-control {
  position: relative;
  flex: 0 0 auto;
  color: var(--pic-ink, #2b2b26);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  white-space: normal;
}

html.sx-local-theme .sx-account-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 4px;
  border: 1px solid rgba(67, 63, 55, 0.15);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.88);
  color: var(--pic-ink, #2b2b26);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, transform 150ms ease-out;
}

html.sx-local-theme .sx-account-trigger:hover,
html.sx-local-theme .sx-account-trigger[aria-expanded="true"] {
  border-color: rgba(67, 63, 55, 0.28);
  background: #f4f1eb;
}

html.sx-local-theme .sx-account-trigger:active {
  transform: translateY(1px);
}

html.sx-local-theme .sx-account-trigger:focus-visible {
  outline: 2px solid #b9d800;
  outline-offset: 2px;
}

html.sx-local-theme .sx-account-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #374b40;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0.02em;
}

html.sx-local-theme .sx-account-trigger-copy,
html.sx-local-theme .sx-account-summary > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

html.sx-local-theme .sx-account-trigger-copy {
  max-width: 104px;
}

html.sx-local-theme .sx-account-trigger-copy strong,
html.sx-local-theme .sx-account-summary strong {
  overflow: hidden;
  color: var(--pic-ink, #2b2b26);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.sx-local-theme .sx-account-trigger-copy small,
html.sx-local-theme .sx-account-summary small {
  color: #837d74;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

html.sx-local-theme .sx-account-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 150ms ease-out;
}

html.sx-local-theme .sx-account-trigger[aria-expanded="true"] .sx-account-chevron {
  transform: rotate(180deg);
}

html.sx-local-theme .sx-account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 260;
  width: 238px;
  padding: 7px;
  border: 1px solid rgba(67, 63, 55, 0.17);
  border-radius: 14px;
  background: #fffefa;
  box-shadow: none;
}

html.sx-local-theme .sx-account-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 8px 8px;
}

html.sx-local-theme .sx-account-summary .sx-account-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

html.sx-local-theme .sx-account-summary strong {
  font-size: 13px;
}

html.sx-local-theme .sx-account-summary small {
  margin-top: 2px;
  font-size: 10px;
}

html.sx-local-theme .sx-account-menu-separator {
  height: 1px;
  margin: 4px 6px;
  background: rgba(67, 63, 55, 0.11);
}

html.sx-local-theme .sx-account-menu-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #625e57 !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}

html.sx-local-theme .sx-account-menu-item i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67, 63, 55, 0.1);
  border-radius: 7px;
  background: #f2efe9;
  color: var(--pic-ink, #2b2b26);
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

html.sx-local-theme .sx-account-menu-item:hover,
html.sx-local-theme .sx-account-menu-item:focus-visible {
  border-color: rgba(67, 63, 55, 0.07);
  background: #f2efe9;
  color: var(--pic-ink, #2b2b26) !important;
}

html.sx-local-theme .sx-account-menu-item:focus-visible {
  outline: 2px solid #b9d800;
  outline-offset: 1px;
}

html.sx-local-theme .sx-account-menu-logout:hover,
html.sx-local-theme .sx-account-menu-logout:focus-visible {
  border-color: rgba(166, 63, 57, 0.08);
  background: #fbefec;
  color: #a63f39 !important;
}

html.sx-local-theme .sx-account-menu-logout:hover i,
html.sx-local-theme .sx-account-menu-logout:focus-visible i {
  border-color: rgba(166, 63, 57, 0.1);
  background: #f8e4df;
  color: #a63f39;
}

html.sx-local-theme .sx-pc-topbar,
html.sx-local-theme .sx-production-topbar,
html.sx-local-theme .sx-pc-account,
html.sx-local-theme .sx-production-actions {
  overflow: visible !important;
}

@media (max-width: 1120px) {
  html.sx-local-theme .sx-account-trigger-copy,
  html.sx-local-theme .sx-account-chevron {
    display: none;
  }

  html.sx-local-theme .sx-account-trigger {
    min-width: 38px;
    justify-content: center;
    padding: 3px;
    border-radius: 50%;
  }
}

@media (max-width: 680px) {
  html.sx-local-theme .sx-production-current {
    display: none;
  }

  html.sx-local-theme .sx-production-actions {
    gap: 7px;
    padding-right: 0;
  }

  html.sx-local-theme .sx-account-menu {
    position: fixed;
    top: calc(var(--sx-production-header-height, 102px) + 6px);
    right: 12px;
    width: min(238px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.sx-local-theme .sx-account-trigger,
  html.sx-local-theme .sx-account-chevron,
  html.sx-local-theme .sx-account-menu-item {
    transition: none !important;
  }
}

/* Cache-bust marker: video entry recovery deployment 2026-08-28. */
