body.stitch-replica {
  --replica-bg: #f4f7fb;
  --replica-panel: rgba(255, 255, 255, 0.84);
  --replica-card: rgba(255, 255, 255, 0.72);
  --replica-border: rgba(255, 255, 255, 0.92);
  --replica-ink: #0f172a;
  --replica-muted: #64748b;
  --replica-indigo: #6366f1;
  --replica-purple: #8b5cf6;
  --replica-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  margin: 0;
  color: var(--replica-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #f7faff 0%, var(--replica-bg) 58%, #eef3fb 100%);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stitch-replica .app-frame {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.stitch-replica .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 16px;
  background: var(--replica-panel);
  border: 1px solid var(--replica-border);
  border-width: 0 1px 0 0;
  box-shadow: var(--replica-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stitch-replica .side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.stitch-replica .brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--replica-indigo), var(--replica-purple));
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.22);
}

.stitch-replica .side-brand strong {
  color: #111827;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stitch-replica .side-nav {
  display: grid;
  gap: 6px;
}

.stitch-replica .side-nav a,
.stitch-replica .top-nav a,
.stitch-replica .side-safety-card,
.stitch-replica .hard-btn,
.stitch-replica .ghost-btn {
  border: 0;
  box-shadow: none;
  letter-spacing: 0;
  font-family: inherit;
}

.stitch-replica .side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  color: #64748b;
  font-weight: 650;
  background: transparent;
}

.stitch-replica .side-nav a.is-active,
.stitch-replica .side-nav a:hover {
  color: var(--replica-indigo);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.stitch-replica .side-nav span {
  width: 20px;
  color: currentColor;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.stitch-replica .side-safety-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.76), rgba(250, 245, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

.stitch-replica .side-safety-card strong,
.stitch-replica .side-safety-card span {
  display: block;
}

.stitch-replica .side-safety-card strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.stitch-replica .side-safety-card span {
  color: var(--replica-muted);
  font-size: 12px;
}

.stitch-replica .main-frame {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stitch-replica .topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 32px;
  border: 0;
  background: rgba(244, 247, 251, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stitch-replica .top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #64748b;
  font-size: 15px;
  font-weight: 650;
}

.stitch-replica .top-nav a {
  padding: 8px 2px;
  border-radius: 12px;
}

.stitch-replica .top-nav a.is-active {
  color: var(--replica-indigo);
}

.stitch-replica .top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-replica .hard-btn,
.stitch-replica .ghost-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transform: none;
}

.stitch-replica .hard-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--replica-indigo), var(--replica-purple));
  box-shadow: 0 14px 26px rgba(99, 102, 241, 0.22);
}

.stitch-replica .ghost-btn {
  color: #334155;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stitch-replica .hard-btn:hover,
.stitch-replica .ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.stitch-replica .credit-badge {
  min-height: 42px;
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.stitch-replica .credit-badge span {
  color: #94a3b8;
}

.stitch-replica .credit-badge strong {
  color: #0f172a;
}

.stitch-replica .replica-main {
  flex: 1;
  overflow: visible;
  padding: 0 32px 38px;
}

.stitch-replica .replica-home {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 0 34px;
}

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

.stitch-replica .home-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stitch-replica .home-head p {
  margin: 0;
  color: var(--replica-muted);
  font-size: 14px;
}

.stitch-replica .home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.stitch-replica .hero-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.stitch-replica .hero-agent-card {
  position: relative;
  display: block;
  min-height: 286px;
  overflow: hidden;
  padding: 34px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.stitch-replica .hero-agent-card.ecommerce-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.stitch-replica .hero-agent-card:hover,
.stitch-replica .hero-agent-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.stitch-replica .hero-agent-card .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(224, 231, 255, 0.68);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.stitch-replica .hero-agent-card h2 {
  position: relative;
  z-index: 2;
  max-width: 58%;
  margin: 34px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stitch-replica .hero-agent-card p {
  position: relative;
  z-index: 2;
  max-width: 52%;
  min-height: 44px;
  margin: 0 0 28px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.stitch-replica .hero-agent-card em {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4f46e5;
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.stitch-replica .hero-agent-card img {
  position: absolute;
  right: -10px;
  bottom: -18px;
  z-index: 1;
  width: 48%;
  height: 112%;
  object-fit: cover;
  object-position: left top;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
  mask-image: linear-gradient(to right, transparent, black 20%);
  transition: transform 500ms ease;
}

.stitch-replica .hero-agent-card.face-hero img,
.stitch-replica .hero-agent-card.ecommerce-hero img {
  right: -14px;
  bottom: -8px;
  width: 54%;
  height: 104%;
  object-position: center center;
}

.stitch-replica .hero-agent-card:hover img {
  transform: scale(1.04);
}

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

.stitch-replica button.agent-card-select {
  min-height: 168px;
  padding: 20px !important;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stitch-replica button.agent-card-select::after {
  display: none !important;
}

.stitch-replica .agent-card-select:hover,
.stitch-replica .agent-card-select.is-active {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.1);
}

.stitch-replica .agent-card-select b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #4f46e5;
  background: #eef2ff;
  font-size: 13px;
}

.stitch-replica button.agent-card-select h3 {
  margin: 18px 0 8px;
  font-size: 17px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.stitch-replica .agent-card-select p {
  margin: 0;
  color: var(--replica-muted);
  font-size: 13px;
  line-height: 1.5;
}

.stitch-replica .home-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.stitch-replica .side-panel,
.stitch-replica .workspace-panel,
.stitch-replica .ecom-panel,
.stitch-replica .result-card {
  border: 1px solid var(--replica-border);
  border-radius: 24px;
  background: var(--replica-panel);
  box-shadow: var(--replica-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stitch-replica .side-panel {
  padding: 22px;
}

.stitch-replica .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.stitch-replica .panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.stitch-replica .panel-head a {
  color: var(--replica-indigo);
  font-size: 13px;
  font-weight: 750;
}

.stitch-replica .mini-task {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.stitch-replica .mini-task span,
.stitch-replica .mini-task strong,
.stitch-replica .work-row em {
  display: block;
}

.stitch-replica .mini-task span,
.stitch-replica .work-row em {
  color: var(--replica-muted);
  font-size: 12px;
}

.stitch-replica .mini-task strong {
  font-size: 14px;
}

.stitch-replica .mini-task i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--replica-indigo), #a78bfa);
}

.stitch-replica .work-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.stitch-replica .thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
}

.stitch-replica .thumb.product {
  background: linear-gradient(135deg, #e0f2fe, #7dd3fc);
}

.stitch-replica .thumb.has-media {
  overflow: hidden;
  background: #eef2ff;
}

.stitch-replica .thumb.has-media img,
.stitch-replica .thumb.has-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stitch-replica .workspace-zone {
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 0 0;
}

.stitch-replica:not(.agent-detail-page) .workspace-zone {
  display: none;
}

.stitch-replica.agent-detail-page .replica-main {
  min-height: calc(100vh - 80px);
}

.stitch-replica .agent-detail-top {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.stitch-replica .agent-back-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.stitch-replica .agent-back-row .back-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.stitch-replica .agent-back-row h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.stitch-replica .agent-stepper {
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 24px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 750;
}

.stitch-replica .agent-stepper span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.stitch-replica .agent-stepper b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
}

.stitch-replica .agent-stepper span:first-child {
  color: var(--replica-indigo);
}

.stitch-replica .agent-stepper span:first-child b {
  color: #fff;
  background: var(--replica-indigo);
}

.stitch-replica .agent-stepper i {
  flex: 1;
  min-width: 28px;
  height: 1px;
  background: repeating-linear-gradient(to right, #e2e8f0 0, #e2e8f0 4px, transparent 4px, transparent 8px);
}

.stitch-replica .workspace-intro {
  margin-bottom: 18px;
}

.stitch-replica .workspace-intro span {
  color: var(--replica-indigo);
  font-size: 13px;
  font-weight: 800;
}

.stitch-replica .workspace-intro h2 {
  max-width: 780px;
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.stitch-replica .workspace-panel {
  padding: 28px;
}

.stitch-replica .workspace-head,
.stitch-replica .module-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.stitch-replica .workspace-kicker {
  margin: 0 0 8px;
  color: var(--replica-indigo);
  font-size: 13px;
  font-weight: 800;
}

.stitch-replica .workspace-head h3,
.stitch-replica .module-head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.stitch-replica .workspace-alert {
  margin: 8px 0 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.stitch-replica .workspace-cost {
  margin: 0 0 20px;
  color: #475569;
  font-size: 14px;
}

.stitch-replica .lab-form,
.stitch-replica .field-row {
  display: grid;
  gap: 16px;
}

.stitch-replica .field-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stitch-replica .field {
  display: grid;
  gap: 8px;
}

.stitch-replica .field > span,
.stitch-replica .ecom-field > span,
.stitch-replica .ecom-block-label {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.stitch-replica .upload-field {
  min-height: 148px;
  place-items: center;
  text-align: center;
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.72);
}

.stitch-replica .upload-field input {
  max-width: 280px;
}

.stitch-replica .upload-field em,
.stitch-replica .ecom-field em {
  color: var(--replica-muted);
  font-style: normal;
  font-size: 12px;
}

.stitch-replica select,
.stitch-replica textarea,
.stitch-replica input[type="number"],
.stitch-replica input[type="email"],
.stitch-replica input[type="password"] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  outline: none;
}

.stitch-replica select,
.stitch-replica input[type="number"] {
  min-height: 44px;
  padding: 0 14px;
}

.stitch-replica textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

.stitch-replica .status-line {
  margin: 16px 0 0;
  color: var(--replica-muted);
  font-size: 14px;
}

.stitch-replica .result-shell,
.stitch-replica .reference-preview {
  margin-top: 18px;
}

.stitch-replica .module-pane {
  border-radius: 24px;
}

.stitch-replica .ecommerce-suite-grid,
.stitch-replica .face-transform-grid,
.stitch-replica .ecom-result-grid {
  gap: 18px;
}

.stitch-replica .ecom-panel {
  padding: 22px;
}

.stitch-replica .ecom-type-card,
.stitch-replica .face-upload-card {
  border-color: #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.stitch-replica .face-transform-workbench {
  gap: 18px;
}

.stitch-replica .face-transform-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.stitch-replica .face-upload-card,
.stitch-replica .face-transform-prompt,
.stitch-replica .face-transform-action-row {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  padding: 16px;
}

.stitch-replica .face-upload-head {
  margin-bottom: 12px;
}

.stitch-replica .face-upload-head h4 {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.stitch-replica .face-upload-head button {
  min-height: 28px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--replica-indigo);
  font-size: 12px;
}

.stitch-replica .face-upload-box,
.stitch-replica .face-preview-slot {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  aspect-ratio: auto;
  border-radius: 12px;
  background: #f8fafc;
}

.stitch-replica .face-upload-box {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.stitch-replica .face-upload-empty span,
.stitch-replica .face-output-empty span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #eef2ff;
  color: var(--replica-indigo);
  font-size: 22px;
  font-weight: 900;
}

.stitch-replica .face-upload-empty strong,
.stitch-replica .face-output-empty strong {
  color: #334155;
  font-size: 15px;
  font-weight: 800;
}

.stitch-replica .face-upload-empty em,
.stitch-replica .face-output-empty em {
  max-width: 180px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.stitch-replica .face-output-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.stitch-replica .face-preview-card.is-muted {
  opacity: 0.7;
}

.stitch-replica .face-preview-slot .result-card {
  width: 100%;
  min-height: 360px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.stitch-replica .face-transform-prompt {
  gap: 10px;
}

.stitch-replica .face-transform-prompt textarea {
  min-height: 82px;
  border-radius: 12px !important;
}

.stitch-replica .face-transform-action-row {
  border-radius: 14px;
}

.stitch-replica .agent-preview-workspace .module-head {
  margin-bottom: 18px;
}

.stitch-replica .agent-preview-workspace .module-form {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.stitch-replica .agent-preview-workspace .module-form[hidden] {
  display: none !important;
}

.stitch-replica .agent-preview-workspace #module-reference-field,
.stitch-replica .agent-preview-workspace #module-prompt-field,
.stitch-replica .agent-preview-workspace .field-row,
.stitch-replica .agent-preview-workspace .form-submit,
.stitch-replica .agent-output-preview {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.stitch-replica .agent-preview-workspace #module-reference-field {
  min-height: 360px;
}

.stitch-replica .agent-preview-workspace #module-prompt-field {
  min-height: 220px;
}

.stitch-replica .agent-preview-workspace .field-row,
.stitch-replica .agent-preview-workspace .form-submit {
  grid-column: 1 / -1;
}

.stitch-replica .agent-preview-workspace .form-submit {
  justify-content: center;
  min-height: 52px;
}

.stitch-replica .agent-output-preview {
  margin-top: 18px;
  padding: 16px;
}

.stitch-replica .agent-output-stage {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.stitch-replica .agent-output-stage span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #eef2ff;
  color: var(--replica-indigo);
  font-weight: 900;
}

.stitch-replica .agent-output-stage strong {
  color: #334155;
  font-size: 16px;
}

.stitch-replica .agent-output-stage em {
  max-width: 360px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.stitch-replica.agent-preview-workspace-page .workspace-panel {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.stitch-replica.agent-preview-workspace-page .workspace-head,
.stitch-replica.agent-preview-workspace-page .workspace-cost {
  grid-column: 1 / -1;
}

.stitch-replica.agent-preview-workspace-page #analysis-form,
.stitch-replica.agent-preview-workspace-page #image-form {
  display: grid;
  gap: 16px;
  align-self: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stitch-replica.agent-preview-workspace-page #analysis-form[hidden],
.stitch-replica.agent-preview-workspace-page #image-form[hidden] {
  display: none !important;
}

.stitch-replica.agent-preview-workspace-page #analysis-form .upload-field,
.stitch-replica.agent-preview-workspace-page #image-form .upload-field,
.stitch-replica.agent-preview-workspace-page #image-form .field-row,
.stitch-replica.agent-preview-workspace-page #analysis-form .form-submit,
.stitch-replica.agent-preview-workspace-page #image-form .form-submit {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.stitch-replica.agent-preview-workspace-page #analysis-form .upload-field,
.stitch-replica.agent-preview-workspace-page #image-form .upload-field {
  min-height: 320px;
}

.stitch-replica.agent-preview-workspace-page #analysis-result,
.stitch-replica.agent-preview-workspace-page #image-result,
.stitch-replica.agent-preview-workspace-page #video-result {
  margin: 0;
}

.stitch-replica.agent-preview-workspace-page .status-line {
  align-self: start;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
}

.stitch-replica.works-replica .replica-main {
  max-width: none !important;
  margin: 0 !important;
  padding: 48px 30px 56px !important;
}

.stitch-replica .works-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.stitch-replica .works-hero h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.stitch-replica .works-hero p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.stitch-replica .works-create-btn {
  min-width: 128px;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(99, 102, 241, 0.2);
}

.stitch-replica .works-toolbar {
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) minmax(240px, 320px) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
}

.stitch-replica .works-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stitch-replica .works-tabs button {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.stitch-replica .works-tabs button.is-active {
  border-color: rgba(99, 102, 241, 0.18);
  background: rgba(99, 102, 241, 0.08);
  color: var(--replica-indigo);
}

.stitch-replica .works-search,
.stitch-replica .works-sort-btn {
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.03);
}

.stitch-replica .works-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #94a3b8;
}

.stitch-replica .works-search input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  outline: 0;
  color: #0f172a;
}

.stitch-replica .works-sort-btn {
  padding: 0 18px;
  color: #475569;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.stitch-replica .works-list-panel {
  padding: 0;
}

.stitch-replica .works-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

.stitch-replica .work-list-row {
  display: grid !important;
  grid-template-columns: 84px minmax(220px, 1fr) minmax(330px, 520px) 136px;
  align-items: center;
  gap: 26px;
  min-height: 150px;
  padding: 28px 34px !important;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.stitch-replica .work-list-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #f3f4ff);
  color: var(--replica-indigo);
  font-size: 28px;
  font-weight: 900;
}

.stitch-replica .work-list-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.stitch-replica .work-list-main p {
  margin: -4px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.stitch-replica .work-list-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stitch-replica .work-list-title-row strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-replica .work-card-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.stitch-replica .work-card-status.status-processing {
  background: #eef2ff;
  color: var(--replica-indigo);
}

.stitch-replica .work-card-status.status-failed,
.stitch-replica .work-card-status.status-blocked {
  background: #fee2e2;
  color: #dc2626;
}

.stitch-replica .work-card-status.status-draft {
  background: #f1f5f9;
  color: #64748b;
}

.stitch-replica .work-list-meta {
  display: flex;
  gap: 34px;
  color: #94a3b8;
  font-size: 14px;
}

.stitch-replica .work-list-meta b {
  display: block;
  margin-top: 5px;
  color: #334155;
  font-size: 17px;
}

.stitch-replica .work-list-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.stitch-replica .work-list-thumb,
.stitch-replica .work-list-more {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.stitch-replica .work-list-thumb img,
.stitch-replica .work-list-thumb video,
.stitch-replica .work-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stitch-replica .work-card-media-button {
  padding: 0;
  cursor: zoom-in;
}

.stitch-replica .ghost-thumb {
  background:
    radial-gradient(circle at 50% 42%, rgba(148, 163, 184, 0.26), transparent 34px),
    linear-gradient(135deg, #f8fafc, #eef2f7);
}

.stitch-replica .work-list-more {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 800;
}

.stitch-replica .work-list-row .work-card-actions {
  display: flex;
  justify-content: flex-end;
}

.stitch-replica .work-list-row .work-card-actions .ghost-btn {
  min-width: 118px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
}

.stitch-replica .works-empty-card {
  border-style: dashed;
}

.stitch-replica .media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.58);
}

.stitch-replica .media-lightbox[hidden] {
  display: none !important;
}

.stitch-replica .lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
}

.stitch-replica .lightbox-content {
  width: min(1040px, 100%);
  max-height: min(820px, 90vh);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
}

.stitch-replica .account-main,
.stitch-replica .payment-main,
.stitch-replica .ops-main,
.stitch-replica .support-main {
  padding: 48px 30px 56px !important;
}

.stitch-replica .account-hero,
.stitch-replica .payment-hero,
.stitch-replica .ops-hero,
.stitch-replica .support-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.stitch-replica .account-hero h1,
.stitch-replica .payment-hero h1,
.stitch-replica .ops-hero h1,
.stitch-replica .support-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.stitch-replica .account-hero p,
.stitch-replica .payment-hero p,
.stitch-replica .ops-hero p,
.stitch-replica .support-hero p {
  margin: 0;
  color: #64748b;
}

.stitch-replica .account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.stitch-replica .account-layout:has(.account-login-card[hidden]) {
  grid-template-columns: 1fr;
}

.stitch-replica .account-login-card[hidden] {
  display: none !important;
}

.stitch-replica .account-card,
.stitch-replica .payment-panel,
.stitch-replica .account-history-panel,
.stitch-replica .support-card-grid article,
.stitch-replica .support-split article {
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.stitch-replica .account-card,
.stitch-replica .payment-panel,
.stitch-replica .account-history-panel {
  padding: 24px;
}

.stitch-replica .account-card h2,
.stitch-replica .payment-panel h2,
.stitch-replica .support-split h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.stitch-replica .account-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stitch-replica .account-metric-grid article {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.stitch-replica .account-metric-grid span,
.stitch-replica .payment-panel-head span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.stitch-replica .account-metric-grid strong,
.stitch-replica .payment-hero > strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 28px;
}

.stitch-replica .ledger-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px;
  padding: 6px;
  margin: 0 0 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.86);
}

.stitch-replica .ledger-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-weight: 800;
}

.stitch-replica .ledger-tabs button.is-active {
  background: #fff;
  color: var(--replica-indigo);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.stitch-replica .ledger-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.stitch-replica .ledger-pagination span {
  min-width: 88px;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.stitch-replica .ledger-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.stitch-replica .payment-panel-head,
.stitch-replica .credit-ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.stitch-replica .payment-submit {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.stitch-replica .stripe-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stitch-replica .stripe-methods .pay-method {
  min-height: 52px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-weight: 800;
}

.stitch-replica .stripe-methods .pay-method.is-active {
  border-color: rgba(99, 102, 241, 0.34);
  background: #eef2ff;
  color: var(--replica-indigo);
}

.stitch-replica .ops-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.stitch-replica .ops-result {
  margin: 0 !important;
}

.stitch-replica .ops-gate-shell {
  display: grid;
  gap: 18px;
}

.stitch-replica .ops-empty-state,
.stitch-replica .ops-preview-metrics article,
.stitch-replica .ops-preview-board {
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.stitch-replica .ops-empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px;
}

.stitch-replica .ops-empty-state > span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef2ff;
  color: var(--replica-indigo);
  font-weight: 900;
}

.stitch-replica .ops-empty-state strong {
  color: #0f172a;
  font-size: 22px;
}

.stitch-replica .ops-empty-state p {
  max-width: 560px;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.stitch-replica .ops-preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stitch-replica .ops-preview-metrics article {
  padding: 18px;
}

.stitch-replica .ops-preview-metrics span,
.stitch-replica .ops-preview-metrics small,
.stitch-replica .ops-preview-board span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.stitch-replica .ops-preview-metrics strong {
  display: block;
  margin: 8px 0;
  color: #0f172a;
  font-size: 26px;
}

.stitch-replica .ops-preview-board {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.stitch-replica .ops-preview-board div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid #e2e8f0;
}

.stitch-replica .ops-preview-board div:first-child {
  border-top: 0;
}

.stitch-replica .ops-preview-board b {
  color: #0f172a;
  font-size: 16px;
}

.stitch-replica .support-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stitch-replica .support-card-grid article {
  padding: 18px;
}

.stitch-replica .support-card-grid b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--replica-indigo);
}

.stitch-replica .support-card-grid h3 {
  margin: 14px 0 6px;
  font-size: 16px;
}

.stitch-replica .support-card-grid p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.stitch-replica .support-split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.stitch-replica .support-split article {
  padding: 24px;
}

.stitch-replica .support-split a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
}

.stitch-replica .support-faq-item {
  border-top: 1px solid #e2e8f0;
}

.stitch-replica .support-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.stitch-replica .support-faq-item summary::-webkit-details-marker {
  display: none;
}

.stitch-replica .support-faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.stitch-replica .support-faq-item[open] summary::after {
  transform: rotate(225deg);
}

.stitch-replica .support-faq-item p {
  margin: -2px 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.stitch-replica .support-split span {
  color: #94a3b8;
  font-size: 12px;
}

.stitch-replica .support-contact-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9), rgba(236, 253, 245, 0.8));
}

.stitch-replica .support-contact-note strong {
  font-size: 15px;
}

.stitch-replica .support-contact-note span {
  color: #64748b;
}

@media (max-width: 1180px) {
  .stitch-replica .home-layout {
    grid-template-columns: 1fr;
  }

  .stitch-replica .home-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-replica .replica-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-replica .face-transform-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-replica .account-layout,
  .stitch-replica .support-split {
    grid-template-columns: 1fr;
  }

  .stitch-replica .support-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-replica .ops-preview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-replica .work-list-row {
    grid-template-columns: 72px minmax(180px, 1fr);
  }

  .stitch-replica .work-list-preview,
  .stitch-replica .work-list-row .work-card-actions {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .stitch-replica .app-frame {
    grid-template-columns: 1fr;
  }

  .stitch-replica .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .stitch-replica .side-brand,
  .stitch-replica .side-safety-card {
    flex: 0 0 auto;
  }

  .stitch-replica .side-nav {
    display: flex;
    min-width: max-content;
  }

  .stitch-replica .topbar {
    height: auto;
    padding: 16px;
    align-items: center;
    gap: 14px;
    flex-direction: row;
    justify-content: flex-end;
  }

  .stitch-replica .top-nav {
    display: none !important;
  }

  .stitch-replica .top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .stitch-replica .replica-main {
    padding: 0 16px 28px;
  }

  .stitch-replica .home-head,
  .stitch-replica .hero-agent-grid,
  .stitch-replica .home-aside,
  .stitch-replica .field-row {
    grid-template-columns: 1fr;
  }

  .stitch-replica .home-head {
    display: grid;
  }

  .stitch-replica .hero-agent-card h2,
  .stitch-replica .hero-agent-card p {
    max-width: 68%;
  }

  .stitch-replica .works-toolbar {
    grid-template-columns: 1fr;
  }

  .stitch-replica .works-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .stitch-replica .work-list-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px !important;
  }

  .stitch-replica .work-list-preview,
  .stitch-replica .work-list-row .work-card-actions {
    grid-column: auto;
  }

  .stitch-replica .work-list-row .work-card-actions {
    justify-content: flex-start;
  }

  .stitch-replica .face-transform-flow {
    grid-template-columns: 1fr;
  }

  .stitch-replica .agent-preview-workspace .module-form {
    grid-template-columns: 1fr;
  }

  .stitch-replica.agent-preview-workspace-page .workspace-panel {
    grid-template-columns: 1fr;
  }

  .stitch-replica .account-hero,
  .stitch-replica .payment-hero,
  .stitch-replica .ops-hero,
  .stitch-replica .support-hero,
  .stitch-replica .payment-panel-head,
  .stitch-replica .credit-ledger-head {
    display: grid;
  }

  .stitch-replica .account-metric-grid,
  .stitch-replica .stripe-methods,
  .stitch-replica .ops-preview-metrics,
  .stitch-replica .support-card-grid {
    grid-template-columns: 1fr;
  }

  .stitch-replica .ledger-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stitch-replica .ledger-pagination {
    justify-content: stretch;
  }

  .stitch-replica .ledger-pagination .ghost-btn {
    flex: 1;
  }

  .stitch-replica .ops-preview-board div {
    align-items: flex-start;
    flex-direction: column;
  }

  .stitch-replica .face-upload-box,
  .stitch-replica .face-preview-slot {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .stitch-replica .works-hero {
    display: grid;
  }

  .stitch-replica .works-create-btn {
    width: 100%;
  }

  .stitch-replica .work-list-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .stitch-replica .work-list-meta {
    gap: 20px;
  }

  .stitch-replica .work-list-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .stitch-replica .agent-detail-top {
    margin-bottom: 16px;
  }

  .stitch-replica .agent-back-row {
    margin-bottom: 16px;
  }

  .stitch-replica .agent-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }

  .stitch-replica .agent-stepper span {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
  }

  .stitch-replica .agent-stepper i {
    display: none;
  }

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

  .stitch-replica .hero-agent-card {
    min-height: 250px;
    padding: 24px;
  }

  .stitch-replica .hero-agent-card img {
    width: 56%;
    opacity: 0.78;
  }
}

/* Generated local visual assets and workspace polish */
.stitch-replica .sidebar,
.stitch-replica .topbar {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  contain: layout paint;
}

.stitch-replica .brand-mark {
  overflow: visible;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: transparent !important;
  font-size: 0 !important;
  background: url("/assets/generated/brand-lightning.svg") center / contain no-repeat;
  box-shadow: none;
}

.stitch-replica .side-nav span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  color: inherit !important;
  font-size: 0 !important;
  background: transparent !important;
  filter: none;
}

.stitch-replica .side-nav span::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--nav-icon, url("/assets/generated/nav-agent.svg")) center / contain no-repeat;
  mask: var(--nav-icon, url("/assets/generated/nav-agent.svg")) center / contain no-repeat;
}

.stitch-replica .side-nav a[href="/"] span,
.stitch-replica .side-nav a[data-nav-key="home"] span {
  --nav-icon: url("/assets/generated/nav-agent.svg");
}

.stitch-replica .side-nav a[href="/works.html"] span,
.stitch-replica .side-nav a[data-nav-key="works"] span {
  --nav-icon: url("/assets/generated/nav-works.svg");
}

.stitch-replica .side-nav a[href="/user.html"] span,
.stitch-replica .side-nav a[data-nav-key="user"] span {
  --nav-icon: url("/assets/generated/nav-user.svg");
}

.stitch-replica .side-nav a[href="/help.html"] span,
.stitch-replica .side-nav a[data-nav-key="help"] span {
  --nav-icon: url("/assets/generated/nav-help.svg");
}

.stitch-replica .side-nav a[href="/ops.html"] span,
.stitch-replica .side-nav a[data-nav-key="ops"] span {
  --nav-icon: url("/assets/generated/nav-ops.svg");
}

.stitch-replica .agent-grid button.agent-card-select::after,
.stitch-replica button.agent-card-select::after {
  display: none !important;
  content: none !important;
}

.stitch-replica .agent-card-select b {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(238, 242, 255, 0.36)),
    var(--agent-badge, url("/assets/generated/agent-storyboard.webp")) center / cover no-repeat;
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #4f46e5;
  font-size: 18px !important;
  font-weight: 900;
}

.stitch-replica .agent-card-select[data-agent-id="storyboard"] b {
  --agent-badge: url("/assets/generated/agent-storyboard.webp");
}

.stitch-replica .agent-card-select[data-agent-id="ad-storyboard"] b {
  --agent-badge: url("/assets/generated/agent-ad.webp");
}

.stitch-replica .agent-card-select[data-agent-id="selling-analysis"] b {
  --agent-badge: url("/assets/generated/agent-insight.webp");
}

.stitch-replica .agent-card-select[data-agent-id="tri-view"] b {
  --agent-badge: url("/assets/generated/agent-triview.webp");
}

.stitch-replica .agent-card-select[data-agent-id="detail-page"] b {
  --agent-badge: url("/assets/generated/agent-detail.webp");
}

.stitch-replica .agent-card-select[data-agent-id="script-no-voiceover"] b {
  --agent-badge: url("/assets/generated/agent-silent-script.webp");
}

.stitch-replica .agent-card-select[data-agent-id="voiceover-script"] b {
  --agent-badge: url("/assets/generated/agent-voiceover.webp");
}

.stitch-replica .agent-card-select[data-agent-id="seeding-video"] b {
  --agent-badge: url("/assets/generated/agent-seeding.webp");
}

.stitch-replica .select-wrap,
.stitch-replica .select-wrap.has-pretty-select,
.stitch-replica .field-row,
.stitch-replica .workspace-panel,
.stitch-replica.agent-preview-workspace-page #image-form,
.stitch-replica.agent-preview-workspace-page #analysis-form {
  overflow: visible !important;
}

.stitch-replica .select-wrap::after,
.stitch-replica .select-wrap.has-pretty-select::after {
  display: none !important;
  content: none !important;
}

.stitch-replica .pretty-select {
  min-height: 58px;
  padding: 0 18px 0 22px;
  border-color: rgba(226, 232, 240, 0.92);
}

.stitch-replica .pretty-select::after {
  content: "" !important;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  border: solid #0f766e;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: transparent !important;
  transform: translateY(-2px) rotate(45deg);
}

.stitch-replica .pretty-select.is-open::after {
  content: "" !important;
  transform: translateY(2px) rotate(-135deg);
}

.stitch-replica .pretty-options {
  z-index: 12000;
  background: #fff;
}

.stitch-replica .side-safety-card {
  display: none !important;
}

.stitch-replica.agent-preview-workspace-page #image-form .field-row,
.stitch-replica.agent-preview-workspace-page #analysis-form .field-row,
.stitch-replica .agent-preview-workspace .field-row {
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  align-items: end;
  min-height: auto;
  padding: 16px;
}

.stitch-replica .agent-output-stage img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.12);
}

.stitch-replica .workspace-samples {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--replica-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.stitch-replica .workspace-samples[hidden] {
  display: none !important;
}

.stitch-replica .workspace-sample-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.stitch-replica .workspace-sample-head span {
  color: var(--replica-indigo);
  font-size: 13px;
  font-weight: 900;
}

.stitch-replica .workspace-sample-head h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.stitch-replica .workspace-sample-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.72);
}

.stitch-replica .workspace-sample-showcase img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 260px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.stitch-replica .workspace-sample-showcase > div {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.stitch-replica .workspace-sample-showcase strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.stitch-replica .workspace-sample-showcase p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .stitch-replica .workspace-sample-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stitch-replica .agent-card-select b {
    width: 52px;
    height: 52px;
  }

  .stitch-replica .workspace-samples {
    padding: 16px;
  }

  .stitch-replica .workspace-sample-head {
    display: grid;
  }

  .stitch-replica .workspace-sample-showcase img {
    min-height: 180px;
  }

  .stitch-replica .workspace-sample-showcase > div {
    padding: 6px 4px 2px;
  }
}
