@scope (#agent-native) {
:scope {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f7f9ff;
  --surface-strong: #eef3ff;
  --text: #101626;
  --muted: #667085;
  --soft: #9aa4b2;
  --line: #e7ebf3;
  --brand: #2559f6;
  --brand-2: #79a7ff;
  --accent: #ecf3ff;
  --danger: #d92d20;
  --success: #099250;
  --shadow: 0 24px 80px rgba(34, 48, 84, 0.12);
  --font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 14%, rgba(37, 89, 246, 0.08), transparent 24rem),
    radial-gradient(circle at 86% 30%, rgba(121, 167, 255, 0.16), transparent 24rem),
    linear-gradient(#fff, #fff);
  font-family: var(--font);
  letter-spacing: 0;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(231, 235, 243, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: #171d2d;
  font-size: 15px;
  font-weight: 750;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 24%, #fff 0 2px, transparent 3px),
    linear-gradient(135deg, #6a8dff, #194ee8);
  box-shadow: 0 10px 24px rgba(37, 89, 246, 0.24);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.product-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 249, 255, 0.86);
  box-shadow: 0 14px 44px rgba(34, 48, 84, 0.08);
}

.product-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #5a6374;
  font-size: 11.2px;
  font-weight: 720;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.product-tab:hover,
.product-tab:focus-visible,
.product-tab.is-active {
  border-color: rgba(37, 89, 246, 0.16);
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 89, 246, 0.11);
  color: var(--brand);
  outline: none;
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--brand);
  box-shadow: 0 10px 26px rgba(37, 89, 246, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.product-section {
  display: grid;
  justify-items: center;
  padding: 64px 0 58px;
  text-align: center;
}

.product-showcase {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(1040px, 100%);
  text-align: center;
}

.product-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}

.product-title {
  margin: 0;
  color: #151b2c;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 780;
}

.product-description {
  max-width: 620px;
  margin: 18px auto 0;
  color: #626b7d;
  font-size: 19px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-top: 28px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  box-shadow: 0 14px 32px rgba(37, 89, 246, 0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 760;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.product-visual {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 46px;
  min-width: 0;
}

.preview-frame {
  width: min(100%, 940px);
  aspect-ratio: 1.72;
  overflow: hidden;
  border: 1px solid rgba(37, 89, 246, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 28px 70px rgba(34, 48, 84, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.preview-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #edf1f8;
  background: linear-gradient(180deg, #fff, #f8faff);
}

.preview-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7deea;
}

.visual-stage {
  position: relative;
  height: calc(100% - 42px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 89, 246, 0.08), transparent 42%),
    var(--surface);
}

.feature-carousel {
  position: relative;
  height: calc(100% - 42px);
  overflow: hidden;
  background: var(--surface);
}

.feature-carousel-track {
  position: relative;
  height: 100%;
}

.feature-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: stretch;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.feature-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.feature-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 22, 0), rgba(4, 9, 25, 0.2)),
    radial-gradient(circle at 50% 100%, rgba(37, 89, 246, 0.12), transparent 46%);
  pointer-events: none;
}

.feature-slide figcaption {
  position: absolute;
  left: 30px;
  bottom: 26px;
  z-index: 1;
  display: inline-grid;
  gap: 3px;
  min-width: 156px;
  padding: 13px 16px;
  border: 1px solid rgba(37, 89, 246, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(34, 48, 84, 0.12);
  backdrop-filter: blur(14px);
  text-align: left;
}

.feature-slide figcaption strong {
  color: #151b2c;
  font-size: 14px;
  font-weight: 780;
}

.feature-slide figcaption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.feature-carousel-dots {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 1;
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(37, 89, 246, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(34, 48, 84, 0.1);
  backdrop-filter: blur(12px);
}

.feature-carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd7ea;
  transition: width 180ms ease, background 180ms ease;
}

.feature-carousel-dots span.is-active {
  width: 22px;
  background: var(--brand);
}

.feature-carousel-next {
  position: absolute;
  top: 50%;
  right: 30px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(37, 89, 246, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(34, 48, 84, 0.14);
  color: var(--brand);
  cursor: pointer;
  font-size: 32px;
  font-weight: 680;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  backdrop-filter: blur(14px);
}

.feature-carousel-next:hover,
.feature-carousel-next:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(34, 48, 84, 0.18);
  outline: none;
  transform: translateY(-50%) translateX(2px);
}

.visual-glow {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  left: 50%;
  top: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 89, 246, 0.3), rgba(121, 167, 255, 0.16), transparent 70%);
  filter: blur(4px);
  transform: translate(-50%, -50%);
  animation: preview-glow 4.8s ease-in-out infinite;
}

.visual-subject {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 38%;
  height: 72%;
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(circle at 50% 19%, #f8d8c6 0 15%, transparent 15.4%),
    linear-gradient(180deg, transparent 0 32%, #1e2b45 32% 100%);
  box-shadow: 0 18px 44px rgba(34, 48, 84, 0.16);
  transform: translateX(-50%);
}

.visual-subject::before,
.visual-subject::after {
  content: "";
  position: absolute;
}

.visual-subject::before {
  left: 31%;
  top: 4%;
  width: 38%;
  height: 24%;
  border-radius: 50% 50% 46% 46%;
  background: #2a3243;
}

.visual-subject::after {
  left: 28%;
  top: 16%;
  width: 44%;
  height: 22%;
  border-radius: 50%;
  background: #f6cdbb;
}

.visual-panel {
  position: absolute;
  display: grid;
  gap: 8px;
  width: 32%;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(37, 89, 246, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 40px rgba(34, 48, 84, 0.12);
  backdrop-filter: blur(12px);
}

.visual-panel span {
  width: 42%;
  height: 8px;
  border-radius: 999px;
  background: #cbd7ff;
}

.visual-panel strong {
  width: 78%;
  height: 12px;
  border-radius: 999px;
  background: #879ce8;
}

.visual-panel-a {
  left: 7%;
  top: 15%;
}

.visual-panel-b {
  right: 7%;
  top: 26%;
}

.visual-panel-c {
  left: 12%;
  bottom: 13%;
}

.product-showcase[data-active-product="swim"] {
  --brand: #087ccf;
}

.product-showcase[data-active-product="swim"] .visual-stage {
  background:
    repeating-linear-gradient(90deg, rgba(8, 124, 207, 0.09) 0 1px, transparent 1px 70px),
    linear-gradient(180deg, #eaf8ff, #f9fdff);
}

.product-showcase[data-active-product="swim"] .visual-subject {
  width: 58%;
  height: 22%;
  bottom: 38%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 20%, #155c8e 20% 78%, transparent 78%),
    linear-gradient(180deg, #56c0ff, #0f86d8);
}

.product-showcase[data-active-product="swim"] .visual-subject::before {
  left: 74%;
  top: -18%;
  width: 18%;
  height: 72%;
  border-radius: 50%;
  background: #f6cdbb;
}

.product-showcase[data-active-product="swim"] .visual-subject::after {
  left: 4%;
  top: 58%;
  width: 88%;
  height: 64%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8, 124, 207, 0.08), rgba(8, 124, 207, 0.22), rgba(8, 124, 207, 0.08));
}

.product-showcase[data-active-product="vision"] {
  --brand: #7048e8;
}

.product-showcase[data-active-product="vision"] .visual-stage {
  background:
    radial-gradient(circle at 75% 18%, rgba(112, 72, 232, 0.16), transparent 14rem),
    linear-gradient(180deg, #fbfaff, #f4f1ff);
}

.product-showcase[data-active-product="vision"] .visual-subject {
  width: 44%;
  height: 56%;
  bottom: 18%;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(112, 72, 232, 0.16), transparent 1px),
    linear-gradient(180deg, #fff, #f0ecff);
  background-size:
    28px 100%,
    100% 100%;
}

.product-showcase[data-active-product="vision"] .visual-subject::before {
  inset: 18px 22px auto;
  width: auto;
  height: 12px;
  border-radius: 999px;
  background: #cabfff;
}

.product-showcase[data-active-product="vision"] .visual-subject::after {
  left: 22px;
  right: 22px;
  top: 54px;
  width: auto;
  height: 46%;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(112, 72, 232, 0.22), rgba(255, 255, 255, 0.8));
}

.workspace {
  padding: 34px 0 72px;
}

.upload-workspace {
  display: grid;
  justify-items: center;
  padding: 42px 0 76px;
}

.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.workspace-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.workspace-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.upload-workspace .workspace-head {
  display: grid;
  width: min(760px, 100%);
  justify-items: center;
  gap: 16px;
  margin-bottom: 18px;
  text-align: center;
}

.upload-workspace .workspace-head h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.upload-workspace .workspace-head p {
  margin: 12px auto 0;
}

.mini-qr-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(34, 48, 84, 0.08);
}

.mini-qr-card img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}

.mini-qr-card span {
  color: var(--soft);
  font-size: 12px;
}

.mini-qr-card strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.upload-workspace .mini-qr-card {
  grid-template-columns: 58px minmax(0, 1fr);
  width: min(260px, 100%);
  min-width: 0;
  text-align: left;
}

.upload-workspace .mini-qr-card img {
  width: 58px;
  height: 58px;
}

.workspace-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 249, 255, 0.9);
}

.upload-workspace .workspace-tabs {
  justify-self: center;
  margin: 2px 0 20px;
}

.mode-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #5a6374;
  font-size: 14px;
  font-weight: 750;
}

.mode-tab.is-active {
  border-color: rgba(37, 89, 246, 0.16);
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 89, 246, 0.1);
  color: var(--brand);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(34, 48, 84, 0.08);
}

.tool-panel,
.result-panel,
.auth-panel {
  padding: 22px;
}

.upload-panel {
  width: min(680px, 100%);
  padding: 28px;
}

.upload-panel h2 {
  text-align: center;
  font-size: 26px;
}

.upload-panel .primary-action {
  width: 100%;
  margin-top: 8px;
}

.upload-result {
  width: min(920px, 100%);
  margin-top: 18px;
}

.result-panel.upload-result {
  min-height: 0;
}

.upload-result .empty-result {
  min-height: 180px;
}

.upload-dropzone {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #cbd7ea;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 89, 246, 0.08), transparent 12rem),
    #fbfcff;
  color: #344054;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within {
  border-color: rgba(37, 89, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 89, 246, 0.07);
}

.upload-dropzone strong {
  color: var(--brand);
  font-size: 16px;
}

.upload-dropzone span {
  max-width: 100%;
  overflow: hidden;
  color: var(--soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:scope[data-view="styling-chat"],
:scope[data-view="agent-chat"] {
  overflow: hidden;
}

:scope[data-view="styling-chat"] main,
:scope[data-view="agent-chat"] main {
  width: min(1440px, calc(100% - 32px));
}

:scope[data-view="styling-chat"] .site-footer,
:scope[data-view="agent-chat"] .site-footer {
  display: none;
}

.styling-chat-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - 104px);
  min-height: 640px;
  padding: 16px 0;
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 18px;
}

.chat-product h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.12;
}

.agent-sidebar-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.chat-mode {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #344054;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.chat-mode strong {
  font-size: 15px;
}

.chat-mode span {
  color: var(--soft);
  font-size: 12px;
}

.chat-mode:hover,
.chat-mode:focus-visible,
.chat-mode.is-active {
  border-color: rgba(37, 89, 246, 0.2);
  box-shadow: 0 12px 28px rgba(37, 89, 246, 0.1);
  color: var(--brand);
  outline: none;
}

.chat-sidebar .mini-qr-card {
  grid-template-columns: 56px minmax(0, 1fr);
  min-width: 0;
  margin-top: auto;
  padding: 10px;
}

.chat-sidebar .mini-qr-card img {
  width: 56px;
  height: 56px;
}

.agent-note-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(34, 48, 84, 0.08);
}

.agent-note-card span {
  color: var(--soft);
  font-size: 12px;
}

.agent-note-card strong {
  font-size: 15px;
}

.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.chat-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 89, 246, 0.08), transparent 20rem),
    linear-gradient(180deg, #fbfcff, #fff);
}

.video-flow-canvas {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(37, 89, 246, 0.1), transparent 18rem),
    linear-gradient(180deg, #fbfcff, #fff);
}

.flow-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
}

.flow-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.flow-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.flow-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(37, 89, 246, 0.18);
  border-radius: 999px;
  background: rgba(37, 89, 246, 0.08);
  color: var(--brand);
  font-size: 13px;
}

.flow-status.is-error {
  border-color: rgba(217, 45, 32, 0.18);
  background: rgba(217, 45, 32, 0.08);
  color: var(--danger);
}

.flow-stage {
  --flow-column-gap: 88px;
  --flow-row-gap: 72px;
  --flow-line-thickness: 3px;
  --flow-arrow-head: 11px;
  --flow-port-size: 8px;
  --flow-arrow-color: #c8d3e4;
  --flow-arrow-active: #7892e8;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: var(--flow-row-gap) var(--flow-column-gap);
  align-items: center;
  width: min(920px, 100%);
  margin: auto;
  padding: 32px 64px;
}

.flow-step {
  position: relative;
  grid-column: var(--flow-col);
  grid-row: var(--flow-row);
  min-width: 0;
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 112px;
  padding: 18px 12px;
  border: 1px solid #dce4f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(34, 48, 84, 0.08);
  text-align: center;
}

.flow-node::before,
.flow-node::after {
  content: "";
  position: absolute;
  z-index: 3;
  display: none;
  width: var(--flow-port-size);
  height: var(--flow-port-size);
  border: 2px solid #c8d3e4;
  border-radius: 999px;
  background: #fff;
}

.flow-step.has-input .flow-node::before,
.flow-step.has-arrow .flow-node::after {
  display: block;
}

.input-left .flow-node::before {
  top: 50%;
  left: calc(var(--flow-port-size) / -2);
  transform: translateY(-50%);
}

.input-right .flow-node::before {
  top: 50%;
  right: calc(var(--flow-port-size) / -2);
  transform: translateY(-50%);
}

.input-top .flow-node::before {
  top: calc(var(--flow-port-size) / -2);
  left: 50%;
  transform: translateX(-50%);
}

.arrow-right .flow-node::after {
  top: 50%;
  right: calc(var(--flow-port-size) / -2);
  transform: translateY(-50%);
}

.arrow-left .flow-node::after {
  top: 50%;
  left: calc(var(--flow-port-size) / -2);
  transform: translateY(-50%);
}

.arrow-down .flow-node::after {
  bottom: calc(var(--flow-port-size) / -2);
  left: 50%;
  transform: translateX(-50%);
}

.flow-node span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 820;
}

.flow-node strong {
  font-size: 14px;
}

.flow-node.is-ready,
.flow-node.is-running {
  border-color: rgba(37, 89, 246, 0.35);
  box-shadow:
    0 18px 48px rgba(37, 89, 246, 0.12),
    0 0 0 4px rgba(37, 89, 246, 0.06);
}

.flow-node.is-running span {
  background: var(--brand);
  color: #fff;
  animation: flow-pulse 1.4s ease-in-out infinite;
}

.flow-node.is-done {
  border-color: rgba(9, 146, 80, 0.22);
  background: rgba(246, 254, 249, 0.9);
}

.flow-node.is-done span {
  background: var(--success);
  color: #fff;
}

.flow-node.is-error {
  border-color: rgba(217, 45, 32, 0.28);
  background: rgba(255, 251, 250, 0.92);
}

.flow-node.is-error span {
  background: var(--danger);
  color: #fff;
}

.flow-arrow {
  position: absolute;
  z-index: 0;
  color: var(--flow-arrow-color);
  pointer-events: none;
}

.arrow-right .flow-arrow {
  top: 50%;
  left: 100%;
  width: calc(var(--flow-column-gap) - var(--flow-arrow-head));
  height: var(--flow-line-thickness);
  transform: translateY(-50%);
}

.arrow-left .flow-arrow {
  top: 50%;
  right: 100%;
  width: calc(var(--flow-column-gap) - var(--flow-arrow-head));
  height: var(--flow-line-thickness);
  transform: translateY(-50%);
}

.arrow-down .flow-arrow {
  top: 100%;
  left: 50%;
  width: var(--flow-line-thickness);
  height: calc(var(--flow-row-gap) - var(--flow-arrow-head));
  transform: translateX(-50%);
}

.flow-arrow::before,
.flow-arrow::after {
  content: "";
  position: absolute;
  display: block;
}

.arrow-right .flow-arrow::before,
.arrow-left .flow-arrow::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: var(--flow-line-thickness);
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.arrow-right .flow-arrow::after {
  top: 50%;
  right: calc(-1 * var(--flow-arrow-head));
  width: var(--flow-arrow-head);
  height: calc(var(--flow-arrow-head) * 1.45);
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
}

.arrow-left .flow-arrow::after {
  top: 50%;
  left: calc(-1 * var(--flow-arrow-head));
  width: var(--flow-arrow-head);
  height: calc(var(--flow-arrow-head) * 1.45);
  background: currentColor;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  transform: translateY(-50%);
}

.arrow-down .flow-arrow::before {
  top: 0;
  left: 50%;
  width: var(--flow-line-thickness);
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.arrow-down .flow-arrow::after {
  bottom: calc(-1 * var(--flow-arrow-head));
  left: 50%;
  width: calc(var(--flow-arrow-head) * 1.45);
  height: var(--flow-arrow-head);
  background: currentColor;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform: translateX(-50%);
}

.flow-arrow.is-done {
  color: var(--success);
}

.flow-arrow.is-running {
  color: var(--flow-arrow-active);
  animation: arrow-pulse 1.2s ease-in-out infinite;
}

.custom-flow-board {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.component-palette {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.component-palette button {
  min-height: 40px;
  border: 1px solid #d9e0ec;
  border-radius: 12px;
  background: #f8faff;
  color: #344054;
  font-weight: 720;
}

.custom-drop-area {
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed #cbd7ea;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(37, 89, 246, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(37, 89, 246, 0.05) 1px, transparent 1px),
    #fbfcff;
  background-size: 32px 32px;
  text-align: center;
}

.custom-drop-area strong {
  font-size: 20px;
}

.custom-drop-area p {
  margin: 8px 0 0;
  color: var(--muted);
}

.agent-result-panel {
  max-height: min(44vh, 520px);
  padding: 18px 22px;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 255, 0.78);
}

.agent-result-panel[hidden] {
  display: none;
}

.agent-result-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.chat-message {
  display: flex;
  justify-content: flex-start;
}

.chat-message.is-user {
  justify-content: flex-end;
}

.chat-bubble {
  width: fit-content;
  max-width: min(760px, 86%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(34, 48, 84, 0.07);
}

.chat-message.is-user .chat-bubble {
  border-color: rgba(37, 89, 246, 0.16);
  background: var(--brand);
  color: #fff;
}

.chat-bubble.is-error {
  border-color: rgba(217, 45, 32, 0.16);
  color: var(--danger);
}

.chat-bubble h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.7;
}

.chat-message.is-user .chat-bubble p {
  color: #fff;
}

.message-file {
  display: inline-flex;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-bubble .result-card {
  margin-top: 12px;
  background: #fff;
}

.chat-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.agent-composer.no-file {
  grid-template-columns: minmax(0, 1fr) auto;
}

.agent-options {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.agent-option-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.agent-options input,
.agent-options select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d9e0ec;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0 !important;
  white-space: nowrap;
}

.attachment-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  max-width: 180px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid #d9e0ec;
  border-radius: 14px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.attachment-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-composer textarea {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid #d9e0ec;
  border-radius: 14px;
  outline: none;
  line-height: 1.45;
}

.chat-composer textarea:focus {
  border-color: rgba(37, 89, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 89, 246, 0.08);
}

.chat-send {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(37, 89, 246, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 780;
}

.chat-composer .status-line {
  grid-column: 2 / 4;
  margin: -2px 0 0;
}

.agent-composer.no-file .status-line {
  grid-column: 1 / -1;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
}

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

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

.field label {
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d9e0ec;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(37, 89, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 89, 246, 0.08);
}

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

.hint {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
}

.status-line {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.status-line.is-error {
  color: var(--danger);
}

.status-line.is-success {
  color: var(--success);
}

.result-panel {
  min-height: 520px;
}

.empty-result {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px dashed #d9e0ec;
  border-radius: 18px;
  color: var(--soft);
  text-align: center;
}

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

.result-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fbfcff;
}

.result-card h4 {
  margin: 0 0 8px;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.report-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border: 1px solid rgba(37, 89, 246, 0.14);
  border-radius: 999px;
  background: rgba(37, 89, 246, 0.07);
  color: var(--brand);
  font-size: 12px;
  font-weight: 720;
}

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

.metric-pill,
.info-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  background: #fff;
}

.metric-pill span,
.info-grid span {
  color: #8b95a7;
  font-size: 12px;
}

.metric-pill strong,
.info-grid strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-list,
.timeline-list,
.result-bullets,
.translation-list {
  display: grid;
  gap: 10px;
}

.analysis-image-grid,
.key-frame-grid,
.report-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analysis-image-item,
.key-frame-item,
.report-image-item {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  background: #fff;
}

.analysis-image-item img,
.key-frame-item img,
.report-image-item img {
  width: 100%;
  max-height: 320px;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  background: #f6f8fc;
}

.analysis-image-item figcaption,
.key-frame-item figcaption,
.report-image-item figcaption {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.analysis-image-item figcaption span,
.key-frame-item figcaption span,
.report-image-item figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.phase-group-list {
  display: grid;
  gap: 14px;
}

.phase-group {
  display: grid;
  gap: 10px;
}

.phase-group h5 {
  margin: 0;
  font-size: 14px;
}

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

.phase-stage {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  background: #fff;
}

.phase-stage > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phase-stage strong,
.key-frame-item strong {
  color: var(--text);
}

.phase-stage span,
.phase-stage small,
.key-frame-item span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.phase-stage p,
.key-frame-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.inline-frame-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.inline-frame-strip img {
  width: 86px;
  height: 64px;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
}

.pose-rule-notes {
  margin-top: 12px;
}

.dimension-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  background: #fff;
}

.dimension-row strong {
  display: block;
  margin-bottom: 4px;
}

.dimension-row i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fb;
}

.dimension-row i::before {
  display: block;
  width: var(--score, 0);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #6f45e9);
  content: "";
}

.dimension-row > span {
  color: var(--brand);
  font-weight: 850;
}

.result-bullets p {
  position: relative;
  padding-left: 16px;
}

.result-bullets p::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.timeline-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  background: #fff;
}

.timeline-item span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 820;
}

.timeline-item strong {
  font-size: 14px;
}

.translation-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  background: #fff;
}

.translation-row span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 820;
}

.translation-row .source-text,
.translation-row .target-text {
  margin: 0;
  line-height: 1.7;
}

.translation-row .source-text {
  color: #667085;
}

.translation-row .target-text {
  color: var(--text);
  font-weight: 700;
}

.text-report-block {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  line-height: 1.7;
  white-space: pre-wrap;
}

.result-card img,
.result-card video {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  border-radius: 14px;
}

.json-block {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #101626;
  color: #e6edff;
  font-size: 12px;
  line-height: 1.6;
}

.raw-result summary {
  cursor: pointer;
  font-weight: 760;
}

.raw-result .json-block {
  margin-top: 12px;
}

.login-wrap {
  display: grid;
  place-items: center;
  padding: 72px 0;
}

.auth-panel {
  width: min(440px, 100%);
}

.auth-product-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.auth-product {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 780;
}

.auth-product.is-active {
  border-color: rgba(37, 89, 246, 0.22);
  color: var(--brand);
  box-shadow: 0 12px 34px rgba(37, 89, 246, 0.12);
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.auth-mode {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.auth-mode.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 28px rgba(37, 89, 246, 0.1);
}

.wechat-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
  text-align: center;
}

.wechat-box img {
  width: 132px;
  height: 132px;
  border-radius: 14px;
}

.meta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  gap: 16px;
  padding: 0 0 76px;
}

.meta-section div {
  display: grid;
  gap: 8px;
  min-height: 104px;
  align-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(34, 48, 84, 0.08);
}

.meta-section span {
  color: #8b95a7;
  font-size: 13px;
}

.meta-section strong,
.meta-section a {
  color: #151b2c;
  font-size: 15px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 28px 24px 34px;
  border-top: 1px solid var(--line);
  color: #8b95a7;
  font-size: 12px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand);
  outline: none;
}

/* Styling homepage concepts */
:scope[data-view="styling-home"] {
  background: #fff;
}

:scope[data-view="styling-home"] .site-header {
  grid-template-columns: 1fr;
  background: rgba(255, 255, 255, 0.92);
}

:scope[data-view="styling-home"] .product-tabs,
:scope[data-view="styling-home"] .header-action {
  display: none;
}

:scope[data-view="styling-home"] main {
  width: 100%;
}

:scope[data-view="styling-home"] .site-footer {
  background: #fff;
}

body[data-home-design="2"] .site-header {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 17, 0.92);
}

body[data-home-design="2"] .brand {
  color: #fff;
}

body[data-home-design="2"] .site-footer {
  border-color: rgba(255, 255, 255, 0.1);
  background: #080a12;
  color: #8e96a8;
}

.styling-home {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.home-design-nav {
  position: fixed;
  top: 88px;
  right: 28px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
  backdrop-filter: blur(18px);
}

.home-design-label {
  padding: 0 8px;
  color: #7b8494;
  font-size: 10px;
  font-weight: 780;
}

.home-design-link {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #697386;
  font-size: 11px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.home-design-link:hover,
.home-design-link:focus-visible,
.home-design-link.is-active {
  background: #111827;
  color: #fff;
  outline: none;
}

.styling-hero {
  position: relative;
  min-height: clamp(640px, calc(100vh - 72px), 820px);
  overflow: hidden;
  isolation: isolate;
}

.styling-hero-copy {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(470px, calc(100% - 48px));
  transform: translateY(-50%);
}

.styling-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #2559f6;
  font-size: 12px;
  font-weight: 850;
}

.styling-hero h1 {
  margin: 0;
  color: #10131b;
  font-size: clamp(50px, 6vw, 78px);
  line-height: 1;
  font-weight: 790;
}

.styling-hero-copy > p {
  max-width: 430px;
  margin: 24px 0 0;
  color: #4f5969;
  font-size: 18px;
  line-height: 1.75;
}

.styling-entry {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 9px 16px 9px 9px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(16px);
}

.styling-entry img {
  width: 68px;
  height: 68px;
  border-radius: 6px;
}

.styling-entry div {
  display: grid;
  gap: 4px;
  text-align: left;
}

.styling-entry strong {
  color: #111827;
  font-size: 14px;
}

.styling-entry span {
  color: #70798a;
  font-size: 12px;
}

.styling-entry-dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(11, 14, 25, 0.74);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.3);
}

.styling-entry-dark strong {
  color: #fff;
}

.styling-entry-dark span {
  color: #aab2c5;
}

.styling-entry-editorial,
.styling-entry-mint {
  box-shadow: none;
}

.styling-gallery {
  position: relative;
  padding: 110px max(24px, calc((100% - 1180px) / 2)) 130px;
}

.gallery-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 54px;
}

.gallery-heading span {
  color: #2559f6;
  font-size: 11px;
  font-weight: 850;
}

.gallery-heading h2 {
  max-width: 760px;
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.14;
}

.gallery-tile,
.styling-gallery figure {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
}

.styling-gallery figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.styling-gallery figure:hover > img {
  transform: scale(1.018);
}

.styling-gallery figcaption {
  color: inherit;
}

.hero-scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: max(24px, calc((100% - 1180px) / 2));
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #667085;
  font-size: 12px;
  font-weight: 720;
}

/* Concept 01: airy gallery */
.styling-hero-one {
  background: #f5f7fa;
}

.styling-hero-one::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #f5f7fa 0%, rgba(245, 247, 250, 0.97) 31%, rgba(245, 247, 250, 0.3) 63%, rgba(245, 247, 250, 0.02));
  content: "";
}

.styling-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-one-image {
  position: absolute;
  width: clamp(240px, 25vw, 360px);
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 34px 80px rgba(25, 36, 60, 0.16);
  object-fit: cover;
}

.hero-one-image-a {
  top: 10%;
  right: 29%;
  height: 79%;
}

.hero-one-image-b {
  top: 20%;
  right: 7%;
  height: 70%;
}

.hero-one-image-c {
  top: 33%;
  right: -8%;
  height: 58%;
}

.gallery-one {
  background: #fff;
}

.gallery-one-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 18px;
}

.gallery-one-grid .gallery-tile {
  grid-column: span 4;
  border-radius: 8px;
  background: #f5f7fa;
}

.gallery-one-grid .tile-tall {
  grid-row: span 2;
}

.gallery-one-grid .tile-wide {
  grid-column: span 8;
}

.gallery-one-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(10px);
}

/* Concept 02: mirror night */
.styling-home-2 {
  background: #080a12;
}

.styling-hero-two {
  background:
    radial-gradient(circle at 68% 38%, rgba(0, 229, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 64%, rgba(246, 66, 171, 0.18), transparent 26%),
    #080a12;
}

.night-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(650px) rotateX(64deg) scale(1.5) translateY(24%);
  transform-origin: 50% 100%;
}

.night-portraits {
  position: absolute;
  inset: 0;
}

.night-portrait {
  position: absolute;
  top: 11%;
  width: clamp(210px, 22vw, 330px);
  height: 76%;
  border: 1px solid rgba(111, 237, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 208, 255, 0.14);
  object-fit: cover;
}

.night-portrait-a {
  right: 33%;
  transform: translateY(5%) rotate(-2deg);
}

.night-portrait-b {
  right: 14%;
  z-index: 1;
}

.night-portrait-c {
  right: -5%;
  transform: translateY(7%) rotate(2deg);
}

.styling-hero-two::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, #080a12 0%, rgba(8, 10, 18, 0.97) 31%, rgba(8, 10, 18, 0.18) 68%, rgba(8, 10, 18, 0.72));
  content: "";
}

.styling-hero-two .styling-eyebrow {
  color: #49e4ff;
}

.styling-hero-two h1 {
  color: #fff;
}

.styling-hero-two .styling-hero-copy > p {
  color: #b8c0d1;
}

.gallery-two {
  background: #080a12;
}

.gallery-heading-dark span {
  color: #4ce1ff;
}

.gallery-heading-dark h2 {
  color: #fff;
}

.gallery-two-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.gallery-two-strip figure {
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0d1220;
}

.gallery-two-strip figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(5, 8, 17, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

/* Concept 03: editorial issue */
.styling-home-3 {
  background: #f6f3ee;
}

.styling-hero-three {
  background: #f6f3ee;
}

.styling-hero-three .styling-hero-copy {
  top: 46%;
}

.styling-hero-three h1 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 680;
}

.editorial-number {
  position: absolute;
  top: 3%;
  right: 3%;
  color: rgba(17, 24, 39, 0.06);
  font-family: Georgia, serif;
  font-size: min(34vw, 430px);
  line-height: 1;
}

.editorial-cover {
  position: absolute;
  right: 6%;
  bottom: -12%;
  width: min(58vw, 820px);
  height: 84%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 30px 90px rgba(73, 58, 45, 0.18);
  transform: rotate(-2deg);
}

.editorial-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 243, 238, 0.96), transparent 42%);
  content: "";
}

.editorial-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.styling-entry-editorial {
  border-color: #c9beb0;
  background: #f6f3ee;
}

.gallery-three {
  border-top: 1px solid #d9d0c5;
  background: #f6f3ee;
}

.gallery-heading-editorial {
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1.5fr);
  align-items: end;
}

.gallery-heading-editorial span {
  color: #a3472f;
}

.gallery-heading-editorial h2 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 680;
}

.editorial-spread {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.editorial-spread figure {
  height: 540px;
  overflow: visible;
}

.editorial-spread .editorial-lead {
  height: 700px;
}

.editorial-spread figure > img {
  border-radius: 4px;
  box-shadow: 0 22px 54px rgba(73, 58, 45, 0.14);
}

.editorial-spread figcaption {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 14px;
  color: #47413b;
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
}

.editorial-spread figcaption b {
  color: #a3472f;
}

/* Concept 04: before and after */
.styling-home-4 {
  background: #edf8f5;
}

.styling-hero-four {
  background: #edf8f5;
}

.styling-hero-four::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, #edf8f5 0%, rgba(237, 248, 245, 0.97) 34%, rgba(237, 248, 245, 0.2) 64%, rgba(237, 248, 245, 0));
  content: "";
}

.styling-hero-four .styling-eyebrow {
  color: #087f6d;
}

.comparison-stage {
  position: absolute;
  inset: 0;
}

.comparison-image {
  position: absolute;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 28px 76px rgba(29, 84, 74, 0.15);
  object-fit: cover;
}

.comparison-image-main {
  top: 8%;
  right: 21%;
  width: clamp(290px, 31vw, 460px);
  height: 80%;
}

.comparison-image-side {
  top: 22%;
  right: -2%;
  width: clamp(240px, 25vw, 360px);
  height: 67%;
}

.styling-entry-mint {
  border-color: rgba(8, 127, 109, 0.22);
  background: rgba(255, 255, 255, 0.84);
}

.comparison-rule {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 34px;
  display: flex;
  gap: 120px;
  color: #087f6d;
  font-size: 10px;
  font-weight: 850;
}

.gallery-four {
  background: #fff;
}

.gallery-four .gallery-heading span {
  color: #087f6d;
}

.gallery-four-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-four-grid figure {
  height: 570px;
  border-radius: 8px;
  background: #edf8f5;
}

.gallery-four-grid figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #153e37;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* Concept 05: report wall */
.styling-home-5 {
  background: #f3f5fa;
}

.styling-hero-five {
  background: #f3f5fa;
}

.styling-hero-five::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, #f3f5fa 0%, rgba(243, 245, 250, 0.98) 34%, rgba(243, 245, 250, 0.22) 65%, rgba(243, 245, 250, 0));
  content: "";
}

.report-wall {
  position: absolute;
  inset: 0;
}

.report-sheet {
  position: absolute;
  width: clamp(220px, 22vw, 330px);
  height: 76%;
  border: 1px solid #dbe1eb;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(35, 48, 74, 0.16);
  object-fit: cover;
}

.report-sheet-a {
  top: 10%;
  right: 40%;
  transform: rotate(-4deg);
}

.report-sheet-b {
  top: 16%;
  right: 25%;
  transform: rotate(1deg);
}

.report-sheet-c {
  top: 8%;
  right: 10%;
  transform: rotate(5deg);
}

.report-sheet-d {
  top: 22%;
  right: -6%;
  transform: rotate(8deg);
}

.gallery-five {
  background: #111722;
}

.gallery-heading-centered {
  justify-items: center;
  text-align: center;
}

.gallery-heading-centered span {
  color: #84a7ff;
}

.gallery-heading-centered h2 {
  color: #fff;
}

.gallery-five-wall {
  columns: 3;
  column-gap: 16px;
}

.gallery-five-wall figure {
  display: inline-block;
  width: 100%;
  height: 500px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #fff;
}

.gallery-five-wall figure:nth-child(2),
.gallery-five-wall figure:nth-child(5) {
  height: 610px;
}

.gallery-five-wall figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(17, 23, 34, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(10px);
}

.debug-entry {
  opacity: 0.72;
}

@media (max-width: 960px) {
  .styling-hero-copy {
    left: 32px;
    width: min(400px, calc(100% - 64px));
  }

  .hero-one-image-a,
  .night-portrait-a,
  .report-sheet-a {
    display: none;
  }

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

  .gallery-one-grid .gallery-tile,
  .gallery-one-grid .tile-wide {
    grid-column: span 1;
  }

  .editorial-spread {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .editorial-spread figure:last-child {
    display: none;
  }

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

  .gallery-four-grid figure:last-child {
    display: none;
  }
}

@media (max-width: 620px) {
  :scope[data-view="styling-home"] .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .home-design-nav {
    top: 76px;
    right: 12px;
  }

  .home-design-label {
    display: none;
  }

  .home-design-link {
    width: 29px;
    height: 29px;
  }

  .styling-hero {
    min-height: 720px;
  }

  .styling-hero-copy {
    top: 72px;
    left: 20px;
    width: calc(100% - 40px);
    transform: none;
  }

  .styling-hero h1 {
    font-size: 42px;
  }

  .styling-hero-copy > p {
    max-width: 310px;
    margin-top: 16px;
    font-size: 15px;
  }

  .styling-eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .styling-entry {
    gap: 10px;
    margin-top: 20px;
    padding: 7px 12px 7px 7px;
  }

  .styling-entry img {
    width: 54px;
    height: 54px;
  }

  .styling-entry strong {
    font-size: 13px;
  }

  .styling-entry span {
    font-size: 11px;
  }

  .styling-gallery {
    padding: 72px 16px 82px;
  }

  .gallery-heading {
    margin-bottom: 32px;
  }

  .gallery-heading h2 {
    font-size: 32px;
  }

  .hero-scroll-cue,
  .comparison-rule {
    display: none;
  }

  .styling-hero-one::after,
  .styling-hero-four::after,
  .styling-hero-five::after {
    background: linear-gradient(180deg, #f5f7fa 0%, rgba(245, 247, 250, 0.96) 41%, rgba(245, 247, 250, 0.15) 68%);
  }

  .styling-hero-four::after {
    background: linear-gradient(180deg, #edf8f5 0%, rgba(237, 248, 245, 0.96) 42%, rgba(237, 248, 245, 0.14) 70%);
  }

  .styling-hero-five::after {
    background: linear-gradient(180deg, #f3f5fa 0%, rgba(243, 245, 250, 0.97) 43%, rgba(243, 245, 250, 0.16) 72%);
  }

  .hero-one-image,
  .night-portrait,
  .comparison-image,
  .report-sheet {
    top: auto;
    bottom: -3%;
    height: 50%;
  }

  .hero-one-image-a,
  .night-portrait-a,
  .report-sheet-a {
    display: block;
  }

  .hero-one-image-a,
  .night-portrait-a,
  .report-sheet-a,
  .comparison-image-main {
    right: auto;
    left: -12%;
    width: 50%;
  }

  .hero-one-image-b,
  .night-portrait-b,
  .report-sheet-b,
  .comparison-image-side {
    right: auto;
    left: 28%;
    width: 50%;
  }

  .hero-one-image-c,
  .night-portrait-c,
  .report-sheet-c {
    right: -17%;
    width: 50%;
  }

  .report-sheet-d {
    display: none;
  }

  .styling-hero-two::after {
    background: linear-gradient(180deg, #080a12 0%, rgba(8, 10, 18, 0.97) 43%, rgba(8, 10, 18, 0.15) 70%, rgba(8, 10, 18, 0.72));
  }

  .gallery-one-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 420px;
  }

  .gallery-one-grid .tile-tall {
    grid-row: span 1;
  }

  .gallery-two-strip {
    grid-template-columns: repeat(4, minmax(250px, 76vw));
  }

  .gallery-two-strip figure {
    height: 470px;
  }

  .styling-hero-three .styling-hero-copy {
    top: 72px;
  }

  .editorial-number {
    top: 42%;
    font-size: 72vw;
  }

  .editorial-cover {
    right: -18%;
    bottom: -2%;
    width: 122%;
    height: 48%;
    transform: rotate(-2deg);
  }

  .editorial-cover::after {
    background: linear-gradient(180deg, #f6f3ee 0%, rgba(246, 243, 238, 0.04) 44%);
  }

  .gallery-heading-editorial {
    grid-template-columns: 1fr;
  }

  .editorial-spread {
    grid-template-columns: 1fr;
  }

  .editorial-spread figure,
  .editorial-spread .editorial-lead {
    height: 560px;
  }

  .editorial-spread figure:last-child {
    display: block;
  }

  .gallery-four-grid {
    grid-template-columns: 1fr;
  }

  .gallery-four-grid figure,
  .gallery-four-grid figure:last-child {
    display: block;
    height: 510px;
  }

  .gallery-five-wall {
    columns: 1;
  }

  .gallery-five-wall figure,
  .gallery-five-wall figure:nth-child(2),
  .gallery-five-wall figure:nth-child(5) {
    height: 520px;
  }
}

@keyframes preview-glow {
  0%,
  100% {
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes arrow-pulse {
  0%,
  100% {
    opacity: 0.62;
    text-shadow: 0 0 0 rgba(37, 89, 246, 0);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(37, 89, 246, 0.35);
  }
}

@keyframes flow-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 89, 246, 0.22);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(37, 89, 246, 0);
  }
}

@media (max-width: 960px) {
  :scope[data-view="styling-chat"],
  :scope[data-view="agent-chat"] {
    overflow: auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .product-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-bottom: 14px;
  }

  .workspace-head {
    align-items: start;
    display: grid;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .styling-chat-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 120px);
  }

  .chat-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-mode-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-sidebar .mini-qr-card {
    margin-top: 0;
  }

  .agent-note-card {
    margin-top: 0;
  }

  .chat-main {
    min-height: 620px;
  }

  .flow-head {
    display: grid;
  }

  .custom-flow-board {
    grid-template-columns: 1fr;
  }

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

  .upload-panel,
  .upload-result {
    width: 100%;
  }

  .meta-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 12px 18px 0;
    gap: 12px;
  }

  .brand span:last-child {
    font-size: 14px;
  }

  .header-action {
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }

  main {
    width: calc(100% - 32px);
  }

  .product-section {
    padding-top: 42px;
  }

  .product-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .product-tab {
    min-width: 0;
    padding: 0 4px;
  }

  .product-title {
    font-size: 30px;
  }

  .product-description {
    font-size: 15px;
  }

  .report-overview,
  .metric-grid,
  .info-grid,
  .analysis-image-grid,
  .key-frame-grid,
  .report-image-grid,
  .phase-stage-grid {
    grid-template-columns: 1fr;
  }

  .preview-frame {
    aspect-ratio: 1.24;
  }

  .feature-slide img {
    object-fit: contain;
    object-position: center;
  }

  .feature-slide figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-width: 0;
    padding: 11px 13px;
  }

  .feature-carousel-dots {
    top: 14px;
    right: 16px;
    bottom: auto;
  }

  .feature-carousel-next {
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .visual-panel {
    width: 42%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .styling-chat-page {
    min-height: auto;
    padding: 12px 0 24px;
  }

  .chat-mode-list {
    grid-template-columns: 1fr;
  }

  .chat-main {
    min-height: 560px;
  }

  .chat-thread {
    padding: 16px;
  }

  .video-flow-canvas {
    padding: 18px;
  }

  .flow-stage {
    --flow-row-gap: 52px;
    grid-template-columns: 1fr;
    gap: var(--flow-row-gap);
    width: 100%;
    padding: 18px 4px;
  }

  .flow-step {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .flow-step.has-input .flow-node::before {
    top: calc(var(--flow-port-size) / -2);
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .flow-step.has-arrow .flow-node::after {
    top: auto;
    right: auto;
    bottom: calc(var(--flow-port-size) / -2);
    left: 50%;
    transform: translateX(-50%);
  }

  .arrow-right .flow-arrow,
  .arrow-left .flow-arrow,
  .arrow-down .flow-arrow {
    top: 100%;
    left: 50%;
    right: auto;
    width: var(--flow-line-thickness);
    height: calc(var(--flow-row-gap) - var(--flow-arrow-head));
    transform: translateX(-50%);
  }

  .arrow-right .flow-arrow::before,
  .arrow-left .flow-arrow::before {
    top: 0;
    left: 50%;
    width: var(--flow-line-thickness);
    height: 100%;
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .arrow-right .flow-arrow::after,
  .arrow-left .flow-arrow::after {
    top: auto;
    bottom: calc(-1 * var(--flow-arrow-head));
    left: 50%;
    width: calc(var(--flow-arrow-head) * 1.45);
    height: var(--flow-arrow-head);
    border: 0;
    background: currentColor;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform: translateX(-50%);
  }

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

  .chat-bubble {
    max-width: 92%;
  }

  .chat-composer {
    grid-template-columns: 1fr auto;
  }

  .agent-options {
    grid-template-columns: 1fr;
  }

  .attachment-button {
    grid-column: 1 / -1;
    max-width: none;
  }

  .chat-composer .status-line {
    grid-column: 1 / -1;
  }

  .mini-qr-card {
    width: 100%;
  }

  .site-footer {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-slide,
  .feature-carousel-dots span,
  .feature-carousel-next {
    transition: none;
  }
}

/* Final styling landing page */
:scope[data-view="styling-landing"] {
  background: #f4f6f8;
}

:scope[data-view="styling-landing"] .site-header {
  grid-template-columns: 1fr;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.94);
}

:scope[data-view="styling-landing"] .product-tabs,
:scope[data-view="styling-landing"] .header-action {
  display: none;
}

:scope[data-view="styling-landing"] main {
  width: 100%;
}

:scope[data-view="styling-landing"] .site-footer {
  border-top-color: #dfe4ea;
  background: #f4f6f8;
}

.styling-landing {
  width: 100%;
  overflow: hidden;
}

.styling-entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.72fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  width: min(1240px, calc(100% - 64px));
  min-height: 430px;
  margin: 0 auto;
  padding: 58px 40px 62px;
}

.styling-entry-copy {
  min-width: 0;
}

.styling-landing-kicker,
.styling-carousel-header > div > span {
  display: block;
  margin-bottom: 15px;
  color: #2458ef;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
}

.styling-entry-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #121722;
  font-size: clamp(58px, 7vw, 94px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: 0;
}

.styling-entry-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #596270;
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.75;
}

.mini-program-entry {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e0e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(31, 41, 55, 0.08);
}

.mini-program-entry img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 515;
  border-radius: 6px;
  object-fit: contain;
}

.styling-carousel-section {
  padding: 66px max(32px, calc((100vw - 1240px) / 2)) 82px;
  border-top: 1px solid #dde3ea;
  background: #fff;
}

.styling-carousel-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.styling-carousel-header h2 {
  margin: 0;
  color: #151a24;
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: 0;
}

.styling-carousel-controls {
  display: flex;
  gap: 10px;
}

.styling-carousel-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #d6dde6;
  border-radius: 50%;
  background: #fff;
  color: #171c27;
  font-size: 21px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.styling-carousel-controls button:hover,
.styling-carousel-controls button:focus-visible {
  border-color: #2458ef;
  background: #2458ef;
  color: #fff;
  outline: none;
}

.styling-carousel-controls button:disabled {
  border-color: #e7ebef;
  background: #f7f8fa;
  color: #b7bec8;
  cursor: default;
}

.styling-carousel-track {
  display: grid;
  grid-auto-columns: clamp(280px, 29vw, 380px);
  grid-auto-flow: column;
  column-gap: 16px;
  width: 100%;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
}

.styling-carousel-track::-webkit-scrollbar {
  display: none;
}

.styling-carousel-track:focus-visible {
  outline: 2px solid rgba(36, 88, 239, 0.45);
  outline-offset: 7px;
}

.styling-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.styling-carousel-card {
  position: relative;
  aspect-ratio: 4 / 5;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e9edf2;
  scroll-snap-align: start;
}

.styling-carousel-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.styling-carousel-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.styling-carousel-card figcaption strong {
  color: #151a24;
  font-size: 14px;
  white-space: nowrap;
}

.styling-carousel-card figcaption span {
  min-width: 0;
  overflow: hidden;
  color: #6f7885;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 780px) {
  :scope[data-view="styling-landing"] .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .styling-entry-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    width: calc(100% - 32px);
    min-height: 0;
    padding: 54px 4px 48px;
  }

  .styling-entry-copy h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .styling-entry-copy p {
    margin-top: 18px;
    font-size: 16px;
  }

  .mini-program-entry {
    padding: 9px;
  }

  .mini-program-entry img {
    width: 100%;
    height: auto;
  }

  .styling-carousel-section {
    padding: 48px 16px 64px;
  }

  .styling-carousel-header {
    margin-bottom: 22px;
  }

  .styling-carousel-header h2 {
    font-size: 34px;
  }

  .styling-carousel-controls button {
    width: 40px;
    height: 40px;
  }

  .styling-carousel-track {
    grid-auto-columns: minmax(252px, 78vw);
    column-gap: 12px;
  }
}

@media (max-width: 390px) {
  .mini-program-entry {
    padding: 8px;
  }

  .mini-program-entry img {
    width: 100%;
    height: auto;
  }

  .styling-carousel-card figcaption {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .styling-carousel-track {
    scroll-behavior: auto;
  }
}

}
#agent-native{height:calc(100dvh - var(--header) - 32px);overflow:hidden;background:#f4f6fc;border-radius:14px;padding:12px;box-sizing:border-box;color:#101626;display:flex;flex-direction:column;min-height:0;font:14px system-ui}
#agent-native[hidden]{display:none}#agent-native .native-agent-tabs{display:flex;justify-content:center;gap:8px;padding:0 0 10px;flex:none}#agent-native .native-agent-tabs button{border:1px solid #e0e6f5;background:transparent;padding:9px 26px;border-radius:12px;color:#667085;font:600 14px system-ui;cursor:pointer}#agent-native .native-agent-tabs button.is-active{background:white;color:#2559f6;border-color:#cdd9ff}
#native-agent-root{flex:1;min-height:0;overflow:hidden}#agent-native .agent-chat-page{height:100%;min-height:0;padding:0;grid-template-columns:230px minmax(0,1fr)}#agent-native .chat-main{height:100%;min-height:0}#agent-native .chat-composer{flex:none;position:relative;bottom:auto}#agent-native .chat-sidebar{overflow:hidden;gap:12px}#agent-native .chat-mode-list{gap:8px}#agent-native .chat-mode{padding:10px 12px}#agent-native .chat-thread{overscroll-behavior:contain}#agent-native .video-flow-canvas{padding:20px;overflow:hidden}#agent-native .flow-head{margin-bottom:18px}#agent-native .flow-head h2{font-size:26px}
body.web-agent-page{overflow:hidden}.web-agent-page #main{height:calc(100dvh - var(--header));box-sizing:border-box;padding-top:16px;padding-bottom:16px;overflow:hidden}
@media(max-width:850px){#agent-native .agent-chat-page{grid-template-columns:170px minmax(0,1fr)}#agent-native .chat-product h1{font-size:20px}}
html:has(body.web-agent-page){height:100%;overflow:hidden}body.web-agent-page{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}.web-agent-page #main{position:fixed;top:var(--header);bottom:0;right:0;left:var(--rail);margin:0;height:auto;min-height:0;max-height:none}.web-agent-page #agent-native{height:100%;min-height:0}
@media(max-height:800px){#agent-native .chat-product h1{font-size:21px}#agent-native .agent-sidebar-copy{font-size:12px;line-height:1.4}#agent-native .chat-mode{padding:8px 10px}#agent-native .chat-mode span{font-size:11px}#agent-native .chat-sidebar .agent-note-card{display:none}#agent-native .chat-sidebar{gap:10px}#agent-native .flow-node{padding:12px}#agent-native .flow-head{margin-bottom:8px}}
body.web-agent-page>.site-footer{display:none}
