body.lead-funnel-draft {
  min-width: 320px;
  background: #050605;
  color: #f3f4ef;
}

body.lead-funnel-draft::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.xlf-app-shell,
.xlf-app-shell * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.xlf-app-shell {
  --xlf-bg: #050605;
  --xlf-panel: #0d0f0e;
  --xlf-panel-2: #121513;
  --xlf-text: #f3f4ef;
  --xlf-muted: #818982;
  --xlf-line: rgba(239, 243, 237, 0.12);
  --xlf-line-strong: rgba(239, 243, 237, 0.24);
  --xlf-coral: #ff8064;
  --xlf-mint: #86eacc;
  --xlf-silver: #c6cbc5;
  min-height: 100svh;
  overflow: clip;
  background: var(--xlf-bg);
  color: var(--xlf-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.xlf-app-shell button,
.xlf-app-shell input,
.xlf-app-shell textarea,
.xlf-app-shell select {
  font: inherit;
}

.xlf-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(239, 243, 237, 0.08);
  background: rgba(5, 6, 5, 0.88);
  backdrop-filter: blur(18px);
}

.xlf-brand,
.xlf-nav nav,
.xlf-nav-actions,
.xlf-live,
.xlf-kicker,
.xlf-meta-row,
.xlf-rendering-head,
.xlf-rendering-foot,
.xlf-reel-label,
.xlf-work-caption,
.xlf-section-head {
  display: flex;
  align-items: center;
}

.xlf-brand {
  justify-self: start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--xlf-text);
}

.xlf-brand > span,
.xlf-user {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid #454a46;
  border-radius: 50%;
  font-size: 11px;
}

.xlf-brand strong {
  font-size: 14px;
  font-weight: 560;
}

.xlf-nav nav {
  justify-content: center;
  gap: 26px;
}

.xlf-nav nav button {
  position: relative;
  min-height: 68px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777e78;
  font-size: 12px;
}

.xlf-nav nav button:hover,
.xlf-nav nav button.is-active {
  color: var(--xlf-text);
}

.xlf-nav nav button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--xlf-coral);
  box-shadow: 0 0 12px rgba(255, 128, 100, 0.8);
}

.xlf-nav-actions {
  justify-self: end;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.xlf-live {
  gap: 7px;
  color: #8f9790;
  font-size: 11px;
  white-space: nowrap;
}

.xlf-live i,
.xlf-ready i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--xlf-mint);
  box-shadow: 0 0 11px rgba(134, 234, 204, 0.8);
}

.xlf-balance {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--xlf-line);
  border-radius: 6px;
  background: transparent;
  color: #b8beb8;
  font-size: 11px;
}

.xlf-login-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #dfe1dc;
  border-radius: 6px;
  background: #eceee9;
  color: #080908;
  font-size: 11px;
  font-weight: 600;
}

.xlf-login-button:hover {
  background: #ffffff;
}

.xlf-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #858c86;
}

.xlf-icon-button svg {
  width: 16px;
  height: 16px;
}

.xlf-user {
  color: #ced2cd;
}

.xlf-page {
  width: 100%;
}

.xlf-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(460px, 1fr) auto;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  border-bottom: 1px solid rgba(239, 243, 237, 0.08);
  background: #050605;
}

.xlf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 49%, transparent 57%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 26%);
  animation: xlf-stage-shift 12s ease-in-out infinite alternate;
}

.xlf-black-hole-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #020403;
}

.xlf-black-hole-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.012);
  transform-origin: center top;
  will-change: contents;
}

.xlf-black-hole-color,
.xlf-black-hole-vignette,
.xlf-black-hole-scan {
  position: absolute;
  inset: 0;
}

.xlf-black-hole-color {
  background:
    radial-gradient(circle at 50% 3%, rgba(111, 205, 245, 0.11), transparent 36%),
    linear-gradient(112deg, rgba(255, 116, 89, 0.08), transparent 31%, transparent 68%, rgba(116, 232, 198, 0.07));
  mix-blend-mode: color;
}

.xlf-black-hole-vignette {
  background:
    linear-gradient(180deg, rgba(2, 4, 3, 0.08), transparent 30%, rgba(2, 4, 3, 0.38) 62%, #050605 91%),
    linear-gradient(90deg, rgba(2, 4, 3, 0.8), transparent 17%, transparent 83%, rgba(2, 4, 3, 0.8));
}

.xlf-black-hole-scan {
  top: 16%;
  right: 7%;
  bottom: auto;
  left: 7%;
  height: 1px;
  opacity: 0.34;
  background: linear-gradient(90deg, transparent, rgba(134, 234, 204, 0.38) 30%, rgba(255, 128, 100, 0.52) 56%, transparent);
  box-shadow: 0 0 18px rgba(111, 205, 245, 0.2);
  animation: xlf-black-hole-scan 9s ease-in-out infinite;
}

.xlf-hero-light {
  position: absolute;
  top: -65%;
  left: 49%;
  z-index: 2;
  width: 20%;
  height: 160%;
  opacity: 0.34;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), rgba(255, 112, 83, 0.14), transparent);
  filter: blur(24px);
  transform: rotate(18deg) translateX(-170%);
  animation: xlf-light-sweep 9s ease-in-out infinite;
}

.xlf-horizon {
  position: absolute;
  right: 7%;
  bottom: 22%;
  left: 7%;
  z-index: 2;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 38%, rgba(255, 126, 97, 0.42) 61%, transparent);
  box-shadow: 0 0 32px rgba(255, 126, 97, 0.2);
}

.xlf-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 62px 260px 42px;
  text-align: center;
}

.xlf-kicker {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: #a3aaa4;
  font-size: 10px;
  text-transform: uppercase;
}

.xlf-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--xlf-coral);
  box-shadow: 0 0 12px rgba(255, 128, 100, 0.78);
}

.xlf-hero h1 {
  max-width: 760px;
  margin: 22px 0 16px;
  color: #f5f5f1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 94px;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.74);
}

.xlf-hero h1 em {
  color: var(--xlf-coral);
  font-style: italic;
}

.xlf-hero-copy > p {
  margin: 0 0 30px;
  color: #8e958f;
  font-size: 13px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.xlf-command {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 40px;
  align-items: center;
  width: min(590px, 100%);
  min-height: 60px;
  padding: 5px 6px 5px 12px;
  border: 1px solid #484d49;
  border-radius: 7px;
  background: rgba(10, 12, 11, 0.86);
  color: #e8eae6;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  text-align: left;
  backdrop-filter: blur(18px) saturate(0.8);
}

.xlf-command:hover {
  border-color: #7c827d;
  background: rgba(20, 22, 21, 0.9);
  transform: translateY(-1px);
}

.xlf-command strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 450;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xlf-command-icon,
.xlf-command-go {
  display: grid;
  place-items: center;
}

.xlf-command-icon {
  color: #8e958f;
}

.xlf-command-go {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: #eeefea;
  color: #080908;
  transform: rotate(135deg);
}

.xlf-command svg {
  width: 16px;
  height: 16px;
}

.xlf-meta-row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 15px;
  color: #747b75;
  font-size: 10px;
}

.xlf-meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xlf-meta-row > span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3d413e;
}

.xlf-meta-row .xlf-ready {
  color: var(--xlf-mint);
}

.xlf-rendering {
  position: absolute;
  top: 96px;
  right: 28px;
  z-index: 5;
  width: 224px;
  padding: 14px;
  border: 1px solid #292d2a;
  border-radius: 7px;
  background: rgba(9, 11, 10, 0.74);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.xlf-rendering-head,
.xlf-rendering-foot {
  justify-content: space-between;
  gap: 10px;
  color: #7e867f;
  font-size: 10px;
}

.xlf-rendering-head b,
.xlf-rendering-foot b {
  color: var(--xlf-coral);
  font-weight: 500;
}

.xlf-rendering.is-done .xlf-rendering-head b,
.xlf-rendering.is-done .xlf-rendering-foot b {
  color: var(--xlf-mint);
}

.xlf-rendering.is-failed .xlf-rendering-head b,
.xlf-rendering.is-failed .xlf-rendering-foot b {
  color: #ff7070;
}

.xlf-rendering > strong {
  display: block;
  margin-top: 17px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 450;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xlf-rendering > small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #737a74;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xlf-progress {
  height: 2px;
  margin-top: 20px;
  overflow: hidden;
  background: #2c302d;
}

.xlf-progress span {
  display: block;
  min-width: 3px;
  height: 100%;
  background: var(--xlf-coral);
  box-shadow: 0 0 10px rgba(255, 128, 100, 0.72);
  transition: width 0.4s ease;
}

.xlf-rendering.is-done .xlf-progress span {
  background: var(--xlf-mint);
  box-shadow: 0 0 10px rgba(134, 234, 204, 0.72);
}

.xlf-reel {
  position: relative;
  z-index: 4;
  margin: 0 28px 24px;
}

.xlf-reel-label {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: #6d746e;
  font-size: 9px;
}

.xlf-reel-label button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa19b;
  font-size: 10px;
}

.xlf-reel-label svg {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

.xlf-reel-track {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xlf-work {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #282c29;
  border-radius: 6px;
  background: #0b0d0c;
  color: #ecede9;
  text-align: left;
}

button.xlf-work:hover {
  border-color: #676d68;
  transform: translateY(-3px);
}

.xlf-work-media {
  position: relative;
  display: block;
  aspect-ratio: 2.25 / 1;
  overflow: hidden;
  background: #111411;
}

.xlf-work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 30%, rgba(0, 0, 0, 0.2));
}

.xlf-work-media img,
.xlf-work-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xlf-work.is-placeholder.scene-a .xlf-work-media {
  background: linear-gradient(145deg, #26483b, #a95f4e 52%, #191112);
}

.xlf-work.is-placeholder.scene-b .xlf-work-media {
  background: linear-gradient(145deg, #101722, #526f7c 48%, #121418);
}

.xlf-work.is-placeholder.scene-c .xlf-work-media {
  background: linear-gradient(145deg, #4c4336, #b9a27c 46%, #211d18);
}

.xlf-work.is-placeholder.scene-d .xlf-work-media {
  background: linear-gradient(145deg, #201b22, #92473e 52%, #111011);
}

.xlf-work.is-placeholder .xlf-work-media i {
  position: absolute;
  top: 18%;
  left: 38%;
  width: 24%;
  height: 62%;
  border: 1px solid rgba(255, 236, 202, 0.45);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(17deg);
  box-shadow: 0 0 24px rgba(255, 215, 161, 0.16);
}

.xlf-work.is-placeholder .xlf-work-media b {
  position: absolute;
  top: 28%;
  left: 46%;
  width: 12%;
  height: 44%;
  background: rgba(255, 226, 187, 0.3);
  filter: blur(8px);
  transform: rotate(22deg);
}

.xlf-work-caption {
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
}

.xlf-work-caption strong,
.xlf-work-caption small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xlf-work-caption strong {
  font-size: 10px;
  font-weight: 450;
}

.xlf-work-caption small {
  color: #737a74;
  font-size: 8px;
}

.xlf-metal {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
  background: linear-gradient(135deg, #090a09 0%, #b7bcb7 18%, #171918 35%, #e0e2dd 47%, #202322 63%, #8f9690 76%, #070807 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45), inset -10px -10px 20px rgba(0, 0, 0, 0.36);
}

.xlf-metal-one {
  right: 27%;
  bottom: 20%;
  width: 32px;
  height: 86px;
  border-radius: 42% 58% 48% 42%;
  transform: rotate(27deg);
  animation: xlf-float-one 8s ease-in-out infinite;
}

.xlf-metal-two {
  right: 21%;
  bottom: 19%;
  width: 48px;
  height: 62px;
  border-radius: 38% 52% 42% 46%;
  transform: rotate(-18deg);
  animation: xlf-float-two 10s ease-in-out infinite;
}

.xlf-metal-three {
  right: 15%;
  bottom: 22%;
  width: 18px;
  height: 74px;
  border-radius: 50%;
  transform: rotate(42deg);
  animation: xlf-float-three 9s ease-in-out infinite;
}

.xlf-studio {
  width: min(1640px, 100%);
  margin: 0 auto;
  padding: 74px 42px 80px;
  scroll-margin-top: 68px;
}

.xlf-access {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 74px 42px 86px;
  scroll-margin-top: 68px;
}

.xlf-access > .auth-layout {
  min-height: auto;
  grid-template-columns: minmax(320px, 460px);
  justify-content: center;
  padding: 26px 0 0;
  overflow: visible;
}

.xlf-access > .auth-layout::before,
.xlf-access .auth-copy {
  display: none;
}

.xlf-access .auth-panel {
  border-radius: 7px;
  border-color: var(--xlf-line-strong);
  background: rgba(13, 15, 14, 0.95);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.xlf-access .auth-panel .primary-button {
  background: var(--xlf-coral);
  color: #120805;
}

.xlf-access .auth-tabs button.active {
  color: var(--xlf-coral);
}

.xlf-section-head {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--xlf-line);
}

.xlf-section-head > div {
  min-width: 0;
}

.xlf-section-head span {
  color: var(--xlf-coral);
  font-size: 9px;
  font-weight: 700;
}

.xlf-section-head h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.xlf-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--xlf-muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.xlf-studio > .center-hero {
  display: none;
}

.xlf-studio .workspace-panel,
.xlf-studio .wide-panel,
.xlf-studio .token-panel {
  border-color: var(--xlf-line);
  border-radius: 7px;
  background: rgba(13, 15, 14, 0.94);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.xlf-studio .mode-tabs {
  background: #080a09;
}

.xlf-studio .mode-tabs button.active,
.xlf-studio .primary-button {
  background: var(--xlf-coral);
  color: #120805;
}

.xlf-studio .field input:focus,
.xlf-studio .field textarea:focus,
.xlf-studio .field select:focus {
  border-color: rgba(255, 128, 100, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 128, 100, 0.12);
}

@keyframes xlf-stage-shift {
  from { transform: translateX(-1%); }
  to { transform: translateX(1%); }
}

@keyframes xlf-light-sweep {
  0%, 24% { transform: rotate(18deg) translateX(-170%); }
  74%, 100% { transform: rotate(18deg) translateX(230%); }
}

@keyframes xlf-black-hole-scan {
  0%, 14% { top: 16%; opacity: 0; }
  24% { opacity: 0.34; }
  78% { opacity: 0.24; }
  88%, 100% { top: 72%; opacity: 0; }
}

@keyframes xlf-float-one {
  0%, 100% { transform: rotate(27deg) translateY(0); }
  50% { transform: rotate(35deg) translateY(-10px); }
}

@keyframes xlf-float-two {
  0%, 100% { transform: rotate(-18deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-14px); }
}

@keyframes xlf-float-three {
  0%, 100% { transform: rotate(42deg) translateY(0); }
  50% { transform: rotate(24deg) translateY(-9px); }
}

@media (max-width: 1050px) {
  .xlf-nav {
    grid-template-columns: minmax(150px, 1fr) auto minmax(210px, 1fr);
    padding: 0 18px;
  }

  .xlf-live {
    display: none;
  }

  .xlf-hero-copy {
    align-items: flex-start;
    padding-right: 270px;
    padding-left: 9%;
    text-align: left;
  }

  .xlf-kicker,
  .xlf-meta-row {
    justify-content: flex-start;
  }

  .xlf-hero h1 {
    font-size: 78px;
  }

  .xlf-reel-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .xlf-work-caption {
    display: grid;
  }
}

@media (max-width: 760px) {
  .xlf-nav {
    grid-template-columns: 1fr auto;
    min-height: 62px;
    padding: 0 14px;
  }

  .xlf-nav nav,
  .xlf-balance,
  .xlf-icon-button,
  .xlf-live {
    display: none;
  }

  .xlf-hero {
    grid-template-rows: auto auto;
    min-height: calc(100svh - 62px);
  }

  .xlf-black-hole-canvas {
    filter: saturate(1.02) contrast(1.06);
  }

  .xlf-hero-copy {
    align-items: center;
    min-height: 455px;
    padding: 74px 16px 122px;
    text-align: center;
  }

  .xlf-kicker,
  .xlf-meta-row {
    justify-content: center;
  }

  .xlf-hero h1 {
    font-size: 64px;
  }

  .xlf-rendering {
    top: 392px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .xlf-reel {
    margin: 70px 16px 16px;
  }

  .xlf-reel-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xlf-work:nth-child(n + 3) {
    display: none;
  }

  .xlf-metal-one {
    right: 10%;
    bottom: 31%;
  }

  .xlf-metal-two {
    right: 2%;
    bottom: 29%;
  }

  .xlf-metal-three {
    display: none;
  }

  .xlf-studio {
    padding: 56px 18px 96px;
  }

  .xlf-access {
    padding: 56px 18px 76px;
  }

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

  .xlf-section-head p {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .xlf-brand strong {
    font-size: 13px;
  }

  .xlf-user {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .xlf-hero-copy {
    min-height: 435px;
    padding-top: 62px;
  }

  .xlf-hero h1 {
    margin-top: 18px;
    font-size: 54px;
  }

  .xlf-hero-copy > p {
    max-width: 290px;
    font-size: 12px;
  }

  .xlf-command strong {
    font-size: 12px;
  }

  .xlf-meta-row {
    gap: 9px;
  }

  .xlf-meta-row > span:nth-child(2),
  .xlf-meta-row > span:nth-child(3) {
    display: none;
  }

  .xlf-rendering {
    top: 372px;
  }

  .xlf-reel {
    margin-top: 82px;
  }

  .xlf-work-caption small {
    display: none;
  }

  .xlf-section-head h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xlf-hero::before,
  .xlf-hero-light,
  .xlf-black-hole-scan,
  .xlf-metal {
    animation: none;
  }

  .xlf-app-shell * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Video insight node */
.xlf-canvas-editor-shell .canvas-node-video_prompt {
  --node-accent: #8bd8fa;
  --node-accent-rgb: 139, 216, 250;
  border-color: rgba(139, 216, 250, 0.22);
}

.xlf-canvas-editor-shell .canvas-node-video_prompt.selected {
  border-color: rgba(139, 216, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(139, 216, 250, 0.1), 0 30px 76px rgba(0, 0, 0, 0.56);
}

.xlf-canvas-editor-shell .canvas-video-prompt-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: 112px auto minmax(0, 1fr) auto auto;
  gap: 8px;
  overflow: hidden;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px dashed rgba(139, 216, 250, 0.28);
  border-radius: 5px;
  background: rgba(139, 216, 250, 0.025);
  color: #dce8e5;
  cursor: pointer;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop:hover,
.xlf-canvas-editor-shell .canvas-video-prompt-drop.has-source {
  border-style: solid;
  border-color: rgba(139, 216, 250, 0.42);
  background: rgba(139, 216, 250, 0.045);
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop > span,
.xlf-canvas-editor-shell .canvas-video-prompt-drop > video {
  width: 76px;
  height: 110px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-right: 1px solid rgba(239, 243, 237, 0.08);
  background: #050807;
  color: #8bd8fa;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop > span svg {
  width: 28px;
  height: 28px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding-right: 10px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop strong,
.xlf-canvas-editor-shell .canvas-video-prompt-drop small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop strong {
  color: #e8eeeb;
  font-size: 12px;
  font-weight: 630;
}

.xlf-canvas-editor-shell .canvas-video-prompt-drop small {
  color: #85918b;
  font-size: 10px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-controls label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #9ba7a1;
  font-size: 9px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-controls select {
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(236, 242, 238, 0.11);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  color: #e8eeeb;
  font-size: 10px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-run {
  min-width: 78px;
  height: 32px;
  border: 1px solid rgba(139, 216, 250, 0.52);
  border-radius: 4px;
  background: #8bd8fa;
  color: #061016;
  font-size: 10px;
  font-weight: 700;
}

.xlf-canvas-editor-shell .canvas-video-prompt-run:hover:not(:disabled) {
  background: #b4e8ff;
  transform: translateY(-1px);
}

.xlf-canvas-editor-shell .canvas-video-prompt-run:disabled {
  border-color: rgba(236, 242, 238, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #67716c;
}

.xlf-canvas-editor-shell .canvas-video-prompt-result {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(236, 242, 238, 0.07);
  border-bottom: 1px solid rgba(236, 242, 238, 0.07);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(139, 216, 250, 0.4);
}

.xlf-canvas-editor-shell .canvas-video-prompt-result > span {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-result svg {
  width: 26px;
  height: 26px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-result small {
  color: #6f7974;
  font-size: 10px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-result pre {
  width: 100%;
  height: 100%;
  max-height: 238px;
  margin: 0;
  padding: 10px 4px;
  overflow: auto;
  color: #dfe7e3;
  font: 11px/1.7 Inter, "Microsoft YaHei", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.xlf-canvas-editor-shell .canvas-video-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-actions button {
  min-height: 31px;
  border: 1px solid rgba(236, 242, 238, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  color: #cbd4cf;
  font-size: 10px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-actions button:last-child {
  border-color: rgba(255, 128, 100, 0.36);
  color: #ff9b84;
}

.xlf-canvas-editor-shell .canvas-video-prompt-actions button:hover:not(:disabled) {
  border-color: rgba(139, 216, 250, 0.48);
  color: #f2f5f2;
}

.xlf-canvas-editor-shell .canvas-video-prompt-summary {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px;
  overflow: hidden;
}

.xlf-canvas-editor-shell .canvas-video-prompt-summary > video,
.xlf-canvas-editor-shell .canvas-video-prompt-summary > .canvas-result-placeholder {
  width: 100%;
  min-height: 0;
  height: 428px;
  object-fit: cover;
  border-radius: 4px;
  background: #050807;
}

.xlf-canvas-editor-shell .canvas-video-prompt-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-summary strong,
.xlf-canvas-editor-shell .canvas-video-prompt-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xlf-canvas-editor-shell .canvas-video-prompt-summary strong {
  color: #e5ebe8;
  font-size: 11px;
}

.xlf-canvas-editor-shell .canvas-video-prompt-summary small {
  color: #7f8a84;
  font-size: 9px;
}

/* Unified secondary workspace */
.xlf-workspace-shell {
  --bg: #050605;
  --panel: #0d0f0e;
  --panel-soft: #111412;
  --text: #f3f4ef;
  --muted: #818982;
  --line: rgba(239, 243, 237, 0.12);
  --line-strong: rgba(239, 243, 237, 0.24);
  --accent: var(--xlf-coral);
  --accent-strong: #ff9a82;
  --danger: #ff8064;
  overflow: visible;
}

.xlf-workspace-main {
  position: relative;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  padding: 58px clamp(24px, 5vw, 76px) 104px;
  background: #030605;
}

.xlf-workspace-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(139, 216, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 216, 250, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
}

.xlf-workspace-atmosphere {
  position: fixed;
  inset: 68px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.xlf-workspace-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.88;
}

.xlf-workspace-particle-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 5, 0.62), transparent 22%, transparent 78%, rgba(3, 6, 5, 0.58)),
    linear-gradient(180deg, rgba(3, 6, 5, 0.08), transparent 34%, rgba(3, 6, 5, 0.86));
}

.xlf-workspace-content {
  position: relative;
  z-index: 1;
  width: min(1640px, 100%);
  margin: 0 auto;
}

.xlf-workspace-shell .center-hero {
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 28px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--xlf-line);
  text-align: left;
}

.xlf-workspace-shell .center-hero h1,
.xlf-workspace-shell .canvas-projects-head h1 {
  margin: 0;
  color: var(--xlf-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.xlf-workspace-shell .center-hero p,
.xlf-workspace-shell .canvas-projects-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--xlf-muted);
  font-size: 12px;
  line-height: 1.7;
}

.xlf-workspace-shell .center-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 128, 100, 0.34);
  border-radius: 6px;
  background: rgba(255, 128, 100, 0.07);
  color: var(--xlf-coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.xlf-workspace-shell .canvas-projects-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.xlf-workspace-shell .canvas-projects-head {
  align-items: flex-end;
  min-height: 0;
  gap: 32px;
  margin: 0;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--xlf-line);
}

.xlf-workspace-shell .canvas-projects-head .small-label,
.xlf-workspace-shell .surface-heading .small-label {
  color: var(--xlf-coral);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.xlf-workspace-shell .canvas-project-new,
.xlf-workspace-shell .primary-button {
  min-height: 42px;
  border: 1px solid rgba(255, 128, 100, 0.7);
  border-radius: 6px;
  background: var(--xlf-coral);
  color: #150906;
  box-shadow: 0 0 24px rgba(255, 128, 100, 0.13);
}

.xlf-workspace-shell .canvas-project-new:hover,
.xlf-workspace-shell .primary-button:hover {
  border-color: #ffab98;
  background: #ff947b;
  transform: translateY(-1px);
}

.xlf-workspace-shell .canvas-projects-toolbar {
  min-height: 74px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(239, 243, 237, 0.08);
}

.xlf-workspace-shell .canvas-project-search {
  width: min(430px, 100%);
  border-color: var(--xlf-line);
  border-radius: 6px;
  background: rgba(9, 12, 11, 0.78);
}

.xlf-workspace-shell .canvas-project-search:focus-within {
  border-color: rgba(255, 128, 100, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 128, 100, 0.1);
}

.xlf-workspace-shell .canvas-project-search svg {
  color: var(--xlf-coral);
}

.xlf-workspace-shell .canvas-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}

.xlf-workspace-shell .canvas-project-card {
  min-height: 286px;
  overflow: hidden;
  border: 1px solid var(--xlf-line);
  border-radius: 6px;
  background: rgba(11, 14, 13, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

.xlf-workspace-shell .canvas-project-card:hover {
  border-color: rgba(139, 216, 250, 0.42);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3), 0 0 30px rgba(80, 165, 212, 0.06);
  transform: translateY(-3px);
}

.xlf-workspace-shell .canvas-project-open {
  grid-template-rows: 206px auto;
}

.xlf-workspace-shell .canvas-project-preview {
  border-bottom-color: rgba(239, 243, 237, 0.1);
  background: #070a0a;
}

.xlf-workspace-shell .canvas-project-preview.is-map,
.xlf-workspace-shell .canvas-project-preview.is-empty {
  background-image:
    radial-gradient(circle, rgba(131, 205, 237, 0.28) 0 1px, transparent 1.3px),
    radial-gradient(ellipse at 50% 0, rgba(80, 165, 212, 0.13), transparent 62%);
  background-size: 20px 20px, 100% 100%;
}

.xlf-workspace-shell .canvas-project-card.canvas-project-create {
  border-color: rgba(255, 128, 100, 0.28);
  background: linear-gradient(145deg, rgba(255, 128, 100, 0.045), rgba(80, 165, 212, 0.035));
}

.xlf-workspace-shell .canvas-project-card.canvas-project-create .canvas-project-create-icon {
  border-color: rgba(255, 128, 100, 0.36);
  background: rgba(255, 128, 100, 0.08);
  color: var(--xlf-coral);
}

.xlf-workspace-shell .canvas-project-card-body {
  background: rgba(8, 10, 9, 0.92);
}

.xlf-workspace-shell .canvas-project-card-body > strong {
  color: var(--xlf-text);
}

.xlf-workspace-shell .canvas-project-meta,
.xlf-workspace-shell .canvas-projects-toolbar > span {
  color: var(--xlf-muted);
}

.xlf-workspace-shell .canvas-project-actions .icon-button {
  border-color: var(--xlf-line);
  background: rgba(5, 7, 6, 0.88);
  color: #b8c0ba;
}

.xlf-workspace-shell .canvas-project-actions .icon-button:hover {
  border-color: rgba(255, 128, 100, 0.48);
  color: var(--xlf-coral);
}

.xlf-workspace-shell .overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.xlf-workspace-shell .metric-tile {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid var(--xlf-line);
  border-radius: 6px;
  background: rgba(12, 15, 14, 0.86);
}

.xlf-workspace-shell .metric-tile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--xlf-coral), rgba(139, 216, 250, 0.5), transparent 76%);
}

.xlf-workspace-shell .metric-tile span {
  color: var(--xlf-muted);
}

.xlf-workspace-shell .metric-tile strong {
  color: var(--xlf-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.xlf-workspace-shell .wide-panel,
.xlf-workspace-shell .workspace-panel,
.xlf-workspace-shell .token-panel {
  border: 1px solid var(--xlf-line);
  border-radius: 6px;
  background: rgba(12, 15, 14, 0.9);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
}

.xlf-workspace-shell .surface-heading {
  border-bottom-color: rgba(239, 243, 237, 0.09);
}

.xlf-workspace-shell .surface-heading h2 {
  color: var(--xlf-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.xlf-workspace-shell .account-security-panel,
.xlf-workspace-shell .admin-access-panel {
  grid-column: 1 / -1;
}

.xlf-workspace-shell .admin-access-button {
  flex: 0 0 auto;
  min-width: 168px;
}

.xlf-workspace-shell .account-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.xlf-workspace-shell .account-security-copy {
  display: grid;
  gap: 7px;
}

.xlf-workspace-shell .account-security-copy strong {
  color: var(--xlf-text);
  font-size: 17px;
}

.xlf-workspace-shell .account-security-copy span,
.xlf-workspace-shell .account-security-copy p {
  color: var(--xlf-muted);
}

.xlf-workspace-shell .account-security-copy p {
  margin: 0;
  line-height: 1.65;
}

.xlf-workspace-shell .account-logout-button {
  flex: 0 0 auto;
  min-width: 128px;
  border-color: rgba(255, 128, 100, 0.42);
  color: #ff9b84;
}

.xlf-workspace-shell .account-logout-button:hover {
  border-color: rgba(255, 128, 100, 0.78);
  background: rgba(255, 128, 100, 0.09);
  color: #ffc1b3;
}

.xlf-workspace-shell .secondary-button,
.xlf-workspace-shell .ghost-button,
.xlf-workspace-shell .chip {
  border-color: var(--xlf-line);
  border-radius: 5px;
  background: rgba(8, 11, 10, 0.82);
  color: #bcc2bd;
}

.xlf-workspace-shell .secondary-button:hover,
.xlf-workspace-shell .ghost-button:hover,
.xlf-workspace-shell .chip:hover {
  border-color: rgba(255, 128, 100, 0.46);
  color: var(--xlf-text);
}

.xlf-workspace-shell .history-filters .chip.active {
  border-color: rgba(255, 128, 100, 0.62);
  background: rgba(255, 128, 100, 0.1);
  color: #ff9b84;
}

.xlf-workspace-shell .history-summary-bar,
.xlf-workspace-shell .data-table {
  border-color: var(--xlf-line);
  background: rgba(8, 11, 10, 0.52);
}

.xlf-workspace-shell .table-row {
  border-color: rgba(239, 243, 237, 0.08);
}

.xlf-workspace-shell .table-row:not(.table-head):hover,
.xlf-workspace-shell .history-row.is-active {
  background: rgba(139, 216, 250, 0.035);
}

.xlf-workspace-shell .table-head {
  color: #9aa49d;
  background: rgba(255, 255, 255, 0.018);
}

.xlf-workspace-shell .table-link {
  color: #ff9b84;
}

.xlf-workspace-shell .status-chip.done,
.xlf-workspace-shell .pill.good {
  color: var(--xlf-mint);
}

.xlf-workspace-shell .status-chip.error {
  color: var(--xlf-coral);
}

.xlf-canvas-editor-shell {
  --canvas-bg: #020403;
  --canvas-panel: rgba(8, 11, 10, 0.95);
  --canvas-panel-strong: #0d100f;
  --canvas-line: rgba(236, 242, 238, 0.11);
  --canvas-line-strong: rgba(236, 242, 238, 0.22);
  --canvas-text: #f1f3ef;
  --canvas-muted: #7f8882;
  --canvas-cyan: #84e9ca;
  --canvas-amber: #e8c872;
  --canvas-coral: #ff8064;
  background: var(--canvas-bg);
  color-scheme: dark;
}

.xlf-canvas-editor-shell .canvas-shell,
.xlf-canvas-editor-shell .canvas-stage {
  background: var(--canvas-bg);
}

.xlf-canvas-editor-shell .canvas-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.xlf-canvas-editor-shell .canvas-atmosphere canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.xlf-canvas-editor-shell .canvas-grid {
  background-image:
    radial-gradient(circle, rgba(201, 226, 220, 0.24) 0 0.65px, transparent 1px),
    linear-gradient(rgba(236, 242, 238, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 242, 238, 0.018) 1px, transparent 1px);
  background-position: 13px 9px, 0 0, 0 0;
  background-size: 47px 53px, 94px 106px, 94px 106px;
  opacity: 0.25;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46));
  animation: xlf-canvas-field-drift 52s linear infinite;
}

.xlf-canvas-editor-shell .canvas-stage::before {
  border: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 3, 0.72), transparent 24%),
    linear-gradient(0deg, rgba(2, 4, 3, 0.5), transparent 18%);
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.42);
}

.xlf-canvas-editor-shell .canvas-stage::after {
  top: 0;
  bottom: 0;
  left: -28%;
  width: 28%;
  height: auto;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(134, 234, 204, 0.025), transparent);
  box-shadow: none;
  animation: xlf-canvas-spectral-pass 22s ease-in-out infinite;
}

.xlf-canvas-editor-shell .canvas-topbar {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  left: max(14px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(450px, 1.35fr) auto auto;
  align-items: stretch;
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(236, 242, 238, 0.12);
  border-radius: 7px;
  background: rgba(5, 8, 7, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px) saturate(115%);
}

.xlf-canvas-editor-shell .canvas-topbar-identity,
.xlf-canvas-editor-shell .canvas-actions,
.xlf-canvas-editor-shell .canvas-balance,
.xlf-canvas-editor-shell .canvas-center-controls,
.xlf-canvas-editor-shell .canvas-model-bar,
.xlf-canvas-editor-shell .canvas-status {
  position: static;
  width: auto;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.xlf-canvas-editor-shell .canvas-topbar-identity::after,
.xlf-canvas-editor-shell .canvas-actions::after,
.xlf-canvas-editor-shell .canvas-balance::after,
.xlf-canvas-editor-shell .canvas-dock::after {
  display: none;
}

.xlf-canvas-editor-shell .canvas-topbar-identity {
  justify-self: stretch;
  gap: 7px;
  padding: 4px 12px 4px 4px;
  border-right: 1px solid rgba(236, 242, 238, 0.09);
}

.xlf-canvas-editor-shell .canvas-back-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #a9b1ac;
}

.xlf-canvas-editor-shell .canvas-back-button:hover {
  border: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #f4f6f2;
}

.xlf-canvas-editor-shell .canvas-brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 128, 100, 0.3);
  border-radius: 5px;
  background: rgba(255, 128, 100, 0.075);
  color: var(--canvas-coral);
  box-shadow: inset 0 0 18px rgba(255, 128, 100, 0.035);
}

.xlf-canvas-editor-shell .canvas-brand-mark::after {
  display: none;
}

.xlf-canvas-editor-shell .canvas-topbar-title {
  gap: 2px;
  padding-inline: 6px;
}

.xlf-canvas-editor-shell .canvas-topbar-title span {
  color: var(--canvas-coral);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.xlf-canvas-editor-shell .canvas-topbar-title strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--canvas-text);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xlf-canvas-editor-shell .canvas-center-controls {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  padding: 0 12px;
  border-right: 1px solid rgba(236, 242, 238, 0.09);
}
.xlf-canvas-editor-shell .canvas-center-controls { position: relative; }

.xlf-canvas-editor-shell .canvas-model-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 0 5px;
}

.xlf-canvas-editor-shell .canvas-product-assets-button { height: 34px; padding: 0 12px; border: 1px solid rgba(255,128,100,.28); border-radius: 4px; background: rgba(255,128,100,.08); color: #ffd2c8; font-size: 11px; cursor: pointer; white-space: nowrap; }
.xlf-canvas-editor-shell .canvas-product-assets-button.locked { border-color: rgba(126,211,149,.42); background: rgba(126,211,149,.1); color: #c8f0d1; }
.xlf-canvas-editor-shell .canvas-product-assets-panel { position: absolute; z-index: 50; top: 48px; right: 12px; width: min(520px, calc(100vw - 32px)); max-height: min(680px, calc(100vh - 110px)); overflow: auto; padding: 16px; border: 1px solid rgba(236,242,238,.16); border-radius: 6px; background: rgba(13,17,15,.97); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.xlf-canvas-editor-shell .canvas-product-assets-head, .xlf-canvas-editor-shell .canvas-product-asset-row { display: flex; align-items: center; gap: 10px; }
.xlf-canvas-editor-shell .canvas-product-assets-head { justify-content: space-between; margin-bottom: 12px; }
.xlf-canvas-editor-shell .canvas-product-assets-head small, .xlf-canvas-editor-shell .canvas-product-asset-row small { display: block; color: #9da8a0; font-size: 11px; margin-top: 3px; }
.xlf-canvas-editor-shell .canvas-product-assets-head button, .xlf-canvas-editor-shell .canvas-product-asset-row button { border: 0; background: transparent; color: #aeb8b0; font-size: 18px; cursor: pointer; }
.xlf-canvas-editor-shell .canvas-product-name { display: grid; gap: 5px; color: #cbd4cd; font-size: 11px; margin-bottom: 12px; }
.xlf-canvas-editor-shell .canvas-product-name input { height: 34px; padding: 0 9px; border: 1px solid rgba(236,242,238,.14); border-radius: 4px; background: rgba(255,255,255,.04); color: #f5f7f3; }
.xlf-canvas-editor-shell .canvas-product-asset-list { display: grid; gap: 8px; margin-bottom: 12px; }
.xlf-canvas-editor-shell .canvas-product-asset-row { min-height: 58px; padding: 7px; border: 1px solid rgba(236,242,238,.1); border-radius: 4px; background: rgba(255,255,255,.025); }
.xlf-canvas-editor-shell .canvas-product-asset-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; background: rgba(255,255,255,.06); }
.xlf-canvas-editor-shell .canvas-product-asset-row > div { flex: 1; min-width: 0; }
.xlf-canvas-editor-shell .canvas-product-replace { color: #b9c3bb; font-size: 10px; cursor: pointer; }
.xlf-canvas-editor-shell .canvas-product-replace input { display: block; width: 90px; font-size: 9px; }
.xlf-canvas-editor-shell .canvas-product-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.xlf-canvas-editor-shell .canvas-product-upload-grid label { display: grid; gap: 4px; padding: 8px; border: 1px dashed rgba(236,242,238,.16); border-radius: 4px; color: #b7c1b9; font-size: 10px; }
.xlf-canvas-editor-shell .canvas-product-upload-grid input { width: 100%; font-size: 9px; }
.xlf-canvas-editor-shell .canvas-product-lock, .xlf-canvas-editor-shell .canvas-product-unlock { width: 100%; height: 34px; border: 1px solid rgba(126,211,149,.35); border-radius: 4px; background: rgba(126,211,149,.1); color: #c8f0d1; cursor: pointer; font-size: 11px; }
.xlf-canvas-editor-shell .canvas-product-unlock { margin-top: 8px; border-color: rgba(255,194,114,.35); background: rgba(255,194,114,.1); color: #ffe0af; }

.xlf-canvas-editor-shell .canvas-model-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0;
}

.xlf-canvas-editor-shell .canvas-model-field > span {
  color: #aab2ad;
  font-size: 10px;
  font-weight: 620;
}

.xlf-canvas-editor-shell .canvas-model-field > span svg {
  width: 13px;
  height: 13px;
}

.xlf-canvas-editor-shell .canvas-model-field select {
  width: 100%;
  height: 34px;
  padding: 0 26px 0 9px;
  border: 1px solid rgba(236, 242, 238, 0.11);
  border-radius: 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.025);
  color: #f0f3ef;
  font-size: 12px;
  font-weight: 600;
  color-scheme: dark;
}

.xlf-canvas-editor-shell .canvas-model-field select:hover,
.xlf-canvas-editor-shell .canvas-model-field select:focus {
  border-color: rgba(134, 234, 204, 0.36);
  background: rgba(134, 234, 204, 0.035);
}

.xlf-canvas-editor-shell .canvas-model-apply {
  height: 34px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(134, 234, 204, 0.26);
  border-radius: 4px;
  background: rgba(134, 234, 204, 0.07);
  color: #d6f7ec;
  font-size: 11px;
  font-weight: 680;
}

.xlf-canvas-editor-shell .canvas-model-apply:hover:not(:disabled) {
  border-color: rgba(134, 234, 204, 0.5);
  background: rgba(134, 234, 204, 0.12);
  color: #effff9;
}

.xlf-canvas-editor-shell .canvas-status {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 5px 2px 0;
  border-top: 1px solid rgba(236, 242, 238, 0.07);
}

.xlf-canvas-editor-shell .canvas-status::before {
  width: 5px;
  height: 5px;
  margin-left: 2px;
  box-shadow: 0 0 10px rgba(232, 200, 114, 0.3);
}

.xlf-canvas-editor-shell .canvas-status span {
  display: none;
}

.xlf-canvas-editor-shell .canvas-status strong {
  overflow: hidden;
  color: #a8b0ab;
  font-size: 11px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xlf-canvas-editor-shell .canvas-actions {
  justify-self: stretch;
  align-self: stretch;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-right: 1px solid rgba(236, 242, 238, 0.09);
}

.xlf-canvas-editor-shell .canvas-actions > :is(button, a) {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b0b8b3;
  font-size: 11px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}

.xlf-canvas-editor-shell .canvas-actions > :is(button, a) svg {
  width: 14px;
  height: 14px;
}

.xlf-canvas-editor-shell .canvas-actions > :is(button, a):hover:not(:disabled) {
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #f0f3ef;
}

.xlf-canvas-editor-shell .canvas-actions .primary-button {
  border: 1px solid rgba(255, 128, 100, 0.3);
  background: rgba(255, 128, 100, 0.085);
  color: #ffc2b4;
}

.xlf-canvas-editor-shell .canvas-actions .primary-button:hover:not(:disabled) {
  border: 1px solid rgba(255, 128, 100, 0.52);
  background: rgba(255, 128, 100, 0.15);
  color: #fff0ec;
}

.xlf-canvas-editor-shell .canvas-actions > :disabled {
  opacity: 0.28;
}

.xlf-canvas-editor-shell .canvas-balance {
  align-self: stretch;
  justify-self: stretch;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 10px 0 14px;
  color: #7f8882;
}

.xlf-canvas-editor-shell .canvas-balance svg {
  width: 15px;
  height: 15px;
  color: var(--canvas-amber);
}

.xlf-canvas-editor-shell .canvas-balance span {
  color: #a1aaa4;
  font-size: 11px;
}

.xlf-canvas-editor-shell .canvas-balance strong {
  color: var(--canvas-cyan);
  font-size: 13px;
  font-weight: 680;
}

.xlf-canvas-editor-shell .canvas-edge-shadow {
  stroke: rgba(0, 0, 0, 0.72);
  stroke-width: 5;
}

.xlf-canvas-editor-shell .canvas-edge-line {
  stroke: rgba(164, 224, 209, 0.48);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 3px rgba(134, 234, 204, 0.16));
}

.xlf-canvas-editor-shell .canvas-edge-flow {
  stroke: rgba(221, 247, 239, 0.68);
  stroke-width: 1.1;
  stroke-dasharray: 1 15;
  opacity: 0.48;
  filter: drop-shadow(0 0 3px rgba(134, 234, 204, 0.34));
  animation-duration: 1.8s;
}

.xlf-canvas-editor-shell .canvas-edge-layer g.refinement-branch-edge .canvas-edge-line {
  stroke: rgba(255, 184, 120, 0.72);
  stroke-dasharray: 7 6;
}

.xlf-canvas-editor-shell .canvas-edge-layer g.refinement-branch-edge .canvas-edge-flow {
  stroke: rgba(255, 224, 182, 0.86);
  stroke-dasharray: 2 12;
}

.xlf-canvas-editor-shell .canvas-node-refinement {
  display: grid;
  grid-template-rows: auto 1fr;
  border-color: rgba(255, 184, 120, 0.38);
  background: rgba(17, 12, 8, 0.96);
}

.xlf-canvas-editor-shell .canvas-refinement-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
}

.xlf-canvas-editor-shell .canvas-refinement-summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 184, 120, 0.42);
  border-radius: 5px;
  color: #ffc48b;
}

.xlf-canvas-editor-shell .canvas-refinement-summary-icon svg { width: 19px; height: 19px; }
.xlf-canvas-editor-shell .canvas-refinement-summary div { min-width: 0; display: grid; gap: 4px; }
.xlf-canvas-editor-shell .canvas-refinement-summary strong { color: #f7e4d3; font-size: 13px; }
.xlf-canvas-editor-shell .canvas-refinement-summary small { color: #b99d87; font-size: 10px; }

.xlf-canvas-editor-shell .canvas-refinement-panel {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 14px;
  overflow: auto;
}

.xlf-canvas-editor-shell .canvas-refinement-source { display: grid; gap: 3px; }
.xlf-canvas-editor-shell .canvas-refinement-source small,
.xlf-canvas-editor-shell .canvas-refinement-source span { color: #a8907d; font-size: 10px; }
.xlf-canvas-editor-shell .canvas-refinement-source strong { overflow: hidden; color: #f4e1d0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.xlf-canvas-editor-shell .canvas-refinement-models { display: flex; flex-wrap: wrap; gap: 5px; }
.xlf-canvas-editor-shell .canvas-refinement-models span { padding: 4px 6px; border: 1px solid rgba(255, 184, 120, 0.22); border-radius: 3px; color: #d8b79b; font-size: 9px; }
.xlf-canvas-editor-shell .canvas-refinement-models .locked { border-color: rgba(117, 214, 174, 0.35); color: #8dd9b6; }
.xlf-canvas-editor-shell .canvas-refinement-status { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center; }
.xlf-canvas-editor-shell .canvas-refinement-status strong { color: #f0d1b5; font-size: 11px; }
.xlf-canvas-editor-shell .canvas-refinement-status > span { color: #ffc48b; font-size: 11px; }
.xlf-canvas-editor-shell .canvas-refinement-status > div { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.xlf-canvas-editor-shell .canvas-refinement-status i { display: block; height: 100%; border-radius: inherit; background: #e7a36d; transition: width .25s ease; }
.xlf-canvas-editor-shell .canvas-refinement-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.xlf-canvas-editor-shell .canvas-refinement-metrics span { display: grid; gap: 3px; padding: 7px 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 3px; }
.xlf-canvas-editor-shell .canvas-refinement-metrics small { color: #988575; font-size: 9px; }
.xlf-canvas-editor-shell .canvas-refinement-metrics strong { color: #f1d7c0; font-size: 13px; }
.xlf-canvas-editor-shell .canvas-refinement-error { margin: 0; padding: 8px; border: 1px solid rgba(255, 128, 100, .34); color: #ffae98; font-size: 10px; line-height: 1.5; }
.xlf-canvas-editor-shell .canvas-refinement-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.xlf-canvas-editor-shell .canvas-refinement-actions button { min-height: 29px; padding: 0 9px; border: 1px solid rgba(255, 184, 120, .3); border-radius: 4px; background: rgba(255,255,255,.03); color: #e8cdb7; font-size: 10px; }
.xlf-canvas-editor-shell .canvas-refinement-actions button.danger { border-color: rgba(255, 128, 100, .42); color: #ffac96; }
.xlf-canvas-editor-shell .canvas-refinement-inline-action { min-height: 29px; border: 1px solid rgba(255, 184, 120, .34); border-radius: 4px; background: rgba(255, 184, 120, .08); color: #f1c39c; font-size: 10px; }
.xlf-canvas-editor-shell .canvas-refinement-inline-action:disabled { opacity: .5; }

.xlf-canvas-editor-shell .canvas-edge-layer g.selected .canvas-edge-line {
  stroke: rgba(255, 151, 126, 0.86);
  stroke-width: 2;
}

.xlf-canvas-editor-shell .canvas-edge-layer g.selected .canvas-edge-flow {
  stroke: #ffe0d8;
  stroke-width: 1.4;
  opacity: 0.88;
  filter: drop-shadow(0 0 4px rgba(255, 128, 100, 0.48));
}

.xlf-canvas-editor-shell .canvas-edge-remove {
  opacity: 0;
}

.xlf-canvas-editor-shell .canvas-edge-layer g:hover .canvas-edge-remove,
.xlf-canvas-editor-shell .canvas-edge-layer g.selected .canvas-edge-remove {
  opacity: 0.86;
}

.xlf-canvas-editor-shell .canvas-edge-remove circle {
  fill: #070a09;
  stroke: rgba(255, 128, 100, 0.5);
  stroke-width: 1;
}

.xlf-canvas-editor-shell .canvas-edge-remove text {
  fill: #d8ddd9;
  font-size: 9px;
  font-weight: 620;
}

.xlf-canvas-editor-shell .canvas-node {
  gap: 8px;
  padding: 9px;
  overflow: visible;
  border: 1px solid rgba(236, 242, 238, 0.16);
  border-radius: 6px;
  background: rgba(7, 10, 9, 0.95);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.02);
  animation: none;
}

.xlf-canvas-editor-shell .canvas-node::before {
  top: -1px;
  right: 9px;
  left: 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--node-accent-rgb), 0.7), transparent);
  opacity: 0.34;
}

.xlf-canvas-editor-shell .canvas-node::after {
  display: none;
}

.xlf-canvas-editor-shell .canvas-node:hover {
  border-color: rgba(236, 242, 238, 0.3);
  background: rgba(9, 12, 11, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 28px rgba(var(--node-accent-rgb), 0.045);
  transform: translateY(-1px);
}

.xlf-canvas-editor-shell .canvas-node.selected {
  border-color: rgba(134, 234, 204, 0.72);
  background: rgba(9, 12, 11, 0.98);
  box-shadow: 0 0 0 1px rgba(134, 234, 204, 0.1), 0 30px 76px rgba(0, 0, 0, 0.56);
  animation: none;
}

.xlf-canvas-editor-shell .canvas-node.is-busy {
  isolation: isolate;
  border-color: rgba(var(--node-accent-rgb), 0.52);
  box-shadow:
    0 0 0 1px rgba(var(--node-accent-rgb), 0.08),
    0 26px 72px rgba(0, 0, 0, 0.54),
    0 0 38px rgba(var(--node-accent-rgb), 0.08);
  animation: xlf-canvas-busy-presence 3.8s ease-in-out infinite;
}

.xlf-canvas-editor-shell .canvas-node.is-busy::before {
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--node-accent-rgb), 0.95), transparent);
  opacity: 0.82;
  animation: xlf-canvas-busy-crown 2.6s ease-in-out infinite;
}

.xlf-canvas-editor-shell .canvas-node-process {
  position: absolute;
  z-index: 6;
  inset: -1px;
  overflow: hidden;
  border-radius: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(var(--node-accent-rgb), 0.1), transparent 36%),
    linear-gradient(180deg, rgba(3, 6, 5, 0.2), rgba(3, 6, 5, 0.64));
}

.xlf-canvas-editor-shell .canvas-node-process::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(var(--node-accent-rgb), 0.09), rgba(var(--node-accent-rgb), 0.015), transparent);
  filter: blur(2px);
  animation: xlf-canvas-busy-scan 4.6s cubic-bezier(0.55, 0.08, 0.35, 0.96) infinite;
}

.xlf-canvas-editor-shell .canvas-process-edge {
  position: absolute;
  display: block;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--node-accent-rgb), 0.32), rgba(var(--node-accent-rgb), 0.98), transparent);
  box-shadow: 0 0 12px rgba(var(--node-accent-rgb), 0.46);
  animation: xlf-canvas-busy-edge 3.6s cubic-bezier(0.52, 0.08, 0.28, 0.98) infinite;
}

.xlf-canvas-editor-shell .canvas-process-edge.edge-top,
.xlf-canvas-editor-shell .canvas-process-edge.edge-bottom {
  width: 44%;
  height: 1px;
  transform: scaleX(0.15);
}

.xlf-canvas-editor-shell .canvas-process-edge.edge-right,
.xlf-canvas-editor-shell .canvas-process-edge.edge-left {
  width: 1px;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(var(--node-accent-rgb), 0.32), rgba(var(--node-accent-rgb), 0.98), transparent);
  transform: scaleY(0.15);
}

.xlf-canvas-editor-shell .canvas-process-edge.edge-top {
  top: 0;
  left: 0;
  transform-origin: left center;
}

.xlf-canvas-editor-shell .canvas-process-edge.edge-right {
  top: 0;
  right: 0;
  transform-origin: center top;
  animation-delay: 0.9s;
}

.xlf-canvas-editor-shell .canvas-process-edge.edge-bottom {
  right: 0;
  bottom: 0;
  transform-origin: right center;
  animation-delay: 1.8s;
}

.xlf-canvas-editor-shell .canvas-process-edge.edge-left {
  bottom: 0;
  left: 0;
  transform-origin: center bottom;
  animation-delay: 2.7s;
}

.xlf-canvas-editor-shell .canvas-process-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(82%, 220px);
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #f0f3ef;
  text-align: center;
  transform: translate(-50%, -50%);
}

.xlf-canvas-editor-shell .canvas-process-copy strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(var(--node-accent-rgb), 0.18);
}

.xlf-canvas-editor-shell .canvas-process-copy small {
  color: #aab3ad;
  font-size: 10px;
  line-height: 1.4;
}

.xlf-canvas-editor-shell .canvas-process-signal {
  height: 15px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.xlf-canvas-editor-shell .canvas-process-signal i {
  width: 2px;
  height: 6px;
  border-radius: 1px;
  background: rgba(var(--node-accent-rgb), 0.92);
  box-shadow: 0 0 8px rgba(var(--node-accent-rgb), 0.5);
  animation: xlf-canvas-busy-signal 1.35s ease-in-out infinite;
}

.xlf-canvas-editor-shell .canvas-process-signal i:nth-child(2) {
  animation-delay: 0.16s;
}

.xlf-canvas-editor-shell .canvas-process-signal i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes xlf-canvas-busy-presence {
  0%, 100% { box-shadow: 0 0 0 1px rgba(var(--node-accent-rgb), 0.07), 0 26px 72px rgba(0, 0, 0, 0.54), 0 0 30px rgba(var(--node-accent-rgb), 0.055); }
  50% { box-shadow: 0 0 0 1px rgba(var(--node-accent-rgb), 0.12), 0 30px 78px rgba(0, 0, 0, 0.58), 0 0 48px rgba(var(--node-accent-rgb), 0.12); }
}

@keyframes xlf-canvas-busy-crown {
  0%, 100% { opacity: 0.36; transform: scaleX(0.45); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

@keyframes xlf-canvas-busy-scan {
  0% { top: -34%; opacity: 0; }
  16% { opacity: 0.65; }
  68% { opacity: 0.28; }
  100% { top: 104%; opacity: 0; }
}

@keyframes xlf-canvas-busy-edge {
  0%, 72%, 100% { opacity: 0; }
  7% { opacity: 0.22; }
  18% { opacity: 1; transform: scale(1); }
  28% { opacity: 0; transform: scale(0.18); }
}

@keyframes xlf-canvas-busy-signal {
  0%, 100% { height: 5px; opacity: 0.42; }
  50% { height: 14px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .xlf-canvas-editor-shell .canvas-node.is-busy,
  .xlf-canvas-editor-shell .canvas-node.is-busy::before,
  .xlf-canvas-editor-shell .canvas-node-process::before,
  .xlf-canvas-editor-shell .canvas-process-edge,
  .xlf-canvas-editor-shell .canvas-process-signal i {
    animation: none;
  }

  .xlf-canvas-editor-shell .canvas-process-edge {
    opacity: 0.45;
    transform: none;
  }
}

.xlf-canvas-editor-shell .canvas-node.collapsed,
.xlf-canvas-editor-shell .canvas-node.canvas-node-image,
.xlf-canvas-editor-shell .canvas-node.canvas-node-video {
  border-color: rgba(236, 242, 238, 0.15);
  background: rgba(7, 10, 9, 0.95);
}

.xlf-canvas-editor-shell .canvas-node-title {
  min-height: 22px;
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(236, 242, 238, 0.065);
}

.xlf-canvas-editor-shell .canvas-node-title span {
  gap: 6px;
  color: #e0e4e1;
  font-size: 12px;
  font-weight: 640;
}

.xlf-canvas-editor-shell .canvas-node-title i {
  width: 14px;
  height: 14px;
  color: var(--node-accent);
}

.xlf-canvas-editor-shell .canvas-node.canvas-node-image .canvas-media-result,
.xlf-canvas-editor-shell .canvas-node.canvas-node-video .canvas-media-result,
.xlf-canvas-editor-shell .canvas-node.selected.canvas-node-image .canvas-media-result,
.xlf-canvas-editor-shell .canvas-node.selected.canvas-node-video .canvas-media-result,
.xlf-canvas-editor-shell .canvas-result,
.xlf-canvas-editor-shell .canvas-node-body {
  position: relative;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.012);
  box-shadow: none;
}

.xlf-canvas-editor-shell .canvas-result-placeholder {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: rgba(var(--node-accent-rgb), 0.34);
}

.xlf-canvas-editor-shell .canvas-result-placeholder::after {
  display: none;
}

.xlf-canvas-editor-shell .canvas-result-failure {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  background: rgba(5, 8, 7, 0.92);
  color: #f3f5f2;
  text-align: center;
  backdrop-filter: blur(10px);
}

.xlf-canvas-editor-shell .canvas-result-failure::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #ff8064;
  box-shadow: 0 0 12px rgba(255, 128, 100, 0.42);
}

.xlf-canvas-editor-shell .canvas-result-failure strong {
  font-size: 13px;
  font-weight: 680;
}

.xlf-canvas-editor-shell .canvas-result-failure small {
  max-width: 220px;
  overflow: hidden;
  color: #aeb6b1;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.xlf-canvas-editor-shell .canvas-result-failure button {
  min-height: 30px;
  margin-top: 3px;
  padding: 0 14px;
  border: 1px solid rgba(255, 128, 100, 0.45);
  border-radius: 4px;
  background: rgba(255, 128, 100, 0.09);
  color: #ffd3c8;
  font-size: 11px;
  font-weight: 650;
}

.xlf-canvas-editor-shell .canvas-result-failure button:hover:not(:disabled) {
  border-color: rgba(255, 128, 100, 0.8);
  background: rgba(255, 128, 100, 0.16);
  color: #ffffff;
}

.xlf-canvas-editor-shell .canvas-result-placeholder svg {
  width: 26px;
  height: 26px;
}

.xlf-canvas-editor-shell .canvas-port {
  position: absolute;
  z-index: 20;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
  width: 12px;
  height: 12px;
  min-height: 12px;
  border: 2px solid #030605;
  border-radius: 999px;
  background: var(--canvas-cyan);
  cursor: crosshair;
  box-shadow: 0 0 0 1px rgba(134, 234, 204, 0.44), 0 0 10px rgba(134, 234, 204, 0.18);
}

.xlf-canvas-editor-shell .canvas-port-in {
  left: -6px;
}

.xlf-canvas-editor-shell .canvas-port-out {
  right: -6px;
  background: var(--canvas-coral);
  box-shadow: 0 0 0 1px rgba(255, 128, 100, 0.46), 0 0 10px rgba(255, 128, 100, 0.18);
}

.xlf-canvas-editor-shell .canvas-port::after {
  inset: -6px;
  border-color: currentColor;
  opacity: 0;
}

.xlf-canvas-editor-shell .canvas-node:hover .canvas-port::after,
.xlf-canvas-editor-shell .canvas-node.selected .canvas-port::after {
  animation-duration: 2.6s;
}

.xlf-canvas-editor-shell .canvas-floating-composer {
  max-width: min(680px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  gap: 11px;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-sizing: border-box;
  border: 1px solid rgba(var(--node-accent-rgb), 0.2);
  border-radius: 6px;
  background: rgba(7, 10, 9, 0.97);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.025);
}

.xlf-canvas-editor-shell .canvas-media-composer .canvas-prompt-editor-shell {
  min-height: 156px;
  max-height: min(620px, 55vh);
  padding: 12px;
  box-sizing: border-box;
  overflow: auto;
  resize: vertical;
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(var(--node-accent-rgb), 0.72) 4px 5px);
  background-position: right 4px bottom 4px;
  background-repeat: no-repeat;
  background-size: 17px 17px;
}

/* Keep the resizable prompt as the only scrollable area in media composers. */
.xlf-canvas-editor-shell .canvas-media-composer.canvas-floating-composer {
  max-height: none;
  overflow: visible;
  scrollbar-gutter: auto;
}

.xlf-canvas-editor-shell .canvas-reference-toolbar {
  align-items: flex-start;
  flex-wrap: wrap;
}

.xlf-canvas-editor-shell .canvas-reference-upload-options {
  min-width: 0;
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.xlf-canvas-editor-shell .canvas-reference-upload {
  white-space: nowrap;
}

.xlf-canvas-editor-shell .canvas-reference-list {
  min-width: 120px;
}

.xlf-canvas-editor-shell .canvas-reference-item {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.xlf-canvas-editor-shell .canvas-reference-item .canvas-reference-thumb {
  flex: 0 0 34px;
}

.xlf-canvas-editor-shell .canvas-reference-remove {
  position: absolute;
  z-index: 3;
  top: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  min-height: 17px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 128, 100, 0.9);
  border-radius: 50%;
  background: rgba(12, 8, 8, 0.96);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.45);
  transform: scale(0.82);
  transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.xlf-canvas-editor-shell .canvas-reference-item:hover .canvas-reference-remove,
.xlf-canvas-editor-shell .canvas-reference-item:focus-within .canvas-reference-remove {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.xlf-canvas-editor-shell .canvas-reference-remove:hover,
.xlf-canvas-editor-shell .canvas-reference-remove:focus-visible {
  border-color: #ff8064;
  background: #8d2f22;
  color: #ffffff;
}

@media (hover: none) {
  .xlf-canvas-editor-shell .canvas-reference-remove {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .xlf-canvas-editor-shell .canvas-floating-composer {
    max-width: calc(100vw - 20px);
    max-height: min(68vh, 540px);
    padding: 11px;
  }

  .xlf-canvas-editor-shell .canvas-media-composer .canvas-prompt-editor-shell {
    min-height: 132px;
  }
}

.xlf-canvas-editor-shell .canvas-prompt-editor-shell,
.xlf-canvas-editor-shell .canvas-node-editor,
.xlf-canvas-editor-shell .canvas-node-controls select {
  border-color: rgba(236, 242, 238, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: #f0f3ef;
  font-size: 12px;
  color-scheme: dark;
}

.xlf-canvas-editor-shell select option {
  background: #0b0e0d;
  color: #edf1ed;
  font-size: 12px;
}

.xlf-canvas-editor-shell select option:checked {
  background: #234239;
  color: #ffffff;
}

.xlf-canvas-editor-shell select option:disabled {
  background: #0b0e0d;
  color: #858e88;
}

.xlf-canvas-editor-shell .canvas-node-controls label,
.xlf-canvas-editor-shell .canvas-char-count,
.xlf-canvas-editor-shell .canvas-node-message {
  color: #a6aea9;
  font-size: 11px;
}

.xlf-canvas-editor-shell .canvas-prompt-editor-shell,
.xlf-canvas-editor-shell .canvas-node-editor,
.xlf-canvas-editor-shell .canvas-text-preview p {
  color: #e8ece9;
  font-size: 13px;
  line-height: 1.65;
}

.xlf-canvas-editor-shell .canvas-status.done strong {
  color: #aeb8b2;
}

.xlf-canvas-editor-shell .canvas-status.error strong {
  color: #ff9b84;
}

.xlf-canvas-editor-shell .canvas-dock {
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  min-height: 42px;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(236, 242, 238, 0.11);
  border-radius: 6px;
  background: rgba(5, 8, 7, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.xlf-canvas-editor-shell .canvas-dock span {
  min-width: 46px;
  padding-inline: 8px;
  border-right: 1px solid rgba(236, 242, 238, 0.08);
  color: #89928c;
  font-size: 10px;
}

.xlf-canvas-editor-shell .canvas-dock .icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b9c0bc;
}

.xlf-canvas-editor-shell .canvas-dock .icon-button:hover {
  border: 0;
  background: rgba(134, 234, 204, 0.07);
  color: var(--canvas-cyan);
}

@keyframes xlf-canvas-field-drift {
  from { background-position: 13px 9px, 0 0, 0 0; }
  to { background-position: 60px 62px, 94px 106px, 94px 106px; }
}

@keyframes xlf-canvas-spectral-pass {
  0%, 18% { left: -28%; opacity: 0; }
  28% { opacity: 0.6; }
  74% { opacity: 0.18; }
  82%, 100% { left: 100%; opacity: 0; }
}

@media (max-width: 1500px) {
  .xlf-canvas-editor-shell .canvas-topbar {
    grid-template-columns: minmax(180px, auto) minmax(420px, 1fr) auto;
  }

  .xlf-canvas-editor-shell .canvas-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    border-top: 1px solid rgba(236, 242, 238, 0.07);
    border-right: 0;
  }
}

@media (max-width: 840px) {
  .xlf-canvas-editor-shell .canvas-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .xlf-canvas-editor-shell .canvas-topbar-identity {
    border-right: 0;
  }

  .xlf-canvas-editor-shell .canvas-center-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid rgba(236, 242, 238, 0.07);
    border-right: 0;
  }

  .xlf-canvas-editor-shell .canvas-actions {
    grid-row: 3;
  }

  .xlf-canvas-editor-shell .canvas-model-bar {
    padding-top: 5px;
  }
}

@media (max-width: 560px) {
  .xlf-canvas-editor-shell .canvas-topbar {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
  }

  .xlf-canvas-editor-shell .canvas-brand-mark,
  .xlf-canvas-editor-shell .canvas-model-field > span,
  .xlf-canvas-editor-shell .canvas-actions span,
  .xlf-canvas-editor-shell .canvas-balance span {
    display: none;
  }

  .xlf-canvas-editor-shell .canvas-model-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .xlf-canvas-editor-shell .canvas-actions > :is(button, a) {
    flex: 1 1 0;
    padding-inline: 7px;
  }

  .xlf-canvas-editor-shell .canvas-dock {
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
  }
}

@media (max-width: 1080px) {
  .xlf-workspace-shell .canvas-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .xlf-app-shell:not(.xlf-public-shell) .xlf-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 62px;
    padding: 0 14px;
  }

  .xlf-app-shell:not(.xlf-public-shell) .xlf-brand {
    gap: 7px;
  }

  .xlf-app-shell:not(.xlf-public-shell) .xlf-brand strong {
    display: none;
  }

  .xlf-app-shell:not(.xlf-public-shell) .xlf-nav nav {
    display: flex;
    justify-self: center;
    gap: 16px;
  }

  .xlf-app-shell:not(.xlf-public-shell) .xlf-nav nav button {
    min-height: 62px;
    font-size: 11px;
  }

  .xlf-app-shell:not(.xlf-public-shell) .xlf-nav-actions {
    display: flex;
  }

  .xlf-app-shell:not(.xlf-public-shell) .xlf-nav-actions > :not(.xlf-user) {
    display: none;
  }

  .xlf-workspace-main {
    min-height: calc(100svh - 62px);
    padding: 34px 16px 88px;
  }

  .xlf-workspace-atmosphere {
    inset: 62px 0 0;
  }

  .xlf-workspace-shell .center-hero,
  .xlf-workspace-shell .canvas-projects-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 20px;
  }

  .xlf-workspace-shell .center-hero h1,
  .xlf-workspace-shell .canvas-projects-head h1 {
    font-size: 38px;
  }

  .xlf-workspace-shell .canvas-project-new {
    width: 100%;
    justify-content: center;
  }

  .xlf-workspace-shell .canvas-project-grid,
  .xlf-workspace-shell .overview-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .xlf-workspace-shell .canvas-project-card {
    min-height: 270px;
  }

  .xlf-workspace-shell .wide-panel {
    padding: 16px;
  }

  .xlf-workspace-shell .account-security-row {
    align-items: stretch;
    flex-direction: column;
  }

  .xlf-workspace-shell .account-logout-button,
  .xlf-workspace-shell .admin-access-button {
    width: 100%;
  }

  .xlf-workspace-shell .data-table {
    overflow-x: auto;
  }

  .xlf-workspace-shell .history-row {
    min-width: 1040px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xlf-workspace-particle-canvas {
    opacity: 0.62;
  }
}
.qishi-brand-logo {
  display: block;
  width: 118px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(35, 122, 255, 0.2));
}

.xlf-brand .qishi-brand-logo-nav {
  width: 118px;
  height: 42px;
}

.auth-brand .qishi-brand-logo-auth {
  width: clamp(158px, 15vw, 206px);
  height: auto;
  max-height: 78px;
}

.brand .qishi-brand-logo-sidebar {
  width: 126px;
  height: 46px;
}

.sidebar-collapsed .brand .qishi-brand-logo-sidebar {
  width: 34px;
  height: 34px;
  content: url("/qishi-ai-icon.png?v=brand-qishi-v1");
  border-radius: 8px;
}

.xlf-canvas-editor-shell .canvas-brand-logo {
  width: 96px;
  height: 36px;
  flex: 0 0 96px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 760px) {
  .xlf-brand .qishi-brand-logo-nav {
    width: 92px;
    height: 36px;
  }

  .xlf-canvas-editor-shell .canvas-brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    content: url("/qishi-ai-icon.png?v=brand-qishi-v1");
    border-radius: 8px;
  }
}
.canvas-storyboard-reference-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.canvas-storyboard-reference-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 6px;
  border: 1px solid rgba(239, 243, 237, 0.12);
  border-radius: 6px;
  background: rgba(8, 11, 10, 0.76);
}

.canvas-storyboard-reference-preview {
  display: grid;
  width: 44px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #aeb7b0;
}

.canvas-storyboard-reference-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canvas-storyboard-reference-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.canvas-storyboard-reference-copy strong,
.canvas-storyboard-reference-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-storyboard-reference-copy small {
  color: #89928b;
}

.canvas-storyboard-reference-upload {
  position: relative;
  display: inline-flex;
  min-width: 54px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 216, 250, 0.32);
  border-radius: 5px;
  color: #bfe8fb;
  cursor: pointer;
}

.canvas-storyboard-reference-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
