:root {
  color-scheme: light;
  --bg: #f8f8f9;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #0f1115;
  --muted: #7b818c;
  --line: rgba(16, 24, 40, 0.08);
  --shadow: 0 20px 60px rgba(31, 35, 45, 0.08);
  --shadow-soft: 0 12px 32px rgba(31, 35, 45, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-ui: "MiSans", "HarmonyOS Sans SC", "OPPO Sans", "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 9% 19%, rgba(255, 214, 191, 0.22), transparent 24%),
    radial-gradient(circle at 91% 27%, rgba(205, 246, 232, 0.42), transparent 26%),
    linear-gradient(180deg, #fbfbfc 0%, #f7f8fa 100%);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}

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

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px 48px 46px;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 520;
  letter-spacing: 0;
}

.subtle-brand {
  color: #3e4654;
  font-size: 16px;
  font-weight: 420;
}

.brand-mark,
.avatar-orb {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 136, 112, 0.72), transparent 25%),
    radial-gradient(circle at 78% 38%, rgba(118, 190, 255, 0.7), transparent 31%),
    radial-gradient(circle at 44% 82%, rgba(95, 225, 180, 0.68), transparent 29%),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 30px rgba(65, 85, 115, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 6vw, 80px);
  font-size: 16px;
  font-weight: 420;
}

.nav-links a {
  border-radius: 999px;
  padding: 12px 4px;
}

.nav-links .is-active {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  padding-inline: 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.ghost-button,
.secondary-button,
.icon-button {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.avatar-orb {
  border: 0;
  cursor: pointer;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 430;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
}

.icon-button svg,
.flow-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.hero {
  position: relative;
  display: grid;
  min-height: 485px;
  place-items: center;
  padding-top: 16px;
}

.liquid-field {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.liquid-field::before {
  position: absolute;
  inset: 11% 7%;
  content: "";
  background:
    radial-gradient(circle at 42% 15%, rgba(255, 155, 128, 0.36), transparent 22%),
    radial-gradient(circle at 78% 33%, rgba(114, 189, 255, 0.34), transparent 24%),
    radial-gradient(circle at 74% 74%, rgba(111, 224, 182, 0.3), transparent 27%);
  filter: blur(34px);
  opacity: 0.9;
  animation: liquidGlow 8s ease-in-out infinite;
}

.liquid-field::after {
  position: absolute;
  content: "";
  inset: 8% 4%;
  border: 2px solid transparent;
  border-radius: 44% 56% 58% 42% / 44% 42% 58% 56%;
  background:
    linear-gradient(120deg, rgba(255, 162, 132, 0.5), rgba(255, 255, 255, 0.1) 27%, rgba(121, 192, 255, 0.42) 48%, rgba(104, 226, 177, 0.44) 72%, rgba(255, 255, 255, 0.28)) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: blur(0.6px) drop-shadow(0 12px 30px rgba(105, 153, 184, 0.12));
  animation: liquidBreathe 9s ease-in-out infinite;
}

.hero-liquid {
  top: 42px;
  width: min(920px, 74vw);
  height: 455px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(17, 24, 39, 0.48);
  font-size: 14px;
  font-weight: 420;
}

.hero h1 {
  margin: 0;
  color: #090a0d;
  font-size: clamp(58px, 7.3vw, 100px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 330;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 52px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 460;
}

.primary-button {
  gap: 26px;
  min-width: 170px;
  padding: 0 30px;
  background: #0b0b0c;
  color: white;
  box-shadow: 0 16px 36px rgba(3, 7, 18, 0.2);
}

.primary-button.is-disabled {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

.secondary-button {
  min-width: 136px;
  padding: 0 26px;
}

.workflow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) auto minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1140px, calc(100vw - 96px));
  margin: -8px auto 0;
}

.flow-card {
  display: flex;
  min-height: 108px;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px);
}

.flow-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.flow-icon.warm {
  background: rgba(255, 125, 62, 0.11);
  color: #ff743d;
}

.flow-icon.blue {
  background: rgba(61, 150, 255, 0.12);
  color: #418df2;
}

.flow-icon.mint {
  background: rgba(48, 210, 136, 0.13);
  color: #18b76e;
}

.flow-icon.violet {
  background: rgba(135, 95, 255, 0.12);
  color: #7757f4;
}

.flow-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 520;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 330;
}

.flow-arrow {
  color: #7f8793;
  font-size: 34px;
  line-height: 1;
}

.role-universe {
  position: relative;
  z-index: 3;
  width: min(1412px, calc(100vw - 160px));
  margin: 6px auto 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 620;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 330;
}

.section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #171a20;
  font-size: 15px;
  font-weight: 430;
}

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

.role-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: var(--tone);
  box-shadow: var(--shadow-soft);
}

.role-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.44) 32%, rgba(255, 255, 255, 0.06) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(15, 17, 21, 0.22));
  z-index: 1;
}

.role-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  transform: scale(1.02);
}

.role-info {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 24px 24px;
}

.role-info h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 620;
}

.role-info p {
  display: inline-flex;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(15, 17, 21, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #69707b;
  font-size: 13px;
  font-weight: 430;
}

.role-card a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(31, 35, 45, 0.1);
  font-size: 20px;
  font-weight: 800;
}

.role-grid .char-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: var(--tone, linear-gradient(160deg, #e9e9ee, #c9c6d4));
  box-shadow: 0 18px 44px rgba(42, 54, 76, 0.1);
}

.role-grid .char-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.role-grid .char-card .spark {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: #fff;
  font-size: 16px;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.role-grid .char-card .overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
  text-decoration: none;
}

.role-grid .char-card .overlay-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.role-grid .char-card .name {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.role-grid .char-card .meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
}

.role-grid .char-card .go {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .app-shell {
    padding: 24px;
  }

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

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .flow-arrow {
    display: none;
  }

  .role-universe {
    width: 100%;
  }

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

@media (max-width: 680px) {
  .app-shell {
    padding: 18px;
  }

  .brand {
    font-size: 20px;
  }

  .top-actions {
    gap: 10px;
  }

  .ghost-button {
    min-height: 42px;
    padding: 0 16px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  .hero {
    min-height: 420px;
  }

  .hero-liquid {
    width: 760px;
    max-width: none;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 34px;
  }

  .workflow,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .flow-card {
    min-height: 92px;
  }

  .role-card,
  .role-info {
    min-height: 190px;
  }
}

.button-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.create-shell {
  min-height: 100vh;
  padding-bottom: 32px;
}

.create-topbar .nav-links {
  visibility: hidden;
}

.create-stage {
  position: relative;
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: center;
  padding: 56px 0 80px;
}

.create-liquid {
  top: 0;
  width: min(1160px, 86vw);
  height: min(820px, 74vh);
}

.create-liquid::after {
  inset: 3% 2%;
  border-width: 3px;
  border-radius: 48% 52% 57% 43% / 45% 38% 62% 55%;
}

.create-content {
  position: relative;
  z-index: 2;
  width: min(990px, calc(100vw - 48px));
  text-align: center;
}

.create-content h1 {
  margin: 0;
  color: #181b22;
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 360;
  letter-spacing: 0;
}

.create-content > p {
  margin: 22px 0 72px;
  color: #89909d;
  font-size: 16px;
  font-weight: 300;
}

.prompt-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 176px;
  padding: 31px 34px 26px 42px;
  border: 1px solid rgba(144, 154, 170, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 28px 90px rgba(42, 54, 76, 0.08);
  backdrop-filter: blur(30px);
}

.avatar-upload-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  text-align: left;
}

.avatar-dropzone {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 10px 14px;
  border: 1px solid rgba(144, 154, 170, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  color: #29313d;
  cursor: pointer;
}

.avatar-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.avatar-preview {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 198, 166, 0.72), transparent 34%),
    radial-gradient(circle at 70% 70%, rgba(146, 205, 255, 0.72), transparent 36%),
    #f4f6f8;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(144, 154, 170, 0.18);
}

.avatar-preview::before {
  content: "+";
  color: #7f8896;
  font-size: 24px;
  font-weight: 300;
}

.avatar-preview.has-image::before {
  content: "";
}

.avatar-upload-copy {
  display: grid;
  gap: 6px;
}

.avatar-upload-copy strong {
  font-size: 15px;
  font-weight: 520;
}

.avatar-upload-copy em,
.avatar-upload-card > p {
  color: #7d8795;
  font-size: 13px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.65;
}

.avatar-upload-copy em[data-state="error"] {
  color: #c4564d;
}

.avatar-upload-copy em[data-state="ok"] {
  color: #4f8d73;
}

.avatar-upload-card > p {
  margin: 0;
 }

.prompt-box textarea {
  width: 100%;
  min-height: 112px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d2430;
  font: inherit;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
}

.prompt-box textarea::placeholder {
  color: #a7afbd;
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 2px;
}

.prompt-loader {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(147, 158, 174, 0.28);
  border-top-color: rgba(147, 158, 174, 0.76);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

.send-button {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 190, 166, 0.42), transparent 33%),
    radial-gradient(circle at 80% 22%, rgba(147, 198, 255, 0.46), transparent 34%),
    rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 36px rgba(70, 92, 128, 0.12);
  color: #9ba6b6;
  cursor: pointer;
}

.send-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.examples {
  margin-top: 50px;
  text-align: left;
}

.examples > p {
  margin: 0 0 20px;
  color: #6f7683;
  font-size: 14px;
  font-weight: 300;
}

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

.example-grid button {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 15px 19px;
  border: 1px solid rgba(144, 154, 170, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 16px 42px rgba(42, 54, 76, 0.06);
  color: #333b49;
  text-align: left;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  cursor: pointer;
  backdrop-filter: blur(24px);
}

.example-grid button span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 25%, #ffc8a6, transparent 36%),
    radial-gradient(circle at 70% 34%, #95c8ff, transparent 38%),
    radial-gradient(circle at 52% 75%, #94e0c2, transparent 36%);
}

.random-row {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: #9097a4;
  font-size: 14px;
  font-weight: 300;
}

.random-row button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(144, 154, 170, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  color: #222832;
  cursor: pointer;
}

.random-row button::before {
  content: "~";
  font-size: 22px;
  line-height: 1;
}

.random-row button {
  font-size: 0;
}

.generated-panel {
  display: none;
  position: fixed;
  z-index: 20;
  right: 42px;
  bottom: 42px;
  width: min(430px, calc(100vw - 48px));
}

.generated-panel.is-visible {
  display: block;
  animation: riseIn 0.45s ease both;
}

.generated-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(144, 154, 170, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(42, 54, 76, 0.16);
  backdrop-filter: blur(28px);
}

.panel-kicker {
  margin: 0 0 10px;
  color: #8e96a4;
  font-size: 13px;
}

.generated-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 520;
}

.generated-card p:last-child {
  margin: 0;
  color: #747c89;
  line-height: 1.7;
}

.generated-card .generation-insight {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 9px 13px;
  border: 1px solid rgba(170, 185, 205, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(137, 151, 170, 0.12);
  color: #7a8493;
  font-size: 13px;
  line-height: 1.4;
}

.generated-card .generation-insight.is-hidden {
  display: none;
}

.generated-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.universe-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-left: 120px;
  background:
    radial-gradient(circle at 88% 24%, rgba(232, 240, 255, 0.62), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(255, 230, 236, 0.5), transparent 22%),
    linear-gradient(180deg, #fbfbfc 0%, #f7f8fa 100%);
}

.side-rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 120px;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px;
  border-right: 1px solid rgba(16, 24, 40, 0.04);
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(28px);
}

.rail-brand {
  width: max-content;
  align-self: flex-start;
  margin-left: 5px;
  color: #333946;
  font-size: 16px;
  font-weight: 420;
}

.rail-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.rail-nav {
  display: grid;
  gap: 28px;
  margin-top: 116px;
}

.rail-nav a,
.rail-magic {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #667085;
}

.rail-nav a.active,
.rail-magic {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(42, 54, 76, 0.08);
  color: #7aa9ff;
}

.rail-nav svg,
.rail-magic svg,
.search-pill svg,
.custom-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rail-magic {
  margin-top: auto;
}

.universe-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 26px 76px 48px;
}

.universe-liquid {
  right: -160px;
  bottom: -220px;
  left: auto;
  width: 520px;
  height: 660px;
  transform: none;
  opacity: 0.78;
}

.universe-liquid::before {
  inset: 25% 4%;
  opacity: 0.55;
}

.universe-liquid::after {
  inset: 8% 2%;
  border-radius: 48% 52% 43% 57% / 42% 55% 45% 58%;
}

.universe-top {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px) auto auto;
  align-items: center;
  gap: 22px;
}

.search-pill {
  display: flex;
  height: 50px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(144, 154, 170, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 34px rgba(42, 54, 76, 0.05);
  color: #7b8494;
  backdrop-filter: blur(24px);
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202632;
  font: inherit;
  font-size: 14px;
  font-weight: 300;
}

.search-pill input::placeholder {
  color: #8b93a1;
}

.universe-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  width: min(1320px, 100%);
  margin: 66px auto 38px;
}

.universe-heading h1 {
  margin: 0;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 620;
  letter-spacing: 0;
}

.universe-heading h1 span {
  margin-left: 8px;
  color: #a6c3ff;
  font-size: 22px;
  vertical-align: super;
}

.universe-heading p {
  margin: 16px 0 0;
  color: #858d9b;
  font-size: 15px;
  font-weight: 300;
}

.result-pill {
  margin-bottom: 8px;
  padding: 13px 24px;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 999px;
  background: rgba(246, 245, 255, 0.74);
  color: #7a8290;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.filter-row {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1320px, 100%);
  align-items: center;
  gap: 18px;
  margin: 0 auto 30px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-row button {
  display: inline-flex;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 26px;
  border: 1px solid rgba(144, 154, 170, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 28px rgba(42, 54, 76, 0.05);
  color: #333946;
  font-size: 14px;
  font-weight: 360;
  cursor: pointer;
  backdrop-filter: blur(22px);
}

.filter-row .selected {
  background: #07080a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(3, 7, 18, 0.17);
}

.platform-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.platform-dot.douyin {
  background: linear-gradient(135deg, #00e5ff 0%, #111 45%, #ff2f68 100%);
}

.platform-dot.redbook {
  background: #ef3f3f;
}

.platform-dot.kuaishou {
  background: #111;
}

.platform-dot.video {
  background: linear-gradient(135deg, #111, #f5f5f5);
}

.case-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1320px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 50px rgba(42, 54, 76, 0.07);
  backdrop-filter: blur(24px);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.case-card:hover {
  border-color: rgba(99, 116, 145, 0.24);
  box-shadow: 0 24px 60px rgba(42, 54, 76, 0.12);
  transform: translateY(-3px);
}

.case-card:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.32);
  outline-offset: 2px;
}

.case-card-summary .case-media {
  height: 230px;
  border-radius: 20px 20px 14px 14px;
}

.case-card-summary .case-media::after {
  display: none;
}

.case-card-summary .case-body {
  padding: 16px 18px 18px;
}

.case-card-summary .case-body h2 {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card-summary .tag-row {
  margin-top: 11px;
}

.case-card-summary .case-persona {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  margin: 11px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-media {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 20px 20px 16px 16px;
  background: #e9edf3;
}

.case-card.compact .case-media {
  height: 190px;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 28%);
}

.case-media::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.48));
}

.rank-badge,
.platform-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px);
}

.rank-badge {
  top: 16px;
  left: 16px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.76);
  color: #232936;
  font-size: 15px;
  font-weight: 460;
}

.platform-badge {
  top: 16px;
  right: 16px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
}

.case-stats {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

.case-body {
  padding: 18px 20px 20px;
}

.case-body h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 560;
}

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

.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.86);
  color: #8a929f;
  font-size: 12px;
  font-weight: 300;
}

.case-body > p {
  min-height: 44px;
  margin: 14px 0 20px;
  color: #828a97;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

.case-dna-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 14px;
}

.case-dna-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.case-dna-row span,
.case-engine span {
  color: #9aa3af;
  font-size: 12px;
  font-weight: 360;
  white-space: nowrap;
}

.case-dna-row p,
.case-engine p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  color: #4f5867;
  font-size: 12px;
  font-weight: 320;
  line-height: 1.55;
  text-overflow: ellipsis;
}

.case-dna-row p {
  -webkit-line-clamp: 2;
}

.case-engine {
  display: grid;
  gap: 7px;
  margin: 12px 0 18px;
  padding: 12px 13px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.74);
}

.case-engine p {
  -webkit-line-clamp: 3;
}

.generation-diagnostics {
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto 0;
}

.generation-diagnostics details {
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(42, 54, 76, 0.06);
  backdrop-filter: blur(22px);
}

.generation-diagnostics.is-weak details {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(255, 251, 235, 0.66);
}

.generation-diagnostics.is-strong details {
  border-color: rgba(34, 197, 94, 0.18);
}

.generation-diagnostics summary {
  display: flex;
  min-height: 58px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
}

.generation-diagnostics summary::-webkit-details-marker {
  display: none;
}

.generation-diagnostics summary span {
  color: #20242c;
  font-size: 15px;
  font-weight: 560;
}

.generation-diagnostics summary small {
  color: #8b94a2;
  font-size: 12px;
  font-weight: 320;
}

.generation-diagnostics.is-weak summary small {
  color: #b45309;
}

.generation-diagnostics.is-strong summary small {
  color: #15803d;
}

.diagnostic-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 12px;
}

.diagnostic-actions button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(144, 154, 170, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(42, 54, 76, 0.06);
  color: #303744;
  cursor: pointer;
  font-size: 12px;
  font-weight: 420;
}

.diagnostic-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.generation-diagnostics.is-weak .diagnostic-actions button {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(255, 247, 237, 0.86);
  color: #92400e;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  padding: 0 18px 18px;
}

.diagnostic-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(144, 154, 170, 0.11);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.diagnostic-grid h2 {
  margin: 0 0 12px;
  color: #303744;
  font-size: 13px;
  font-weight: 560;
}

.score-meter {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.score-meter b {
  color: #111827;
  font-size: 32px;
  font-weight: 620;
  line-height: 1;
}

.score-meter span {
  color: #8b94a2;
  font-size: 13px;
}

.score-meter.is-strong b {
  color: #16a34a;
}

.score-meter.is-usable b {
  color: #2563eb;
}

.score-meter.is-weak b {
  color: #d97706;
}

#ipScoreList {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#ipScoreList li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  color: #697282;
  font-size: 12px;
}

#ipScoreList span {
  color: #9aa3af;
}

#ipScoreList b {
  overflow: hidden;
  color: #4b5563;
  font-weight: 360;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ipScoreList .is-warning b {
  color: #b45309;
}

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

.retrieval-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.retrieval-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.retrieval-item b {
  color: #2f3744;
  font-size: 13px;
  font-weight: 560;
}

.retrieval-item span {
  flex: 0 0 auto;
  color: #9aa3af;
  font-size: 12px;
}

.retrieval-item p {
  overflow: hidden;
  margin: 0;
  color: #697282;
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-body a {
  display: inline-flex;
  float: right;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(42, 54, 76, 0.06);
  color: #4b5563;
  font-size: 13px;
}

.case-detail-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.case-detail-modal.is-open {
  display: flex;
}

.case-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 26, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.case-detail-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(144, 154, 170, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(20, 28, 46, 0.28);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.case-detail-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: -8px -8px 10px 10px;
  border: 1px solid rgba(144, 154, 170, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #4b5563;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.case-detail-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 8px;
}

.case-detail-avatar {
  width: 180px;
  overflow: hidden;
  border-radius: 22px;
  background: #e9edf3;
  box-shadow: 0 16px 40px rgba(42, 54, 76, 0.12);
  aspect-ratio: 1;
}

.case-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.case-detail-head {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.case-detail-title-row h2 {
  min-width: 0;
  margin: 0;
  font-size: 26px;
  font-weight: 640;
  line-height: 1.25;
}

.case-detail-head .tag-row {
  margin-top: 12px;
}

.case-detail-head > p {
  max-width: 600px;
  margin: 12px 0 0;
  color: #576070;
  font-size: 15px;
  font-weight: 320;
  line-height: 1.65;
}

.case-detail-rows {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.case-detail-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.case-detail-row span {
  color: #9aa3af;
  font-size: 13px;
  font-weight: 360;
}

.case-detail-row p {
  margin: 0;
  color: #4f5867;
  font-size: 14px;
  font-weight: 320;
  line-height: 1.7;
}

.case-template-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-left: auto;
  padding: 0 22px;
  border-radius: 999px;
  background: #1d2430;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
  white-space: nowrap;
}

.case-template-button:hover {
  background: #2b3442;
}

.case-template-button.is-loading {
  cursor: wait;
  opacity: 0.72;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .case-detail-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .case-detail-panel {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .case-detail-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
  }

  .case-detail-avatar {
    width: 112px;
  }

  .case-detail-title-row {
    gap: 12px;
  }

  .case-detail-title-row h2 {
    font-size: 20px;
  }

  .case-template-button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .case-detail-row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }
}

.custom-create {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1320px, 100%);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 16px auto 0;
  padding: 18px 30px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 50px rgba(42, 54, 76, 0.06);
  backdrop-filter: blur(24px);
}

.custom-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #9fc1ff;
  box-shadow: var(--shadow-soft);
}

.custom-create h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 520;
}

.custom-create p {
  margin: 7px 0 0;
  color: #8a929f;
  font-size: 14px;
  font-weight: 300;
}

.role-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 24%, rgba(199, 235, 226, 0.28), transparent 25%),
    radial-gradient(circle at 18% 18%, rgba(255, 223, 213, 0.28), transparent 24%),
    linear-gradient(180deg, #fbfbfc 0%, #f7f8fa 100%);
}

.role-stage {
  position: relative;
  z-index: 1;
  width: min(1340px, calc(100vw - 96px));
  margin: 58px auto 0;
}

.role-liquid {
  top: -90px;
  width: 980px;
  height: 430px;
  opacity: 0.72;
}

.role-hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 34px;
  align-items: stretch;
}

.role-portrait,
.role-main-panel,
.role-side-panel > div,
.direction-grid article {
  border: 1px solid rgba(144, 154, 170, 0.14);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 64px rgba(42, 54, 76, 0.07);
  backdrop-filter: blur(28px);
}

.role-portrait {
  position: relative;
  display: grid;
  place-items: center;
  height: 390px;
  overflow: hidden;
  border-radius: 30px;
}

.role-portrait::before {
  content: "";
  width: 42%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 205, 192, 0.7), transparent 32%),
    radial-gradient(circle at 72% 72%, rgba(157, 221, 206, 0.68), transparent 36%),
    linear-gradient(135deg, rgba(219, 232, 255, 0.92), rgba(255, 255, 255, 0.2));
  filter: blur(0.2px);
  opacity: 0.72;
}

.role-portrait.has-image::before {
  display: none;
}

.role-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 24%;
}

.role-summary {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  padding: 46px 54px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 18%, rgba(151, 207, 255, 0.22), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(255, 200, 176, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 22px 64px rgba(42, 54, 76, 0.06);
  backdrop-filter: blur(28px);
}

.role-summary h1 {
  margin: 0;
  color: #08090c;
  font-size: clamp(72px, 7vw, 116px);
  font-weight: 620;
  line-height: 0.98;
}

.role-subtitle {
  margin: 22px 0 0;
  color: #6f7785;
  font-size: 22px;
  font-weight: 300;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.role-tags span {
  padding: 8px 13px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #737c8a;
  font-size: 13px;
  font-weight: 300;
}

.role-workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  margin-top: 24px;
}

.role-main-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
}

.profile-block {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
}

.profile-block span {
  color: #a5aec0;
  font-size: 13px;
}

.profile-block h2,
.state-card h2,
.modify-card h2,
.direction-grid h3 {
  margin: 12px 0;
  color: #171b22;
  font-weight: 520;
}

.profile-block h2 {
  font-size: 20px;
}

.profile-block p,
.direction-grid p {
  margin: 0;
  color: #737c8a;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
}

.role-side-panel {
  display: grid;
  gap: 18px;
}

.role-side-panel > div {
  border-radius: 24px;
  padding: 24px;
}

.state-card h2,
.modify-card h2 {
  font-size: 18px;
}

.state-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.state-card li {
  color: #697281;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

.state-card li span {
  display: inline-flex;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.9);
  color: #8b94a2;
}

.modify-card textarea {
  width: 100%;
  min-height: 108px;
  resize: none;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 18px;
  outline: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  color: #222936;
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.modify-card button {
  float: right;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #090a0d;
  color: white;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.next-directions {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding-bottom: 40px;
}

.compact-heading {
  width: 100%;
}

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

.direction-grid article {
  border-radius: 24px;
  padding: 24px;
}

.direction-grid article > span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 232, 226, 0.8);
  color: #f06f50;
  font-size: 12px;
}

.direction-grid h3 {
  font-size: 20px;
}

.role-module {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 22px 64px rgba(42, 54, 76, 0.06);
  backdrop-filter: blur(28px);
}

.module-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.module-heading > span {
  color: #a5aec0;
  font-size: 13px;
  font-weight: 400;
}

.module-heading h2 {
  margin: 0;
  color: #171b22;
  font-size: 22px;
  font-weight: 540;
}

.module-heading .module-note {
  margin: 0 0 0 4px;
  color: #8b94a2;
  font-size: 13px;
  font-weight: 300;
}

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

.persona-block {
  padding: 20px;
  border: 1px solid rgba(144, 154, 170, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
}

.persona-block h3 {
  margin: 0 0 12px;
  color: #3f4653;
  font-size: 15px;
  font-weight: 520;
}

.persona-block p {
  margin: 0;
  color: #737c8a;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(240, 245, 248, 0.92);
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
}

.modify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.modify-row textarea {
  width: 100%;
  min-height: 96px;
  resize: none;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 18px;
  outline: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  color: #222936;
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.modify-row button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #090a0d;
  color: white;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

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

.benchmark-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
}

.benchmark-type {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(224, 232, 241, 0.9);
  color: #5f6b7a;
  font-size: 12px;
}

.benchmark-card.is-persona .benchmark-type {
  background: rgba(255, 232, 226, 0.9);
  color: #f06f50;
}

.benchmark-card.is-content .benchmark-type {
  background: rgba(221, 244, 236, 0.92);
  color: #2e9b83;
}

.benchmark-card.is-audience .benchmark-type {
  background: rgba(226, 232, 255, 0.9);
  color: #5d6fd1;
}

.benchmark-card h3 {
  margin: 14px 0 8px;
  color: #171b22;
  font-size: 18px;
  font-weight: 540;
}

.benchmark-reason {
  margin: 0;
  color: #737c8a;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
}

.reference-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.reference-points li {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.92);
  color: #7d8794;
  font-size: 11px;
  font-weight: 300;
}

.benchmark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.benchmark-actions a,
.benchmark-actions button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(144, 154, 170, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #4d5665;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.benchmark-actions button {
  border-color: #090a0d;
  background: #090a0d;
  color: white;
}

.benchmark-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.benchmark-empty {
  display: grid;
  min-height: 120px;
  place-content: center;
  gap: 8px;
  border: 1px dashed rgba(144, 154, 170, 0.24);
  border-radius: 22px;
  color: #8b94a2;
  text-align: center;
}

.benchmark-empty b {
  color: #5f6b7a;
  font-size: 15px;
  font-weight: 520;
}

.benchmark-empty span {
  font-size: 12px;
  font-weight: 300;
}

.section-heading.compact-heading div > span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #a5aec0;
  font-size: 13px;
}

.core-module {
  background:
    radial-gradient(circle at 88% 10%, rgba(151, 207, 255, 0.2), transparent 34%),
    radial-gradient(circle at 6% 92%, rgba(255, 200, 176, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.68);
}

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

.core-block {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.core-block.is-wide {
  grid-column: span 1;
}

.core-block > span {
  color: #8b94a2;
  font-size: 12px;
}

.core-block p {
  margin: 12px 0 0;
  color: #171b22;
  font-size: 19px;
  font-weight: 460;
  line-height: 1.7;
}

.text-expand {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d6fd1;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.list-expand {
  width: 100%;
}

.list-expand button {
  border: 0;
  background: transparent;
  color: #5d6fd1;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.aux-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 40px;
}

.aux-details {
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(24px);
}

.aux-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  color: #5f6b7a;
  font-size: 15px;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
}

.aux-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #8b94a2;
  border-bottom: 1.5px solid #8b94a2;
  margin-left: auto;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.aux-details[open] summary::after {
  transform: rotate(225deg);
}

.aux-details > div {
  padding: 0 22px 22px;
}

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

.aux-details .persona-block {
  background: rgba(244, 245, 247, 0.5);
}

.benchmark-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.benchmark-domains span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(226, 232, 255, 0.9);
  color: #5d6fd1;
  font-size: 11px;
}

.char-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(255, 241, 232, 0.9), rgba(255, 255, 255, 0.96) 45%, rgba(238, 244, 252, 0.92));
  box-shadow: 0 22px 64px rgba(42, 54, 76, 0.06);
}

.char-photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px;
}

.avatar-edit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-edit-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.avatar-edit-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(144, 154, 170, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #3f4754;
  cursor: pointer;
  font-size: 13px;
  font-weight: 480;
  text-decoration: none;
}

.avatar-edit-button:hover {
  border-color: rgba(29, 36, 48, 0.32);
  background: #fff;
}

.avatar-edit-button.is-muted {
  color: #9aa3af;
}

.avatar-edit-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.avatar-edit-hint {
  max-width: 300px;
  color: #8b93a0;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
}

.role-portrait.char-portrait {
  position: relative;
  width: 300px;
  height: 340px;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
}

.char-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px 48px 40px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #9498a0;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.role-name {
  margin: 0 0 22px;
  color: #17181c;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(64px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.role-sub {
  margin: 0;
  color: #6b6f76;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 620px;
}

.char-next {
  position: absolute;
  top: 18px;
  right: 20px;
  margin: 0;
  padding: 10px 18px;
  font-size: 14px;
}

.optimize-notice {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(127, 159, 214, 0.35);
  border-radius: 14px;
  background: rgba(226, 232, 255, 0.92);
  color: #17181c;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.optimize-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trait-row,
.panel-row,
.bottom-row {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

.trait-row {
  grid-template-columns: repeat(3, 1fr);
}

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

.bottom-row {
  grid-template-columns: 1fr 1fr 1.7fr;
  margin-bottom: 40px;
}

.card {
  border: 1px solid #ececef;
  border-radius: 22px;
  background: #ffffff;
  padding: 26px 24px;
  box-shadow: 0 12px 34px rgba(42, 54, 76, 0.05);
}

.trait-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

.trait-num {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.trait-card:nth-child(1) .trait-num { color: #e59a72; }
.trait-card:nth-child(2) .trait-num { color: #7fb69a; }
.trait-card:nth-child(3) .trait-num { color: #7f9fd6; }

.trait-title {
  margin: 0 0 10px;
  color: #17181c;
  font-size: 19px;
  font-weight: 700;
}

.trait-desc {
  margin: 0;
  color: #6b6f76;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 78%;
}

.trait-blob {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
}

.trait-card:nth-child(1) .trait-blob { background: #e59a72; }
.trait-card:nth-child(2) .trait-blob { background: #7fb69a; }
.trait-card:nth-child(3) .trait-blob { background: #7f9fd6; }

.panel-title {
  margin: 0 0 18px;
  color: #17181c;
  font-size: 17px;
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  border-radius: 10px;
  background: #f6f6f8;
  padding: 13px 16px;
  color: #3d3f45;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
}

.card-note {
  margin: 16px 0 0;
  color: #9498a0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.shots {
  display: grid;
  gap: 12px;
}

.shot {
  min-width: 0;
  border: 1px solid #f0f0f3;
  border-radius: 12px;
  background: #fafafb;
  padding: 14px 16px;
}

.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shot-cap {
  color: #7f9fd6;
  font-size: 12px;
  font-weight: 600;
}

.shot-index {
  color: #c2c6cd;
  font-size: 11px;
}

.shot-title {
  margin: 8px 0 0;
  color: #3d3f45;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.shot-desc {
  margin: 6px 0 0;
  color: #9498a0;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
}

.status-text {
  margin: 0;
  color: #6b6f76;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

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

.platform-item {
  display: grid;
  gap: 6px;
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3d3f45;
  font-size: 14.5px;
  text-decoration: none;
}

.platform-row:hover .platform-name {
  color: #17181c;
}

.platform-row .arrow {
  color: #9498a0;
}

.platform-optimize {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: #7f9fd6;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.platform-optimize:hover {
  text-decoration: underline;
}

.platform-optimize:disabled {
  opacity: 0.6;
  cursor: wait;
}

.platform-empty {
  margin: 0;
  color: #9498a0;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
}

.edit-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.edit-card .panel-title {
  margin: 0;
  white-space: nowrap;
}

.edit-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ececef;
  border-radius: 10px;
  outline: 0;
  padding: 13px 16px;
  background: #fbfbfc;
  color: #6b6f76;
  font: inherit;
  font-size: 14px;
}

.edit-btn {
  white-space: nowrap;
  border: 0;
  border-radius: 10px;
  background: #17181c;
  padding: 13px 22px;
  color: #ffffff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.edit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* 3.1 精简骨架：顶部标签 + 人格核心 + 平台表达 + 方向 + 参照 */
.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.persona-tags span {
  padding: 6px 11px;
  border: 1px solid rgba(144, 154, 170, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #17181c;
  font-size: 12.5px;
  font-weight: 400;
}

.ip-module {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 38px rgba(42, 54, 76, 0.05);
  backdrop-filter: blur(22px);
}

.ip-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ip-heading h2 {
  margin: 0;
  color: #17181c;
  font-size: 18px;
  font-weight: 700;
}

.ip-heading p {
  margin: 0;
  color: #3d3f45;
  font-size: 12.5px;
  font-weight: 300;
}

.core-grid,
.express-grid,
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.core-card h3 {
  margin: 0 0 8px;
  color: #3d3f45;
  font-size: 13px;
  font-weight: 600;
}

.core-card p {
  margin: 0;
  color: #17181c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.ip-reason {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f6f6f8;
  color: #2f3338;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
}

.ip-reason span {
  flex: none;
  color: #7f9fd6;
  font-size: 12px;
  font-weight: 600;
}

.ip-reason b {
  color: #17181c;
  font-weight: 400;
}

.express-text {
  margin: 0;
  color: #17181c;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.ip-edit {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.ip-edit summary {
  padding: 12px 16px;
  color: #17181c;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.ip-edit summary::after {
  content: "＋";
  float: right;
  color: #3d3f45;
}

.ip-edit[open] summary::after {
  content: "－";
}

.edit-row {
  display: flex;
  gap: 10px;
  padding: 0 16px 14px;
}

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

.ops-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.ops-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(240, 245, 248, 0.95);
  color: #2f3338;
  font-size: 11.5px;
  font-weight: 600;
}

.ops-card h4 {
  margin: 0 0 6px;
  color: #17181c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.ops-card p {
  margin: 0;
  color: #2f3338;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

.benchmark-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.benchmark-account {
  min-width: 0;
  overflow: hidden;
  color: #17181c;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benchmark-platform {
  flex: none;
  color: #3d3f45;
  font-size: 12px;
}

.benchmark-reason {
  margin: 8px 0 0;
  color: #17181c;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

.benchmark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.benchmark-actions a,
.benchmark-actions button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(144, 154, 170, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #17181c;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.benchmark-actions button {
  border-color: #17181c;
  background: #17181c;
  color: #ffffff;
}

.benchmark-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* 灰字改黑 + 整体收缩 */
.char-hero {
  min-height: 280px;
  border-radius: 20px;
}

.char-photo {
  padding: 20px;
}

.role-portrait.char-portrait {
  width: 240px;
  height: 280px;
}

.char-copy {
  padding: 30px 34px 30px 28px;
}

.role-name {
  font-size: clamp(48px, 6vw, 76px);
  margin-bottom: 14px;
}

.role-sub,
.eyebrow,
.card-note,
.status-text,
.pill,
.platform-row,
.platform-empty,
.shot-desc,
.trait-desc {
  color: #17181c;
}

.eyebrow,
.card-note,
.platform-empty,
.shot-desc {
  color: #3d3f45;
}

.card {
  padding: 18px 20px;
  border-radius: 16px;
}

.pill {
  padding: 9px 12px;
  font-size: 13.5px;
}

.trait-row,
.panel-row,
.bottom-row {
  gap: 14px;
  margin-top: 14px;
}

.platform-list {
  gap: 10px;
}

.platform-row {
  font-size: 13.5px;
}

/* 参考稿式主次布局（沿用当前配色） */
.core-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 30px;
  margin-top: 16px;
  padding: 28px 32px;
  border: 1px solid rgba(144, 154, 170, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(151, 207, 255, 0.16), transparent 30%),
    radial-gradient(circle at 4% 96%, rgba(255, 200, 176, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 46px rgba(42, 54, 76, 0.07);
  overflow: hidden;
  align-items: flex-start;
}

.section-title {
  margin: 0 0 18px;
  color: #17181c;
  font-size: 18px;
  font-weight: 700;
}

.core-card h3.section-title {
  margin: 0 0 18px;
  color: #17181c;
  font-size: 18px;
  font-weight: 700;
}

.section-title .spark {
  color: #7f9fd6;
  font-size: 15px;
}

.core-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.core-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: start;
}

.chip {
  padding: 7px 12px;
  border: 1px solid rgba(144, 154, 170, 0.18);
  border-radius: 10px;
  background: rgba(244, 245, 247, 0.9);
  color: #17181c;
  font-size: 13px;
  text-align: center;
}

.core-headline {
  position: relative;
  padding-right: 24px;
  color: #17181c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}

.core-desc {
  color: #2f3338;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.8;
}

.why-block {
  padding: 22px 0 0 26px;
  border-left: 1px solid rgba(144, 154, 170, 0.2);
}

.why-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #17181c;
  font-size: 15px;
  font-weight: 700;
}

.play-icon {
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #7f9fd6;
  color: #ffffff;
  font-size: 11px;
}

.why-desc {
  max-width: 360px;
  color: #2f3338;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.9;
}

.planet {
  position: relative;
  width: 150px;
  height: 150px;
  align-self: center;
}

.planet-core {
  position: absolute;
  left: 27px;
  top: 27px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fceaf5, #cfe2f6 55%, #a9c3e6 100%);
  box-shadow: 0 0 34px rgba(127, 159, 214, 0.35);
}

.planet-ring {
  position: absolute;
  left: 0;
  top: 49px;
  width: 150px;
  height: 56px;
  border: 2px solid rgba(127, 159, 214, 0.55);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.two-col {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head .section-title {
  margin: 0;
}

.card-head .hint {
  color: #3d3f45;
  font-size: 12px;
}

.op-list {
  display: flex;
  flex-direction: column;
}

.op-item {
  display: grid;
  grid-template-columns: 34px 46px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(144, 154, 170, 0.12);
}

.op-item:last-child {
  padding-bottom: 2px;
  border-bottom: none;
}

.op-num {
  color: #7f9fd6;
  font-size: 17px;
  font-weight: 800;
}

.op-item:nth-child(2) .op-num { color: #e59a72; }
.op-item:nth-child(3) .op-num { color: #7fb69a; }

.op-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(226, 232, 255, 0.85);
  color: #5d6fd1;
  font-size: 11px;
  font-weight: 700;
}

.op-item:nth-child(2) .op-icon {
  background: rgba(255, 232, 226, 0.85);
  color: #e59a72;
}

.op-item:nth-child(3) .op-icon {
  background: rgba(221, 244, 236, 0.85);
  color: #2e9b83;
}

.op-title {
  margin-bottom: 4px;
  color: #17181c;
  font-size: 14.5px;
  font-weight: 700;
}

.op-desc {
  color: #2f3338;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ref-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 14px;
  background: rgba(251, 252, 254, 0.92);
}

.ref-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-avatar {
  flex: none;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #cfe2f6, #7f9fd6);
}

.ref-avatar.is-content { background: linear-gradient(160deg, #fce4da, #e59a72); }
.ref-avatar.is-audience { background: linear-gradient(160deg, #d8f0e4, #7fb69a); }

.ref-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-name {
  color: #17181c;
  font-size: 13.5px;
  font-weight: 700;
}

.ref-platform {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(226, 232, 255, 0.9);
  color: #5d6fd1;
  font-size: 11px;
}

.ref-desc {
  min-height: 40px;
  color: #2f3338;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
}

.ref-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-ghost,
.btn-solid {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.btn-ghost {
  border: 1px solid rgba(144, 154, 170, 0.28);
  background: #ffffff;
  color: #2f3338;
  text-decoration: none;
}

.btn-solid {
  border: 1px solid #17181c;
  background: #17181c;
  color: #ffffff;
}

.btn-solid:disabled {
  opacity: 0.6;
  cursor: wait;
}

.visual-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 28%, rgba(205, 246, 232, 0.28), transparent 24%),
    radial-gradient(circle at 10% 78%, rgba(255, 220, 208, 0.24), transparent 23%),
    linear-gradient(180deg, #fbfbfc 0%, #f7f8fa 100%);
}

.visual-hero {
  position: relative;
  display: grid;
  min-height: 245px;
  place-items: center;
  padding-top: 26px;
  text-align: center;
}

.visual-liquid {
  top: -18px;
  width: min(820px, 66vw);
  height: 300px;
  opacity: 0.72;
}

.visual-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 620;
  line-height: 1;
}

.visual-hero p {
  position: relative;
  z-index: 2;
  margin: 16px 0 18px;
  color: #727b89;
  font-size: 16px;
  font-weight: 300;
}

.character-chip {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 5px 22px 5px 6px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  color: #3d4654;
  font-size: 14px;
  backdrop-filter: blur(22px);
}

.character-chip img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.character-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35c765;
}

.visual-canvas {
  position: relative;
  width: min(1480px, calc(100vw - 84px));
  min-height: 820px;
  margin: -38px auto 0;
  padding-bottom: 112px;
  --canvas-scale: 1;
  --canvas-origin-x: 50%;
  --canvas-origin-y: 50%;
}

@media (min-width: 981px) {
  .visual-canvas {
    width: 1480px;
    max-width: 1480px;
  }
}

.visual-canvas::before,
.visual-canvas::after {
  position: absolute;
  z-index: 0;
  content: "";
  border: 1px dashed rgba(118, 128, 146, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.visual-canvas::before {
  inset: 32px 294px 56px 248px;
}

.visual-canvas::after {
  inset: 78px 420px 104px 390px;
}

.visual-canvas .dna-board::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 14px;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.58),
    0 20px 54px rgba(92, 169, 255, 0.07);
  pointer-events: none;
}

.visual-canvas.is-place-mode::before {
  border-color: rgba(91, 140, 255, 0.22);
}

.visual-canvas.is-place-mode .dna-board {
  border-color: rgba(91, 140, 255, 0.18);
}

.visual-canvas.is-image-only .board-title,
.visual-canvas.is-image-only .visual-note,
.visual-canvas.is-image-only .visual-module-copy b,
.visual-canvas.is-image-only .visual-module-copy p,
.visual-canvas.is-image-only .visual-module-copy small,
.visual-canvas.is-image-only .prompt-preview b,
.visual-canvas.is-image-only .prompt-preview p,
.visual-canvas.is-image-only .prompt-preview small,
.visual-canvas.is-image-only .camera-board ul,
.visual-canvas.is-image-only .palette-copy {
  display: none;
}

.visual-canvas.is-image-only .dna-board {
  padding: 6px;
  overflow: hidden;
}

.visual-canvas.is-image-only .main-look-grid,
.visual-canvas.is-image-only .scene-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.visual-canvas.is-image-only .main-look-grid > div:not(.visual-asset-portrait),
.visual-canvas.is-image-only .scene-grid [data-module="scene"] {
  display: none;
}

.visual-canvas.is-image-only .visual-placeholder,
.visual-canvas.is-image-only .visual-module-copy {
  min-height: 0;
  border-style: solid;
}

.visual-canvas.is-image-only .prompt-preview,
.visual-canvas.is-image-only .visual-module-copy:not(.has-generated-image) {
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 214, 204, 0.5), transparent 36%),
    radial-gradient(circle at 76% 72%, rgba(184, 228, 214, 0.48), transparent 38%),
    rgba(250, 252, 255, 0.76);
}

.canvas-tools {
  position: absolute;
  z-index: 5;
  top: 180px;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.canvas-tools button {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4d5b72;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.canvas-tools button:hover {
  background: rgba(110, 153, 255, 0.08);
  transform: translateY(-1px);
}

.canvas-tools button.active {
  background: rgba(110, 153, 255, 0.12);
  color: #5b8cff;
}

.canvas-tools button::after {
  position: absolute;
  left: 46px;
  z-index: 20;
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(42, 54, 76, 0.08);
  color: #4e5969;
  content: attr(title);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(16px);
}

.canvas-tools button:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.canvas-tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dna-board {
  position: absolute;
  z-index: 2;
  --user-scale: 1;
  padding: 10px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 66px rgba(42, 54, 76, 0.09);
  backdrop-filter: blur(24px);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform:
    translate3d(calc(var(--drag-x, 0px) + var(--auto-x, 0px)), calc(var(--drag-y, 0px) + var(--auto-y, 0px)), 0)
    rotate(var(--board-rotate, 0deg))
    scale(calc(var(--canvas-scale) * var(--user-scale, 1)));
  transform-origin: var(--canvas-origin-x) var(--canvas-origin-y);
  transition:
    transform 360ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
  will-change: transform;
}

.dna-board.is-empty {
  display: none;
}

.dna-board img {
  -webkit-user-drag: none;
  pointer-events: none;
  user-select: none;
}

.dna-board:hover,
.dna-board.is-focused {
  z-index: 8;
  border-color: rgba(101, 145, 255, 0.28);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 32px 86px rgba(52, 72, 104, 0.15);
}

.dna-board.is-dragging {
  z-index: 12;
  cursor: grabbing;
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  box-shadow: 0 42px 110px rgba(52, 72, 104, 0.2);
}

.visual-canvas.is-reflowing .dna-board {
  transition: none;
}

.visual-canvas.is-interacting::before,
.visual-canvas.is-interacting::after {
  border-color: rgba(101, 145, 255, 0.22);
  transform: scale(1.018);
  transition: transform 260ms ease, border-color 260ms ease;
}

.board-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #262c36;
  font-size: 13px;
  font-weight: 420;
  transform: translateY(-18px);
}

.board-title span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, #ff8f69);
}

.coral {
  --dot: #ff8f69;
}

.violet-dot {
  --dot: #9e6cff;
}

.blue-dot {
  --dot: #5ca9ff;
}

.mint-dot {
  --dot: #7ed9ad;
}

.pink-dot {
  --dot: #f180c5;
}

.dna-board img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.main-look {
  top: 64px;
  left: 500px;
  width: 360px;
  --board-rotate: -0.8deg;
}

.main-look-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: -8px;
}

.main-face {
  height: 520px;
  object-position: 48% 22%;
}

.visual-asset-portrait {
  --frame-ratio: var(--image-ratio, 0.565);
  min-height: 0;
  max-height: 640px;
}

.main-face.visual-asset-portrait {
  height: auto;
}

.main-face.visual-asset-portrait img {
  width: 100%;
  height: auto;
  max-height: 640px;
  aspect-ratio: var(--image-ratio, 0.565);
}

.visual-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed rgba(122, 134, 150, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 214, 204, 0.52), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(184, 228, 214, 0.48), transparent 36%),
    rgba(250, 252, 255, 0.74);
  color: #87919f;
  font-size: 14px;
  text-align: center;
}

.visual-placeholder.has-generated-image {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: rgba(255, 255, 255, 0.72);
}

.visual-placeholder.is-generating,
.visual-module-copy.is-generating {
  position: relative;
  overflow: hidden;
  place-items: center;
  border-style: solid;
  border-color: rgba(125, 156, 255, 0.2);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 214, 204, 0.5), transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(184, 228, 214, 0.5), transparent 38%),
    rgba(250, 252, 255, 0.82);
}

.visual-placeholder.is-generating::after,
.visual-module-copy.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.72) 48%, transparent 74%);
  transform: translateX(-100%);
  animation: module-scan 1.7s ease-in-out infinite;
}

.module-spinner {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(125, 156, 255, 0.18);
  border-top-color: rgba(125, 156, 255, 0.9);
  border-radius: 50%;
  animation: module-spin 0.9s linear infinite;
}

.visual-placeholder.is-generating b,
.visual-placeholder.is-generating p,
.visual-module-copy.is-generating b,
.visual-module-copy.is-generating p {
  position: relative;
  z-index: 1;
}

.visual-placeholder.is-failed,
.visual-module-copy.is-failed {
  border-color: rgba(255, 122, 102, 0.22);
  background: rgba(255, 246, 244, 0.84);
}

@keyframes module-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes module-scan {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

.visual-placeholder img,
.visual-module-copy.has-generated-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: var(--smart-x, 50%) var(--smart-y, 50%);
  transform: scale(var(--smart-scale, 1));
  transform-origin: var(--smart-x, 50%) var(--smart-y, 50%);
}

.visual-asset-outfit img,
.visual-asset-scene img {
  padding: 0;
  object-fit: contain;
  object-position: 50% 50%;
  background: rgba(250, 252, 255, 0.72);
}

.visual-asset-turnaround,
.visual-asset-outfit,
.visual-asset-scene {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 253, 0.78)),
    radial-gradient(circle at 18% 20%, rgba(255, 224, 213, 0.2), transparent 34%);
}

.visual-module-copy.has-generated-image,
.visual-placeholder.has-generated-image {
  aspect-ratio: var(--frame-ratio, 1.5);
}

.visual-asset-turnaround img {
  object-fit: contain;
  background: rgba(250, 252, 255, 0.82);
}

.visual-asset-outfit img {
  object-fit: contain;
}

.visual-asset-outfit.image-tall,
.visual-asset-turnaround.image-tall {
  min-height: 0;
  max-height: none;
}

.visual-asset-outfit.image-tall img {
  object-fit: contain;
}

.visual-asset-portrait img,
.visual-asset-outfit img,
.visual-asset-turnaround img {
  object-fit: contain;
  transform: scale(var(--smart-scale, 1));
}

.visual-module-copy.visual-asset-outfit.has-generated-image {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  aspect-ratio: var(--image-ratio, 1.75);
  min-height: 0;
  max-height: none;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.visual-module-copy.visual-asset-outfit.has-generated-image img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--image-ratio, 1.75);
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(var(--smart-scale, 1));
}

.visual-module-copy.visual-asset-turnaround.has-generated-image {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  aspect-ratio: var(--image-ratio, 1.7778);
  min-height: 0;
  max-height: none;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.visual-module-copy.visual-asset-turnaround.has-generated-image img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--image-ratio, 1.7778);
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(var(--smart-scale, 1));
}

.visual-asset-scene.image-wide img,
.visual-asset-scene.image-balanced img {
  object-fit: cover;
}

.visual-asset-stills img {
  object-fit: cover;
}

.visual-note,
.visual-module-copy {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.7);
  color: #596477;
  font-size: 12px;
  line-height: 1.5;
}

.visual-module-copy {
  gap: 10px;
  min-height: 120px;
  border-radius: 12px;
  font-size: 13px;
}

.main-look-grid .visual-note {
  min-height: 52px;
  border-radius: 12px;
}

.visual-module-copy.has-generated-image {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(122, 134, 150, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.visual-placeholder.has-generated-image,
.visual-module-copy.has-generated-image {
  position: relative;
}

.image-zoom-control {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(20, 25, 34, 0.58);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
}

.image-zoom-control button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.image-zoom-control button:hover {
  background: rgba(255, 255, 255, 0.26);
}

.image-zoom-control span {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.prompt-preview {
  place-items: stretch;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 253, 0.7)),
    radial-gradient(circle at 15% 20%, rgba(255, 220, 208, 0.24), transparent 32%);
  text-align: left;
}

.prompt-preview b {
  color: #202733;
  font-size: 14px;
  font-weight: 560;
}

.prompt-preview p {
  margin: 0;
  color: #667180;
  font-size: 12px;
  line-height: 1.55;
}

.prompt-preview small {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(230, 238, 248, 0.78);
  color: #7a8494;
  font-size: 11px;
}

.visual-module-copy b {
  color: #1f2630;
  font-size: 16px;
  font-weight: 560;
}

.visual-module-copy p,
.visual-module-copy small,
.palette-copy {
  margin: 0;
  color: #747c89;
  line-height: 1.6;
}

.visual-module-copy small {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(230, 238, 248, 0.84);
  font-size: 12px;
}

.main-look-grid > div {
  display: grid;
  gap: 8px;
}

.expression-board {
  top: 64px;
  left: 64px;
  width: 360px;
  --board-rotate: -1.2deg;
}

.expression-board .visual-module-copy.has-generated-image {
  --frame-ratio: var(--image-ratio, 1);
  min-height: 0;
  max-height: 520px;
}

.masonry {
  display: grid;
  gap: 8px;
  margin-top: -8px;
}

.masonry.six {
  grid-template-columns: repeat(3, 1fr);
}

.masonry.six:not(.has-generated-image) img {
  height: 82px;
}

.outfit-board {
  top: 64px;
  right: 64px;
  width: 480px;
  --board-rotate: 2.2deg;
}

.outfit-board .visual-module-copy.has-generated-image {
  --frame-ratio: var(--image-ratio, 1.75);
  min-height: 0;
  max-height: 520px;
}

.masonry.eight {
  grid-template-columns: repeat(4, 1fr);
}

.masonry.eight:not(.has-generated-image) img {
  height: 92px;
}

.camera-board {
  top: 360px;
  left: 64px;
  width: 270px;
  --board-rotate: 1.4deg;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: -8px;
}

.camera-grid img {
  height: 96px;
}

.camera-grid img:first-child {
  grid-column: span 2;
}

.camera-board ul {
  position: static;
  display: flex;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #727b89;
  font-size: 12px;
  font-weight: 300;
  list-style: none;
  box-shadow: none;
}

.camera-board.has-stills-asset ul {
  display: none;
}

.camera-board li {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(238, 244, 251, 0.78);
}

.still-frame {
  height: 186px;
  min-height: 186px;
  margin-top: -8px;
}

.still-frame.visual-asset-stills {
  height: auto;
  min-height: 0;
}

.visual-asset-stills {
  --frame-ratio: 9 / 16;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 360px;
  margin-inline: auto;
}

.scene-board {
  top: 470px;
  right: 64px;
  left: auto;
  width: 470px;
  --board-rotate: -1.6deg;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
  margin-top: -8px;
}

.wide-scene {
  height: 240px;
}

.wide-scene.visual-asset-scene {
  height: auto;
}

.scene-board.has-scene-asset .scene-grid {
  grid-template-columns: 1fr;
}

.scene-board.has-scene-asset .scene-grid [data-module="scene"] {
  display: none;
}

.visual-asset-scene {
  --frame-ratio: 1.75;
  min-height: 0;
  max-height: 360px;
}

.scene-grid > div {
  display: grid;
  gap: 8px;
}

.palette-board {
  right: 64px;
  bottom: 56px;
  width: 360px;
}

.visual-pack-canvas.board-talking-head .scene-board {
  top: 470px;
  right: 64px;
  left: auto;
  width: 470px;
}

.visual-pack-canvas.board-talking-head .expression-board {
  top: 64px;
  left: 64px;
  width: 360px;
}

.visual-pack-canvas.board-talking-head .outfit-board {
  top: 64px;
  right: 64px;
  width: 480px;
}

.visual-pack-canvas.board-talking-head .main-look {
  top: 64px;
  left: 500px;
  width: 360px;
}

.visual-pack-canvas.board-talking-head .camera-board {
  top: 360px;
  left: 64px;
  width: 270px;
}

.visual-pack-canvas.board-talking-head .palette-board {
  right: 64px;
  bottom: 56px;
  width: 360px;
}

.visual-pack-canvas.board-fashion-style .outfit-board {
  top: 64px;
  right: 64px;
  width: 480px;
  --board-rotate: 2deg;
}

.visual-pack-canvas.board-fashion-style .outfit-board .visual-module-copy.has-generated-image {
  min-height: 0;
}

.visual-pack-canvas.board-fashion-style .palette-board {
  right: 64px;
  bottom: 56px;
  width: 360px;
}

.visual-pack-canvas.board-fashion-style .scene-board {
  top: 470px;
  right: 64px;
  left: auto;
  width: 470px;
}

.visual-pack-canvas.board-fashion-style .expression-board {
  top: 64px;
  left: 64px;
  width: 360px;
}

.visual-pack-canvas.board-fashion-style .camera-board {
  top: 360px;
  left: 64px;
  width: 270px;
}

.visual-pack-canvas.board-fashion-style .main-look {
  top: 64px;
  left: 500px;
  width: 360px;
}

.visual-pack-canvas.board-story-drama .main-look {
  top: 64px;
  left: 500px;
  width: 360px;
}

.visual-pack-canvas.board-story-drama .camera-board {
  top: 360px;
  left: 64px;
  width: 270px;
}

.visual-pack-canvas.board-story-drama .scene-board {
  top: 470px;
  right: 64px;
  left: auto;
  width: 470px;
}

.visual-pack-canvas.board-story-drama .visual-asset-scene {
  max-height: 260px;
}

.visual-pack-canvas.board-story-drama .expression-board {
  top: 64px;
  left: 64px;
  width: 360px;
}

.visual-pack-canvas.board-story-drama .outfit-board {
  top: 64px;
  right: 64px;
  width: 480px;
}

.visual-pack-canvas.board-story-drama .palette-board {
  right: 64px;
  bottom: 56px;
  width: 360px;
}

.visual-pack-canvas.board-lifestyle-daily .main-look {
  top: 64px;
  left: 500px;
  width: 360px;
}

.visual-pack-canvas.board-lifestyle-daily .scene-board {
  top: 470px;
  right: 64px;
  left: auto;
  width: 470px;
}

.visual-pack-canvas.board-lifestyle-daily .expression-board {
  top: 64px;
  left: 64px;
  width: 360px;
}

.visual-pack-canvas.board-lifestyle-daily .outfit-board {
  top: 64px;
  right: 64px;
  width: 480px;
}

.visual-pack-canvas.board-lifestyle-daily .camera-board {
  top: 360px;
  left: 64px;
  width: 270px;
}

.visual-pack-canvas.board-lifestyle-daily .palette-board {
  right: 64px;
  bottom: 56px;
  width: 360px;
}

.visual-canvas.is-image-only .visual-asset-outfit.image-tall,
.visual-canvas.is-image-only .visual-asset-turnaround.image-tall {
  min-height: 0;
}

.visual-canvas.is-image-only .visual-asset-portrait img,
.visual-canvas.is-image-only .visual-asset-stills img {
  object-position: 50% 26%;
}

.visual-pack-canvas.board-knowledge-expert .scene-board,
.visual-pack-canvas.board-commerce-review .scene-board {
  top: 470px;
  right: 64px;
  left: auto;
  width: 470px;
}

.visual-pack-canvas.board-knowledge-expert .main-look,
.visual-pack-canvas.board-commerce-review .main-look {
  top: 64px;
  left: 500px;
  width: 360px;
}

.visual-pack-canvas.board-knowledge-expert .expression-board,
.visual-pack-canvas.board-commerce-review .expression-board {
  top: 64px;
  left: 64px;
  width: 360px;
}

.visual-pack-canvas.board-healing-companion .palette-board {
  right: 64px;
  bottom: 56px;
  width: 360px;
}

.visual-pack-canvas.board-healing-companion .outfit-board {
  top: 64px;
  right: 64px;
  width: 480px;
}

.visual-pack-canvas.board-healing-companion .scene-board {
  top: 470px;
  right: 64px;
  left: auto;
  width: 470px;
}

.palette-copy {
  margin-top: -6px;
}

.palette-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: -8px;
}

.palette-images img {
  height: 96px;
}

.swatches {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.swatches span {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 6px 14px rgba(42, 54, 76, 0.08);
}

.selected-style {
  position: absolute;
  z-index: 4;
  left: 48px;
  bottom: 2px;
  max-width: min(920px, calc(100vw - 470px));
  padding: 10px 12px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(42, 54, 76, 0.07);
  backdrop-filter: blur(24px);
}

.selected-style h2 {
  display: none;
}

.selected-style div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.queue-chip {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.66);
  color: #4e5969;
  font-family: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

span.queue-chip {
  cursor: default;
}

.queue-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8c2cf;
  box-shadow: 0 0 0 4px rgba(184, 194, 207, 0.14);
}

.queue-chip em {
  color: #8a94a3;
  font-style: normal;
}

.queue-chip.is-done {
  background: rgba(235, 248, 241, 0.82);
  color: #2f6f54;
}

.queue-chip.is-done i {
  background: #35c765;
  box-shadow: 0 0 0 4px rgba(53, 199, 101, 0.14);
}

.queue-chip.is-done em {
  color: #35a667;
}

.queue-chip.is-failed {
  background: rgba(255, 239, 237, 0.88);
  color: #a94f42;
}

.queue-chip.is-failed i {
  background: #ff7a66;
  box-shadow: 0 0 0 4px rgba(255, 122, 102, 0.14);
}

.queue-chip.is-generating {
  background: rgba(239, 244, 255, 0.94);
  color: #536baf;
  cursor: progress;
}

.queue-chip.is-generating i {
  background: #7d9cff;
  box-shadow: 0 0 0 4px rgba(125, 156, 255, 0.16);
  animation: softPulse 1.3s ease-in-out infinite;
}

.queue-chip.is-preview {
  background: rgba(239, 244, 255, 0.9);
  color: #536baf;
}

.queue-chip.is-preview i {
  background: #7d9cff;
  box-shadow: 0 0 0 4px rgba(125, 156, 255, 0.14);
}

.queue-chip.is-preview em {
  color: #6d84d6;
}

.queue-chip.is-pending:hover {
  transform: translateY(-1px);
  background: rgba(240, 245, 252, 0.88);
}

.queue-chip.is-done:hover,
.queue-chip.is-failed:hover {
  transform: translateY(-1px);
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

.canvas-toast {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 9px 12px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 40px rgba(42, 54, 76, 0.08);
  color: #4e5969;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(20px);
}

.canvas-toast strong {
  color: #222a36;
  font-size: 12px;
  font-weight: 560;
}

.canvas-toast span {
  color: #6f7a8a;
}

.canvas-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.selected-style img {
  width: 58px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.visual-next-actions {
  position: absolute;
  right: 0;
  bottom: 2px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-next-actions .visual-next {
  position: static;
}

#regenerateCurrentButton {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(144, 154, 170, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4f5867;
  font-size: 14px;
  font-weight: 420;
  cursor: pointer;
}

#regenerateCurrentButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#downloadBoardButton,
#exportPackageButton {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(144, 154, 170, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4f5867;
  font-size: 14px;
  font-weight: 420;
  cursor: pointer;
}

#downloadBoardButton:hover,
#exportPackageButton:hover {
  background: rgba(244, 246, 248, 0.96);
  color: #222832;
}

#boardDownloadLink {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: #1d2430;
  color: #fff;
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
}

#boardDownloadLink[hidden] {
  display: none;
}

#downloadBoardButton[hidden],
#exportPackageButton[hidden],
#packageDownloadLink[hidden] {
  display: none;
}

.studio-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 26%, rgba(205, 246, 232, 0.26), transparent 24%),
    radial-gradient(circle at 16% 20%, rgba(255, 220, 208, 0.23), transparent 24%),
    linear-gradient(180deg, #fbfbfc 0%, #f7f8fa 100%);
}

.studio-hero {
  position: relative;
  display: grid;
  min-height: 248px;
  place-items: center;
  padding-top: 26px;
  text-align: center;
}

.studio-liquid {
  top: -20px;
  width: min(850px, 68vw);
  height: 310px;
  opacity: 0.72;
}

.studio-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 620;
  line-height: 1;
}

.studio-hero p {
  position: relative;
  z-index: 2;
  margin: 16px 0 18px;
  color: #727b89;
  font-size: 16px;
  font-weight: 300;
}

.studio-flow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100vw - 96px));
  margin: 0 auto 20px;
}

.studio-flow > i {
  position: absolute;
  display: none;
}

.studio-step {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  min-height: 80px;
  gap: 18px;
  padding: 16px 22px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.studio-step::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 169, 255, 0.1);
  color: #5b8cff;
  content: "";
}

.studio-step.active::before {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 145, 96, 0.35), transparent 38%),
    rgba(255, 255, 255, 0.7);
}

.studio-step > span {
  grid-column: 3;
  color: #a1a9b7;
  font-size: 17px;
}

.studio-step > div {
  grid-column: 2;
  grid-row: 1;
}

.studio-step h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 520;
}

.studio-step p {
  margin: 0;
  color: #858d9b;
  font-size: 13px;
  font-weight: 300;
}

.studio-workspace {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1280px, calc(100vw - 96px));
  grid-template-columns: 310px 1fr 360px;
  gap: 18px;
  margin: 0 auto;
}

.take-panel,
.storyboard-panel,
.preview-panel,
.asset-strip {
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 54px rgba(42, 54, 76, 0.07);
  backdrop-filter: blur(24px);
}

.take-panel,
.storyboard-panel,
.preview-panel {
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 520;
}

.panel-title button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #697281;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.take-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.take-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
}

.take-card.selected {
  border-color: rgba(255, 122, 80, 0.42);
  background: rgba(255, 244, 238, 0.62);
}

.take-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 520;
}

.take-card span {
  display: inline-flex;
  margin-right: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.86);
  color: #8a929f;
  font-size: 12px;
  font-weight: 300;
}

.take-card i {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(144, 154, 170, 0.18);
  border-radius: 50%;
  color: #fff;
  font-style: normal;
}

.take-card.selected i {
  border: 0;
  background: #ff7348;
}

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

.direction-card {
  cursor: pointer;
}

.direction-card p {
  margin: 10px 0 0;
  color: #737c8a;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
}

.direction-count,
.panel-hint {
  color: #8f98a6;
  font-size: 12px;
}

.voice-provider-label {
  margin: 0 0 10px;
  color: #8f98a6;
  font-size: 12px;
}

.voice-provider-label.is-heygen {
  color: #5b8cff;
}

.story-summary {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.story-summary span {
  color: #8f98a6;
  font-size: 12px;
}

.story-summary p {
  margin: 8px 0 0;
  color: #475160;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.script-copy {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(144, 154, 170, 0.22);
  color: #5a6575;
  white-space: pre-line;
}

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

.shot-list article {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 10px;
  border: 1px solid rgba(144, 154, 170, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.shot-list img {
  width: 170px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.shot-list h3 {
  display: inline;
  margin: 0 8px 0 0;
  font-size: 15px;
  font-weight: 520;
}

.shot-list span {
  color: #9aa3b1;
  font-size: 13px;
}

.shot-list p {
  margin: 8px 0 0;
  color: #737c8a;
  font-size: 13px;
  font-weight: 300;
}

.shot-list button {
  border: 0;
  background: transparent;
  color: #9aa3b1;
  cursor: pointer;
}

.shot-card {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.shot-card.is-selected {
  border-color: rgba(255, 122, 80, 0.45);
  background: rgba(255, 244, 238, 0.55);
}

.shot-list .first-frame-button {
  min-width: 72px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(144, 154, 170, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #697281;
  font: inherit;
  font-size: 12px;
}

.shot-list .shot-card.is-selected .first-frame-button {
  border-color: #ff7348;
  background: #ff7348;
  color: #fff;
}

.shot-list .voiceover-frame {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 0;
  padding: 12px;
  border-color: rgba(255, 122, 80, 0.42);
  background: rgba(255, 244, 238, 0.55);
}

.shot-list .voiceover-frame img {
  width: 100%;
  max-height: 280px;
  border-radius: 12px;
  object-fit: cover;
}

.shot-list .voiceover-frame h3 {
  display: inline;
  margin: 0 8px 0 0;
  font-size: 15px;
  font-weight: 520;
}

.shot-list .voiceover-frame span {
  color: #9aa3b1;
  font-size: 13px;
}

.shot-list .voiceover-frame p {
  margin: 8px 0 0;
  color: #737c8a;
  font-size: 13px;
  font-weight: 300;
}

.video-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 7;
  border-radius: 22px;
  background: #dfe5ec;
}

.video-preview img,
.video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.18));
}

.play-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.play-button svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.quick-actions button {
  min-height: 40px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #647083;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.studio-generate {
  width: 100%;
}

button.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.video-status {
  min-height: 20px;
  margin: 14px 0;
  color: #858d9b;
  font-size: 13px;
  line-height: 1.6;
}

.video-status.is-generating {
  color: #5b8cff;
}

.video-status.is-ready {
  color: #1e9e6a;
}

.video-status.is-failed {
  color: #d94a45;
}

.studio-generate + .studio-generate {
  margin-top: 10px;
}

.asset-strip {
  display: grid;
  width: min(1280px, calc(100vw - 96px));
  grid-template-columns: 160px repeat(4, 1fr);
  gap: 16px;
  align-items: center;
  margin: 18px auto 42px;
  padding: 18px 22px;
}

.asset-strip h2,
.asset-strip h3 {
  margin: 0;
  font-weight: 520;
}

.asset-strip h2 {
  font-size: 20px;
}

.asset-strip p {
  margin: 6px 0 0;
  color: #858d9b;
  font-size: 13px;
  font-weight: 300;
}

.asset-strip article {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.asset-strip img {
  width: 72px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.asset-strip h3 {
  font-size: 15px;
}

.asset-list {
  display: contents;
}

.ip-studio {
  display: grid;
  width: min(860px, calc(100vw - 48px));
  gap: 18px;
  margin: 0 auto 42px;
}

.ip-studio-card {
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 20px 54px rgba(42, 54, 76, 0.07);
  backdrop-filter: blur(24px);
}

.ip-header-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.ip-header-card img {
  width: 118px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
}

.ip-header-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 560;
}

.ip-header-info p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

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

.ip-tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.9);
  color: #8a929f;
  font-size: 12px;
}

.ip-form-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

.ip-field-label {
  color: #475160;
  font-size: 13px;
  font-weight: 500;
}

.ip-field textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 1px solid rgba(144, 154, 170, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: #1f2937;
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

.ip-field textarea:focus {
  outline: none;
  border-color: rgba(91, 140, 255, 0.45);
}

.ip-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ip-fieldset {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.ip-fieldset legend {
  margin-bottom: 4px;
  color: #475160;
  font-size: 13px;
  font-weight: 500;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(144, 154, 170, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border-color: rgba(91, 140, 255, 0.5);
  background: rgba(235, 243, 255, 0.7);
  color: #1f2937;
}

.ip-generate-button {
  width: 100%;
  min-height: 46px;
}

.ip-progress {
  display: grid;
  gap: 8px;
}

.ip-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(144, 154, 170, 0.16);
}

.ip-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b8cff, #7fd0a8);
  transition: width 0.4s ease;
}

.ip-progress-text {
  margin: 0;
  color: #858d9b;
  font-size: 13px;
}

.ip-video-preview {
  position: relative;
  display: grid;
  width: min(360px, 100%);
  min-height: 260px;
  place-items: center;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #e6ebf1;
}

.ip-video-preview video {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

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

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(144, 154, 170, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.history-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 520;
}

.history-item p {
  margin: 0;
  color: #8a929f;
  font-size: 12px;
}

.history-item > span {
  flex: 0 0 auto;
  color: #1e9e6a;
  font-size: 12px;
}

.history-item.is-failed > span {
  color: #d94a45;
}

@media (max-width: 680px) {
  .ip-header-card {
    grid-template-columns: 88px 1fr;
  }

  .ip-header-card img {
    width: 88px;
    height: 116px;
  }

  .ip-form-grid {
    grid-template-columns: 1fr;
  }
}

.evolve-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 24%, rgba(205, 246, 232, 0.26), transparent 24%),
    radial-gradient(circle at 14% 25%, rgba(255, 220, 208, 0.24), transparent 22%),
    linear-gradient(180deg, #fbfbfc 0%, #f7f8fa 100%);
}

.evolve-hero {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  padding-top: 26px;
  text-align: center;
}

.evolve-liquid {
  top: -20px;
  width: min(820px, 66vw);
  height: 310px;
  opacity: 0.72;
}

.evolve-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(54px, 5.3vw, 86px);
  font-weight: 620;
  line-height: 1;
}

.evolve-hero p {
  position: relative;
  z-index: 2;
  margin: 16px 0 18px;
  color: #727b89;
  font-size: 16px;
  font-weight: 300;
}

.evolve-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1280px, calc(100vw - 96px));
  grid-template-columns: 330px 1fr 390px;
  gap: 20px;
  margin: 0 auto;
}

.feedback-panel,
.insight-panel,
.next-panel,
.recent-strip {
  border: 1px solid rgba(144, 154, 170, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 54px rgba(42, 54, 76, 0.07);
  backdrop-filter: blur(24px);
}

.feedback-panel,
.insight-panel,
.next-panel {
  padding: 24px;
}

.feedback-panel h2,
.insight-panel h2,
.next-panel h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 520;
}

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

.feedback-list article,
.next-row,
.recent-list article {
  display: grid;
  align-items: center;
  border: 1px solid rgba(144, 154, 170, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.feedback-list article {
  grid-template-columns: 118px 1fr auto;
  gap: 14px;
  min-height: 86px;
  padding: 10px;
  border-radius: 18px;
}

.feedback-list img,
.next-row img,
.recent-list img {
  width: 100%;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
}

.feedback-list h3,
.next-row h3,
.recent-list h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 520;
}

.feedback-list p,
.next-row p,
.recent-list p {
  margin: 0;
  color: #858d9b;
  font-size: 13px;
  font-weight: 300;
}

.upload-box {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px dashed rgba(144, 154, 170, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #343b48;
  font: inherit;
  cursor: pointer;
}

.upload-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-cards article {
  display: grid;
  justify-items: center;
  min-height: 150px;
  padding: 18px 14px;
  border: 1px solid rgba(144, 154, 170, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  text-align: center;
}

.insight-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
}

.insight-icon span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.insight-icon.coral {
  background: rgba(255, 118, 92, 0.1);
  color: #ff765c;
}

.insight-icon.blue {
  background: rgba(91, 140, 255, 0.1);
  color: #5b8cff;
}

.insight-icon.mint {
  background: rgba(60, 200, 124, 0.11);
  color: #32c37a;
}

.insight-cards h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 520;
}

.insight-cards p {
  margin: 0;
  color: #5d6675;
  font-size: 14px;
}

.insight-cards article > span {
  margin-top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.86);
  color: #7f8896;
  font-size: 12px;
}

.next-advice {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid rgba(255, 126, 90, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 127, 96, 0.12), transparent 26%),
    radial-gradient(circle at 95% 92%, rgba(91, 140, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.64);
  box-shadow: 0 20px 54px rgba(255, 128, 96, 0.08);
}

.next-advice > span {
  color: #ff765c;
  font-size: 13px;
}

.next-advice h2 {
  margin: 14px 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 560;
}

.next-advice p {
  margin: 0;
  color: #727b89;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
}

.next-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 126, 90, 0.32);
  border-radius: 22px;
  background: rgba(255, 250, 247, 0.72);
  box-shadow: 0 18px 44px rgba(255, 128, 96, 0.08);
}

.next-card img {
  width: 160px;
  height: 124px;
  border-radius: 16px;
  object-fit: cover;
}

.next-card span:first-child {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ff765c;
  color: #fff;
  font-size: 12px;
}

.next-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 560;
}

.next-card p {
  margin: 0 0 12px;
  color: #8a929f;
  font-size: 13px;
  font-weight: 300;
}

.next-card a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #090a0d;
  color: #fff;
  font-size: 13px;
}

.next-row {
  grid-template-columns: 128px 1fr auto;
  gap: 14px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 18px;
}

.recent-strip {
  width: min(1280px, calc(100vw - 96px));
  margin: 20px auto 42px;
  padding: 24px;
}

.recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recent-list article {
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
}

.recent-list img {
  height: 86px;
}

.recent-list span {
  display: inline-flex;
  margin: 10px 6px 0 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.86);
  color: #8a929f;
  font-size: 12px;
}

@keyframes liquidBreathe {
  0%,
  100% {
    transform: rotate(-5deg) scale(0.98);
    border-radius: 44% 56% 58% 42% / 44% 42% 58% 56%;
    opacity: 0.62;
  }

  50% {
    transform: rotate(3deg) scale(1.04);
    border-radius: 52% 48% 43% 57% / 48% 56% 44% 52%;
    opacity: 0.86;
  }
}

@keyframes liquidGlow {
  0%,
  100% {
    transform: translate3d(-1%, 0, 0) scale(0.98);
    opacity: 0.66;
  }

  50% {
    transform: translate3d(1.8%, -1.2%, 0) scale(1.05);
    opacity: 0.94;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .create-topbar .nav-links {
    display: none;
  }

  .create-content > p {
    margin-bottom: 42px;
  }

  .avatar-upload-card {
    grid-template-columns: 1fr;
  }

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

  .universe-shell {
    padding-left: 0;
  }

  .side-rail {
    display: none;
  }

  .universe-page {
    padding: 24px;
  }

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

  .role-stage {
    width: calc(100vw - 48px);
  }

  .role-hero-card,
  .role-workspace,
  .char-hero {
    grid-template-columns: 1fr;
  }

  .role-main-panel,
  .direction-grid,
  .persona-grid,
  .benchmark-grid,
  .core-grid,
  .core-card,
  .two-col,
  .aux-grid,
  .trait-row,
  .panel-row,
  .bottom-row,
  .core-grid,
  .express-grid,
  .directions-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .core-card {
    grid-template-columns: 1fr;
  }

  .why-block {
    padding: 18px 0 0;
    border-top: 1px solid rgba(144, 154, 170, 0.2);
    border-left: none;
  }

  .planet {
    display: none;
  }

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

  .edit-card,
  .edit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .char-photo {
    padding-bottom: 0;
  }

  .role-name {
    font-size: 64px;
  }

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

  .visual-canvas {
    display: grid;
    width: calc(100vw - 48px);
    min-height: auto;
    gap: 18px;
    --canvas-scale: 1;
  }

  .visual-canvas::before,
  .visual-canvas::after,
  .canvas-tools {
    display: none;
  }

  .dna-board,
  .main-look,
  .expression-board,
  .outfit-board,
  .camera-board,
  .scene-board,
  .palette-board,
  .selected-style,
  .visual-next-actions,
  .visual-next {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .visual-next-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .selected-style {
    min-width: 0;
  }

  .studio-flow,
  .studio-workspace,
  .asset-strip,
  .evolve-grid,
  .recent-strip {
    width: calc(100vw - 48px);
  }

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

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

  .asset-strip {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 680px) {
  .create-stage {
    min-height: auto;
    padding: 78px 0 118px;
  }

  .create-liquid {
    width: 760px;
    max-width: none;
    height: 640px;
  }

  .create-content {
    width: 100%;
  }

  .create-content h1 {
    font-size: 32px;
  }

  .prompt-box {
    grid-template-columns: 1fr;
    min-height: 210px;
    padding: 24px;
  }

  .prompt-box textarea {
    font-size: 17px;
  }

  .prompt-actions {
    justify-content: flex-end;
  }

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

  .random-row {
    bottom: 18px;
  }

  .generated-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .generated-actions .secondary-button,
  .generated-actions .primary-button {
    min-width: 0;
    width: 100%;
    padding-inline: 16px;
  }

  .universe-top {
    grid-template-columns: 1fr auto auto;
  }

  .universe-top > div:first-child {
    display: none;
  }

  .search-pill {
    min-width: 0;
  }

  .universe-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 42px;
  }

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

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

  .studio-flow,
  .asset-strip {
    grid-template-columns: 1fr;
  }

  .shot-list article {
    grid-template-columns: 110px 1fr;
  }

  .shot-list img {
    width: 110px;
  }

  .shot-list button {
    display: none;
  }

  .insight-cards,
  .recent-list article,
  .next-card,
  .next-row,
  .feedback-list article {
    grid-template-columns: 1fr;
  }

  .next-card img,
  .next-row img {
    width: 100%;
  }

  .op-item {
    grid-template-columns: 24px 44px 1fr;
  }

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

/* 临时邀请码门 */
.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(246, 247, 249, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.gate-locked {
  overflow: hidden;
}

body.gate-locked .invite-gate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.invite-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.gate-locked .app-shell {
  filter: blur(7px) saturate(0.92);
  pointer-events: none;
  user-select: none;
}

.app-shell {
  transition: filter 0.45s ease;
}

.invite-card {
  width: min(440px, 100%);
  padding: 34px 32px 28px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(31, 35, 45, 0.14), 0 2px 10px rgba(31, 35, 45, 0.04);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  text-align: center;
  animation: inviteRise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes inviteRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.invite-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 20px;
  font-weight: 520;
}

.invite-title {
  margin: 0;
  font-size: 24px;
  font-weight: 520;
  letter-spacing: 0;
}

.invite-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.invite-field {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.invite-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.invite-input::placeholder {
  color: #a6acb6;
}

.invite-input:focus {
  border-color: rgba(55, 145, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(55, 145, 255, 0.12), var(--shadow-soft);
}

.invite-submit {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #0b0b0c;
  color: #fff;
  font-size: 15px;
  font-weight: 460;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(3, 7, 18, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.invite-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(3, 7, 18, 0.24);
}

.invite-submit:active {
  transform: translateY(0);
}

.invite-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #d64545;
  font-size: 13px;
}

@media (max-width: 560px) {
  .invite-card {
    padding: 28px 22px 24px;
  }

  .invite-field {
    flex-direction: column;
  }

  .invite-submit {
    width: 100%;
  }
}

/* 前端性能优化：首屏骨架 */
body.is-loading .skeleton-line,
.skeleton-line {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(16, 24, 40, 0.06);
}

.skeleton-line::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  to {
    transform: translateX(100%);
  }
}

body.is-loading .visual-placeholder,
body.is-loading .visual-module-copy {
  filter: blur(2px);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
