:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17202a;
  background: #eef1f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(155, 174, 205, 0.42), transparent 28rem),
    linear-gradient(135deg, #f8f5ef 0%, #eef2f7 42%, #e8edf4 100%);
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 0.72rem 0.95rem;
  color: #15202b;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(30, 42, 58, 0.08);
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.media-open {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  cursor: zoom-in;
}

.media-open:hover {
  transform: none;
}

.studio-shell {
  padding: 28px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px;
  background: #17202a;
}

.login-shell::before {
  content: "";
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(8, 15, 27, 0.72), rgba(22, 31, 46, 0.38)),
    radial-gradient(circle at 72% 28%, rgba(109, 93, 252, 0.2), transparent 32rem);
}

.login-background-video {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 90px rgba(31, 41, 55, 0.14);
  backdrop-filter: blur(20px);
}

.login-card h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.brand-icon {
  flex: 0 0 auto;
  width: 0.92em;
  height: 0.92em;
  filter: drop-shadow(0 0.18em 0.3em rgba(57, 38, 92, 0.18));
}

.login-card p {
  margin: 0;
  color: #596677;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 12px;
  border-radius: 28px;
  padding: 22px;
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px #e3e8ef;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-links button {
  padding: 0;
  color: #6d5dfc;
  background: transparent;
  box-shadow: none;
  font-weight: 800;
}

.login-links a {
  color: #53606d;
  text-decoration: none;
  font-weight: 800;
}

.login-hint {
  font-size: 0.82rem;
}

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 80px rgba(31, 41, 55, 0.1);
  backdrop-filter: blur(18px);
}

.hero.history-open {
  z-index: 50;
}

.hero h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.hero p {
  max-width: 780px;
  margin: 0;
  color: #596677;
}

.hero-side {
  min-width: min(680px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: center;
}

.hero-session-actions {
  display: flex;
  justify-content: flex-end;
}

.logout-button {
  border: 1px solid rgba(220, 38, 38, 0.18);
  padding: 0.58rem 0.9rem;
  color: #b42318;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.08);
  font-weight: 800;
}

.generation-mode-compact {
  display: grid;
  grid-template-columns: auto minmax(180px, 1.15fr) minmax(150px, 0.82fr) minmax(140px, 0.7fr) minmax(150px, 0.78fr) 46px;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.08);
}

.real-generation-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  color: #64748b;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  font-weight: 900;
  white-space: nowrap;
}

.real-generation-toggle.selected {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.38);
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.real-generation-toggle span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: #94a3b8;
  font-size: 0.78rem;
}

.real-generation-toggle.selected span {
  background: #10b981;
}

.provider-inline-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.provider-inline-field span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-inline-field input,
.provider-inline-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8e0eb;
  border-radius: 14px;
  padding: 0.58rem 0.72rem;
  color: #17202a;
  background: rgba(248, 250, 252, 0.92);
  outline: none;
}

.provider-inline-field input:focus,
.provider-inline-field select:focus {
  border-color: #8b7bff;
  box-shadow: 0 0 0 4px rgba(123, 97, 255, 0.12);
}

.floating-status {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: min(320px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(23, 32, 42, 0.92);
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
}

.floating-status span {
  width: max-content;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  background: rgba(255, 255, 255, 0.13);
  color: #b7f7d0;
  font-size: 0.72rem;
  font-weight: 850;
}

.floating-status strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-status small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  line-height: 1.35;
}

.floating-status.is-generating {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 32, 42, 0.96), rgba(78, 51, 162, 0.92)),
    #17202a;
}

.floating-status.is-quality-gate {
  border-color: rgba(34, 211, 238, 0.36);
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.97), rgba(14, 116, 144, 0.94)),
    #083344;
  box-shadow: 0 18px 52px rgba(8, 145, 178, 0.28);
}

.floating-status.is-quality-gate span {
  color: #cffafe;
  background: rgba(34, 211, 238, 0.2);
}

.floating-status.is-processing {
  background: rgba(51, 65, 85, 0.94);
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.68;
  }
}

@keyframes shimmer {
  0% {
    transform: translate3d(-125%, 0, 0);
  }

  100% {
    transform: translate3d(125%, 0, 0);
  }
}

.shimmer-frame,
.floating-status.is-generating,
.generation-route-card.is-generating,
.slot-card.is-generating {
  position: relative;
  overflow: hidden;
}

.shimmer-frame::after,
.floating-status.is-generating::after,
.generation-route-card.is-generating::after,
.slot-card.is-generating::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -12% -42%;
  z-index: 4;
  background: linear-gradient(
    110deg,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.08) 56%,
    transparent 62%
  );
  transform: translate3d(-125%, 0, 0);
  will-change: transform;
  animation: shimmer 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.generation-route-card.is-generating::after {
  opacity: 0.62;
  animation-duration: 5.4s;
}

.slot-card.is-generating::after {
  display: none;
}

.eyebrow {
  margin: 0;
  color: #7b61ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.layout.library-mode {
  grid-template-columns: minmax(0, 1fr);
}

.panel,
.workspace,
.empty-board {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.1);
  backdrop-filter: blur(18px);
}

.panel {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.panel h2,
.empty-board h2 {
  margin: 0 0 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #53606d;
}

.field span {
  font-size: 0.86rem;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  padding: 0.72rem 0.82rem;
  color: #17202a;
  background: rgba(255, 255, 255, 0.86);
}

.field.compact input,
.field.compact select {
  padding: 0;
}

.inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.candidate-empty,
.muted {
  border: 1px dashed #c8d2df;
  border-radius: 18px;
  padding: 16px;
  color: #7b8794;
  background: rgba(255, 255, 255, 0.5);
}

.reference-uploader {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.reference-placeholder,
.reference-card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: visible;
  border-radius: 22px;
  color: #7b8794;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(237, 241, 247, 0.86)),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(123, 97, 255, 0.06) 8px, rgba(123, 97, 255, 0.06) 16px);
  box-shadow: inset 0 0 0 1.5px #c8d2df;
  cursor: pointer;
}

.reference-placeholder {
  border: 1px dashed #aeb9c8;
}

.reference-placeholder.locked {
  cursor: not-allowed;
  opacity: 0.78;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.88), rgba(241, 245, 249, 0.92)),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(100, 116, 139, 0.06) 8px, rgba(100, 116, 139, 0.06) 16px);
}

.reference-placeholder.locked strong {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  box-shadow: none;
}

.reference-placeholder strong {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #9c6bff);
  font-size: 2.5rem;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(109, 93, 252, 0.24);
}

.reference-placeholder span {
  margin-top: 10px;
  font-weight: 850;
}

.reference-placeholder input,
.reference-card input,
.upload-inline input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reference-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #e4e9f0;
}

.reference-preview-open {
  height: 100%;
}

.reference-card.is-importing .reference-preview-open {
  pointer-events: none;
}

.reference-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  border-radius: 22px;
  padding: 20px;
  color: #fff;
  text-align: center;
  background: rgba(30, 41, 59, 0.42);
  backdrop-filter: blur(2px);
  cursor: wait;
}

.reference-upload-overlay strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.reference-upload-overlay small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  line-height: 1.4;
}

.reference-upload-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: reference-upload-spin 0.8s linear infinite;
}

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

.reference-lock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 0.72rem;
  color: #fff;
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
  font-size: 0.76rem;
  font-weight: 900;
  pointer-events: none;
}

.replace-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  color: #fff;
  background: rgba(23, 32, 42, 0.76);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  z-index: 2;
}

.reference-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.reference-uploader small,
.reference-meta small {
  color: #7b8794;
  line-height: 1.45;
  word-break: break-all;
}

.reference-meta button {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #6d5dfc;
}

.reference-actions {
  display: flex;
  justify-content: flex-start;
  margin: -4px 0 14px;
}

.upload-inline {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  color: #6d5dfc;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(30, 42, 58, 0.08);
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.base-wardrobe-selector,
.studio-background-selector {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(123, 97, 255, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 243, 255, 0.74)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(30, 42, 58, 0.06);
}

.base-wardrobe-selector header,
.studio-background-selector header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.base-wardrobe-selector header > div,
.base-wardrobe-selector label,
.studio-background-selector header > div,
.studio-background-selector label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.base-wardrobe-selector strong,
.studio-background-selector strong {
  color: #172033;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.25;
}

.base-wardrobe-selector span,
.studio-background-selector span {
  color: #4c1d95;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.base-wardrobe-selector small,
.base-wardrobe-selector p,
.studio-background-selector small,
.studio-background-selector p {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
}

.base-wardrobe-selector select,
.studio-background-selector select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.72);
  border-radius: 14px;
  padding: 0 0.75rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 850;
}

.base-wardrobe-selector.locked,
.studio-background-selector.locked {
  border-color: rgba(16, 185, 129, 0.2);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.74), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.72);
}

.studio-background-selector strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.background-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--swatch-color, #eef2f7);
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
}

.control-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.control-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(123, 97, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.control-group header {
  display: grid;
  gap: 3px;
}

.control-group header strong {
  color: #1f2937;
  font-size: 0.86rem;
}

.control-group header small,
.control-lock-note {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.control-group.locked {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(236, 253, 245, 0.42);
}

.control-lock-note {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(236, 253, 245, 0.72);
}

.control-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 850;
}

.control-toolbar span {
  display: grid;
  gap: 2px;
}

.control-toolbar small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
}

.control-toolbar.locked {
  color: #065f46;
}

.control-toolbar button {
  padding: 0.48rem 0.78rem;
  color: #6d5dfc;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(123, 97, 255, 0.18), 0 10px 24px rgba(30, 42, 58, 0.08);
  font-size: 0.78rem;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy copy"
    "slider value";
  align-items: start;
  gap: 8px 12px;
  padding: 7px 0 10px;
}

.control-row + .control-row {
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  padding-top: 12px;
}

.control-row span {
  display: grid;
  gap: 2px;
}

.control-row > span:first-child {
  grid-area: copy;
}

.control-row > span:first-child strong {
  color: #172033;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.control-row > span:first-child small {
  display: block;
  margin-top: 2px;
}

.control-row small {
  color: #7b8794;
  font-size: 0.72rem;
  line-height: 1.35;
}

.control-row input {
  width: 100%;
  accent-color: #7b61ff;
}

.control-slider {
  grid-area: slider;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.control-preset-select {
  grid-area: slider;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.control-preset-select select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  padding: 0.42rem 0.54rem;
  background: #fff;
  color: #111827;
  font-weight: 850;
}

.preset-control em {
  min-width: 48px;
}

.control-row .control-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.64rem;
  line-height: 1.2;
}

.control-endpoints b {
  min-width: 0;
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-row em {
  grid-area: value;
  align-self: start;
  min-width: 34px;
  padding-top: 1px;
  color: #7b61ff;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.identity-front-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: 18px;
  align-items: start;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(123, 97, 255, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(123, 97, 255, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 44px rgba(30, 42, 58, 0.08);
}

.identity-front-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: clamp(540px, calc(100dvh - 190px), 820px);
  min-height: 0;
  overflow: hidden;
}

.identity-front-copy-summary {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  padding-right: 8px;
}

.identity-front-form-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 8px 16px 0;
  scrollbar-color: rgba(123, 97, 255, 0.56) rgba(226, 232, 240, 0.58);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.identity-front-form-scroll:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(123, 97, 255, 0.16);
  outline-offset: 2px;
}

.identity-front-form-scroll::-webkit-scrollbar {
  width: 8px;
}

.identity-front-form-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.58);
}

.identity-front-form-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(123, 97, 255, 0.56);
  background-clip: padding-box;
}

.identity-front-copy h3,
.identity-front-copy p {
  margin: 0;
}

.identity-front-copy h3 {
  color: #0f172a;
  font-size: 1.3rem;
}

.identity-front-copy p {
  color: #475569;
  line-height: 1.6;
}

.identity-front-copy small {
  color: #64748b;
  line-height: 1.5;
}

.identity-front-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-front-chips span {
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: #4338ca;
  background: rgba(238, 242, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 800;
}

.model-profile-summary {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(71, 85, 105, 0.18);
}

.model-profile-summary header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-profile-summary header span {
  display: grid;
  gap: 2px;
}

.model-profile-summary header small,
.model-profile-summary header em,
.model-profile-summary > small {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
}

.model-profile-summary p {
  margin: 0;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.5;
}

.model-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-profile-facts span {
  padding: 0.28rem 0.48rem;
  border-radius: 4px;
  color: #155e75;
  background: #ecfeff;
  font-size: 0.7rem;
  font-weight: 700;
}

.identity-front-slot {
  align-self: start;
  min-height: 0;
  position: sticky;
  top: 16px;
}

.identity-front-slot .slot-card {
  height: auto;
  margin: 0;
  align-content: start;
  align-self: start;
}

.identity-calibration-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  align-content: start;
}

.identity-calibration-slots .selected-preview {
  min-height: 0;
  align-self: start;
}

.identity-calibration-slots .selected-preview.empty {
  min-height: 220px;
}

.identity-calibration-slots .selected-preview-image-button {
  place-items: start center;
  align-content: start;
}

.identity-calibration-slots .selected-preview img {
  max-height: min(52vh, 520px);
}

.asset-drawer .identity-front-workbench {
  margin: 0;
}

.identity-front-tuning {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(123, 97, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.identity-refinement-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(240, 249, 255, 0.92), rgba(245, 243, 255, 0.88));
}

.identity-refinement-panel header,
.identity-refinement-panel label {
  display: grid;
  gap: 6px;
}

.identity-refinement-panel header small,
.identity-refinement-panel label small {
  color: #64748b;
  line-height: 1.5;
}

.identity-refinement-panel textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 13px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  line-height: 1.55;
}

.identity-refinement-panel textarea:focus {
  border-color: #7c3aed;
  outline: 3px solid rgba(124, 58, 237, 0.12);
}

.identity-refinement-panel.is-waiting {
  opacity: 0.68;
}

.identity-refinement-action {
  justify-self: stretch;
}

.identity-front-tuning header {
  display: grid;
  gap: 2px;
}

.identity-front-tuning header strong {
  color: #1f2937;
  font-size: 0.88rem;
}

.identity-front-tuning header small {
  color: #64748b;
  line-height: 1.45;
}

.identity-front-select-grid {
  display: grid;
  gap: 10px;
}

.identity-front-select-grid label {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.identity-front-select-grid span {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.identity-front-select-grid select {
  min-height: 34px;
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  padding: 0.42rem 0.54rem;
  background: #fff;
  color: #111827;
  font-weight: 800;
}

.identity-front-select-grid small {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.4;
}

.identity-front-protected-note {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 14px;
  background: rgba(236, 253, 245, 0.56);
}

.identity-front-protected-note strong {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 900;
}

.identity-front-protected-note span {
  color: #475569;
  font-size: 0.74rem;
  line-height: 1.45;
}

.identity-front-tuning.locked {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(236, 253, 245, 0.42);
}

.identity-front-control-list {
  display: grid;
  gap: 9px;
}

.control-row.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.identity-front-tuning button {
  justify-self: start;
}

.provider-test-panel {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(123, 97, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.provider-test-panel.enabled {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(255, 251, 235, 0.72);
}

.provider-test-panel.ready {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(236, 253, 245, 0.78);
}

.provider-mode-banner {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 12px;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.provider-mode-banner strong {
  font-size: 0.9rem;
}

.provider-mode-banner small {
  color: #6b7684;
  line-height: 1.4;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #475569;
}

.check-row input {
  margin-top: 4px;
  accent-color: #7b61ff;
}

.check-row span {
  display: grid;
  gap: 3px;
}

.check-row small {
  color: #7b8794;
  font-size: 0.72rem;
  line-height: 1.35;
}

.danger-check strong {
  color: #b45309;
}

.provider-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  padding: 72px 24px 24px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.provider-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 96px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 110px rgba(15, 23, 42, 0.26);
}

.provider-modal header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.provider-modal h2 {
  margin: 0.25rem 0 0.4rem;
}

.provider-modal p {
  margin: 0;
  color: #6b7684;
  line-height: 1.55;
}

.modal-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  color: #475569;
}

.provider-modal-status {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  border-radius: 18px;
  padding: 12px 14px;
  color: #475569;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.provider-modal-status.ready {
  color: #047857;
  background: rgba(236, 253, 245, 0.94);
}

.provider-modal-status.pending-confirm {
  color: #b45309;
  background: rgba(255, 251, 235, 0.94);
}

.vlm-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1130;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
}

.vlm-detail-modal {
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  padding: 22px;
  color: #334155;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 120px rgba(15, 23, 42, 0.32);
}

.vlm-detail-modal.status-failed {
  box-shadow:
    inset 5px 0 0 rgba(244, 63, 94, 0.72),
    0 34px 120px rgba(15, 23, 42, 0.32);
}

.vlm-detail-modal.status-error {
  box-shadow:
    inset 5px 0 0 rgba(245, 158, 11, 0.78),
    0 34px 120px rgba(15, 23, 42, 0.32);
}

.confirm-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
}

.confirm-dialog {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(109, 93, 252, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
}

.confirm-dialog.intent-warning {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.96);
}

.confirm-dialog.intent-danger {
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.96);
}

.confirm-dialog header,
.confirm-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.confirm-dialog h2,
.confirm-dialog p {
  margin: 0;
}

.confirm-dialog h2 {
  color: #111827;
  font-size: 1.25rem;
}

.confirm-dialog-message {
  color: #334155;
  line-height: 1.55;
}

.confirm-dialog-details {
  display: grid;
  gap: 8px;
  margin: 0;
  border-radius: 18px;
  padding: 14px 14px 14px 32px;
  color: #475569;
  background: rgba(248, 250, 252, 0.82);
  line-height: 1.5;
}

.confirm-dialog footer {
  justify-content: flex-end;
}

.confirm-dialog footer button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0.58rem 0.92rem;
  font-weight: 900;
}

.confirm-dialog .confirm-primary {
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #9c6bff);
  box-shadow: 0 16px 34px rgba(109, 93, 252, 0.22);
}

.identity-naming-dialog {
  width: min(920px, calc(100vw - 32px));
}

.identity-naming-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(320px, 1.22fr);
  gap: 22px;
}

.identity-naming-preview {
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  color: #64748b;
  background: #eef2f7;
}

.identity-naming-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 58vh;
  object-fit: contain;
}

.identity-naming-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.identity-naming-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.identity-naming-form legend,
.identity-name-input span {
  margin-bottom: 8px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
}

.identity-language-options,
.identity-name-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-language-options button,
.identity-name-candidates button {
  min-height: 36px;
  border: 1px solid #dce3ee;
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  color: #475569;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: none;
}

.identity-language-options button.active,
.identity-name-candidates button.active {
  border-color: rgba(91, 78, 232, 0.42);
  color: #4338ca;
  background: #eef2ff;
}

.identity-name-candidates button.refresh {
  color: #047857;
  background: #ecfdf5;
}

.identity-name-input {
  display: grid;
}

.identity-name-input input {
  min-height: 48px;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  color: #111827;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.identity-naming-policy,
.identity-naming-error {
  margin: 0;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.identity-naming-policy {
  color: #475569;
  background: #f8fafc;
}

.identity-naming-error {
  color: #be123c;
  background: #fff1f2;
}

.confirm-dialog.intent-warning .confirm-primary {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.22);
}

.confirm-dialog.intent-danger .confirm-primary {
  background: linear-gradient(135deg, #b42318, #ef4444);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.22);
}

.vlm-detail-modal header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.vlm-detail-modal h2 {
  margin: 0.18rem 0;
}

.vlm-detail-modal small {
  color: #64748b;
}

.vlm-detail-summary {
  margin: 0 0 14px;
  border-radius: 16px;
  padding: 12px 14px;
  color: #475569;
  background: rgba(248, 250, 252, 0.92);
  line-height: 1.55;
}

.vlm-detail-reasons {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
  color: #1f2937;
  line-height: 1.55;
}

.vlm-detail-reasons li::marker {
  color: #e11d48;
  font-weight: 900;
}

.provider-modal-status span {
  color: #6b7684;
  line-height: 1.4;
}

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

.provider-form-grid .check-row,
.provider-confirm-row {
  grid-column: 1 / -1;
}

.provider-modal .field {
  margin-bottom: 0;
}

.provider-modal .field.compact input,
.provider-modal .field.compact select {
  padding: 0.72rem 0.82rem;
}

.primary {
  width: 100%;
  margin: 6px 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #9c6bff);
}

.workspace {
  min-height: 700px;
  padding: 22px;
}

.empty-board {
  min-height: 440px;
  display: grid;
  place-content: center;
  padding: 50px;
  text-align: center;
}

.empty-board p {
  color: #6b7684;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.board-head h2 {
  margin: 0.2rem 0;
}

.board-head p {
  margin: 0;
  color: #6b7684;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
  justify-content: flex-end;
}

button.real-generation {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.18);
}

button.danger,
.task-actions button.danger,
[data-delete-set] {
  color: #b4232f;
}

.generation-route-card {
  display: grid;
  gap: 4px;
  margin: -4px 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  padding: 12px 14px;
  color: #475569;
  background: rgba(248, 250, 252, 0.78);
}

.generation-route-card strong {
  color: #17202a;
}

.generation-route-card span {
  color: #6b7684;
  line-height: 1.45;
}

.generation-route-card.ready {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(236, 253, 245, 0.82);
}

.generation-route-card.pending-confirm {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(255, 251, 235, 0.82);
}

.asset-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.05);
}

.asset-topbar h3 {
  margin: 0.12rem 0 0;
}

.asset-topbar .asset-tabs {
  justify-content: flex-start;
}

.asset-topbar .asset-tabs button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.asset-tabs small {
  border-radius: 999px;
  padding: 0.08rem 0.36rem;
  color: #64748b;
  background: rgba(226, 232, 240, 0.82);
  font-size: 0.68rem;
  font-weight: 900;
}

.asset-tabs button.active small {
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.72);
}

.asset-view-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 0.74rem;
  color: #64748b;
  background: rgba(241, 245, 249, 0.8);
  font-size: 0.78rem;
  font-weight: 850;
}

.library-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.library-head h2 {
  margin: 0.2rem 0;
}

.library-head p {
  margin: 0;
  color: #6b7684;
}

.filter-tabs,
.asset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs {
  margin-bottom: 16px;
}

.filter-tabs button,
.asset-tabs button {
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  color: #53606d;
}

.filter-tabs button.active,
.asset-tabs button.active {
  color: #fff;
  background: #17202a;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 420px));
  justify-content: start;
  gap: 14px;
}

.task-library-loading {
  display: grid;
  gap: 20px;
  min-height: 440px;
  padding: 18px 0 32px;
}

.task-library-loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 18px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.08);
}

.task-library-loading-head strong {
  display: block;
  font-size: 0.96rem;
}

.task-library-loading-head p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.task-library-loading-spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 3px solid rgba(139, 92, 246, 0.18);
  border-top-color: #8b5cf6;
  border-right-color: #ec4899;
  border-radius: 50%;
  animation: task-library-loading-spin 0.9s linear infinite;
}

.task-library-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 420px));
  justify-content: start;
  gap: 14px;
}

.task-library-skeleton-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 48%, rgba(15, 23, 42, 0.88) 100%),
    #e8e7ee;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.task-library-skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.62) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: task-library-loading-sweep 1.55s ease-in-out var(--skeleton-delay, 0ms) infinite;
}

.task-library-skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.task-library-skeleton-line.is-name {
  width: 58%;
  height: 22px;
}

.task-library-skeleton-line.is-meta {
  width: 78%;
}

.task-library-skeleton-line.is-action {
  width: 42%;
}

@keyframes task-library-loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes viral-video-search-loading-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes viral-video-search-download-pulse {
  50% { opacity: 0.35; }
}

@keyframes task-library-loading-sweep {
  to { transform: translateX(120%); }
}

.task-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
}

.task-pagination button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d5dfc);
  font-weight: 900;
  cursor: pointer;
}

.task-pagination button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.task-pagination .error-text {
  color: #be123c;
}

.task-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  isolation: isolate;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.task-card:hover,
.task-card:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(139, 92, 246, 0.12);
  transform: translateY(-4px);
}

.task-card.is-muted {
  opacity: 0.72;
}

.task-portrait {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #111827;
}

.task-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #111827;
  box-shadow: none;
  cursor: pointer;
}

.task-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: filter 0.34s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.task-card:hover .task-cover img,
.task-card:focus-within .task-cover img {
  filter: saturate(0.82) contrast(1.05) brightness(0.7);
  transform: scale(1.045);
}

.task-cover span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  color: #8a95a3;
  border: 0;
  border-radius: 0;
  font-size: 1.45rem;
  font-weight: 850;
}

.task-portrait-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.12) 0%, rgba(3, 7, 18, 0.08) 28%, rgba(3, 7, 18, 0.9) 100%),
    radial-gradient(circle at 78% 20%, rgba(139, 92, 246, 0.3), transparent 34%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.task-card:hover .task-portrait-overlay,
.task-card:focus-within .task-portrait-overlay {
  opacity: 1;
  transform: translateY(0);
}

.task-portrait-status {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-portrait-status span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  font-size: 0.68rem;
  font-weight: 850;
}

.task-portrait-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-portrait-identity small {
  color: rgba(216, 180, 254, 0.94);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.task-portrait-identity strong {
  overflow: hidden;
  color: #fff;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-overflow: ellipsis;
  text-shadow: 0 12px 32px rgba(15, 23, 42, 0.5);
  white-space: nowrap;
}

.task-portrait-social {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.task-portrait-social-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
}

.task-portrait-social-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(20, 20, 27, 0.96), rgba(2, 2, 6, 0.98));
  box-shadow:
    -2px 0 0 rgba(37, 244, 238, 0.92),
    2px 0 0 rgba(254, 44, 85, 0.92),
    0 8px 18px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-portrait-social-icon::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  box-shadow: 0 0 8px rgba(254, 44, 85, 0.72);
  content: "";
}

.task-portrait-social-icon svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: currentColor;
  filter:
    drop-shadow(-0.8px 0 rgba(37, 244, 238, 0.96))
    drop-shadow(0.8px 0 rgba(254, 44, 85, 0.96));
}

.task-portrait-social-item:hover .task-portrait-social-icon {
  box-shadow:
    -3px 0 0 #25f4ee,
    3px 0 0 #fe2c55,
    0 10px 22px rgba(0, 0, 0, 0.44);
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
}

.task-portrait-social-icon.is-likes {
  color: #fff5f7;
}

.task-portrait-social-icon.is-works {
  border-radius: 9px;
}

.task-portrait-social-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.task-portrait-social-copy strong,
.task-portrait-social-copy small {
  overflow: hidden;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-portrait-social-copy strong {
  color: #fff;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.task-portrait-social-copy small {
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.61rem;
  font-weight: 750;
}

.asset-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.asset-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  color: #8a95a3;
  border: 1px dashed #c8d2df;
  border-radius: 20px;
  font-size: 2rem;
  font-weight: 850;
}

.asset-meta-line small {
  color: #7b8794;
  font-size: 0.72rem;
  word-break: break-all;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-actions {
  pointer-events: auto;
  align-items: center;
}

.task-actions button,
.asset-item .candidate-meta button,
.asset-actions button {
  padding: 0.34rem 0.5rem;
  border-radius: 999px;
  color: #6d5dfc;
  font-size: 0.76rem;
}

.task-portrait-overlay .task-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.45rem 0.7rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(12px);
  font-weight: 850;
}

.task-portrait-overlay .task-actions button:hover,
.task-portrait-overlay .task-actions button:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.22);
}

.task-portrait-overlay .task-actions button.primary {
  border-color: transparent;
  color: #151029;
  background: linear-gradient(135deg, #f5f3ff, #ddd6fe 52%, #c4b5fd);
}

.task-portrait-overlay .task-actions button.danger,
.task-portrait-overlay .task-actions [data-delete-set] {
  color: #fecdd3;
}

@media (hover: none), (pointer: coarse) {
  .task-portrait-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .task-cover img {
    filter: saturate(0.88) contrast(1.03) brightness(0.76);
  }
}

.asset-drawer {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid #e3e8ef;
  border-radius: 24px;
  padding: 16px;
  background: rgba(247, 249, 252, 0.74);
}

.asset-drawer header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.asset-drawer h3 {
  margin: 0.2rem 0 0;
}

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

.asset-item {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
}

.asset-item.selected {
  outline: 2px solid rgba(109, 93, 252, 0.2);
  background: linear-gradient(180deg, rgba(250, 249, 255, 0.98), #fff);
}

.asset-item.is-generating {
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.asset-media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.asset-thumb {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #edf1f7;
  box-shadow: none;
}

.asset-meta-line {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.asset-status-row,
.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.asset-status-row span {
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  color: #64748b;
  background: rgba(241, 245, 249, 0.8);
  font-size: 0.68rem;
  font-weight: 800;
}

.asset-actions {
  font-size: 0.72rem;
}

.asset-hover-actions {
  pointer-events: none;
  position: absolute;
  inset: auto 8px 8px;
  z-index: 4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.asset-media-frame:hover .asset-hover-actions,
.asset-media-frame:focus-within .asset-hover-actions,
.reference-card:hover .asset-hover-actions,
.reference-card:focus-within .asset-hover-actions {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.asset-hover-actions .asset-actions {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.asset-hover-actions .asset-actions a,
.asset-hover-actions .asset-actions button,
.asset-hover-actions .asset-actions span {
  min-height: 26px;
  border-radius: 999px;
  color: #fff;
}

.asset-hover-actions .asset-actions a,
.asset-hover-actions .asset-actions button {
  padding: 0.28rem 0.48rem;
  background: rgba(255, 255, 255, 0.18);
}

.asset-hover-actions .asset-actions button.danger {
  color: #fff;
  background: rgba(220, 38, 38, 0.72);
}

.asset-hover-actions .replace-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.28rem 0.48rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.asset-actions a,
.asset-actions button,
.asset-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.asset-actions a {
  color: #6d5dfc;
  text-decoration: none;
  font-weight: 850;
}

.asset-actions button {
  background: rgba(109, 93, 252, 0.09);
  box-shadow: none;
  font-weight: 850;
}

.asset-actions button.danger {
  color: #b42318;
  background: rgba(254, 226, 226, 0.7);
}

.asset-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.slot-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.persona-portrait-entry-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(17, 94, 89, 0.24);
  border-radius: 24px;
  padding: 14px;
  overflow: hidden;
  color: #173b3a;
  text-align: left;
  background:
    radial-gradient(circle at 88% 8%, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(240, 253, 250, 0.96), rgba(236, 254, 255, 0.9));
  box-shadow: 0 18px 46px rgba(15, 118, 110, 0.1);
  cursor: pointer;
}

.persona-portrait-entry-card:hover {
  border-color: rgba(13, 148, 136, 0.52);
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(15, 118, 110, 0.16);
}

.persona-portrait-entry-card.is-complete {
  border-color: rgba(13, 148, 136, 0.46);
  background:
    radial-gradient(circle at 88% 8%, rgba(45, 212, 191, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(236, 253, 245, 0.98), rgba(226, 248, 247, 0.94));
}

.persona-portrait-entry-card.is-waiting {
  border-style: dashed;
  opacity: 0.82;
}

.persona-portrait-entry-card > header,
.persona-portrait-entry-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.persona-portrait-entry-card > header span,
.persona-portrait-entry-card > footer strong {
  font-weight: 900;
}

.persona-portrait-entry-card > header small {
  border-radius: 999px;
  padding: 5px 8px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 850;
}

.persona-portrait-entry-preview {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 65% 30%, rgba(45, 212, 191, 0.32), transparent 30%),
    linear-gradient(155deg, #0f3f3c, #071f26 62%, #071419);
}

.persona-portrait-entry-preview::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(2, 20, 23, 0.74));
  pointer-events: none;
}

.persona-portrait-entry-preview img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 400ms ease;
}

.persona-portrait-entry-card.is-complete .persona-portrait-entry-preview img {
  object-fit: contain;
  object-position: center;
}

.persona-portrait-entry-card:hover .persona-portrait-entry-preview img {
  transform: scale(1.025);
}

.persona-portrait-entry-preview > div {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.persona-portrait-entry-preview > div span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
}

.persona-portrait-entry-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(6, 35, 38, 0.66);
  backdrop-filter: blur(10px);
  font-size: 0.68rem;
  font-weight: 850;
}

.persona-portrait-entry-card > footer div {
  display: grid;
  gap: 3px;
}

.persona-portrait-entry-card > footer span,
.persona-portrait-entry-policy {
  color: #52706e;
  font-size: 0.72rem;
}

.persona-portrait-entry-card > footer b {
  color: #0f766e;
  font-size: 1.35rem;
}

.persona-portrait-entry-policy {
  display: block;
  border-top: 1px solid rgba(15, 118, 110, 0.13);
  padding-top: 10px;
  text-align: center;
}

.slot-card.is-generating {
  border-color: rgba(124, 58, 237, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 243, 255, 0.9)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

.slot-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.slot-card header span {
  font-weight: 850;
}

.slot-card header small,
.slot-actions span {
  color: #7b8794;
}

.selected-preview {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.9)),
    #e8edf4;
  line-height: 0;
}

.model-name-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: inline-grid;
  gap: 2px;
  max-width: calc(100% - 28px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 8px 11px;
  overflow: hidden;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-name-overlay small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 750;
}

.model-name-overlay.compact {
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 0.68rem;
}

.model-name-overlay.fullscreen {
  top: 18px;
  left: 18px;
  z-index: 8;
}

.selected-preview-frame {
  display: block;
  line-height: 1.35;
}

.selected-preview.shimmer-frame {
  color: #7c3aed;
  background:
    linear-gradient(90deg, #eef2ff 0%, #f8fafc 45%, #ede9fe 100%),
    #e8edf4;
}

.selected-preview.empty {
  min-height: 340px;
  border: 1px dashed #c8d2df;
  color: #8a95a3;
  line-height: 1.4;
}

.identity-anchor-empty {
  gap: 18px;
  padding: 28px;
  text-align: center;
}

.identity-anchor-empty-copy {
  display: grid;
  gap: 8px;
  max-width: 360px;
  line-height: 1.55;
}

.identity-anchor-empty-copy strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.identity-anchor-empty-copy span {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 750;
}

.selected-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
}

.selected-preview img[data-lazy-image-src]:not([src]),
.selected-preview img[data-authenticated-image-src]:not([src]) {
  width: min(100%, 540px);
  aspect-ratio: 3 / 4;
  background: linear-gradient(110deg, #eef2f7 8%, #f8fafc 18%, #eef2f7 33%);
  background-size: 200% 100%;
  animation: shimmer 1.35s linear infinite;
}

.selected-preview-button {
  width: 100%;
  padding: 0;
  box-shadow: none;
  cursor: zoom-in;
  background: #f8fafc;
  transform: none;
}

.selected-preview-image-button {
  display: grid;
  place-items: center;
  min-height: 0;
  border-radius: 20px;
  background: transparent;
}

.selected-preview-button:hover {
  transform: none;
}

.selected-preview-quality {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  color: #334155;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  pointer-events: none;
  transition: bottom 0.2s ease;
}

.selected-preview-quality.has-vlm-details {
  width: fit-content;
}

.selected-preview-quality .quality-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.24rem 0.56rem;
  font-size: 0.74rem;
}

.selected-preview-quality .evaluator-chips {
  gap: 5px;
  margin-top: 7px;
}

.selected-preview-quality .evaluator-chip {
  font-size: 0.7rem;
}

.selected-preview-quality-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 7px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
}

.vlm-details-trigger {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-top: 8px;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  color: #be123c;
  background: rgba(255, 241, 242, 0.7);
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.vlm-details-trigger:hover {
  color: #fff;
  background: #e11d48;
  transform: translateY(-1px);
}

.vlm-details-trigger.status-error {
  border-color: rgba(245, 158, 11, 0.26);
  color: #b45309;
  background: rgba(255, 251, 235, 0.72);
}

.vlm-details-trigger.status-error:hover {
  color: #fff;
  background: #d97706;
}

.selected-preview-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 999px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  transform: translateY(-6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.selected-preview-frame:hover .selected-preview-actions,
.selected-preview-frame:focus-within .selected-preview-actions {
  opacity: 1;
  transform: translateY(0);
}

.selected-preview-actions a,
.selected-preview-actions button,
.selected-preview-action-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  color: #4f46e5;
  background: rgba(238, 242, 255, 0.94);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.selected-preview-actions a:hover,
.selected-preview-actions button:hover {
  color: #fff;
  background: #6d5dfc;
  transform: translateY(-1px);
}

.selected-preview-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.selected-preview-actions .identity-anchor-primary {
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #9333ea);
  box-shadow: 0 10px 26px rgba(109, 93, 252, 0.24);
}

.selected-preview-actions .identity-anchor-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #5b4df0, #7e22ce);
}

.identity-anchor-actions {
  max-width: min(520px, calc(100% - 28px));
}

.selected-preview-action-note {
  color: #047857;
  background: rgba(209, 250, 229, 0.94);
}

.selected-candidate-choice-row {
  pointer-events: none;
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 5;
  display: flex;
  justify-content: center;
  width: min(360px, calc(100% - 32px));
  opacity: 0;
  transform: translate(-50%, calc(100% + 36px));
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.selected-preview-frame:hover .selected-candidate-choice-row,
.selected-preview-frame:focus-within .selected-candidate-choice-row,
.selected-candidate-choice-row.is-selected {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0);
}

.slot-card.is-selection-pending {
  border-color: rgba(109, 93, 252, 0.32);
  box-shadow: 0 16px 42px rgba(109, 93, 252, 0.12);
}

.slot-card.is-selection-pending .selected-candidate-choice-row {
  pointer-events: none;
  opacity: 1;
  transform: translate(-50%, 0);
}

.selected-preview-frame:hover .selected-preview-quality,
.selected-preview-frame:focus-within .selected-preview-quality,
.selected-preview-frame:has(.selected-candidate-choice-row.is-selected) .selected-preview-quality {
  bottom: 88px;
}

.selected-candidate-choice {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(109, 93, 252, 0.2);
  border-radius: 18px;
  padding: 0.7rem 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #9333ea);
  box-shadow: 0 14px 32px rgba(109, 93, 252, 0.25);
  line-height: 1.2;
  text-align: center;
}

.selected-candidate-choice strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.selected-candidate-choice small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 750;
}

button.selected-candidate-choice:hover {
  background: linear-gradient(135deg, #5b4df0, #7e22ce);
  box-shadow: 0 17px 38px rgba(109, 93, 252, 0.32);
  transform: translateY(-2px);
}

.selected-candidate-choice.is-selected {
  border-color: rgba(5, 150, 105, 0.2);
  color: #065f46;
  background: linear-gradient(135deg, #d1fae5, #ecfdf5);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.16);
}

.selected-candidate-choice.is-selected small {
  color: #047857;
}

button.selected-candidate-choice.is-selected:hover {
  color: #fff;
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.26);
}

button.selected-candidate-choice.is-selected:hover small {
  color: rgba(255, 255, 255, 0.82);
}

.selected-candidate-choice.is-paired {
  border-color: rgba(56, 189, 248, 0.24);
  color: #075985;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.14);
}

.selected-candidate-choice.is-paired small {
  color: #0369a1;
}

.selected-candidate-choice.is-unavailable {
  border-color: rgba(225, 29, 72, 0.18);
  color: #9f1239;
  background: #fff1f2;
  box-shadow: none;
}

.selected-candidate-choice.is-unavailable small {
  color: #be123c;
}

.selected-candidate-choice:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

@media (hover: none), (pointer: coarse) {
  .selected-candidate-choice-row {
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .selected-preview-quality {
    bottom: 88px;
  }
}

.slot-generation-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at center, rgba(79, 70, 229, 0.26), transparent 62%),
    rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(2px);
}

.slot-generation-overlay.is-generation {
  background:
    radial-gradient(circle at center, rgba(124, 58, 237, 0.32), transparent 62%),
    rgba(49, 46, 129, 0.28);
}

.slot-generation-overlay.is-quality-gate {
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.3), transparent 62%),
    rgba(8, 47, 73, 0.3);
}

.slot-generation-status {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.3);
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(16px);
}

.slot-generation-overlay.is-generation .slot-generation-status {
  border-color: rgba(196, 181, 253, 0.34);
  background: linear-gradient(145deg, rgba(46, 16, 101, 0.9), rgba(76, 29, 149, 0.86));
}

.slot-generation-overlay.is-quality-gate .slot-generation-status {
  border-color: rgba(103, 232, 249, 0.38);
  background: linear-gradient(145deg, rgba(8, 47, 73, 0.94), rgba(14, 116, 144, 0.88));
  box-shadow: 0 22px 70px rgba(8, 145, 178, 0.3);
}

.slot-generation-overlay.is-quality-gate .slot-generation-status span {
  color: #cffafe;
  background: rgba(34, 211, 238, 0.18);
}

.slot-generation-status span {
  justify-self: center;
  width: max-content;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  color: #c7f9d7;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.72rem;
  font-weight: 900;
}

.slot-generation-status strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-generation-status small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

.generation-pipeline-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: 4px;
}

.generation-pipeline-stages b {
  border-radius: 999px;
  padding: 0.36rem 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.generation-pipeline-stages .generation-stage {
  color: #ede9fe;
  background: rgba(139, 92, 246, 0.3);
}

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

.slot-actions .slot-sequence-blocked {
  color: #9a5b16;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: right;
}

.retained-gate-failures {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 16px;
  padding: 12px;
  color: #881337;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 251, 235, 0.78));
}

.retained-gate-failures-heading {
  display: grid;
  gap: 3px;
}

.retained-gate-failures-heading strong {
  font-size: 0.84rem;
}

.retained-gate-failures-heading span,
.retained-gate-failures small {
  color: #9f1239;
  font-size: 0.72rem;
  line-height: 1.45;
}

.retained-gate-failures ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.retained-gate-failures li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(225, 29, 72, 0.12);
  padding-top: 7px;
}

.retained-gate-failures li > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.retained-gate-failures li b {
  font-size: 0.76rem;
}

.retained-gate-failures li span {
  color: #6b2139;
  font-size: 0.7rem;
  line-height: 1.4;
}

.retained-gate-failure-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.retained-gate-failure-actions button {
  min-height: 28px;
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  color: #be123c;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
}

.candidate-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 86px));
  justify-content: start;
  gap: 7px;
}

.candidate {
  position: relative;
  min-width: 0;
}

.candidate > .vlm-details-trigger {
  width: 100%;
  min-height: 23px;
  margin-top: 4px;
  padding: 0.22rem 0.35rem;
  justify-content: center;
  overflow: hidden;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-placeholder .thumb {
  min-height: 0;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  color: #6d28d9;
  background:
    linear-gradient(90deg, #edf2ff 0%, #ffffff 45%, #fae8ff 100%),
    #edf1f7;
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.generation-placeholder .candidate-meta {
  color: #7c3aed;
}

.quality-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  border-radius: 999px;
  padding: 0.18rem 0.36rem;
  color: #334155;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.58rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.candidate-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(148, 27, 57, 0.2);
  border-radius: 999px;
  padding: 0;
  color: #be123c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.candidate-delete:hover {
  color: #fff;
  background: #e11d48;
  transform: translateY(-1px);
}

.candidate-lock {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: rgba(76, 29, 149, 0.76);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.quality-badge.status-passed {
  color: #047857;
  background: rgba(209, 250, 229, 0.72);
}

.quality-badge.status-failed {
  color: #b4232f;
  background: rgba(255, 229, 233, 0.72);
}

.quality-badge.status-pending_review,
.quality-badge.status-pending {
  color: #b45309;
  background: rgba(255, 251, 235, 0.72);
}

.quality-badge.status-not_configured,
.quality-badge.status-not_applicable {
  color: #475569;
  background: rgba(241, 245, 249, 0.7);
}

.evaluator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

.evaluator-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 0.14rem 0.38rem;
  color: #475569;
  background: rgba(248, 250, 252, 0.66);
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.evaluator-chip.status-passed {
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
  background: rgba(209, 250, 229, 0.62);
}

.evaluator-chip.status-failed,
.evaluator-chip.status-error {
  border-color: rgba(244, 63, 94, 0.22);
  color: #be123c;
  background: rgba(255, 228, 230, 0.64);
}

.evaluator-chip.status-pending {
  border-color: rgba(245, 158, 11, 0.26);
  color: #b45309;
  background: rgba(255, 251, 235, 0.64);
}

.evaluator-chip.status-not_configured,
.evaluator-chip.status-not_applicable,
.evaluator-chip.status-not_run {
  color: #64748b;
  background: rgba(241, 245, 249, 0.6);
}

.thumb {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #edf1f7;
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.thumb img[data-lazy-image-src]:not([src]),
.thumb img[data-authenticated-image-src]:not([src]) {
  background: linear-gradient(110deg, #e7ecf3 8%, #f8fafc 18%, #e7ecf3 33%);
  background-size: 200% 100%;
  animation: shimmer 1.35s linear infinite;
}

.candidate.selected .thumb {
  outline: 3px solid #6d5dfc;
}

.candidate.previewing .thumb {
  outline: 3px solid #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.18);
}

.candidate.selected.previewing .thumb {
  outline-color: #6d5dfc;
  box-shadow: 0 0 0 5px rgba(109, 93, 252, 0.16);
}

.thumb-preview {
  cursor: pointer;
}

.thumb-preview:hover {
  transform: translateY(-1px);
}

.candidate-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin-top: 4px;
  font-size: 0.66rem;
  line-height: 1.25;
}

.candidate-meta a {
  color: #6d5dfc;
  text-decoration: none;
  font-weight: 800;
}

.candidate-meta button {
  padding: 0;
  color: #6d5dfc;
  background: transparent;
  box-shadow: none;
  font-size: 0.66rem;
  font-weight: 800;
}

.image-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 16px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(14px);
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.image-preview-modal {
  width: min(1180px, calc(100vw - 32px));
  height: min(92vh, 980px);
  height: min(980px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  padding: 18px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.94)),
    #111827;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.image-preview-modal header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.image-preview-modal h2 {
  margin: 0.18rem 0;
  font-size: clamp(1.15rem, 2vw, 1.9rem);
}

.image-preview-modal small,
.image-preview-modal footer {
  color: rgba(226, 232, 240, 0.74);
  word-break: break-all;
}

.image-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-preview-actions a {
  border-radius: 999px;
  padding: 0.64rem 0.9rem;
  color: #17202a;
  background: #fff;
  text-decoration: none;
  font-weight: 850;
}

.image-preview-body {
  min-width: 0;
  min-height: 0;
  display: grid;
}

.image-preview-modal.has-analysis .image-preview-body {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
}

.image-preview-modal.has-style-details {
  width: min(1480px, calc(100vw - 32px));
  height: min(1020px, calc(100dvh - 32px));
  border-radius: 22px;
}

.image-preview-modal.has-style-details .image-preview-body {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 18px;
}

.image-preview-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    #0f172a;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.image-preview-analysis {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgba(226, 232, 240, 0.2);
  padding: 2px 4px 8px 16px;
  color: #f8fafc;
}

.image-preview-style-details {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgba(120, 215, 189, 0.24);
  padding: 2px 6px 12px 18px;
  color: #f8fafc;
  scrollbar-color: rgba(120, 215, 189, 0.42) transparent;
  scrollbar-width: thin;
}

.image-preview-style-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 15px;
  background: #1d2939;
}

.image-preview-style-heading > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.image-preview-style-heading span,
.image-preview-style-section h3 {
  letter-spacing: 0;
  text-transform: uppercase;
}

.image-preview-style-heading span {
  color: #78d7bd;
  font-size: 0.68rem;
  font-weight: 850;
}

.image-preview-style-heading strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.35;
}

.image-preview-style-heading small {
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.72rem;
  line-height: 1.4;
  word-break: normal;
}

.image-preview-style-heading b {
  flex: 0 0 auto;
  border: 1px solid rgba(120, 215, 189, 0.5);
  border-radius: 4px;
  padding: 5px 8px;
  color: #c6f7e9;
  background: rgba(16, 94, 78, 0.28);
  font-size: 0.66rem;
  line-height: 1;
}

.image-preview-style-description {
  margin: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  padding: 14px 0 2px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.image-preview-style-section {
  border-top: 1px solid rgba(226, 232, 240, 0.14);
  padding: 17px 0 2px;
}

.image-preview-style-description + .image-preview-style-section {
  margin-top: 14px;
}

.image-preview-style-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.76rem;
  font-weight: 850;
}

.image-preview-style-section h3 span {
  color: #ffb28a;
  font-size: 0.64rem;
}

.image-preview-style-copy,
.image-preview-style-parameters {
  display: grid;
  gap: 0;
  margin: 0;
}

.image-preview-style-copy > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
  padding: 11px 0;
}

.image-preview-style-copy > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.image-preview-style-copy dt,
.image-preview-style-parameters dt {
  color: rgba(226, 232, 240, 0.5);
  font-size: 0.7rem;
  font-weight: 750;
}

.image-preview-style-copy dd,
.image-preview-style-parameters dd {
  min-width: 0;
  margin: 0;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.8rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.image-preview-style-copy > .is-empty dd {
  color: rgba(226, 232, 240, 0.4);
}

.image-preview-style-parameters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.image-preview-style-parameters > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
  padding: 10px 0;
}

.image-preview-style-parameters > div:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.image-preview-style-parameters dd {
  color: #d9f7ee;
  font-size: 0.76rem;
  line-height: 1.4;
}

.image-preview-analysis-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 4px 0 12px;
  background: #1d2939;
}

.image-preview-analysis-heading div {
  display: grid;
  gap: 3px;
}

.image-preview-analysis-heading span,
.image-preview-analysis h3 {
  margin: 0;
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
}

.image-preview-analysis-heading strong {
  font-size: 0.92rem;
}

.image-preview-analysis-summary,
.image-preview-analysis-safety,
.image-preview-analysis-group {
  border-top: 1px solid rgba(226, 232, 240, 0.14);
  padding: 12px 0;
}

.image-preview-analysis-summary p,
.image-preview-analysis-error {
  margin: 7px 0 0;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.image-preview-analysis-error {
  border-top: 1px solid rgba(226, 232, 240, 0.14);
  padding-top: 12px;
  color: #fecaca;
}

.image-preview-analysis-safety > strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 0.86rem;
}

.image-preview-analysis-safety-basis {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.74rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.image-preview-analysis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.image-preview-analysis-tags span {
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 4px;
  padding: 3px 7px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  font-size: 0.72rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.image-preview-analysis-tags.safety span {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.3);
}

.image-preview-analysis-empty {
  display: block;
  margin-top: 7px;
  color: rgba(226, 232, 240, 0.46);
  font-size: 0.74rem;
}

.photography-analysis-review.detail {
  margin-top: 12px;
}

.image-preview-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.image-preview-stage.is-zoomed {
  cursor: grab;
}

.image-preview-stage.is-dragging {
  cursor: grabbing;
}

.image-preview-stage.is-dragging img {
  cursor: grabbing !important;
}

html.image-preview-open,
body.image-preview-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

.image-preview-modal footer {
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 820px) {
  .image-preview-modal.has-analysis .image-preview-body,
  .image-preview-modal.has-style-details .image-preview-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(240px, 1fr) minmax(150px, 34vh);
    gap: 12px;
  }

  .image-preview-analysis,
  .image-preview-style-details {
    border-top: 1px solid rgba(226, 232, 240, 0.2);
    border-left: 0;
    padding: 12px 2px 4px;
  }

  .image-preview-modal.has-style-details {
    width: min(100%, calc(100vw - 24px));
    height: calc(100dvh - 24px);
    padding: 14px;
  }

  .image-preview-modal.has-style-details .image-preview-body {
    grid-template-rows: minmax(260px, 52vh) minmax(180px, 1fr);
  }

  .image-preview-style-heading {
    padding-top: 0;
  }
}

.error-banner {
  margin-bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  color: #8a1f2d;
  background: #ffe5e9;
}

.model-sculptor-agent {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(124, 97, 255, 0.22);
  border-radius: 26px;
  padding: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(124, 97, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
}

.model-sculptor-agent > * {
  position: relative;
  z-index: 1;
}

.model-sculptor-agent.is-running {
  border-color: rgba(109, 93, 252, 0.42);
  box-shadow: 0 24px 70px rgba(109, 93, 252, 0.18);
}

.model-sculptor-agent.is-running::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -40%;
  background:
    conic-gradient(from 140deg, transparent, rgba(109, 93, 252, 0.18), transparent 38%),
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.12), transparent 30%);
  animation: sculptor-card-sweep 3.2s linear infinite;
}

.model-sculptor-agent.is-running::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.78);
}

.model-sculptor-agent.collapsed {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.82)),
    rgba(255, 255, 255, 0.92);
}

.model-sculptor-agent.approved-compact {
  display: block;
  margin-bottom: 10px;
  border-color: rgba(16, 185, 129, 0.24);
  border-radius: 18px;
  padding: 0;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.88), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.06);
}

.sculptor-approved-compact-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  border: 0;
  border-radius: 18px;
  padding: 10px 14px;
  color: #1f2937;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.sculptor-approved-compact-toggle:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.sculptor-approved-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.2);
  font-size: 1rem;
  font-weight: 950;
}

.sculptor-approved-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.sculptor-approved-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sculptor-approved-heading strong {
  color: #111827;
  font-size: 0.96rem;
}

.sculptor-approved-heading em {
  border-radius: 999px;
  padding: 0.22rem 0.54rem;
  color: #047857;
  background: rgba(209, 250, 229, 0.92);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.sculptor-approved-copy small {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sculptor-approved-expand {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.sculptor-approved-expand b {
  font-size: 0.68rem;
}

.model-sculptor-agent header,
.model-sculptor-agent footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.model-sculptor-agent footer {
  flex-wrap: wrap;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 10px;
}

.model-sculptor-agent h3,
.model-sculptor-agent h4,
.model-sculptor-agent p {
  margin: 0;
}

.model-sculptor-agent h3 {
  color: #121826;
  font-size: 1.2rem;
}

.model-sculptor-agent h4 {
  color: #1f2937;
  font-size: 0.88rem;
}

.model-sculptor-agent p,
.model-sculptor-agent li,
.model-sculptor-agent small {
  color: #64748b;
  line-height: 1.5;
}

.sculptor-status {
  display: grid;
  justify-items: end;
  gap: 6px;
  white-space: nowrap;
}

.sculptor-status span {
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: #4c1d95;
  background: #ede9fe;
  font-weight: 900;
}

.generation-workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 0 16px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 18px;
  padding: 10px 12px;
  color: #7c3aed;
  background: rgba(245, 243, 255, 0.72);
  font-weight: 850;
}

.generation-workflow b {
  color: #a78bfa;
  font-size: 0.82rem;
}

.generation-workflow .active {
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
  color: #065f46;
  background: #d1fae5;
}

.sculptor-primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(16, 185, 129, 0.08)),
    rgba(255, 255, 255, 0.84);
}

.sculptor-primary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sculptor-primary-copy strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 950;
}

.sculptor-primary-copy small {
  color: #64748b;
}

.sculptor-vision-provider {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sculptor-vision-provider > span {
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.sculptor-vision-provider select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 13px;
  padding: 0.55rem 0.7rem;
  color: #312e81;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 850;
}

.sculptor-vision-provider select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.sculptor-vision-provider small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
}

.sculptor-primary-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.sculptor-main-action,
.sculptor-detail-toggle {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 950;
}

.sculptor-main-action.draft {
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #9c6bff);
  box-shadow: 0 16px 34px rgba(109, 93, 252, 0.28);
}

.sculptor-main-action.approve {
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.24);
}

.sculptor-detail-toggle {
  color: #4c1d95;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(124, 58, 237, 0.18), 0 12px 24px rgba(76, 29, 149, 0.1);
}

.sculptor-main-action:disabled {
  color: #94a3b8;
  background: #e5e7eb;
  box-shadow: none;
}

.sculptor-age-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(245, 243, 255, 0.82)),
    rgba(255, 255, 255, 0.88);
}

.sculptor-age-selector > div,
.sculptor-age-selector label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sculptor-age-selector strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.sculptor-age-selector small,
.sculptor-age-selector p {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.sculptor-age-selector p {
  grid-column: 1 / -1;
  margin: 0;
}

.sculptor-age-selector select {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 14px;
  padding: 0 0.75rem;
  color: #0f172a;
  background: #fff;
  font-weight: 800;
}

.sculptor-age-selector.locked {
  opacity: 0.78;
}

.sculptor-agent-activity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(109, 93, 252, 0.16);
  border-radius: 22px;
  padding: 13px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 243, 255, 0.82)),
    rgba(255, 255, 255, 0.86);
}

.sculptor-orb {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff, #a78bfa 42%, #6d5dfc 72%);
  box-shadow: 0 12px 28px rgba(109, 93, 252, 0.28);
}

.sculptor-orb span {
  position: absolute;
  inset: -7px;
  border: 1.5px solid rgba(109, 93, 252, 0.32);
  border-radius: 999px;
  animation: sculptor-orbit 1.9s ease-in-out infinite;
}

.sculptor-orb span + span {
  inset: -13px;
  border-color: rgba(16, 185, 129, 0.24);
  animation-delay: 0.35s;
}

.sculptor-activity-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sculptor-activity-copy strong {
  color: #111827;
  font-size: 0.96rem;
  font-weight: 950;
}

.sculptor-activity-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 7px;
  min-width: min(460px, 100%);
}

.sculptor-activity-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num label"
    "num status";
  column-gap: 6px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 0.36rem 0.46rem;
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.82);
  font-size: 0.7rem;
  font-weight: 900;
}

.sculptor-activity-step b {
  grid-area: num;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  color: inherit;
  font-size: 0.68rem;
}

.sculptor-activity-step span {
  grid-area: label;
  white-space: nowrap;
}

.sculptor-activity-step small {
  grid-area: status;
  color: inherit;
  font-size: 0.62rem;
  opacity: 0.75;
}

.sculptor-activity-step.is-done {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.86);
}

.sculptor-activity-step.is-done b {
  background: rgba(16, 185, 129, 0.15);
}

.sculptor-activity-step.is-active {
  color: #5b21b6;
  border-color: rgba(109, 93, 252, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 233, 254, 0.94)),
    rgba(237, 233, 254, 0.9);
  box-shadow: 0 10px 22px rgba(109, 93, 252, 0.18);
  animation: sculptor-step-pulse 1.8s ease-in-out infinite;
}

.sculptor-activity-step.is-active b {
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #6d5dfc);
  box-shadow: 0 6px 14px rgba(109, 93, 252, 0.24);
}

.sculptor-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.sculptor-summary-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(124, 97, 255, 0.12);
  border-radius: 16px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.74);
}

.sculptor-summary-grid small {
  color: #7c3aed;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.sculptor-summary-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #17202a;
  font-size: 0.8rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sculptor-source-notice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(124, 97, 255, 0.14);
  border-radius: 18px;
  padding: 11px 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 243, 255, 0.72)),
    rgba(255, 255, 255, 0.84);
}

.sculptor-source-notice strong {
  color: #312e81;
  font-size: 0.88rem;
  font-weight: 950;
}

.sculptor-source-notice span,
.sculptor-source-notice small {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
}

.sculptor-source-notice.ai {
  border-color: rgba(16, 185, 129, 0.22);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.84);
}

.sculptor-source-notice.ai strong {
  color: #047857;
}

.sculptor-source-notice.fallback {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.84);
}

.sculptor-source-notice.fallback strong {
  color: #b45309;
}

.sculptor-source-notice.local strong {
  color: #6d28d9;
}

.sculptor-action-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 18px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.08);
}

.sculptor-action-notice strong {
  color: #047857;
  font-size: 0.9rem;
  font-weight: 950;
}

.sculptor-action-notice span {
  grid-column: 1;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.45;
}

.sculptor-action-notice button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0;
  color: #047857;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.24);
}

.sculptor-action-notice.warning {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.08);
}

.sculptor-action-notice.warning strong,
.sculptor-action-notice.warning button {
  color: #b45309;
}

.sculpture-brief-card {
  display: grid;
  gap: 13px;
  border: 1px solid rgba(109, 93, 252, 0.18);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(237, 233, 254, 0.72), rgba(240, 253, 250, 0.7)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(76, 29, 149, 0.09);
}

.sculpture-brief-card h4,
.sculpture-brief-card p,
.sculpture-brief-card ul {
  margin: 0;
}

.sculpture-brief-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.sculpture-brief-head h4 {
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.25;
}

.sculpture-brief-head small {
  max-width: 300px;
  color: #64748b;
  line-height: 1.45;
  text-align: right;
}

.sculpture-brief-card > p {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.65;
}

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

.sculpture-brief-columns > div {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(124, 97, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.sculpture-brief-columns strong {
  color: #4c1d95;
  font-size: 0.82rem;
  font-weight: 950;
}

.sculpture-brief-columns ul {
  display: grid;
  gap: 7px;
  padding-left: 1.05rem;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}

.sculpture-brief-risks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sculpture-brief-risks span {
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  color: #92400e;
  background: rgba(255, 251, 235, 0.74);
  font-size: 0.74rem;
  font-weight: 850;
}

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

.sculptor-layout article {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.78);
}

.sculptor-detail-section {
  min-width: 0;
}

.sculptor-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 12px;
}

.sculptor-section-heading h4 {
  margin: 0;
}

.sculptor-section-heading small {
  max-width: 520px;
  color: #64748b;
  line-height: 1.5;
  text-align: right;
}

.sculptor-detail-block {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(124, 97, 255, 0.1);
  border-radius: 18px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.68);
}

.sculptor-detail-block h5 {
  margin: 0;
  color: #17202a;
  font-size: 0.86rem;
  font-weight: 950;
}

.sculptor-chip-list,
.sculptor-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sculptor-chip {
  max-width: 100%;
  border: 1px solid rgba(124, 97, 255, 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: #334155;
  background: #fff;
  font-size: 0.74rem;
  line-height: 1.25;
}

.sculptor-chip.good {
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
  background: #ecfdf5;
}

.sculptor-chip.warn {
  border-color: rgba(245, 158, 11, 0.24);
  color: #92400e;
  background: #fffbeb;
}

.sculptor-blueprint-card,
.sculptor-linter-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(124, 97, 255, 0.14);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.sculptor-card-label {
  display: block;
  margin-bottom: 4px;
  color: #7c3aed;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sculptor-blueprint-card strong,
.sculptor-linter-card strong {
  display: block;
  color: #17202a;
  line-height: 1.25;
}

.sculptor-blueprint-card small,
.sculptor-linter-card small {
  display: block;
  margin-top: 3px;
  color: #6b7684;
  line-height: 1.35;
}

.sculptor-blueprint-facts {
  display: grid;
  gap: 7px;
  margin: 0;
}

.sculptor-blueprint-facts div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
}

.sculptor-blueprint-facts dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.sculptor-blueprint-facts dd {
  margin: 0;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.35;
}

.sculptor-linter-card.risk-high {
  border-color: rgba(239, 68, 68, 0.28);
  background: #fef2f2;
}

.sculptor-linter-card.risk-medium {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffbeb;
}

.sculptor-linter-card.risk-low {
  border-color: rgba(16, 185, 129, 0.22);
  background: #ecfdf5;
}

.sculptor-group {
  display: grid;
  gap: 7px;
}

.sculptor-editor-card,
.sculptor-history-card {
  grid-column: auto;
}

.sculptor-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.sculptor-editor-card.locked {
  border-color: rgba(16, 185, 129, 0.24);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.84), rgba(248, 250, 252, 0.88)),
    rgba(248, 250, 252, 0.78);
}

.sculptor-locked-notice {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 18px;
  padding: 14px;
  color: #065f46;
  background: rgba(236, 253, 245, 0.82);
  line-height: 1.55;
}

.sculptor-locked-notice strong {
  font-size: 0.95rem;
  font-weight: 950;
}

.sculptor-locked-notice span {
  color: #047857;
  font-size: 0.84rem;
  font-weight: 750;
}

.sculptor-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 10px;
}

.sculptor-edit-actions button {
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 900;
}

.sculptor-footnote {
  justify-content: flex-start;
}

.sculptor-edit-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sculptor-edit-field span {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
}

.sculptor-edit-field textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid rgba(124, 97, 255, 0.18);
  border-radius: 14px;
  padding: 10px 11px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  outline: none;
}

.sculptor-edit-field textarea:focus {
  border-color: rgba(124, 97, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(124, 97, 255, 0.12);
}

.sculpture-history {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sculpture-history li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
}

.sculpture-history strong {
  border-radius: 999px;
  padding: 0.18rem 0.46rem;
  color: #4c1d95;
  background: #ede9fe;
  font-size: 0.72rem;
}

.sculpture-history span {
  overflow: hidden;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-score,
.quality-recommendation {
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  color: #334155;
  background: rgba(241, 245, 249, 0.92);
  font-size: 0.72rem;
  font-weight: 850;
}

.quality-recommendation {
  color: #5b21b6;
  background: #ede9fe;
}

.publication-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.publication-panel h3,
.publication-panel p {
  margin: 0;
}

.publication-facts,
.publication-issues {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.publication-facts span,
.publication-issues .issue {
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  color: #334155;
  background: #f1f5f9;
  font-size: 0.74rem;
  font-weight: 850;
}

.publication-issues .blocking {
  color: #991b1b;
  background: #fee2e2;
}

.publication-issues .pending {
  color: #92400e;
  background: #fef3c7;
}

.model-sculptor-agent ul {
  margin: 0;
  padding-left: 18px;
}

.studio-section-switch {
  display: flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  margin: 16px 0 14px;
  border-bottom: 1px solid #dbe2ea;
}

.studio-section-switch button {
  min-height: 42px;
  border-radius: 0;
  padding: 0.55rem 0;
  color: #6b7786;
  background: transparent;
  box-shadow: none;
}

.studio-section-switch button.active {
  color: #17202a;
  box-shadow: inset 0 -3px 0 #7b61ff;
}

.style-library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  min-width: min(100%, 360px);
}

.style-library-summary div {
  display: grid;
  gap: 3px;
  border-left: 1px solid #dce3eb;
  padding: 10px 16px;
}

.style-library-summary strong {
  color: #17202a;
  font-size: 1.2rem;
}

.style-library-summary span {
  color: #6b7786;
  font-size: 0.76rem;
}

.style-library-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  min-height: 680px;
  border-top: 1px solid #dbe2ea;
  background: #fff;
}

.style-library-master {
  min-width: 0;
  border-right: 1px solid #dbe2ea;
  background: #f7f9fb;
}

.style-library-master > header,
.style-library-create-form,
.style-library-readonly {
  margin: 0;
  border-bottom: 1px solid #dbe2ea;
  padding: 20px;
}

.style-library-master h2,
.style-library-detail h2,
.style-library-section h3 {
  margin: 3px 0 0;
  letter-spacing: 0;
}

.style-library-create-form {
  display: grid;
  gap: 12px;
}

.style-library-create-form textarea {
  width: 100%;
  resize: vertical;
}

.style-library-definition-list {
  display: grid;
}

.style-library-definition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  border: 0;
  border-bottom: 1px solid #e2e7ec;
  border-radius: 0;
  padding: 14px 18px;
  color: #27313b;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.style-library-definition-row:hover,
.style-library-definition-row.active {
  background: #fff;
}

.style-library-definition-row.active {
  box-shadow: inset 3px 0 0 #5842b8;
}

.style-library-definition-row > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.style-library-definition-row strong,
.style-library-definition-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-library-definition-row small {
  color: #75808c;
  font-size: 0.74rem;
}

.style-library-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #cfd7df;
  border-radius: 999px;
  padding: 3px 8px;
  color: #52606d;
  background: #fff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.style-library-status.progress {
  border-color: #95acd0;
  color: #244d7b;
  background: #eef5ff;
}

.style-library-status.warning {
  border-color: #ddbd72;
  color: #744f08;
  background: #fff8e6;
}

.style-library-status.success {
  border-color: #83b59e;
  color: #245b43;
  background: #edf8f2;
}

.style-library-status.danger {
  border-color: #d99b9b;
  color: #842f2f;
  background: #fff1f1;
}

.style-library-detail {
  min-width: 0;
  padding: 0 clamp(18px, 3vw, 42px) 40px;
}

.style-library-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dbe2ea;
  padding: 26px 0 22px;
}

.style-library-detail-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #65717e;
  white-space: pre-wrap;
}

.style-library-title-block {
  min-width: 0;
}

.style-library-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.style-library-title-row h2 {
  overflow-wrap: anywhere;
}

.style-library-rename-trigger {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0;
  color: #66727f;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
}

.style-library-rename-trigger:hover,
.style-library-rename-trigger:focus-visible {
  border-color: #cbd4de;
  color: #25313d;
  background: #f4f7f9;
}

.style-library-rename-form {
  display: grid;
  grid-template-columns: minmax(180px, 420px) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.style-library-rename-form input {
  min-width: 0;
  height: 40px;
}

.style-library-rename-form button {
  min-height: 40px;
}

.style-library-name-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 2px;
  color: #788491;
  font-size: 0.72rem;
}

.style-library-section {
  border-bottom: 1px solid #dbe2ea;
  padding: 24px 0;
}

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

.style-library-section-heading > span {
  color: #6b7786;
  font-size: 0.78rem;
}

.style-library-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.style-library-reference-item,
.style-library-upload-tile {
  min-width: 0;
  border: 1px solid #d7dee6;
  border-radius: 6px;
  background: #fff;
}

.style-library-reference-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  color: #788491;
  background: #eef1f4;
}

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

.style-library-reference-meta {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.style-library-reference-meta strong,
.style-library-reference-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-library-reference-meta small {
  color: #788491;
  font-size: 0.7rem;
}

.style-library-reference-tools {
  display: grid;
  grid-template-columns: 36px;
  justify-content: end;
  gap: 4px;
  border-top: 1px solid #e1e6eb;
  padding: 7px;
}

.style-library-reference-tools button,
.style-library-action-band [data-style-sync] {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 4px;
  padding: 0;
}

.style-library-upload-tile {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 254px;
  border-style: dashed;
  color: #52606d;
  cursor: pointer;
  text-align: center;
}

.style-library-upload-tile:hover {
  border-color: #7564bd;
  background: #faf9ff;
}

.style-library-upload-tile > span {
  font-size: 2rem;
  line-height: 1;
}

.style-library-upload-tile small {
  margin-top: 5px;
  color: #7a8590;
}

.style-library-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.style-library-action-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dbe2ea;
  padding: 18px 0;
}

.style-library-action-band > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.style-library-action-band > div:first-child {
  display: grid;
  gap: 3px;
}

.style-library-action-band span {
  color: #6c7782;
  font-size: 0.76rem;
}

.style-library-dimensions,
.style-library-revisions {
  display: grid;
  border-top: 1px solid #e0e5ea;
}

.style-library-dimensions details,
.style-library-revisions details {
  border-bottom: 1px solid #e0e5ea;
}

.style-library-dimensions summary,
.style-library-revisions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  cursor: pointer;
}

.style-library-dimensions pre,
.style-library-revisions pre {
  max-height: 360px;
  margin: 0 0 14px;
  overflow: auto;
  border: 1px solid #d9e0e7;
  border-radius: 4px;
  padding: 12px;
  color: #26323d;
  background: #f7f9fb;
  font-size: 0.74rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.style-library-dimensions summary span {
  color: #7a8590;
  font-size: 0.68rem;
}

.style-library-dimensions p {
  margin: 0;
  padding: 2px 0 8px;
  color: #2f3b45;
  font-size: 0.82rem;
  line-height: 1.65;
}

.style-library-dimensions ul {
  margin: 0;
  padding: 2px 0 12px 20px;
  color: #2f3b45;
  font-size: 0.8rem;
  line-height: 1.6;
}

.style-library-dimension-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: 12px;
  color: #75818c;
}

.style-library-review-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
}

.style-library-review-action p {
  margin: 0;
  color: #56636f;
  font-size: 0.8rem;
  line-height: 1.55;
}

.style-library-technical-details {
  border-top: 1px solid #e1e6eb;
  padding-top: 10px;
}

.style-library-technical-details summary {
  cursor: pointer;
  color: #66737e;
  font-size: 0.74rem;
}

.style-library-technical-details pre {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #d9e0e7;
  border-radius: 4px;
  padding: 12px;
  color: #26323d;
  background: #f7f9fb;
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.style-library-revisions dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0 0 12px;
}

.style-library-revisions dl div {
  min-width: 0;
}

.style-library-revisions dt {
  color: #79838e;
  font-size: 0.7rem;
}

.style-library-revisions dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.style-library-test-composer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  align-items: start;
}

.style-library-test-selector,
.style-library-test-composer .field {
  min-width: 0;
}

.style-library-test-composer textarea {
  width: 100%;
}

.style-library-test-composer textarea {
  min-height: 84px;
  resize: vertical;
}

.style-library-test-scene {
  grid-column: 1 / -1;
}

.style-library-test-selector {
  display: grid;
  gap: 10px;
}

.style-library-test-selector-heading {
  min-height: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.style-library-test-selector-heading strong {
  color: #202a2f;
  font-size: 0.8rem;
}

.style-library-test-selector-heading small {
  color: #7c878d;
  font-size: 0.7rem;
}

.style-library-test-selection-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  min-height: 106px;
  border: 1px solid #cbd4d8;
  border-radius: 6px;
  padding: 10px 12px 10px 10px;
  color: #263238;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.style-library-test-selection-summary:hover:not(:disabled) {
  border-color: #6e928a;
  box-shadow: 0 10px 24px rgba(35, 52, 49, 0.08);
  transform: translateY(-1px);
}

.style-library-test-selection-summary:focus-visible,
.style-library-test-picker-choice:focus-visible,
.style-library-scene-suggestion:focus-visible {
  outline: 3px solid rgba(47, 113, 101, 0.22);
  outline-offset: 2px;
}

.style-library-test-selection-summary:disabled {
  cursor: default;
  opacity: 0.62;
}

.style-library-test-selection-media {
  width: 82px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  color: #7a858a;
  background: #e8ecee;
  font-size: 1.25rem;
}

.style-library-test-selection-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.style-library-test-selection-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.style-library-test-selection-copy strong,
.style-library-test-selection-copy small,
.style-library-test-selection-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-library-test-selection-copy strong {
  color: #263238;
  font-size: 0.86rem;
}

.style-library-test-selection-copy small {
  color: #648077;
  font-size: 0.66rem;
  font-weight: 800;
}

.style-library-test-selection-copy span {
  color: #778289;
  font-size: 0.7rem;
}

.style-library-test-selection-summary > em {
  min-width: 54px;
  border: 1px solid #b9c9c4;
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  color: #315f55;
  background: #f2f7f5;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.style-library-scene-suggestions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid #cbd7d2;
  border-radius: 6px;
  padding: 15px;
  background: #edf3f0;
}

.style-library-scene-suggestions > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.style-library-scene-suggestions > header > div {
  display: grid;
  gap: 3px;
}

.style-library-scene-suggestions > header small {
  color: #5d8277;
  font-size: 0.58rem;
  font-weight: 900;
}

.style-library-scene-suggestions > header strong {
  color: #253b35;
  font-size: 0.88rem;
}

.style-library-scene-suggestions > header > span {
  color: #6d7d77;
  font-size: 0.68rem;
}

.style-library-scene-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
}

.style-library-scene-suggestion {
  position: relative;
  min-width: 0;
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid #d2dcda;
  border-radius: 5px;
  padding: 12px;
  color: #34433f;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.style-library-scene-suggestion:hover:not(:disabled) {
  border-color: #78a095;
  box-shadow: 0 8px 18px rgba(44, 70, 63, 0.08);
}

.style-library-scene-suggestion.selected {
  border-color: #2f7165;
  background: #f7fbf9;
  box-shadow: 0 0 0 2px rgba(47, 113, 101, 0.12);
}

.style-library-scene-suggestion > span {
  position: absolute;
  top: 10px;
  right: 11px;
  color: #a8bbb5;
  font-size: 0.72rem;
  font-weight: 850;
}

.style-library-scene-suggestion > strong {
  max-width: calc(100% - 28px);
  color: #263934;
  font-size: 0.76rem;
}

.style-library-scene-suggestion > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #66756f;
  font-size: 0.68rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.style-library-scene-suggestion > em {
  align-self: end;
  color: #397366;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
}

.style-library-test-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 146;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(18, 25, 29, 0.76);
  backdrop-filter: blur(12px);
}

.style-library-test-picker {
  width: min(1050px, calc(100vw - 48px));
  height: min(790px, calc(100dvh - 48px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid #dce3e1;
  border-radius: 8px;
  padding: 20px;
  color: #202a2f;
  background: #f7f9f8;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

.style-library-test-picker.model-picker {
  grid-template-rows: auto minmax(0, 1fr);
}

.style-library-test-picker > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.style-library-test-picker > header h2 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1.25rem;
}

.style-library-test-picker > header span {
  color: #6d7975;
  font-size: 0.76rem;
}

.style-library-test-picker-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 13px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 6px 14px 2px;
  scrollbar-gutter: stable;
}

.style-library-test-picker-grid.model-grid {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.style-library-test-picker-choice {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  border: 1px solid #d3dcda;
  border-radius: 6px;
  padding: 7px 7px 10px;
  color: #293733;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.style-library-test-picker-choice:hover {
  border-color: #77a095;
}

.style-library-test-picker-choice.selected {
  border-color: #2f7165;
  box-shadow: 0 0 0 2px rgba(47, 113, 101, 0.14);
}

.style-library-test-picker-choice.selected::after {
  content: "已选择";
  position: absolute;
  top: 13px;
  right: 13px;
  border-radius: 4px;
  padding: 0.26rem 0.45rem;
  color: #ffffff;
  background: #2f7165;
  font-size: 0.6rem;
  font-weight: 850;
}

.style-library-test-picker-choice > span {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  color: #7b8582;
  background: #e9eeec;
  font-size: 0.7rem;
  text-align: center;
}

.style-library-test-picker-grid.model-grid .style-library-test-picker-choice > span {
  aspect-ratio: 4 / 5;
}

.style-library-test-picker-choice img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.style-library-test-picker-choice > strong,
.style-library-test-picker-choice > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-library-test-picker-choice > strong {
  font-size: 0.74rem;
}

.style-library-test-picker-choice > small {
  color: #71807b;
  font-size: 0.65rem;
}

.style-library-test-picker-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #c9d3d0;
  border-radius: 6px;
  color: #74817d;
  background: #ffffff;
}

.style-library-test-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 18px;
}

.style-library-test-action > div {
  display: grid;
  gap: 4px;
}

.style-library-test-action span {
  color: #6b7783;
  font-size: 0.76rem;
}

.style-library-test-render-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.style-library-test-render-item {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5dde5;
  border-radius: 6px;
  background: #fff;
}

.style-library-test-render-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #687581;
  background: #edf1f4;
  box-shadow: none;
}

.style-library-test-render-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-library-test-render-copy {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.style-library-test-render-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.style-library-test-render-copy strong,
.style-library-test-render-copy span,
.style-library-test-render-copy small {
  overflow-wrap: anywhere;
}

.style-library-test-render-copy span,
.style-library-test-render-copy small {
  color: #75818c;
  font-size: 0.7rem;
}

.style-library-test-render-copy small {
  color: #8a3434;
}

.style-library-test-render-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e1e6eb;
  padding: 9px 12px;
}

.style-library-test-render-actions [data-style-test-sync] {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 4px;
  padding: 0;
}

.style-library-test-render-actions button.active {
  border-color: #4e8c74;
  color: #176c4c;
  background: #edf7f2;
}

.style-library-refinement-composer,
.style-library-refinement-history {
  border-top: 1px solid #e1e6eb;
}

.style-library-refinement-workspace {
  border-top: 2px solid #263640;
}

.style-library-refinement-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px;
}

.style-library-refinement-layout > div {
  min-width: 0;
}

.style-library-refinement-preview {
  align-self: start;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #edf1f4;
}

.style-library-refinement-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-library-refinement-layout .style-library-refinement-composer,
.style-library-refinement-layout .style-library-refinement-history {
  border: 1px solid #d8e0e7;
}

.style-library-refinement-layout .style-library-refinement-history {
  margin-top: 12px;
}

.style-library-refinement-composer {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f7f9fa;
}

.style-library-refinement-composer label {
  color: #35414b;
  font-size: 0.76rem;
  font-weight: 700;
}

.style-library-refinement-composer textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #cbd4dc;
  border-radius: 4px;
  padding: 9px;
  color: #1f2a33;
  background: #fff;
}

.style-library-refinement-composer > div,
.style-library-refinement-actions,
.style-library-refinement-result > header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.style-library-refinement-composer > div span {
  margin-right: auto;
  color: #6b7783;
  font-size: 0.72rem;
}

.style-library-refinement-result {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.style-library-refinement-result + .style-library-refinement-result {
  border-top: 1px solid #e1e6eb;
}

.style-library-refinement-result > header {
  justify-content: space-between;
}

.style-library-refinement-result p,
.style-library-refinement-result small,
.style-library-refinement-diff span {
  margin: 0;
  overflow-wrap: anywhere;
}

.style-library-refinement-result p {
  color: #3d4953;
  font-size: 0.75rem;
  line-height: 1.55;
}

.style-library-refinement-feedback {
  color: #697681 !important;
}

.style-library-refinement-diff {
  display: grid;
  gap: 10px;
}

.style-library-refinement-diff > div {
  display: grid;
  gap: 4px;
  border-top: 1px solid #e5e9ed;
  padding-top: 9px;
}

.style-library-refinement-diff strong {
  color: #26333d;
  font-size: 0.72rem;
}

.style-library-refinement-diff span,
.style-library-refinement-diff small,
.style-library-refinement-error {
  color: #6b7783;
  font-size: 0.68rem;
  line-height: 1.45;
}

.style-library-refinement-diff span:nth-of-type(2) {
  color: #176c4c;
}

.style-library-refinement-error {
  color: #8a3434;
}

.style-library-refinement-actions {
  justify-content: flex-end;
}

.style-library-refinement-actions [data-style-refinement-sync] {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
}

.style-library-publication-receipt {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) repeat(3, minmax(140px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  border: 1px solid #d4dde5;
  border-radius: 6px;
  padding: 14px;
  background: #f7f9fa;
}

.style-library-publication-receipt > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.style-library-publication-receipt span,
.style-library-publication-readiness span,
.style-library-publication-note,
.style-library-publication-actions > span {
  color: #6b7783;
  font-size: 0.72rem;
}

.style-library-publication-receipt strong {
  overflow: hidden;
  color: #25313b;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-library-publication-receipt-actions {
  display: grid;
  gap: 8px;
}

.style-library-publication-receipt-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.style-library-publication-receipt .danger-action {
  min-height: 38px;
  border: 1px solid #e0a3a3;
  border-radius: 4px;
  box-shadow: none;
}

.style-library-publication-readiness {
  display: grid;
  gap: 16px;
}

.style-library-publication-readiness > div:first-child {
  display: grid;
  gap: 4px;
}

.style-library-publication-note {
  margin: 14px 0 0;
}

.style-library-publication-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e0e5ea;
  padding-top: 14px;
}

.style-library-selected-cover {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #d8e0e7;
  border-radius: 4px;
  padding: 10px 12px;
  background: #f7f9fa;
}

.style-library-selected-cover > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.style-library-selected-cover-preview {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 3px;
  color: #74808b;
  background: #e9eef1;
}

.style-library-selected-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-library-selected-cover span {
  color: #6b7783;
  font-size: 0.72rem;
}

.style-library-selected-cover strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-library-empty,
.style-library-welcome,
.style-library-readonly {
  color: #6d7883;
}

.style-library-empty {
  padding: 20px;
  text-align: center;
}

.style-library-welcome {
  display: grid;
  place-content: center;
  min-height: 520px;
  text-align: center;
}

.workbench-switch {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 18px;
  border-bottom: 1px solid #dbe2ea;
  padding: 0 2px;
  overflow-x: auto;
  background: transparent;
}

.workbench-switch button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0.55rem 0.15rem;
  color: #5f6b78;
  background: transparent;
  box-shadow: none;
}

.workbench-switch button.active {
  color: #352685;
  background: transparent;
  box-shadow: inset 0 -3px 0 #7b61ff;
}

.workspace > .workbench-switch,
.photographer-library-pane > .workbench-switch {
  margin-bottom: 20px;
}

.shoot-composer-workspace > .workbench-switch {
  margin: 18px 0 0;
}

.photographer-hero-controls {
  display: grid;
  gap: 10px;
}

.compact-primary {
  width: auto;
  margin: 0;
}

.pose-library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 10px;
}

.pose-library-summary div {
  display: grid;
  gap: 4px;
  border-left: 1px solid #dce3eb;
  padding: 10px 16px;
}

.pose-library-summary span {
  color: #748091;
  font-size: 0.74rem;
  font-weight: 800;
}

.pose-library-summary strong {
  color: #17202a;
  font-size: 1.55rem;
}

.viral-video-workspace {
  display: grid;
  gap: 18px;
}

.viral-video-workspace-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  padding: 4px 10px 0;
  background: rgba(255, 255, 255, 0.92);
}

.viral-video-section-tabs {
  flex: 1;
  margin: 0;
  border: 0;
}

.viral-video-section-tabs button {
  min-width: 150px;
  font-size: 0.86rem;
  font-weight: 900;
}

.viral-video-workspace-nav > .text-button {
  flex: 0 0 auto;
  margin-bottom: 5px;
}

.viral-video-analysis-task-toggle {
  flex: 0 0 auto;
  margin-bottom: 5px;
  white-space: nowrap;
}

.viral-video-analysis-workspace,
.viral-video-archive,
.viral-video-archive-detail,
.viral-video-material-library,
.viral-video-search-workspace {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.viral-video-analysis-home {
  min-height: clamp(360px, 58vh, 620px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 7vw, 80px) 18px;
}

.viral-video-analysis-home-card {
  width: min(860px, 100%);
  display: grid;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.1);
  backdrop-filter: blur(18px);
}

.viral-video-analysis-home-card.is-search-mode {
  width: min(1060px, 100%);
}

.viral-video-analysis-home-title {
  display: grid;
  gap: 8px;
  text-align: center;
}

.viral-video-analysis-home-title span {
  color: #7b61ff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.viral-video-analysis-home-title h2 {
  margin: 0;
  color: #17202a;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
}

.viral-video-analysis-entry-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(300px, 100%);
  margin: 0 auto 0 0;
  border: 1px solid #d9e0e9;
  border-radius: 10px;
  padding: 4px;
  background: #f4f6fa;
}

.viral-video-analysis-entry-modes button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  color: #697586;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 900;
}

.viral-video-analysis-entry-modes button.active {
  color: #fff;
  background: #5b4cb4;
  box-shadow: 0 4px 10px rgba(91, 76, 180, 0.2);
}

.viral-video-analysis-home-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.viral-video-analysis-home-form input {
  min-width: 0;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 16px;
  color: #17202a;
  background: #fff;
  font: inherit;
  outline: none;
}

.viral-video-analysis-home-form input:focus {
  border-color: #7b61ff;
  box-shadow: 0 0 0 4px rgba(123, 97, 255, 0.12);
}

.viral-video-analysis-home-form button {
  min-width: 112px;
  min-height: 52px;
  border-radius: 14px;
}

.viral-video-analysis-home-search-form {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.viral-video-analysis-home-search-form .viral-video-search-primary-row {
  grid-template-columns: minmax(300px, 1fr) auto;
}

.viral-video-analysis-home-search-form .viral-video-search-inline-filters {
  gap: 10px;
}

.viral-video-analysis-home-search-form .viral-video-search-time-controls {
  grid-template-columns: max-content repeat(2, minmax(118px, 1fr));
  gap: 8px;
}

.viral-video-analysis-search-results {
  width: min(1060px, 100%);
}

.viral-video-analysis-home-progress {
  margin: -10px 0 0;
  color: #6853cf;
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
}

/* Desktop search-result state: retain the existing cards while collapsing the entry surface. */
.hero.viral-video-hero {
  align-items: center;
  min-height: 76px;
  margin-bottom: 0;
  padding: 16px 22px;
  border-color: #dfe5ec;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.05);
  backdrop-filter: none;
}

.hero.viral-video-hero .brand-title {
  margin: 0;
  color: #17202a;
  font-size: 1.12rem;
}

.hero.viral-video-hero .brand-icon {
  width: 1.2em;
  height: 1.2em;
}

.hero.viral-video-hero .hero-side {
  min-width: 0;
  width: auto;
}

.hero.viral-video-hero .logout-button {
  padding: 0.42rem 0.7rem;
  box-shadow: none;
}

.hero.viral-video-hero + .viral-video-workspace {
  gap: 0;
}

.hero.viral-video-hero + .viral-video-workspace .viral-video-workspace-nav {
  min-height: 48px;
  align-items: stretch;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 0 14px;
  background: #fff;
}

.hero.viral-video-hero + .viral-video-workspace .viral-video-section-tabs {
  align-items: stretch;
}

.hero.viral-video-hero + .viral-video-workspace .viral-video-section-tabs button {
  min-width: 132px;
}

.hero.viral-video-hero + .viral-video-workspace .viral-video-analysis-task-toggle {
  min-width: 42px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 7px 0;
  padding: 0 10px;
}

.viral-video-analysis-task-icon {
  position: relative;
  width: 13px;
  height: 12px;
  color: currentColor;
}

.viral-video-analysis-task-icon::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 11px;
  height: 2px;
  content: '';
  background: currentColor;
  box-shadow: 0 4px currentColor, 0 8px currentColor;
}

.viral-video-analysis-task-count {
  min-width: 0.8rem;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.viral-video-workspace.is-search-result-state .viral-video-analysis-workspace {
  gap: 0;
}

.viral-video-analysis-home.is-search-result-state {
  display: block;
  min-height: 0;
  padding: 22px 0 26px;
}

.viral-video-analysis-home-card.is-search-result-state {
  width: 100%;
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.viral-video-analysis-entry-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.viral-video-analysis-entry-row .viral-video-analysis-entry-modes {
  width: 220px;
  margin: 0;
}

.viral-video-analysis-home-search-form.is-result-compact {
  display: contents;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-primary-row {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-inline-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  overflow: visible;
  border-top: 1px solid #e5eaf0;
  padding-top: 12px;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-filter-groups,
.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-time-group,
.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-control-group,
.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-sort-options {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-filter-groups {
  flex: 0 1 auto;
  gap: 18px;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-time-group {
  flex: 1 0 auto;
  min-width: 0;
  margin-left: auto;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-control-group {
  position: relative;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-ranking-group::before,
.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-material-group::before {
  flex: 0 0 auto;
  color: #7a8494;
  font-size: 0.72rem;
  font-weight: 850;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-ranking-group::before { content: '榜单'; }
.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-material-group::before { content: '素材类型'; }

.viral-video-analysis-home-search-form.is-result-compact .pose-filter-bar,
.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-date-ranges {
  flex-wrap: nowrap;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-sort-options {
  margin: 0;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-sort-options-title {
  font-size: 0;
}

.viral-video-analysis-home-search-form.is-result-compact .viral-video-search-sort-options-title::after {
  content: '排序';
  font-size: 0.72rem;
}

.viral-video-search-date-menu {
  position: relative;
  flex: 0 0 auto;
}

.viral-video-search-date-menu > summary {
  min-width: 226px;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 0 0.7rem;
  color: #536071;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.viral-video-search-date-menu > summary::-webkit-details-marker { display: none; }

.viral-video-search-date-menu > summary::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  content: '';
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.viral-video-search-date-menu[open] > summary {
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1);
}

.viral-video-search-date-menu[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.viral-video-search-date-menu-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  min-width: 460px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(31, 41, 55, 0.16);
}

.viral-video-search-date-menu-popover .viral-video-search-time-controls {
  grid-template-columns: max-content repeat(2, minmax(142px, 1fr));
}

.viral-video-workspace.is-search-result-state .viral-video-analysis-search-results {
  width: 100%;
  max-width: none;
}

.viral-video-analysis-metadata-probe {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.viral-video-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
  gap: 16px;
}

.viral-video-archive-active-tasks {
  display: contents;
}

.viral-video-archive-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 18px;
  background: #11131a;
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.viral-video-archive-card:hover,
.viral-video-archive-card:focus-within {
  border-color: rgba(123, 97, 255, 0.58);
  box-shadow: 0 20px 48px rgba(31, 41, 55, 0.18);
  transform: translateY(-2px);
}

.viral-video-archive-analysis-card {
  border-color: rgba(123, 97, 255, 0.72);
  background: #fff;
  box-shadow: 0 20px 52px rgba(91, 67, 188, 0.2);
}

.viral-video-archive-analysis-card:hover,
.viral-video-archive-analysis-card:focus-within {
  transform: none;
}

.viral-video-archive-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(145deg, #171a21, #2d244e);
}

.viral-video-archive-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(8, 10, 15, 0.28);
  pointer-events: none;
}

.viral-video-archive-media-background,
.viral-video-archive-media-foreground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.viral-video-archive-media-background {
  z-index: 0;
  object-fit: cover;
  filter: blur(18px);
  opacity: 0.74;
  transform: scale(1.12);
}

.viral-video-archive-media-foreground {
  z-index: 2;
  object-fit: contain;
}

.viral-video-archive-placeholder {
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.viral-video-archive-analysis-placeholder {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(123, 97, 255, 0.2);
  box-shadow: 0 0 44px rgba(123, 97, 255, 0.36);
}

[data-viral-video-archive-active-task] .viral-video-archive-analysis-placeholder {
  position: relative;
  z-index: 2;
}

[data-viral-video-archive-active-task].has-preview .viral-video-archive-analysis-placeholder {
  opacity: 0;
  visibility: hidden;
}

[data-viral-video-archive-active-task-preview-slot] {
  display: contents;
}

[data-viral-video-archive-active-task].has-preview-error .viral-video-archive-active-task-preview {
  display: none;
}

.viral-video-archive-analysis-veil {
  gap: 7px;
  padding: 16px;
}

.viral-video-archive-analysis-veil .virtual-persona-generation-orbit {
  width: 62px;
  height: 62px;
  transform: scale(0.88);
}

.viral-video-archive-analysis-veil .virtual-persona-generation-orbit i {
  transform-origin: 31px 31px;
}

.viral-video-archive-analysis-veil .virtual-persona-generation-orbit i:nth-child(1),
.viral-video-archive-analysis-veil .virtual-persona-generation-orbit i:nth-child(2),
.viral-video-archive-analysis-veil .virtual-persona-generation-orbit i:nth-child(3) {
  left: 28px;
}

.viral-video-archive-analysis-veil > strong {
  text-align: center;
}

.viral-video-archive-analysis-veil > span:not(.viral-video-archive-analysis-track) {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-archive-analysis-veil > small[data-viral-video-archive-active-task-progress] {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-archive-analysis-track {
  position: relative;
  width: min(180px, 74%);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.viral-video-archive-analysis-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  transition: width 240ms ease;
  border-radius: inherit;
  background: linear-gradient(90deg, #a796ff, #fff);
}

.viral-video-archive-analysis-meta small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(91, 67, 188, 0.88);
}

.viral-video-archive-analysis-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.68);
  animation: viral-video-archive-analysis-pulse 1.45s ease-out infinite;
}

@keyframes viral-video-archive-analysis-scan {
  0% { transform: translateX(-120%); opacity: 0.32; }
  50% { opacity: 1; }
  100% { transform: translateX(300%); opacity: 0.32; }
}

@keyframes viral-video-archive-analysis-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  75%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.viral-video-archive-meta {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
}

.viral-video-archive-meta small {
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 900;
}

.viral-video-archive-actions {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  background: linear-gradient(180deg, transparent 54%, rgba(8, 10, 15, 0.76));
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.viral-video-archive-card:hover .viral-video-archive-actions,
.viral-video-archive-card:focus-within .viral-video-archive-actions {
  opacity: 1;
}

.viral-video-archive-card:hover .viral-video-archive-metrics,
.viral-video-archive-card:focus-within .viral-video-archive-metrics {
  opacity: 0;
}

.viral-video-archive-actions button {
  width: calc(50% - 5px);
  min-width: 0;
  min-height: 42px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 9px 10px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 900;
  pointer-events: auto;
}

.viral-video-archive-actions button.primary {
  border-color: #7b61ff;
  color: #fff;
  background: #7b61ff;
}

@media (hover: none), (pointer: coarse) {
  .viral-video-archive-actions {
    align-items: flex-end;
    opacity: 1;
  }
}

.viral-video-report-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
}

.viral-video-report-nav > span,
.viral-video-report-analysis-head > span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #4f3abb;
  background: #eeeaff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.viral-video-report-primary {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.viral-video-report-source,
.viral-video-report-analysis,
.viral-video-report-technical {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.07);
}

.viral-video-report-source {
  padding: 12px;
}

.viral-video-report-source-media {
  width: 100%;
  aspect-ratio: var(--viral-video-report-aspect, 16 / 9);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: #0b0d12;
  transition: outline-color 160ms ease, box-shadow 160ms ease;
}

.viral-video-report-source.previewing .viral-video-report-source-media {
  outline: 3px solid rgba(123, 97, 255, 0.7);
  outline-offset: -3px;
  box-shadow: 0 12px 28px rgba(77, 57, 167, 0.22);
}

.viral-video-report-source-media video,
.viral-video-report-source-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.viral-video-report-source-meta {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px 4px 2px;
}

.viral-video-report-source-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viral-video-report-source-meta small {
  color: #7b61ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-report-source-meta strong {
  color: #293545;
  font-size: 0.78rem;
}

.viral-video-report-source-meta p {
  overflow: hidden;
  margin: 0;
  color: #778396;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-report-analysis {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.viral-video-report-analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viral-video-report-analysis-head > div {
  display: grid;
  gap: 4px;
}

.viral-video-report-analysis-head small {
  color: #7b61ff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.viral-video-report-analysis-head h2,
.viral-video-report-analysis-head p {
  margin: 0;
}

.viral-video-report-analysis-head h2 {
  color: #17202a;
  font-size: 1.2rem;
}

.viral-video-report-analysis-head p {
  color: #778396;
  font-size: 0.78rem;
}

.viral-video-report-analysis > .viral-video-professional-workbench {
  border-top: 0;
  padding-top: 0;
}

.viral-video-report-technical > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.viral-video-report-technical > summary::-webkit-details-marker {
  display: none;
}

.viral-video-report-technical > summary > span {
  display: grid;
  gap: 3px;
}

.viral-video-report-technical > summary strong {
  color: #293545;
}

.viral-video-report-technical > summary small {
  color: #778396;
  font-size: 0.74rem;
}

.viral-video-report-technical > summary em {
  color: #6d53dc;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.viral-video-report-technical > div {
  border-top: 1px solid #e5eaf0;
  padding: 16px;
}

@media (max-width: 980px) {
  .viral-video-report-primary {
    grid-template-columns: 1fr;
  }

  .viral-video-report-source {
    width: min(100%, 420px);
    justify-self: center;
  }
}
`r`n.viral-video-card,
.viral-video-pipeline-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 52px rgba(31, 41, 55, 0.09);
  backdrop-filter: blur(18px);
}

.viral-video-card h3,
.viral-video-pipeline-card h2,
.viral-video-pipeline-card p {
  margin-top: 0;
}

.viral-video-setup-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.viral-video-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.viral-video-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.viral-video-card-head h3 {
  margin: 5px 0 0;
}

.viral-video-step-label {
  color: #7b61ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-url-form {
  display: grid;
  gap: 7px;
}

.viral-video-url-form > label {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 900;
}

.viral-video-url-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.viral-video-url-form input {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.66rem 0.78rem;
  color: #1e293b;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.viral-video-url-form input:focus {
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12);
}

.viral-video-url-form button {
  white-space: nowrap;
}

.viral-video-url-form > small {
  color: #7b8794;
  line-height: 1.45;
}

.viral-video-dropzone {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #b9c5d5;
  border-radius: 12px;
  padding: 24px;
  color: #526173;
  background:
    radial-gradient(circle at 50% 18%, rgba(123, 97, 255, 0.1), transparent 38%),
    #f8fafc;
  text-align: center;
}

.viral-video-dropzone small {
  color: #7b8794;
}

.viral-video-douyin-source {
  position: relative;
  aspect-ratio: auto;
  min-height: 260px;
  border-style: solid;
}

.viral-video-douyin-source a {
  color: #5d45cc;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

.viral-video-douyin-source a:hover {
  text-decoration: underline;
}

.viral-video-upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #7b61ff, #4f46e5);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
}

.viral-video-preview {
  position: relative;
  overflow: hidden;
  width: min(100%, 360px);
  aspect-ratio: var(--viral-video-aspect, 9 / 16);
  justify-self: center;
  border-radius: 12px;
  background: #111827;
}

.viral-video-preview.landscape {
  width: 100%;
}

.viral-video-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.viral-video-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 52px rgba(31, 41, 55, 0.09);
  backdrop-filter: blur(18px);
}

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

.viral-video-section-head > div {
  display: grid;
  gap: 6px;
}

.viral-video-section-head > div > p:last-child {
  color: #6b7788;
  line-height: 1.6;
}

.viral-video-material-groups {
  display: grid;
  gap: 16px;
}

.viral-video-material-group {
  display: grid;
  gap: 14px;
  border: 1px solid #dfe5ec;
  border-radius: 18px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.78);
}

.viral-video-material-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}

.viral-video-material-group-header > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.viral-video-material-group-header small,
.viral-video-material-group-header h3,
.viral-video-material-group-header p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-material-group-header > div:first-child small {
  color: #7b61ff;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.viral-video-material-group-header h3 {
  color: #17202a;
  font-size: 1rem;
}

.viral-video-material-group-header p {
  color: #7a8697;
  font-size: 0.7rem;
}

.viral-video-material-group-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.viral-video-material-group-status strong,
.viral-video-material-group-status span,
.viral-video-material-group-status small {
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}

.viral-video-material-group-status strong {
  color: #4f3abb;
  background: #eeeaff;
  font-size: 0.72rem;
}

.viral-video-material-group-status span,
.viral-video-material-group-status small {
  color: #647184;
  background: #edf1f5;
  font-size: 0.66rem;
}

.viral-video-material-group-header > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viral-video-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 240px));
  gap: 12px;
  align-items: start;
  justify-content: start;
}

.viral-video-material-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.viral-video-material-toolbar > label {
  display: grid;
  gap: 6px;
}

.viral-video-material-toolbar > label span {
  color: #536071;
  font-size: 0.72rem;
  font-weight: 900;
}

.viral-video-material-toolbar input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 12px;
  color: #17202a;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.viral-video-material-toolbar input:focus {
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1);
}

.viral-video-material-categories {
  width: 100%;
  margin: 0;
}

.viral-video-material-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viral-video-material-meta small {
  color: #7a8697;
  font-size: 0.7rem;
}

.viral-video-material-meta span {
  flex: 0 0 auto;
  color: #536071;
  font-size: 0.72rem;
  font-weight: 850;
}

.viral-video-material-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.viral-video-material-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--viral-material-aspect, 9 / 16);
  overflow: hidden;
  background: #101318;
}

.viral-video-material-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.viral-video-material-media > span {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.viral-video-material-copy {
  display: grid;
  gap: 9px;
  padding: 11px;
}

.viral-video-material-copy header,
.viral-video-material-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.viral-video-material-copy header > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.viral-video-material-copy small,
.viral-video-material-copy strong,
.viral-video-material-copy p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-material-copy small,
.viral-video-material-copy p {
  color: #778396;
  font-size: 0.73rem;
}

.viral-video-material-copy em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: #5d45cc;
  background: #f0edff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.viral-video-material-copy .viral-video-material-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #4c596d;
  line-height: 1.55;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.viral-video-material-copy button {
  min-height: 32px;
  padding: 0.4rem 0.58rem;
  font-size: 0.72rem;
}

.viral-video-material-tags {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 5px !important;
}

.viral-video-material-tags span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #5d45cc;
  background: #f0edff;
  font-size: 0.65rem;
  font-weight: 850;
}

.viral-video-material-copy .viral-video-material-tag-source {
  color: #7a8494;
  line-height: 1.4;
  white-space: normal;
}

.viral-video-search-toolbar {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.04);
}

.viral-video-search-primary-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.viral-video-search-toolbar label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.viral-video-search-toolbar input,
.viral-video-search-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  color: #17202a;
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

.viral-video-search-toolbar input:focus,
.viral-video-search-toolbar select:focus {
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1);
}

.viral-video-search-primary-row > button[type='submit'] {
  min-width: 96px;
  min-height: 42px;
  padding: 0 16px;
}

.viral-video-search-inline-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e8edf3;
  padding-top: 10px;
}

.viral-video-search-filter-groups {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.viral-video-search-control-group {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.viral-video-search-types,
.viral-video-search-ranking,
.viral-video-search-sort-options-list {
  margin: 0;
  border: 0;
}

.viral-video-search-toolbar .pose-filter-bar {
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: visible;
  margin-bottom: 0;
  border-bottom: 0;
}

.viral-video-search-toolbar .pose-filter-bar button,
.viral-video-search-date-ranges button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  padding: 0 0.62rem;
  color: #536071;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 900;
}

.viral-video-search-toolbar .pose-filter-bar button.active,
.viral-video-search-date-ranges button.active {
  color: #fff;
  border-color: rgba(91, 76, 180, 0.92);
  background: #5b4cb4;
  box-shadow: none;
}

.viral-video-search-toolbar .pose-filter-bar button:hover,
.viral-video-search-date-ranges button:hover {
  border-color: rgba(123, 97, 255, 0.38);
  color: #2f3a48;
}

.viral-video-search-date-ranges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow-x: visible;
}

.viral-video-search-time-controls {
  display: grid;
  grid-template-columns: max-content repeat(2, minmax(118px, 1fr));
  align-items: center;
  gap: 8px;
}

.viral-video-search-time-controls label { min-width: 0; }

.viral-video-search-sort-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.viral-video-search-sort-options-title {
  flex: 0 0 auto;
  color: #7a8494;
  font-size: 0.72rem;
  font-weight: 850;
}

.viral-video-search-sort-options-list {
  flex: 1 1 auto;
}

@media (max-width: 1100px) {
  .viral-video-search-primary-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .viral-video-search-inline-filters { grid-template-columns: minmax(0, 1fr); }
  .viral-video-search-time-group { border-top: 1px solid #eef2f6; padding-top: 10px; }
}

.viral-video-search-batchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
}

.viral-video-search-batchbar > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 10px;
}

.viral-video-search-batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viral-video-analysis-task-list {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.viral-video-analysis-task-backdrop {
  z-index: 1100;
  place-items: center;
  padding: 24px;
}

.viral-video-analysis-task-modal {
  width: min(720px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 110px rgba(15, 23, 42, 0.26);
}

.viral-video-analysis-task-modal .viral-video-analysis-task-list {
  border: 0;
  padding: 8px;
  background: transparent;
}

.viral-video-analysis-task-modal .viral-video-analysis-task-list > header strong {
  color: #17202a;
  font-size: 1.08rem;
}

.viral-video-analysis-task-list > header,
.viral-video-analysis-task {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viral-video-analysis-task-list > header { justify-content: space-between; }
.viral-video-analysis-task-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.viral-video-analysis-task-tabs button { border: 1px solid #d7dee8; border-radius: 6px; padding: 5px 8px; background: #f8fafc; color: #52606d; font-size: 0.76rem; font-weight: 800; }
.viral-video-analysis-task-tabs button.active { border-color: #5b4cb4; background: #5b4cb4; color: #fff; }
.viral-video-analysis-task-items { display: grid; gap: 6px; margin-top: 8px; }
.viral-video-analysis-task { padding: 8px; border-top: 1px solid #edf0f4; }
.viral-video-analysis-task > div { min-width: 0; flex: 1; display: grid; gap: 2px; }
.viral-video-analysis-task small { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viral-video-analysis-task > span { color: #52606d; font-size: 0.78rem; font-weight: 800; }
.viral-video-analysis-task.status-running > span { color: #2563eb; }
.viral-video-analysis-task.status-failed > span { color: #b91c1c; }
.viral-video-analysis-task-failure { color: #b91c1c !important; white-space: normal !important; }

.viral-video-analysis-failure-notice {
  position: fixed;
  z-index: 30;
  top: 18px;
  right: 18px;
  width: min(380px, calc(100vw - 36px));
  max-height: min(420px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px;
  color: #991b1b;
  background: #fff7f7;
  box-shadow: 0 16px 34px rgba(127, 29, 29, 0.2);
}

.viral-video-analysis-failure-notice > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viral-video-analysis-failure-notice ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.viral-video-analysis-failure-notice li { display: grid; gap: 3px; padding-top: 8px; border-top: 1px solid #fecaca; }
.viral-video-analysis-failure-notice li span { color: #7f1d1d; font-size: 0.8rem; line-height: 1.45; }

.viral-video-search-batchbar strong {
  color: #17202a;
  font-size: 0.88rem;
  font-weight: 950;
}

.viral-video-search-batchbar span,
.viral-video-search-batchbar small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
}

.viral-video-search-batch-message {
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 14px;
  padding: 10px 12px;
  color: #047857;
  background: rgba(236, 253, 245, 0.88);
  font-size: 0.82rem;
  font-weight: 900;
}

.viral-video-search-batch-message.warning {
  border-color: rgba(245, 158, 11, 0.26);
  color: #92400e;
  background: rgba(255, 251, 235, 0.9);
}

.viral-video-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  padding: 10px 12px;
  color: #536071;
  background: rgba(255, 255, 255, 0.86);
}

.viral-video-search-summary span {
  color: #17202a;
  font-size: 0.82rem;
  font-weight: 900;
}

.viral-video-search-summary small {
  color: #7a8697;
  font-size: 0.72rem;
}

.viral-video-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  align-items: start;
}

.viral-video-search-card {
  position: relative;
  z-index: 0;
  min-width: 0;
  overflow: visible;
  border: 1px solid #dfe5ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.viral-video-search-card:hover,
.viral-video-search-card:focus-within {
  z-index: 1;
  border-color: rgba(123, 97, 255, 0.58);
  box-shadow: 0 22px 52px rgba(31, 41, 55, 0.16);
  transform: translateY(-2px);
}

.viral-video-search-card.playing {
  border-color: rgba(91, 76, 180, 0.74);
  box-shadow: 0 24px 56px rgba(91, 76, 180, 0.24);
}

.viral-video-search-card.loading {
  border-color: rgba(59, 130, 246, 0.58);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.16);
}

.viral-video-search-card.selected {
  border-color: rgba(16, 185, 129, 0.74);
  box-shadow: 0 22px 54px rgba(16, 185, 129, 0.18);
}

.viral-video-search-card.not-selectable {
  border-style: dashed;
}

.viral-video-search-card.playing .viral-video-search-tip,
.viral-video-search-card.playing .viral-video-search-brand-ribbon,
.viral-video-search-card.playing .viral-video-search-metrics {
  display: none;
}

.viral-video-search-tip {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(100% + 14px);
  width: min(320px, calc(100vw - 48px));
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(10, 14, 22, 0.96);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.viral-video-search-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: rgba(10, 14, 22, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.viral-video-search-card:hover .viral-video-search-tip,
.viral-video-search-card:focus-within .viral-video-search-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.viral-video-search-tip-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(96px, 0.8fr);
  gap: 12px;
}

.viral-video-search-tip-meta > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.viral-video-search-tip-meta span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
}

.viral-video-search-tip-meta strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.viral-video-search-tip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viral-video-search-tip-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(148, 163, 184, 0.28);
  font-size: 0.72rem;
  font-weight: 850;
}

.viral-video-search-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #101318, #2d244e);
}

.viral-video-search-card-actions {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.viral-video-search-select,
.viral-video-search-download {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.viral-video-search-download {
  padding: 0;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 900;
}

.viral-video-search-download:hover:not(:disabled),
.viral-video-search-download:focus-visible {
  border-color: #94a3b8;
  color: #312e81;
  background: #fff;
}

.viral-video-search-download.is-loading span {
  animation: viral-video-search-download-pulse 0.9s ease-in-out infinite;
}

.viral-video-search-select.disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.viral-video-search-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.viral-video-search-select span {
  width: 16px;
  height: 16px;
  border: 2px solid #94a3b8;
  border-radius: 5px;
  background: #fff;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.viral-video-search-select input:checked + span {
  border-color: #10b981;
  background: #10b981;
  box-shadow: inset 0 0 0 3px #fff;
}

.viral-video-search-card.loading .viral-video-search-media::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.52);
  border-top-color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.12);
  transform: translate(-50%, -50%);
  animation: viral-video-search-loading-spin 0.9s linear infinite;
  pointer-events: none;
}

.viral-video-search-batch-status {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 86px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  font-size: 0.72rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.viral-video-search-batch-status.running {
  background: rgba(37, 99, 235, 0.88);
}

.viral-video-search-batch-status.done {
  background: rgba(16, 185, 129, 0.88);
}

.viral-video-search-media-asset {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.viral-video-search-media-asset img,
.viral-video-search-media-asset video,
.viral-video-search-media-asset > span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.viral-video-search-player {
  opacity: 1;
  transition: opacity 180ms ease;
}

.viral-video-search-player.is-pending {
  opacity: 0;
  pointer-events: none;
}

.viral-video-search-card.playing .viral-video-search-media-asset img,
.viral-video-search-card.playing .viral-video-search-media-asset > span {
  opacity: 0;
}

.viral-video-search-media-asset > span {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.viral-video-search-brand-ribbon {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  min-width: 96px;
  padding: 10px 14px 9px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #67b7ff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-align: center;
  transform: translate(-25px, 19px) rotate(-45deg);
  transform-origin: center;
}

.viral-video-search-metrics,
.viral-video-archive-metrics {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0), rgba(8, 10, 15, 0.82) 28%, rgba(8, 10, 15, 0.9));
}

.viral-video-search-metrics span,
.viral-video-archive-metrics span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.viral-video-search-metrics small,
.viral-video-search-metrics strong,
.viral-video-archive-metrics small,
.viral-video-archive-metrics strong {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-search-metrics small,
.viral-video-archive-metrics small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 900;
}

.viral-video-search-metrics strong,
.viral-video-archive-metrics strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.viral-video-archive-metrics {
  transition: opacity 160ms ease;
}

@media (max-width: 760px) {
  .viral-video-analysis-home {
    min-height: 0;
    padding: 26px 0 10px;
  }

  .viral-video-analysis-home-card {
    gap: 18px;
    border-radius: 16px;
    padding: 24px 16px;
  }

  .viral-video-analysis-home-search-form .viral-video-search-primary-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .viral-video-analysis-home-search-form .viral-video-search-primary-row > button[type='submit'] {
    grid-column: auto;
  }

  .viral-video-search-primary-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .viral-video-search-keyword,
  .viral-video-search-primary-row > button[type='submit'] { grid-column: 1 / -1; }

  .viral-video-search-inline-filters { grid-template-columns: minmax(0, 1fr); }
  .viral-video-search-filter-groups { grid-template-columns: minmax(0, 1fr); }

  .viral-video-search-time-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .viral-video-search-date-ranges { grid-column: 1 / -1; }

  .viral-video-search-batchbar {
    align-items: stretch;
    flex-direction: column;
  }

  .viral-video-search-tip {
    left: 12px;
    right: 12px;
    bottom: calc(100% + 10px);
    width: auto;
    transform: translate(0, 8px);
  }

  .viral-video-search-card:hover .viral-video-search-tip,
  .viral-video-search-card:focus-within .viral-video-search-tip {
    transform: translate(0, 0);
  }

  .viral-video-search-tip::after {
    left: 28px;
    transform: rotate(45deg);
  }

  .viral-video-search-tip-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .viral-video-search-summary { align-items: stretch; flex-direction: column; }

  .viral-video-analysis-task-backdrop { padding: 16px; }
  .viral-video-analysis-task-modal { max-height: calc(100vh - 32px); padding: 8px; }
}

@media (max-width: 480px) {
  .viral-video-workspace-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .viral-video-analysis-task-toggle {
    width: 100%;
    margin-bottom: 4px;
  }

  .viral-video-analysis-entry-modes { width: 100%; }

  .viral-video-search-time-controls { grid-template-columns: minmax(0, 1fr); }
  .viral-video-search-date-ranges { grid-column: auto; }
  .viral-video-search-sort-options { align-items: flex-start; flex-direction: column; gap: 4px; }
  .viral-video-search-sort-options-list { width: 100%; }
  .viral-video-search-toolbar .pose-filter-bar button,
  .viral-video-search-date-ranges button { min-height: 40px; }
  .viral-video-search-batch-actions { width: 100%; }
  .viral-video-search-batch-actions > button { flex: 1 1 100%; }
}

.virtual-persona-generation-veil.viral-video-analysis-veil {
  z-index: 4;
  min-height: 100%;
  cursor: progress;
  contain: layout paint;
  backdrop-filter: none;
  background:
    radial-gradient(circle at center, rgba(123, 97, 255, 0.32), transparent 38%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.74));
}

.viral-video-analysis-veil .virtual-persona-generation-orbit,
.viral-video-analysis-veil .virtual-persona-generation-orbit i {
  will-change: transform;
}

.viral-video-analysis-veil > small {
  color: rgba(255, 250, 244, 0.74);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.viral-video-file-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.viral-video-file-row strong,
.viral-video-file-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-file-row span {
  color: #7b8794;
  font-size: 0.78rem;
}

.viral-video-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}

.viral-video-preview-actions > span {
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.45;
}

.viral-video-preview-actions > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.viral-video-preview-actions button {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.viral-video-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  color: #708093;
  text-align: center;
}

.viral-video-empty > span {
  color: #7b61ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.viral-video-empty strong {
  color: #293545;
}

.viral-video-empty p {
  margin: 0;
  color: #718096;
  line-height: 1.6;
}

.viral-video-empty {
  min-height: 320px;
  border: 1px dashed #c8d2df;
  border-radius: 12px;
  background: #f8fafc;
}

.viral-video-empty.compact {
  min-height: 180px;
}

.viral-video-empty button {
  width: auto;
  margin-top: 8px;
}

.viral-video-pipeline-card {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

.viral-video-pipeline-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.viral-video-pipeline-card > header h2 {
  margin-bottom: 6px;
}

.viral-video-pipeline-card > header p:last-child {
  margin-bottom: 0;
  color: #718096;
}

.viral-video-pipeline-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.viral-video-coverage-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dfe5ee;
  border-left: 4px solid #8b95a7;
  border-radius: 14px;
  padding: 15px 17px;
  background: #f8fafc;
}

.viral-video-coverage-status.success {
  border-left-color: #1f9d72;
  background: #f0fbf7;
}

.viral-video-coverage-status.warning {
  border-left-color: #d99019;
  background: #fff9ed;
}

.viral-video-coverage-status.pending {
  border-left-color: #73839b;
}

.viral-video-coverage-status small,
.viral-video-coverage-status strong,
.viral-video-coverage-status p {
  display: block;
}

.viral-video-coverage-status small {
  margin-bottom: 4px;
  color: #73839b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-coverage-status strong {
  color: #293545;
}

.viral-video-coverage-status p {
  margin: 4px 0 8px;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.5;
}

.viral-video-coverage-status em {
  display: inline-flex;
  margin: 2px 5px 0 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(41, 53, 69, 0.08);
  color: #445064;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.viral-video-coverage-status > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  background: #293545;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.viral-video-stage-grid article {
  min-height: 140px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
}

.viral-video-stage-grid span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #7b61ff;
  font-size: 0.72rem;
  font-weight: 900;
}

.viral-video-stage-grid strong {
  color: #293545;
}

.viral-video-stage-grid p {
  margin: 0;
  color: #718096;
  font-size: 0.8rem;
  line-height: 1.55;
}

.viral-video-role-plan {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfe;
}

.viral-video-role-plan > div:first-child {
  display: grid;
  align-content: center;
  gap: 6px;
}

.viral-video-role-plan > div:first-child span,
.viral-video-role-placeholder > span {
  color: #7b61ff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-role-plan strong {
  color: #293545;
}

.viral-video-role-plan p,
.viral-video-role-plan small {
  margin: 0;
  color: #718096;
  line-height: 1.55;
}

.viral-video-role-placeholder {
  min-height: 104px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px dashed #c5cfdd;
  border-radius: 11px;
  padding: 14px;
  background: #f4f1ff;
  text-align: center;
}

.viral-video-analysis-result {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
}

.viral-video-analysis-result > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.viral-video-analysis-result > header > div {
  display: grid;
  gap: 4px;
}

.viral-video-analysis-result > header span:first-child,
.viral-video-analysis-columns h3 {
  margin: 0;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.viral-video-analysis-result > header strong {
  color: #14532d;
  font-size: 1rem;
}

.viral-video-analysis-result > header small {
  color: #64748b;
}

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

.viral-video-analysis-columns > section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.viral-video-analysis-columns article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 11px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.82);
}

.viral-video-analysis-columns article > span,
.viral-video-analysis-columns article > small {
  color: #64748b;
  font-size: 0.72rem;
}

.viral-video-analysis-columns article > strong {
  color: #293545;
}

.viral-video-analysis-columns article > p,
.viral-video-analysis-warnings p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.viral-video-analysis-warnings {
  display: grid;
  gap: 5px;
  border-radius: 10px;
  padding: 11px 12px;
  color: #92400e;
  background: #fffbeb;
}

.viral-video-professional-workbench {
  display: grid;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding-top: 16px;
}

.viral-video-professional-head,
.viral-video-shot-workbench > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viral-video-professional-head > div,
.viral-video-shot-workbench > header > div {
  display: grid;
  gap: 4px;
}

.viral-video-professional-head span:first-child,
.viral-video-shot-workbench > header > div > span {
  color: #6d53dc;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.viral-video-professional-head h3,
.viral-video-professional-head p,
.viral-video-shot-workbench h3,
.viral-video-shot-workbench p {
  margin: 0;
}

.viral-video-professional-head h3,
.viral-video-shot-workbench h3 {
  color: #293545;
}

.viral-video-professional-head p,
.viral-video-shot-workbench p {
  color: #718096;
  font-size: 0.8rem;
}

.viral-video-evidence-chip {
  flex: 0 0 auto;
  border: 1px solid #d8d0ff;
  border-radius: 999px;
  padding: 0.35rem 0.68rem;
  color: #6046d8;
  background: #f5f2ff;
  font-size: 0.72rem;
  font-weight: 850;
}

.viral-video-analysis-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 6px;
  background: #f5f7fa;
}

.viral-video-analysis-tabs button {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 8px;
  color: #687587;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.viral-video-analysis-tabs button small {
  overflow: hidden;
  color: #98a2b1;
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-analysis-tabs button strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-analysis-tabs button:hover,
.viral-video-analysis-tabs button.active {
  border-color: #d8d0ff;
  color: #4f3ac2;
  background: #fff;
  box-shadow: 0 6px 16px rgba(71, 55, 150, 0.08);
}

.viral-video-analysis-tabs button.active small {
  color: #7b61ff;
}

.viral-video-tab-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.viral-video-model-quality {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #d97706;
  border-radius: 12px;
  padding: 10px;
  background: #fffaf0;
}

.viral-video-model-quality.passed {
  border-left-color: #16a34a;
  background: #f4fbf6;
}

.viral-video-model-quality > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: 9px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.82);
}

.viral-video-model-quality small {
  color: #7b61ff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-model-quality strong {
  overflow: hidden;
  color: #293545;
  font-size: 0.76rem;
  text-overflow: ellipsis;
}

.viral-video-model-quality span {
  color: #788597;
  font-size: 0.65rem;
  line-height: 1.45;
}

.viral-video-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.viral-video-overview-strip article {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(150deg, #fff, #f8faff);
}

.viral-video-overview-strip small,
.viral-video-overview-strip span {
  color: #788597;
  font-size: 0.67rem;
}

.viral-video-overview-strip strong {
  color: #293545;
  font-size: 1.05rem;
}

.viral-video-view-switcher,
.viral-video-domain-panel > header,
.viral-video-visual-charts article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.viral-video-view-switcher > div:first-child {
  display: grid;
  gap: 3px;
}

.viral-video-view-switcher > div:first-child span,
.viral-video-domain-panel > header small,
.viral-video-visual-charts article > header small,
.viral-video-visual-charts .pending-chart > small {
  color: #7b61ff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-view-switcher > div:last-child {
  display: flex;
  gap: 5px;
  border-radius: 10px;
  padding: 4px;
  background: #f0f2f6;
}

.viral-video-view-switcher button {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  color: #6b7788;
  background: transparent;
  box-shadow: none;
  font-size: 0.7rem;
  font-weight: 800;
}

.viral-video-view-switcher button.active {
  color: #523bc7;
  background: #fff;
  box-shadow: 0 3px 10px rgba(51, 40, 110, 0.1);
}

.viral-video-visual-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.viral-video-visual-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(210px, 1.28fr);
  overflow: hidden;
  border: 1px solid #e0e6ee;
  border-radius: 13px;
  background: #fff;
}

.viral-video-visual-card.active {
  border-color: #a99aff;
  box-shadow: 0 10px 24px rgba(91, 70, 190, 0.11);
}

.viral-video-visual-card-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  align-self: start;
  overflow: hidden;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
  background: #171b23;
  box-shadow: none;
}

.viral-video-visual-card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  position: static;
  display: block;
  object-fit: contain;
}

.viral-video-visual-card-media > em {
  position: absolute;
  left: 9px;
  bottom: 9px;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.viral-video-visual-card-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
}

.viral-video-visual-card-body > header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.viral-video-visual-card-body > header div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.viral-video-visual-card-body > header small {
  color: #7a8797;
  font-size: 0.65rem;
}

.viral-video-visual-card-body > header span {
  align-self: start;
  border-radius: 999px;
  padding: 4px 7px;
  color: #8b6913;
  background: #fff6d9;
  font-size: 0.6rem;
  font-weight: 850;
  white-space: nowrap;
}

.viral-video-visual-card-body > header span.ready {
  color: #08734a;
  background: #dcfce7;
}

.viral-video-visual-card-body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.viral-video-visual-card-body dl div {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 7px 8px;
  background: #f5f7fa;
}

.viral-video-visual-card-body dt {
  color: #8a95a4;
  font-size: 0.58rem;
  font-weight: 800;
}

.viral-video-visual-card-body dd {
  overflow: hidden;
  margin: 0;
  color: #344050;
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-visual-card-body > p {
  margin: 0;
  color: #788597;
  font-size: 0.67rem;
  line-height: 1.45;
}

.viral-video-visual-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.viral-video-visual-charts > article {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.viral-video-visual-charts > article.wide {
  grid-column: 1 / -1;
}

.viral-video-rhythm-track {
  min-width: 0;
  display: flex;
  align-items: stretch;
  align-self: start;
  gap: 2px;
  overflow-x: auto;
}

.viral-video-rhythm-track button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, #7961ed, #5f47ce);
  box-shadow: none;
  font-size: 0.62rem;
  font-weight: 900;
  transition: filter 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.viral-video-rhythm-track:has(button:hover) button:not(:hover),
.viral-video-rhythm-track:has(button:focus-visible) button:not(:focus-visible) {
  opacity: 0.5;
}

.viral-video-rhythm-track button:hover,
.viral-video-rhythm-track button:focus-visible,
.viral-video-rhythm-track button.previewing {
  filter: saturate(1.2) brightness(1.08);
  transform: translateY(-2px);
}

.viral-video-rhythm-track button:focus-visible {
  outline: 3px solid rgba(123, 97, 255, 0.24);
  outline-offset: 2px;
}

.viral-video-editing-summary > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.viral-video-editing-summary section {
  display: grid;
  gap: 4px;
  border-radius: 9px;
  padding: 10px;
  background: #f6f7fb;
}

.viral-video-editing-summary section small,
.viral-video-motion-intensity button small {
  color: #8490a0;
  font-size: 0.62rem;
  font-weight: 800;
}

.viral-video-editing-summary section strong {
  color: #2f3948;
  font-size: 0.9rem;
}

.viral-video-motion-intensity > div {
  height: 150px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #dfe5ed;
  padding: 8px 4px 0;
  background: linear-gradient(180deg, #fafbff, #fff);
}

.viral-video-motion-intensity button {
  min-width: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: stretch;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.viral-video-motion-intensity button > span {
  min-height: 3px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #927fff, #5d45c8);
}

.viral-video-motion-distribution > div {
  display: grid;
  gap: 9px;
}

.viral-video-motion-distribution section {
  display: grid;
  gap: 4px;
}

.viral-video-motion-distribution label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #536071;
  font-size: 0.68rem;
}

.viral-video-motion-distribution i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff4;
}

.viral-video-motion-distribution em {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #735be1;
}

.viral-video-rapid-cuts ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viral-video-rapid-cuts li {
  display: grid;
  gap: 2px;
  border-left: 3px solid #f59e0b;
  border-radius: 5px;
  padding: 7px 9px;
  color: #5e6977;
  background: #fff8e8;
  font-size: 0.66rem;
}

.viral-video-rapid-cuts li b {
  color: #8b5e08;
}

.viral-video-visual-charts .pending-chart > div {
  height: 82px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid #dfe5ed;
  padding: 8px 10px 0;
  background: linear-gradient(180deg, #fafbff, #fff);
}

.viral-video-visual-charts .pending-chart > div span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: #e9e6f8;
}

.viral-video-visual-charts .pending-chart > div span:nth-child(1) { height: 34%; }
.viral-video-visual-charts .pending-chart > div span:nth-child(2) { height: 68%; }
.viral-video-visual-charts .pending-chart > div span:nth-child(3) { height: 46%; }

.viral-video-visual-charts .pending-chart p,
.viral-video-domain-panel p {
  margin: 0;
  color: #788597;
  font-size: 0.72rem;
  line-height: 1.5;
}

.viral-video-domain-panel > header h3,
.viral-video-domain-panel > header p {
  margin: 0;
}

.viral-video-domain-panel > header > div {
  display: grid;
  gap: 4px;
}

.viral-video-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.viral-video-domain-grid.compact {
  grid-template-columns: 1fr;
}

.viral-video-domain-grid article {
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.viral-video-domain-grid article.ready {
  border-color: #b9e8d1;
  background: #f6fffa;
}

.viral-video-domain-grid article > span {
  color: #7b61ff;
  font-size: 0.65rem;
  font-weight: 900;
}

.viral-video-summary-action {
  justify-self: start;
  min-width: 190px;
}

.viral-video-content-summary {
  display: grid;
  gap: 14px;
  border: 1px solid #dcd7ff;
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(123, 97, 255, 0.12), transparent 38%),
    linear-gradient(145deg, #fff, #faf9ff);
}

.viral-video-content-summary > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.viral-video-content-summary > header > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.viral-video-content-summary > header small {
  color: #735bd8;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.viral-video-content-summary > header strong {
  color: #283244;
  font-size: 0.9rem;
  line-height: 1.65;
}

.viral-video-content-summary > header > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #5b43c0;
  background: #eeeaff;
  font-size: 0.65rem;
  font-weight: 900;
}

.viral-video-content-summary-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.viral-video-content-summary-meta section {
  min-width: 0;
  display: grid;
  gap: 7px;
  border-radius: 10px;
  padding: 11px;
  background: rgba(244, 245, 250, 0.86);
}

.viral-video-content-summary-meta small,
.viral-video-content-flow time,
.viral-video-content-flow small,
.viral-video-content-summary > footer {
  color: #7d8898;
  font-size: 0.62rem;
  font-weight: 800;
}

.viral-video-content-summary-meta section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.viral-video-content-summary-meta em {
  border-radius: 999px;
  padding: 4px 7px;
  color: #51409f;
  background: #eae6ff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.viral-video-content-summary-meta section > div > span {
  color: #8993a1;
  font-size: 0.64rem;
}

.viral-video-content-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.viral-video-content-flow section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  border-left: 3px solid #846df0;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
}

.viral-video-content-flow strong {
  color: #384457;
  font-size: 0.74rem;
}

.viral-video-content-summary > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid #e5e2f5;
  padding-top: 10px;
}

.viral-video-marketing-readiness,
.viral-video-marketing-analysis {
  display: grid;
  gap: 14px;
  border: 1px solid #cfe6dc;
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(44, 181, 125, 0.12), transparent 36%),
    linear-gradient(145deg, #fff, #f8fffb);
}

.viral-video-marketing-readiness {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.viral-video-marketing-readiness > div,
.viral-video-marketing-analysis > header > div {
  display: grid;
  gap: 5px;
}

.viral-video-marketing-readiness small,
.viral-video-marketing-analysis > header small {
  color: #16865b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.viral-video-marketing-readiness strong,
.viral-video-marketing-analysis > header strong {
  color: #263b34;
  font-size: 0.9rem;
}

.viral-video-marketing-analysis > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.viral-video-marketing-analysis > header > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #13764f;
  background: #dff7eb;
  font-size: 0.65rem;
  font-weight: 900;
}

.viral-video-marketing-category-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.viral-video-marketing-category-summary > span {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  padding: 9px;
  color: #53645e;
  background: #edf6f2;
  font-size: 0.58rem;
  font-weight: 800;
}

.viral-video-marketing-category-summary strong {
  color: #253e35;
  font-size: 0.9rem;
}

.viral-video-marketing-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-radius: 10px;
  padding: 9px;
  background: #fff7e6;
}

.viral-video-marketing-warnings span {
  color: #8a6021;
  font-size: 0.62rem;
  font-weight: 750;
}

.viral-video-marketing-warnings span + span::before {
  content: '·';
  margin-right: 6px;
  color: #c79a55;
}

.viral-video-marketing-timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viral-video-marketing-timeline > li {
  display: grid;
  grid-template-columns: minmax(125px, 0.75fr) minmax(260px, 2.4fr) minmax(230px, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #e1e9e5;
  border-left: 4px solid #77868f;
  border-radius: 11px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.viral-video-marketing-timeline > li[data-marketing-category='Hook'] { border-left-color: #7b61ff; }
.viral-video-marketing-timeline > li[data-marketing-category='Pain'] { border-left-color: #e26371; }
.viral-video-marketing-timeline > li[data-marketing-category='Proof'] { border-left-color: #2491c9; }
.viral-video-marketing-timeline > li[data-marketing-category='CTA'] { border-left-color: #ef8a34; }
.viral-video-marketing-timeline > li[data-marketing-category='Offer'] { border-left-color: #d5a400; }
.viral-video-marketing-timeline > li[data-marketing-category='Other'] { border-left-color: #81909b; }

.viral-video-marketing-time,
.viral-video-marketing-segment-copy {
  display: grid;
  gap: 6px;
}

.viral-video-marketing-time time,
.viral-video-marketing-time span,
.viral-video-marketing-timeline dt,
.viral-video-marketing-timeline footer,
.viral-video-marketing-analysis > footer {
  color: #74817c;
  font-size: 0.6rem;
  font-weight: 800;
}

.viral-video-marketing-time span {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 7px;
  color: #40554d;
  background: #eaf1ee;
}

.viral-video-marketing-segment-copy strong {
  color: #2d3f39;
  font-size: 0.72rem;
  line-height: 1.55;
}

.viral-video-marketing-segment-copy p {
  color: #68766f;
  font-size: 0.66rem;
}

.viral-video-marketing-segment-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.viral-video-marketing-segment-copy em {
  border-radius: 999px;
  padding: 3px 6px;
  color: #43685a;
  background: #e7f4ee;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
}

.viral-video-marketing-timeline dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}

.viral-video-marketing-timeline dl > div {
  display: grid;
  gap: 2px;
  border-radius: 7px;
  padding: 6px;
  text-align: center;
  background: #f3f6f5;
}

.viral-video-marketing-timeline dd {
  margin: 0;
  color: #2d443b;
  font-size: 0.7rem;
  font-weight: 900;
}

.viral-video-marketing-timeline footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.viral-video-marketing-analysis > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid #dceae4;
  padding-top: 10px;
}

@media (max-width: 1180px) {
  .viral-video-marketing-category-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .viral-video-marketing-timeline > li {
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 2fr);
  }

  .viral-video-marketing-timeline dl {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .viral-video-marketing-readiness,
  .viral-video-marketing-timeline > li {
    grid-template-columns: 1fr;
  }

  .viral-video-marketing-category-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.viral-video-audio-track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.viral-video-audio-track-card,
.viral-video-transcript-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.viral-video-audio-track-card > header,
.viral-video-transcript-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viral-video-audio-track-card > header > div,
.viral-video-transcript-panel > header > div {
  display: grid;
  gap: 3px;
}

.viral-video-audio-track-card > header small,
.viral-video-transcript-panel > header small {
  color: #7b61ff;
  font-size: 0.65rem;
  font-weight: 900;
}

.viral-video-audio-track-card > header > span,
.viral-video-transcript-panel > header > span {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: #08734a;
  background: #dcfce7;
  font-size: 0.68rem;
  font-weight: 800;
}

.viral-video-ocr-actions {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 8px !important;
}

.viral-video-ocr-actions > span {
  color: #08734a;
  font-size: 0.68rem;
  font-weight: 800;
}

.viral-video-transcript-panel .viral-video-ocr-actions > button {
  width: auto;
  display: inline-flex;
  grid-template-columns: none;
  justify-content: center;
  border: 1px solid #d8d0ff;
  padding: 8px 12px;
  color: #5f45d6;
  background: #f4f0ff;
  text-align: center;
  white-space: nowrap;
}

.viral-video-transcript-panel .viral-video-ocr-actions > button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.viral-video-ocr-error {
  margin: 0;
  border-left: 3px solid #e5484d;
  padding: 8px 10px;
  color: #9f2f34;
  background: #fff5f5;
  font-size: 0.76rem;
  line-height: 1.6;
}

.viral-video-audio-track-card audio {
  width: 100%;
}

.viral-video-audio-track-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.viral-video-audio-track-card dl div {
  display: grid;
  gap: 3px;
  border-radius: 9px;
  padding: 9px;
  background: #f7f9fc;
}

.viral-video-audio-track-card dt {
  color: #8a96a6;
  font-size: 0.64rem;
}

.viral-video-audio-track-card dd {
  margin: 0;
  color: #253142;
  font-size: 0.72rem;
  font-weight: 700;
}

.viral-video-audio-activity {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.viral-video-audio-activity i {
  position: absolute;
  inset-block: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b61ff, #35b985);
}

.viral-video-transcript-panel ol {
  display: grid;
  gap: 7px;
  max-height: 360px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.viral-video-transcript-panel button {
  width: 100%;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #253142;
  background: #f7f9fc;
  text-align: left;
  cursor: pointer;
}

.viral-video-transcript-panel button:hover {
  background: #f0edff;
}

.viral-video-transcript-panel button.is-active {
  background: #f4f0ff;
  box-shadow: inset 3px 0 0 #7b61ff;
}

.viral-video-transcript-panel button > small {
  color: #8a96a6;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.viral-video-transcript-panel button.is-active > small {
  color: #6b4eff;
}

.viral-video-transcript-panel time {
  color: #7b61ff;
  font-size: 0.68rem;
  font-weight: 800;
}

.viral-video-karaoke-line {
  min-width: 0;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.viral-video-karaoke-token {
  --viral-karaoke-progress: 0%;
  position: relative;
  display: inline-block;
  white-space: pre-wrap;
}

.viral-video-karaoke-token > span {
  color: #758094;
}

.viral-video-karaoke-token > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--viral-karaoke-progress);
  overflow: hidden;
  color: #6b4eff;
  font-style: normal;
  white-space: pre;
  text-shadow: 0 0 12px rgba(107, 78, 255, 0.24);
  pointer-events: none;
}

.viral-video-karaoke-static {
  color: inherit;
  white-space: pre-wrap;
}

.viral-video-transcript-panel button.is-past .viral-video-karaoke-static,
.viral-video-transcript-panel button.is-active .viral-video-karaoke-static {
  color: #6b4eff;
}

@media (prefers-reduced-motion: reduce) {
  .viral-video-transcript-panel ol {
    scroll-behavior: auto;
  }
}

.viral-video-scoring-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 12px;
}

.viral-video-radar-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: #fff;
}

.viral-video-radar-placeholder > div {
  width: 150px;
  height: 150px;
  position: relative;
  transform: rotate(-18deg);
  border: 1px solid #dcd6f7;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.08), rgba(89, 203, 157, 0.08));
  clip-path: polygon(50% 0%, 97% 35%, 79% 91%, 21% 91%, 3% 35%);
}

.viral-video-radar-placeholder > div span {
  display: none;
}

.viral-video-strategy-analysis {
  display: grid;
  gap: 14px;
  border: 1px solid #ddd8fa;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(145deg, #fff, #faf9ff);
}

.viral-video-strategy-analysis > header,
.viral-video-strategy-analysis > footer,
.viral-video-manual-score-form > header,
.viral-video-manual-score-form > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viral-video-strategy-analysis > header > div,
.viral-video-manual-score-form > header > div {
  display: grid;
  gap: 5px;
}

.viral-video-strategy-analysis > header small,
.viral-video-manual-score-form > header small {
  color: #6b4eff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.viral-video-strategy-analysis > header > span,
.viral-video-manual-score-form > header > span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #614dc4;
  background: #eeeaff;
  font-size: 0.62rem;
  font-weight: 850;
}

.viral-video-strategy-analysis > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.viral-video-strategy-boundary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border: 1px solid #f0d69c;
  border-radius: 10px;
  padding: 9px 11px;
  color: #73541a;
  background: #fff9e9;
  font-size: 0.62rem;
}

.viral-video-strategy-boundary strong {
  margin-right: 3px;
  font-size: 0.67rem;
}

.viral-video-strategy-boundary span {
  border-left: 1px solid #dfc37f;
  padding-left: 8px;
}

.viral-video-strategy-analysis section {
  display: grid;
  gap: 8px;
  border: 1px solid #e7e3f8;
  border-left: 4px solid #9b8bea;
  border-radius: 11px;
  padding: 12px;
  background: #fff;
}

.viral-video-strategy-analysis section.supported { border-left-color: #29a875; }
.viral-video-strategy-analysis section.partial { border-left-color: #e5a72f; }
.viral-video-strategy-analysis section.unknown { border-left-color: #9aa4af; }

.viral-video-strategy-analysis section > header,
.viral-video-strategy-analysis section > footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viral-video-strategy-analysis section > header em {
  margin-left: auto;
  color: #77808c;
  font-size: 0.58rem;
  font-style: normal;
}

.viral-video-strategy-analysis section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.viral-video-strategy-analysis code {
  border-radius: 5px;
  padding: 3px 5px;
  color: #5b4ca2;
  background: #f1effc;
  font-size: 0.55rem;
}

.viral-video-strategy-analysis section > footer,
.viral-video-strategy-analysis > footer {
  color: #7b8190;
  font-size: 0.58rem;
  font-weight: 750;
}

.viral-video-strategy-analysis > footer button {
  margin-left: auto;
}

.viral-video-paid-creative-expert,
.viral-video-expert-attempt,
.viral-video-expert-context-form {
  display: grid;
  gap: 15px;
  border: 1px solid #d8d1fb;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(145deg, #ffffff, #f8f6ff);
}

.viral-video-expert-attempt {
  border-color: #efc893;
  background: linear-gradient(145deg, #fffdf9, #fff7eb);
}

.viral-video-expert-attempt > header,
.viral-video-expert-attempt > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viral-video-expert-attempt > header > div {
  display: grid;
  gap: 5px;
}

.viral-video-expert-attempt > header small {
  color: #a45c13;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-expert-attempt > header > span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #8d4c0e;
  background: #ffe8c7;
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
}

.viral-video-expert-attempt dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.viral-video-expert-attempt dl > div {
  border: 1px solid #f1ddbf;
  border-radius: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.75);
}

.viral-video-expert-attempt dt {
  color: #9a5e21;
  font-size: 0.57rem;
  font-weight: 900;
}

.viral-video-expert-attempt dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: #4a4035;
  font-size: 0.67rem;
  line-height: 1.5;
}

.viral-video-expert-attempt > footer {
  flex-wrap: wrap;
  color: #8c6b49;
  font-size: 0.58rem;
  font-weight: 750;
}

.viral-video-paid-creative-expert > header,
.viral-video-paid-creative-expert > footer,
.viral-video-expert-context-form > header,
.viral-video-expert-context-form > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viral-video-paid-creative-expert > header > div,
.viral-video-expert-context-form > header > div {
  display: grid;
  gap: 5px;
}

.viral-video-paid-creative-expert > header small,
.viral-video-expert-context-form > header small {
  color: #5f43d7;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.viral-video-paid-creative-expert > header > span,
.viral-video-expert-context-form > header > span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #5f43d7;
  background: #eeeaff;
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
}

.viral-video-paid-creative-expert > aside {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #f0d69c;
  border-radius: 10px;
  padding: 9px 11px;
  color: #73541a;
  background: #fff9e9;
  font-size: 0.62rem;
}

.viral-video-paid-creative-expert > aside span {
  border-left: 1px solid #dfc37f;
  padding-left: 8px;
}

.viral-video-expert-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.viral-video-expert-overview > section {
  border: 1px solid #e3dff5;
  border-radius: 11px;
  padding: 12px;
  background: #fff;
}

.viral-video-expert-overview small,
.viral-video-expert-actions small {
  color: #6554ae;
  font-size: 0.59rem;
  font-weight: 900;
}

.viral-video-expert-overview p,
.viral-video-expert-actions p {
  margin: 6px 0 0;
  color: #3d4451;
  font-size: 0.65rem;
  line-height: 1.55;
}

.viral-video-expert-dimensions {
  display: grid;
  gap: 10px;
}

.viral-video-expert-dimensions > section {
  display: grid;
  gap: 10px;
  border: 1px solid #e5e1f3;
  border-left: 4px solid #8f79e9;
  border-radius: 12px;
  padding: 13px;
  background: #fff;
}

.viral-video-expert-dimensions > section.not_observed { border-left-color: #a3abb7; }
.viral-video-expert-dimensions > section.unknown { border-left-color: #d7a53c; }

.viral-video-expert-dimensions > section > header,
.viral-video-expert-dimensions > section > footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viral-video-expert-dimensions > section > header em {
  margin-left: auto;
  color: #6c7481;
  font-size: 0.58rem;
  font-style: normal;
}

.viral-video-expert-dimensions dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.viral-video-expert-dimensions dl > div {
  border-radius: 9px;
  padding: 10px;
  background: #f8f7fc;
}

.viral-video-expert-dimensions dt {
  color: #6e5fb1;
  font-size: 0.57rem;
  font-weight: 900;
}

.viral-video-expert-dimensions dd {
  margin: 5px 0 0;
  color: #313846;
  font-size: 0.67rem;
  line-height: 1.55;
}

.viral-video-expert-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.viral-video-expert-actions > section {
  border-top: 1px solid #ece9f4;
  padding-top: 8px;
}

.viral-video-expert-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.viral-video-expert-evidence code {
  border-radius: 5px;
  padding: 3px 5px;
  color: #5b4ca2;
  background: #f1effc;
  font-size: 0.55rem;
}

.viral-video-expert-dimensions > section > footer,
.viral-video-paid-creative-expert > footer {
  color: #7b8190;
  font-size: 0.58rem;
  font-weight: 750;
}

.viral-video-expert-context-form > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.viral-video-expert-prefill-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  border: 1px solid #cfe0fa;
  border-radius: 10px;
  padding: 10px 12px;
  color: #405a78;
  background: #f2f7ff;
  font-size: 0.72rem;
  line-height: 1.55;
}

.viral-video-expert-prefill-note strong {
  color: #315988;
}

.viral-video-expert-context-form label {
  display: grid;
  gap: 6px;
}

.viral-video-expert-context-form label.wide {
  grid-column: 1 / -1;
}

.viral-video-expert-context-form label > span {
  color: #596373;
  font-size: 0.62rem;
  font-weight: 800;
}

.viral-video-expert-context-form input,
.viral-video-expert-context-form select,
.viral-video-expert-context-form textarea {
  width: 100%;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  padding: 9px 10px;
  color: #303746;
  background: #fff;
}

.viral-video-expert-context-form > footer {
  align-items: center;
  color: #747c89;
  font-size: 0.61rem;
}

@media (max-width: 900px) {
  .viral-video-expert-overview,
  .viral-video-expert-actions,
  .viral-video-expert-attempt dl,
  .viral-video-expert-context-form > div,
  .viral-video-expert-dimensions dl {
    grid-template-columns: 1fr;
  }

  .viral-video-expert-context-form label.wide {
    grid-column: auto;
  }
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] {
  gap: 18px;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] > header small {
  font-size: 0.74rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] > header h3 {
  font-size: 1.18rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] > header p {
  max-width: 88ch;
  font-size: 0.88rem;
  line-height: 1.75;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] > header .status-chip {
  font-size: 0.74rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-domain-grid article {
  gap: 9px;
  padding: 16px;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-domain-grid article > span {
  font-size: 0.74rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-domain-grid article > strong {
  font-size: 0.94rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-domain-grid article > p {
  font-size: 0.84rem;
  line-height: 1.7;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-readiness,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-analysis,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-paid-creative-expert,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form {
  gap: 17px;
  padding: 20px;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary > header small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-readiness small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-analysis > header small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis > header small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-paid-creative-expert > header small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt > header small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form > header small {
  font-size: 0.72rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary > header strong,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-readiness strong,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-analysis > header strong,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis > header strong,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-paid-creative-expert > header strong,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt > header strong,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form > header strong {
  font-size: 1.04rem;
  line-height: 1.65;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary > header > span,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-analysis > header > span,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis > header > span,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-paid-creative-expert > header > span,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt > header > span,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form > header > span {
  font-size: 0.72rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary-meta small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-flow time,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-flow small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary > footer {
  font-size: 0.72rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary-meta em,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-summary-meta section > div > span {
  font-size: 0.74rem;
  line-height: 1.45;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-flow section {
  gap: 7px;
  padding: 12px 13px;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-flow strong {
  font-size: 0.88rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-content-flow p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-readiness p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-analysis > header p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis > header p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-paid-creative-expert > header p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt > header p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form > header p {
  font-size: 0.84rem;
  line-height: 1.7;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-category-summary > span {
  padding: 11px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-category-summary strong {
  font-size: 1rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-warnings span {
  font-size: 0.74rem;
  line-height: 1.55;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-timeline {
  gap: 11px;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-timeline > li {
  gap: 14px;
  padding: 15px;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-time,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-segment-copy {
  gap: 8px;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-time time,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-time span,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-timeline dt,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-timeline footer,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-analysis > footer {
  font-size: 0.74rem;
  line-height: 1.5;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-segment-copy strong {
  font-size: 0.9rem;
  line-height: 1.65;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-segment-copy p {
  font-size: 0.84rem;
  line-height: 1.7;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-segment-copy em {
  padding: 4px 7px;
  font-size: 0.72rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-timeline dt {
  font-size: 0.7rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-marketing-timeline dd {
  font-size: 0.82rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-boundary,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-paid-creative-expert > aside,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-prefill-note {
  font-size: 0.74rem;
  line-height: 1.55;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis section > header strong,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-dimensions > section > header strong {
  font-size: 0.88rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis section > header em,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-dimensions > section > header em,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis section > footer,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis > footer,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-dimensions > section > footer,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-paid-creative-expert > footer,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt > footer,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form > footer {
  font-size: 0.72rem;
  line-height: 1.55;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-strategy-analysis code,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-evidence code {
  font-size: 0.68rem;
  line-height: 1.45;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-overview small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-actions small,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-dimensions dt,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt dt,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form label > span {
  font-size: 0.72rem;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-overview p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-actions p,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-dimensions dd,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-attempt dd {
  font-size: 0.82rem;
  line-height: 1.7;
}

.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form input,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form select,
.viral-video-tab-panel[data-viral-analysis-panel='content'] .viral-video-expert-context-form textarea {
  font-size: 0.84rem;
  line-height: 1.55;
}

.viral-video-manual-radar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.7fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #ddd8fa;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.viral-video-manual-radar svg { width: 100%; max-height: 270px; }
.viral-video-manual-radar svg polygon { fill: none; stroke: #e0dcf3; stroke-width: 1; }
.viral-video-manual-radar svg line { stroke: #e7e4f2; stroke-width: 1; }
.viral-video-manual-radar svg polygon.score { fill: rgba(107, 78, 255, 0.2); stroke: #6b4eff; stroke-width: 2.5; }
.viral-video-manual-radar svg circle { fill: #6b4eff; }
.viral-video-manual-radar ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.viral-video-manual-radar li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eeecf6; padding: 5px 0; font-size: 0.66rem; }
.viral-video-manual-radar > footer { grid-column: 1 / -1; display: flex; justify-content: space-between; color: #777f8d; font-size: 0.6rem; }

.viral-video-manual-score-form {
  display: grid;
  gap: 16px;
  border: 1px solid #dde3eb;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.viral-video-performance-strategies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.viral-video-performance-strategies > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8f9fc;
  cursor: pointer;
}

.viral-video-performance-strategies > label.active {
  border-color: #7b63e8;
  box-shadow: 0 0 0 2px rgba(107, 78, 255, 0.1);
  background: #f4f1ff;
}

.viral-video-performance-strategies span {
  display: grid;
  gap: 4px;
}

.viral-video-performance-strategies small {
  color: #717989;
}

.viral-video-performance-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.viral-video-performance-fields label,
.viral-video-manual-score-grid > label,
.viral-video-manual-score-overall {
  display: grid;
  gap: 6px;
}

.viral-video-performance-fields label > span,
.viral-video-manual-score-overall > span {
  color: #596373;
  font-size: 0.62rem;
  font-weight: 800;
}

.viral-video-performance-fields input,
.viral-video-manual-score-grid textarea,
.viral-video-manual-score-overall textarea {
  width: 100%;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  padding: 8px 9px;
  color: #303746;
  background: #fbfcfe;
}

.viral-video-manual-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.viral-video-manual-score-grid > label {
  border: 1px solid #e7e4f1;
  border-radius: 10px;
  padding: 11px;
  background: #fcfbff;
}

.viral-video-manual-score-grid > label > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.66rem;
}

.viral-video-manual-score-grid output {
  color: #6b4eff;
  font-size: 0.82rem;
  font-weight: 900;
}

.viral-video-manual-score-form > footer {
  align-items: center;
  border-top: 1px solid #eceaf4;
  padding-top: 12px;
  color: #747d8a;
  font-size: 0.62rem;
}

.viral-video-module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.viral-video-module-card {
  width: 100%;
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 13px;
  color: inherit;
  background: #fff;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.viral-video-module-card:hover,
.viral-video-module-card:focus-visible {
  border-color: #927fff;
  box-shadow: 0 10px 24px rgba(91, 70, 190, 0.12);
  transform: translateY(-2px);
}

.viral-video-module-card:focus-visible {
  outline: 3px solid rgba(123, 97, 255, 0.2);
  outline-offset: 2px;
}

.viral-video-module-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.viral-video-module-card > header span {
  color: #7b61ff;
  font-size: 0.7rem;
  font-weight: 900;
}

.viral-video-module-card > header small {
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  color: #7b8794;
  background: #f1f4f8;
  font-size: 0.62rem;
  font-weight: 800;
}

.viral-video-module-card.completed {
  border-color: #b9e8d1;
  background: #f6fffa;
}

.viral-video-module-card.completed > header small {
  color: #08734a;
  background: #dcfce7;
}

.viral-video-module-card.blocked {
  border-color: #f1d7a4;
  background: #fffcf5;
}

.viral-video-module-card.blocked > header small {
  color: #9a5b08;
  background: #fff1cf;
}

.viral-video-module-card > strong {
  color: #293545;
  font-size: 0.84rem;
}

.viral-video-module-card > p {
  margin: 0;
  color: #718096;
  font-size: 0.72rem;
  line-height: 1.45;
}

.viral-video-module-card > em {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #6d53dc;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.viral-video-module-card > em span {
  font-size: 0.82rem;
  transition: transform 160ms ease;
}

.viral-video-module-card:hover > em span,
.viral-video-module-card:focus-visible > em span {
  transform: translateX(3px);
}

.viral-video-shot-workbench {
  display: grid;
  gap: 13px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfe;
}

.viral-video-shot-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(420px, 1fr);
  gap: 13px;
  align-items: start;
}

.viral-video-shot-player {
  overflow: hidden;
  display: grid;
  border: 1px solid #dce3eb;
  border-radius: 12px;
  background: #10131a;
}

.viral-video-shot-player video {
  width: auto;
  max-width: 100%;
  height: clamp(280px, 38vh, 420px);
  aspect-ratio: auto;
  justify-self: center;
  display: block;
  object-fit: contain;
  background: #10131a;
}

.viral-video-shot-player-empty {
  width: 100%;
  min-height: 280px;
  max-height: 420px;
  aspect-ratio: var(--viral-video-shot-aspect, 16 / 9);
  display: grid;
  place-items: center;
  color: #aab3c0;
  background: #10131a;
}

.viral-video-control-frame-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #252a33;
}

.viral-video-control-frame-strip figure {
  min-width: 0;
  margin: 0;
  background: #151922;
}

.viral-video-control-frame-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
}

.viral-video-control-frame-strip figure > span {
  width: 100%;
  aspect-ratio: var(--viral-video-shot-aspect, 16 / 9);
  display: grid;
  place-items: center;
  color: #7f8997;
  font-size: 0.66rem;
}

.viral-video-control-frame-strip figcaption {
  overflow: hidden;
  padding: 6px 7px;
  color: #c7ced8;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-control-frame-strip figure.missing {
  opacity: 0.58;
}

.viral-video-shot-player > div:last-child {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  color: #fff;
}

.viral-video-shot-player > div:last-child span,
.viral-video-shot-player > div:last-child small {
  color: #aab3c0;
  font-size: 0.7rem;
}

.viral-video-shot-list {
  height: clamp(540px, 64vh, 760px);
  max-height: 760px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 3px;
}

.viral-video-shot-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(58px, 72px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e0e6ee;
  border-radius: 11px;
  padding: 10px;
  color: #344050;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.viral-video-shot-card:hover,
.viral-video-shot-card.active {
  border-color: #9d8bff;
  background: #f4f1ff;
}

.viral-video-shot-index {
  width: 100%;
  aspect-ratio: var(--viral-video-shot-aspect, 1 / 1);
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #7b61ff;
  font-size: 0.72rem;
  font-weight: 900;
}

.viral-video-shot-index.has-frame {
  aspect-ratio: auto;
  align-self: start;
  overflow: hidden;
  background: #10131a;
}

.viral-video-shot-index img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  border-radius: inherit;
  object-fit: contain;
  background: #10131a;
}

.viral-video-shot-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.viral-video-shot-copy strong,
.viral-video-shot-copy small,
.viral-video-shot-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-shot-copy small {
  color: #697789;
  font-size: 0.7rem;
}

.viral-video-shot-copy em {
  color: #8b76e8;
  font-size: 0.68rem;
  font-style: normal;
}

.viral-video-shot-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #c8d2df;
  border-radius: 11px;
  color: #7b8794;
  background: #f8fafc;
}

.viral-video-contract-note {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.75fr) minmax(260px, 1.25fr);
  gap: 14px;
  align-items: center;
  border-radius: 12px;
  padding: 14px 16px;
  color: #5b6675;
  background: #f0edff;
}

.viral-video-contract-note span {
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  color: #6046d8;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.viral-video-contract-note strong {
  color: #34276b;
}

.viral-video-contract-note p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.style-photographer-workspace {
  display: grid;
  gap: 16px;
}

.photographer-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.photographer-tabs button {
  min-height: 44px;
  border-radius: 0;
  padding: 0.7rem 1rem;
  color: #687586;
  background: transparent;
  box-shadow: none;
}

.photographer-tabs button.active {
  color: #17202a;
  box-shadow: inset 0 -3px 0 #7b61ff;
}

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

.photographer-detail,
.photographer-library-pane,
.shoot-composer-shell {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(31, 41, 55, 0.09);
  backdrop-filter: blur(18px);
}

.photographer-detail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 15px;
  padding: 18px;
}

.photographer-detail.pose-detail-empty,
.photographer-detail.shoot-detail-empty {
  min-height: 460px;
}

.photographer-detail-head,
.photographer-section-head,
.composer-head,
.composer-head-actions,
.photographer-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photographer-detail-head h3,
.photographer-section-head h2,
.composer-head h2 {
  margin: 4px 0 0;
}

.photographer-section-head p {
  margin: 5px 0 0;
  color: #718096;
}

.status-chip {
  width: max-content;
  border: 1px solid #d8e0eb;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 850;
}

.status-chip.success {
  border-color: #a7e2c0;
  color: #0f6b3f;
  background: #ecfdf3;
}

.pose-output-frame,
.shoot-detail-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #eef2f7;
}

.pose-output-frame img,
.shoot-detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.status-chip.danger {
  border-color: #f2a7a7;
  color: #a61b1b;
  background: #fff1f1;
}

.shoot-detail-preview,
.shoot-card-preview,
.shoot-card-select,
.shoot-model-preview-media button {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.shoot-detail-preview,
.shoot-card-preview,
.shoot-model-preview-media button {
  height: 100%;
  display: block;
  cursor: grab;
}

.shoot-detail-preview:focus-visible,
.shoot-card-preview:focus-visible,
.shoot-card-select:focus-visible,
.shoot-model-preview-media button:focus-visible {
  outline: 3px solid rgba(123, 97, 255, 0.5);
  outline-offset: -3px;
}

.pose-output-empty,
.shoot-output-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: #758191;
  text-align: center;
}

.pose-output-empty span,
.shoot-output-empty span {
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.pose-output-empty strong,
.shoot-output-empty strong {
  color: #344050;
}

.pose-source-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e3e8ef;
  padding-top: 14px;
}

.pose-source-row img {
  width: 54px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.pose-source-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pose-source-row span,
.pose-source-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pose-source-row span {
  color: #7b8794;
  font-size: 0.75rem;
}

.photographer-detail-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pose-library-workspace {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 14px;
}

.pose-library-browse {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.pose-library-browse > .pose-filter-bar {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  padding: 4px 10px 0;
  background: rgba(255, 255, 255, 0.92);
}

.pose-library-workspace .photographer-master-detail {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 24px;
}

.pose-library-operation {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.pose-library-detail {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  gap: 14px;
}

.pose-library-detail > * {
  min-width: 0;
  max-width: 100%;
}

.pose-library-detail .photographer-detail-head {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.pose-library-detail .photographer-detail-head > div {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.pose-library-detail .photographer-detail-head h3 {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pose-detail-placeholder {
  min-height: 620px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px dashed #c8d2df;
  border-radius: 8px;
  padding: 24px;
  color: #6d7988;
  background: #f8fafc;
  text-align: center;
}

.pose-detail-placeholder span {
  color: #7b61ff;
  font-size: 0.74rem;
  font-weight: 850;
}

.pose-detail-placeholder strong {
  color: #293545;
}

.pose-detail-placeholder small {
  max-width: 240px;
  line-height: 1.5;
}

.pose-main-preview {
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #eef2f7;
}

.pose-main-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pose-detail-meta {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
}

.pose-detail-meta div {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 7px;
}

.pose-detail-meta dt {
  color: #7b8794;
  font-size: 0.75rem;
}

.pose-detail-meta dd {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: #344050;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pose-comparison-grid figure {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 0;
}

.pose-comparison-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  color: #7b8794;
  background: #eef2f7;
  font-size: 0.74rem;
}

.pose-comparison-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pose-comparison-grid figcaption {
  color: #53606d;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.photographer-library-pane {
  min-height: 610px;
  padding: 20px;
}

.pose-analysis-panels {
  display: grid;
  gap: 10px;
}

.pose-analysis-module {
  display: grid;
  gap: 10px;
  border-left: 3px solid #aab4c0;
  padding: 14px;
  background: #f8fafc;
}

.pose-analysis-module.status-completed {
  border-left-color: #17834f;
  background: #f2fbf6;
}

.pose-analysis-module.status-processing {
  border-left-color: #277a8a;
  background: #f1f8fa;
}

.pose-analysis-module.status-incomplete,
.pose-analysis-module.status-failed {
  border-left-color: #c27a12;
  background: #fff9ed;
}

.pose-analysis-module-heading,
.pose-analysis-module-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pose-analysis-module-heading > div {
  justify-content: flex-start;
}

.pose-analysis-module-heading span {
  color: #6d7887;
  font-size: 0.72rem;
  font-weight: 800;
}

.pose-analysis-module-heading strong {
  color: #263241;
  font-size: 0.82rem;
}

.pose-analysis-module.status-completed .pose-analysis-module-heading strong {
  color: #176b44;
}

.pose-analysis-module.status-incomplete .pose-analysis-module-heading strong,
.pose-analysis-module.status-failed .pose-analysis-module-heading strong {
  color: #8b550d;
}

.pose-analysis-module-summary {
  margin: 0;
  color: #4c5968;
  font-size: 0.78rem;
  line-height: 1.55;
}

.pose-analysis-failure-reason {
  display: grid;
  gap: 7px;
  border-left: 3px solid #c27a12;
  padding: 9px 11px;
  background: #fff4dc;
}

.pose-analysis-failure-reason > strong {
  color: #744509;
  font-size: 0.74rem;
}

.pose-analysis-failure-reason dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.pose-analysis-failure-reason dl > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pose-analysis-failure-reason dt {
  color: #8a621f;
  font-size: 0.67rem;
  font-weight: 800;
}

.pose-analysis-failure-reason dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #4f3a17;
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pose-analysis-description-list {
  display: grid;
  border-top: 1px solid #d9e0e7;
}

.pose-analysis-description {
  min-width: 0;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #d9e0e7;
  padding: 10px 0;
}

.pose-analysis-description-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pose-analysis-description strong {
  color: #263241;
  font-size: 0.7rem;
  font-weight: 800;
}

.pose-analysis-observability {
  flex: 0 0 auto;
  border-left: 2px solid #81909b;
  padding-left: 7px;
  color: #53636f;
  font-size: 0.68rem;
  font-weight: 800;
}

.pose-analysis-description p {
  margin: 0;
  color: #4c5968;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pose-analysis-description .pose-analysis-observability-reason {
  color: #76838e;
  font-size: 0.7rem;
  line-height: 1.45;
}

.pose-analysis-constraints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.pose-analysis-constraints > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pose-analysis-constraints dt {
  color: #7b8794;
  font-size: 0.68rem;
  font-weight: 800;
}

.pose-analysis-constraints dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #344050;
  font-size: 0.73rem;
  line-height: 1.4;
}

.pose-analysis-scene-suggestions {
  display: grid;
  gap: 9px;
  border: 1px solid #d8e4dc;
  border-radius: 10px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.58);
}

.pose-analysis-scene-suggestions > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.pose-analysis-scene-suggestions > header > div {
  display: grid;
  gap: 2px;
}

.pose-analysis-scene-suggestions header span,
.pose-analysis-scene-suggestions header small {
  color: #65766b;
  font-size: 0.68rem;
  font-weight: 800;
}

.pose-analysis-scene-suggestions header strong {
  color: #294436;
  font-size: 0.78rem;
}

.pose-analysis-scene-suggestions ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.35rem;
}

.pose-analysis-scene-suggestions li {
  padding-left: 2px;
  color: #48584f;
}

.pose-analysis-scene-suggestions li > strong,
.pose-analysis-scene-suggestions li > p,
.pose-analysis-scene-suggestions li > small {
  display: block;
}

.pose-analysis-scene-suggestions li > strong {
  color: #2c4035;
  font-size: 0.73rem;
}

.pose-analysis-scene-suggestions li > p {
  margin: 3px 0;
  color: #617067;
  font-size: 0.7rem;
  line-height: 1.48;
}

.pose-analysis-scene-suggestions li > small {
  color: #839087;
  font-size: 0.65rem;
  line-height: 1.4;
}

.pose-quality-panel {
  display: grid;
  gap: 9px;
  border-left: 3px solid #aab4c0;
  padding: 12px 14px;
  background: #f8fafc;
}

.pose-quality-panel.status-risk {
  border-left-color: #c81e1e;
  background: #fff5f5;
}

.pose-quality-panel.status-passed {
  border-left-color: #17834f;
  background: #f2fbf6;
}

.pose-quality-panel.status-completed {
  border-left-color: #17834f;
  background: #f2fbf6;
}

.pose-quality-panel.status-incomplete,
.pose-quality-panel.status-failed {
  border-left-color: #c27a12;
  background: #fff9ed;
}

.pose-quality-panel.status-processing {
  border-left-color: #277a8a;
  background: #f1f8fa;
}

.pose-quality-heading,
.pose-quality-heading div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pose-quality-heading div {
  justify-content: flex-start;
}

.pose-quality-heading .pose-quality-actions {
  justify-content: flex-end;
}

.pose-quality-heading span,
.pose-quality-heading small {
  color: #6d7887;
  font-size: 0.72rem;
  font-weight: 800;
}

.pose-quality-heading strong {
  color: #263241;
  font-size: 0.82rem;
}

.pose-quality-panel.status-risk .pose-quality-heading strong {
  color: #a61b1b;
}

.pose-quality-panel.status-completed .pose-quality-heading strong {
  color: #176b44;
}

.pose-quality-panel.status-incomplete .pose-quality-heading strong,
.pose-quality-panel.status-failed .pose-quality-heading strong {
  color: #8b550d;
}

.pose-panel-action {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.pose-quality-panel p {
  margin: 0;
  color: #4c5968;
  font-size: 0.78rem;
  line-height: 1.55;
}

.pose-quality-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pose-quality-panel li {
  display: grid;
  gap: 3px;
  border-top: 1px solid #efcaca;
  padding-top: 8px;
  color: #5b2730;
  font-size: 0.74rem;
  line-height: 1.45;
}

.pose-quality-panel li small {
  color: #7c4c54;
}

.danger-action {
  border-color: #e49b9b;
  color: #a61b1b;
  background: #fff5f5;
}

.photography-section-block {
  display: grid;
  gap: 16px;
  padding: 4px 0;
}

.photography-section-divider {
  border-top: 1px solid #dfe5ec;
  margin: 24px 0;
}

.compact-section-head {
  align-items: flex-end;
}

.model-pose-library-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.model-pose-card {
  min-width: 0;
  min-height: 0;
}

.model-pose-card > span:not(.pipeline-empty-media) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-empty {
  min-height: 180px;
}

.compact-comparison .pose-comparison-media {
  aspect-ratio: 2 / 3;
}

.style-catalog-control {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.style-catalog-control .field {
  margin: 0;
}

.style-catalog-control select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: #17202a;
  background: #fff;
  font: inherit;
}

.style-description {
  margin: 10px 0 0;
  color: #667384;
  font-size: 0.8rem;
  line-height: 1.55;
}

.inline-error {
  border: 1px solid #efb0b0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: #9f2424;
  background: #fff5f5;
  font-size: 0.8rem;
  line-height: 1.45;
}

.model-pose-actions {
  margin-top: 18px;
}

.model-pose-outfit-field {
  margin: 18px 0 0;
}

.model-pose-outfit-field textarea {
  width: 100%;
  min-height: 108px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  padding: 0.72rem 0.82rem;
  color: #17202a;
  background: #fff;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.model-pose-outfit-field textarea:focus {
  border-color: #6d5dfc;
  outline: 2px solid rgba(109, 93, 252, 0.16);
  outline-offset: 1px;
}

.model-pose-outfit-field textarea:disabled {
  color: #697586;
  background: #f3f5f8;
}

.photographer-section-head {
  margin-bottom: 18px;
}

.pose-filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 18px;
  border-bottom: 1px solid #dfe5ec;
}

.pose-filter-bar button {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 0;
  padding: 0.55rem 0.78rem;
  color: #687586;
  background: transparent;
  box-shadow: none;
}

.pose-filter-bar button.active {
  color: #17202a;
  box-shadow: inset 0 -3px 0 #7b61ff;
}

.photographer-upload-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0.62rem 0.92rem;
  color: #fff;
  background: #17202a;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.15);
  cursor: pointer;
  font-weight: 850;
}

.photographer-upload-button.secondary {
  border: 1px solid #d8e0eb;
  color: #344050;
  background: #fff;
  box-shadow: none;
}

.photographer-upload-button input {
  display: none;
}

.pose-reference-grid,
.shoot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pose-reference-card-shell {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.pose-reference-card-shell .pose-reference-card {
  width: 100%;
  height: 100%;
}

.pose-library-browse .pose-reference-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 420px));
  justify-content: start;
}

.pose-card-delete {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 11px;
  padding: 0;
  color: #fff;
  background: #d92d20;
  box-shadow: 0 7px 18px rgba(128, 20, 13, 0.34);
}

.pose-card-delete svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.pose-card-delete:hover {
  border-color: #fff;
  color: #fff;
  background: #b42318;
  box-shadow: 0 9px 22px rgba(128, 20, 13, 0.44);
  transform: translateY(-1px) scale(1.04);
}

.pose-card-delete:focus-visible {
  outline: 3px solid rgba(217, 45, 32, 0.28);
  outline-offset: 3px;
}

.pose-reference-card,
.shoot-card,
.composer-pose-card,
.style-preset-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  padding: 8px;
  color: #263241;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.shoot-card {
  position: relative;
}

.pose-reference-card:hover,
.shoot-card:hover,
.composer-pose-card:hover,
.style-preset-card:hover {
  transform: translateY(-1px);
  border-color: #a89cf8;
}

.pose-reference-card.selected,
.shoot-card.selected,
.composer-pose-card.selected,
.style-preset-card.selected {
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12);
}

.pose-reference-media,
.shoot-card-media {
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 5px;
  background: #eef2f7;
}

.pose-card-media-trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

.pose-card-media-trigger:hover {
  transform: none;
}

.pose-card-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #7b8794;
  background: #eef2f7;
}

.pose-result-thumbnail {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  width: clamp(78px, 34%, 126px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  background: #e7ebf0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  pointer-events: none;
}

.pose-result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pose-result-thumbnail small {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 999px;
  padding: 0.18rem 0.38rem;
  color: #fff;
  background: rgba(23, 32, 42, 0.74);
  font-size: 0.62rem;
  font-weight: 850;
}

.pose-card-detail {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0.3rem 0.66rem;
  color: #17202a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.2);
  font-size: 0.7rem;
  font-weight: 850;
}

.pose-library-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 18px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  overscroll-behavior: contain;
}

.pose-library-preview-modal,
.pose-library-details-modal {
  width: min(1380px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(30, 41, 59, 0.96));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.pose-library-create-modal {
  width: min(1180px, calc(100vw - 36px));
  height: min(900px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
  color: #17202a;
  background: #f8fafc;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.pose-library-create-header,
.pose-library-create-header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pose-library-create-header h2 {
  margin: 0.12rem 0 0.18rem;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.pose-library-create-header p:last-child {
  margin: 0;
  color: #667384;
}

.pose-create-dialog-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  overflow: hidden;
}

.pose-create-source-column,
.pose-create-analysis-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.pose-create-column-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pose-create-column-heading > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: #6d5dfc;
  font-size: 0.7rem;
  font-weight: 900;
}

.pose-create-column-heading div {
  display: grid;
  gap: 2px;
}

.pose-create-column-heading strong {
  font-size: 0.95rem;
}

.pose-create-column-heading small,
.pose-create-source-note {
  color: #718096;
}

.pose-create-source-column .pose-upload-dropzone {
  min-height: 480px;
  height: min(64dvh, 610px);
}

.pose-create-source-column .pose-upload-dropzone img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.pose-create-source-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
}

.pose-create-result-stage {
  position: relative;
  min-height: 480px;
  height: min(58dvh, 610px);
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 12px;
  background: #eef2f7;
}

.pose-create-result-canvas,
.pose-create-result-canvas img {
  width: 100%;
  height: 100%;
}

.pose-create-result-canvas img {
  display: block;
  object-fit: contain;
}

.pose-create-result-stage.is-pending .pose-create-result-canvas {
  filter: saturate(0.68) brightness(0.62);
  transform: scale(1.012);
  transition: filter 0.45s ease, transform 4s ease;
}

.pose-generation-veil {
  --pose-orbit-size: 92px;
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 26px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(139, 108, 255, 0.34), transparent 38%),
    linear-gradient(180deg, rgba(30, 26, 61, 0.28), rgba(24, 20, 53, 0.72));
  backdrop-filter: blur(1.5px);
  pointer-events: none;
}

.pose-generation-veil > strong {
  max-width: 92%;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.pose-generation-veil > span {
  max-width: 430px;
  color: rgba(244, 241, 255, 0.86);
  font-size: 0.78rem;
  line-height: 1.55;
}

.pose-generation-orbit {
  position: relative;
  width: var(--pose-orbit-size);
  height: var(--pose-orbit-size);
  border: 1px solid rgba(235, 229, 255, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(205, 190, 255, 0.12), 0 0 48px rgba(139, 108, 255, 0.3);
  animation: pose-generation-breathe 2.8s ease-in-out infinite;
}

.pose-generation-orbit::before,
.pose-generation-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(235, 229, 255, 0.28);
  border-radius: 50%;
}

.pose-generation-orbit::before { inset: 11px; }
.pose-generation-orbit::after { inset: 25px; }

.pose-generation-orbit i {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(50% - 3px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9ceff;
  box-shadow: 0 0 14px rgba(217, 206, 255, 0.92);
  transform-origin: 3px calc(var(--pose-orbit-size) / 2);
  animation: pose-generation-orbit 4.2s linear infinite;
}

.pose-generation-orbit i:nth-child(2) { top: 8px; animation-delay: -1.4s; }
.pose-generation-orbit i:nth-child(3) { top: 16px; animation-delay: -2.8s; }

.pose-generation-veil.compact {
  --pose-orbit-size: 64px;
  gap: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at center, rgba(139, 108, 255, 0.3), transparent 42%),
    linear-gradient(180deg, rgba(30, 26, 61, 0.22), rgba(24, 20, 53, 0.78));
}

.pose-generation-veil.compact .pose-generation-orbit::before { inset: 8px; }
.pose-generation-veil.compact .pose-generation-orbit::after { inset: 18px; }
.pose-generation-veil.compact > strong { font-size: 0.9rem; }
.pose-generation-veil.compact > span { font-size: 0.66rem; }

@keyframes pose-generation-orbit { to { transform: rotate(360deg); } }
@keyframes pose-generation-breathe {
  50% { transform: scale(1.06); box-shadow: inset 0 0 34px rgba(205, 190, 255, 0.18), 0 0 58px rgba(139, 108, 255, 0.38); }
}

.pose-create-result-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 24px;
  color: #6f7b8b;
  background: radial-gradient(circle at 50% 38%, #fff 0, #eef2f7 68%);
  text-align: center;
}

.pose-create-result-empty span {
  color: #7b61ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pose-create-result-empty strong {
  color: #293545;
  font-size: 1.05rem;
}

.pose-create-result-empty small {
  color: #7b8794;
}

.pose-create-analyze-action {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  width: min(84%, 360px);
  transform: translateX(-50%);
}

.pose-create-analyze-button {
  width: 100%;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #9b6cff);
  box-shadow: 0 16px 38px rgba(83, 65, 204, 0.38);
}

.pose-create-analyze-button:hover {
  transform: translateY(-1px);
}

.pose-create-analyze-button.secondary {
  background: rgba(23, 32, 42, 0.88);
}

.pose-create-analyze-button:disabled {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(87, 96, 112, 0.76);
  box-shadow: none;
}

.pose-create-analyze-button span {
  font-size: 1rem;
  font-weight: 900;
}

.pose-create-analyze-button small {
  color: inherit;
  opacity: 0.82;
  font-size: 0.68rem;
}

.pose-auto-metadata {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.75fr) minmax(120px, 0.75fr);
  gap: 8px;
}

.pose-auto-metadata > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f4f6f9;
}

.pose-auto-metadata span {
  color: #7b8794;
  font-size: 0.66rem;
  font-weight: 800;
}

.pose-auto-metadata strong {
  overflow: hidden;
  color: #293545;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pose-library-create-modal > .pose-create-actions {
  border-top: 1px solid #e2e7ee;
  padding-top: 12px;
}

.pose-library-create-backdrop > .pose-batch-panel {
  width: min(1080px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  border-radius: 20px;
  padding: 18px;
  overflow-y: auto;
  background: #fff;
}

.pose-library-preview-modal {
  height: min(940px, calc(100dvh - 36px));
}

.pose-library-preview-modal > header,
.pose-library-details-modal > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.pose-library-preview-modal h2,
.pose-library-details-modal h2 {
  margin: 0.15rem 0;
  font-size: clamp(1.15rem, 2vw, 1.85rem);
}

.pose-library-preview-modal header small,
.pose-library-details-modal header small {
  color: rgba(226, 232, 240, 0.72);
}

.pose-library-preview-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pose-library-preview-grid figure {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
}

.pose-library-preview-grid figcaption {
  color: rgba(226, 232, 240, 0.82);
  text-align: center;
  font-weight: 800;
}

.pose-library-preview-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.pose-library-preview-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  user-select: none;
  will-change: transform;
  transition: transform 140ms ease-out;
}

.pose-zoom-viewport {
  cursor: zoom-in;
  touch-action: none;
}

.pose-zoom-viewport.is-zoomed {
  cursor: grab;
}

.pose-zoom-viewport.is-dragging {
  cursor: grabbing;
}

.pose-zoom-viewport.is-dragging img {
  transition: none;
}

.pose-zoom-controls {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.pose-zoom-controls button {
  min-width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  font-size: 0.76rem;
}

.pose-zoom-controls button:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.24);
}

.pose-zoom-controls span {
  min-width: 42px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 850;
}

.pose-zoom-hint {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.38rem 0.66rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
  font-weight: 750;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.pose-preview-reanalyze {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 0.52rem 1rem;
  color: #17202a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  font-weight: 850;
}

.pose-preview-reanalyze:hover {
  transform: translateX(-50%) translateY(-1px);
}

.pose-preview-reanalyze:disabled {
  opacity: 0.65;
}

.pose-library-details-modal {
  width: min(880px, calc(100vw - 36px));
  max-height: min(900px, calc(100dvh - 36px));
  color: #17202a;
  background: #f8fafc;
}

.pose-library-details-modal header small {
  color: #6d7988;
}

.pose-library-details-scroll {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

html.pose-library-modal-open,
body.pose-library-modal-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

.pose-reference-media img,
.shoot-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pose-reference-card strong,
.shoot-card strong,
.composer-pose-card span,
.style-preset-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pose-reference-card small,
.shoot-card-select > span,
.composer-pose-card small,
.style-preset-card small {
  color: #7b8794;
  font-size: 0.74rem;
  line-height: 1.35;
}

.shoot-card-select {
  min-width: 0;
  display: grid;
  gap: 7px;
  text-align: left;
}

.shoot-card-select:hover {
  transform: none;
}

.shoot-card-actions {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.shoot-card:hover .shoot-card-actions,
.shoot-card:focus-within .shoot-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.shoot-card-actions a,
.shoot-card-actions button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  padding: 0.28rem 0.45rem;
  color: #17202a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.2);
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.shoot-card-actions button.danger {
  color: #b42318;
}

.pose-card-heading {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pose-card-heading strong {
  min-width: 0;
  max-width: 100%;
}

.pose-card-heading small {
  flex: 0 0 auto;
  border: 1px solid #dce3eb;
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  color: #596677;
  background: #f8fafc;
}

.pose-card-status {
  color: #7b8794;
  font-size: 0.72rem;
}

.pose-reference-card-shell.is-generating .pose-reference-card {
  border-color: rgba(123, 97, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1), 0 16px 34px rgba(78, 60, 167, 0.12);
  animation: pose-generation-card-pulse 2.8s ease-in-out infinite;
}

.pose-reference-card-shell.is-generating .pose-reference-media img {
  filter: saturate(0.66) brightness(0.65);
}

.pose-pending-open {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  color: #33276d;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(25, 19, 62, 0.28);
  font-size: 0.7rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.pose-pending-open:hover { transform: translateX(-50%) translateY(-1px); }

.pose-card-status.is-generating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6551cf;
  font-weight: 850;
}

.pose-card-status.is-generating i {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(123, 97, 255, 0.22);
  border-top-color: #7b61ff;
  border-radius: 50%;
  animation: pose-generation-spin 1s linear infinite;
}

@keyframes pose-generation-spin { to { transform: rotate(360deg); } }
@keyframes pose-generation-card-pulse {
  50% { box-shadow: 0 0 0 5px rgba(123, 97, 255, 0.08), 0 20px 42px rgba(78, 60, 167, 0.18); }
}

.shoot-card-media small {
  position: absolute;
  left: 7px;
  bottom: 7px;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  color: #fff;
  background: rgba(23, 32, 42, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
}

.draft-media-label {
  position: absolute;
  left: 9px;
  bottom: 9px;
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  color: #fff;
  background: rgba(23, 32, 42, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
}

.shoot-metadata {
  display: grid;
  gap: 9px;
  margin: 0;
}

.shoot-metadata div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 8px;
}

.shoot-metadata dt {
  color: #7b8794;
  font-size: 0.75rem;
}

.shoot-metadata dd {
  margin: 0;
  color: #344050;
  font-size: 0.8rem;
  line-height: 1.45;
}

.photographer-empty,
.composer-picker-empty {
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px dashed #c8d2df;
  border-radius: 8px;
  color: #667384;
  background: rgba(248, 250, 252, 0.72);
  text-align: center;
}

.pose-create-panel {
  min-height: 680px;
}

.pose-create-form {
  display: grid;
  gap: 18px;
}

.pose-upload-dropzone {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px dashed #bfcad7;
  border-radius: 8px;
  padding: 20px;
  color: #53606d;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
}

.pose-upload-dropzone:hover {
  border-color: #8f80f7;
  background: #f6f4ff;
}

.pose-upload-dropzone.has-image {
  border-style: solid;
  padding: 0;
  background: #eef2f7;
}

.pose-upload-dropzone img {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: contain;
}

.pose-upload-dropzone span {
  color: #293545;
  font-weight: 850;
}

.pose-upload-dropzone small {
  color: #7b8794;
}

.pose-upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pose-create-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 14px;
}

.pose-create-fields input,
.pose-create-fields select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  padding: 0.68rem 0.75rem;
  color: #17202a;
  background: #fff;
  font: inherit;
}

.pose-generation-state {
  display: grid;
  gap: 5px;
  border-left: 3px solid #cbd5e1;
  padding: 12px 14px;
  background: #f8fafc;
}

.pose-generation-state.is-pending {
  border-left-color: #7b61ff;
  background: #f6f4ff;
}

.pose-generation-state div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pose-generation-state span,
.pose-generation-state small {
  color: #748091;
  font-size: 0.75rem;
}

.pose-generation-state strong {
  color: #2f3b4a;
  font-size: 0.82rem;
}

.pose-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #e3e8ef;
  padding-top: 16px;
}

.shoot-composer-shell {
  overflow: hidden;
}

.composer-head {
  margin: 0;
  border-bottom: 1px solid #e3e8ef;
  padding: 18px 20px;
}

.text-button {
  padding: 0;
  color: #6d5dfc;
  background: transparent;
  box-shadow: none;
}

.shoot-composer-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 680px;
}

.shoot-composer-workspace {
  min-width: 0;
  padding: 0 22px;
}

.composer-scene-section textarea {
  width: 100%;
  min-height: 132px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  padding: 0.78rem 0.84rem;
  color: #17202a;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.composer-scene-section .scene-field {
  margin-top: 0;
}

.composer-generate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 22px;
}

.composer-generate-actions .primary {
  flex: 0 0 auto;
}

.composer-generation-status {
  color: #667085;
  line-height: 1.45;
}

.shoot-model-preview-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  border-right: 1px solid #e3e8ef;
  padding: 22px;
  background: #f8fafc;
}

.shoot-model-preview-head h3 {
  margin: 4px 0 0;
  color: #17202a;
}

.shoot-model-preview-media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #eef2f7;
}

.shoot-model-preview-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.shoot-model-preview-media > .pipeline-empty-media {
  height: 100%;
  border: 0;
}

.shoot-model-preview-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.shoot-model-preview-meta div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #e3e8ef;
  padding-bottom: 9px;
}

.shoot-model-preview-meta dt {
  color: #7b8794;
  font-size: 0.75rem;
}

.shoot-model-preview-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #344050;
  font-size: 0.8rem;
  font-weight: 750;
}

.shoot-model-geometry {
  display: grid;
  gap: 7px;
  border-top: 1px solid #dce3eb;
  padding-top: 14px;
}

.shoot-model-geometry > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shoot-model-geometry span,
.shoot-model-geometry p {
  color: #667085;
  font-size: 0.76rem;
}

.shoot-model-geometry strong {
  color: #176b4d;
  font-size: 0.78rem;
}

.shoot-model-geometry.is-blocked strong,
.shoot-model-geometry.is-blocked p {
  color: #9a3412;
}

.shoot-model-geometry p {
  margin: 0;
  line-height: 1.45;
}

.shoot-model-geometry button {
  justify-self: start;
  padding: 0;
  color: #6d5dfc;
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
}

.composer-picker-section {
  border-bottom: 1px solid #e5eaf0;
  padding: 22px 0;
}

.composer-picker-section:last-child {
  border-bottom: 0;
}

.composer-picker-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.composer-picker-head > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #344050;
  font-size: 0.72rem;
  font-weight: 850;
}

.composer-picker-head div {
  display: grid;
  gap: 2px;
}

.composer-picker-head small {
  color: #7b8794;
}

.composer-pose-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.composer-pose-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 5px;
  object-fit: cover;
}

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

.style-swatch {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  background: #e7ecf1;
}

.style-swatch::after {
  content: '';
  position: absolute;
  inset: 18% 22%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 14px 10px 0 rgba(23, 32, 42, 0.13);
}

.style-swatch.clean {
  background: #e9eef3;
}

.style-swatch.urban {
  background: #536273;
}

.style-swatch.editorial {
  background: #a8b0bc;
}

.style-swatch.resort {
  background: #b8dfe1;
}

.pipeline-empty-media {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #7b8794;
  background: #eef2f7;
}

.model-library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #dce3eb;
}

.model-library-summary div {
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.94);
}

.model-library-summary span,
.model-contact-section-head small,
.model-library-roster-head > span {
  color: #748091;
  font-size: 0.74rem;
  font-weight: 800;
}

.model-library-summary strong {
  color: #17202a;
  font-size: 1.5rem;
}

.model-library-workspace {
  display: grid;
  gap: 12px;
}

.success-banner {
  border: 1px solid #a7e2c0;
  border-radius: 8px;
  padding: 0.72rem 0.9rem;
  color: #0f6b3f;
  background: #ecfdf3;
  font-weight: 800;
}

.model-library-publication-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.72rem 0.9rem;
  color: #1e3a8a;
  background: #eff6ff;
  font-weight: 800;
}

.model-library-publication-banner span {
  min-width: max-content;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  color: #ffffff;
  background: #2563eb;
  font-size: 0.74rem;
}

.model-library-publication-banner strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.model-library-layout {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(480px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.model-library-roster,
.model-library-detail {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 52px rgba(31, 41, 55, 0.09);
  backdrop-filter: blur(18px);
}

.model-library-roster {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.model-library-roster-head,
.model-library-detail-head,
.model-contact-section-head,
.model-library-title-line,
.model-library-detail-actions,
.model-library-select-all {
  display: flex;
  align-items: center;
}

.model-library-roster-head,
.model-library-detail-head,
.model-contact-section-head {
  justify-content: space-between;
  gap: 14px;
}

.model-library-roster-head {
  padding: 18px 18px 14px;
}

.model-library-roster-head h2,
.model-library-detail-head h2,
.model-contact-section-head h3 {
  margin: 3px 0 0;
}

.model-library-roster-head > span {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4d3ed0;
  background: #efedff;
}

.model-library-select-all {
  min-height: 40px;
  gap: 9px;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  padding: 0 16px;
  color: #455162;
  font-size: 0.82rem;
  font-weight: 800;
}

.model-library-select-all input,
.model-roster-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #6d5dfc;
}

.model-library-select-all small {
  margin-left: auto;
  color: #7b8794;
}

.model-library-bulk-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px 16px;
}

.model-library-bulk-actions button,
.model-library-detail-actions button,
.model-contact-actions button,
.model-library-empty button {
  min-height: 38px;
  border-radius: 7px;
  padding: 0.5rem 0.75rem;
}

.model-library-roster-list {
  max-height: calc(100vh - 330px);
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  border-top: 1px solid #edf1f5;
  padding: 12px;
}

.model-roster-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.06);
}

.model-roster-item.active {
  border-color: #b9b1ff;
  background: #f5f3ff;
  box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.12);
}

.model-roster-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 227, 235, 0.92);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.model-roster-open {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.model-roster-open:hover {
  transform: none;
  background: transparent;
}

.model-roster-open:focus-visible {
  outline: 3px solid rgba(109, 93, 252, 0.42);
  outline-offset: -3px;
}

.model-roster-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #6d5dfc;
  background: #eef2f7;
  font-weight: 900;
}

.model-roster-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.model-roster-copy {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(220, 227, 235, 0.9);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
}

.model-roster-open > .status-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.model-roster-copy strong,
.model-roster-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-roster-copy strong {
  color: #253142;
}

.model-roster-copy small {
  color: #7b8794;
}

.status-chip.warning {
  border-color: #f0cf86;
  color: #8a5a08;
  background: #fff8df;
}

.model-library-detail {
  min-width: 0;
  padding: 22px;
}

.model-library-detail-empty {
  min-height: 680px;
  display: grid;
  place-items: center;
  color: #7b8794;
}

.model-library-detail-head {
  border-bottom: 1px solid #e3e8ef;
  padding-bottom: 18px;
}

.model-library-title-line {
  flex-wrap: wrap;
  gap: 10px;
}

.model-library-detail-head p {
  margin: 6px 0 0;
  color: #748091;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.76rem;
}

.model-library-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.model-library-blockers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid #edf1f5;
  padding: 12px 0;
}

.model-library-blockers span {
  border: 1px solid #f0cf86;
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  color: #8a5a08;
  background: #fff8df;
  font-size: 0.75rem;
  font-weight: 800;
}

.model-library-schema-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  border-bottom: 1px solid #edf1f5;
  padding: 12px 0;
  color: #667281;
  font-size: 0.78rem;
}

.model-library-schema-state span strong {
  color: #24303d;
}

.model-library-schema-state.attention > strong {
  color: #9a4f00;
}

.model-library-schema-state.failed span:last-of-type strong,
.model-library-schema-state.failed small {
  color: #a12b2b;
}

.model-library-schema-state small {
  order: 2;
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-library-schema-state button {
  order: 1;
  margin-left: auto;
}

.model-library-schema-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.48);
}

.model-library-schema-viewer {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
}

.model-library-schema-viewer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf1f5;
  padding: 16px 18px;
}

.model-library-schema-viewer h2 {
  margin: 0;
  color: #1f2937;
  font-size: 1.08rem;
}

.model-library-schema-viewer small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  overflow-wrap: anywhere;
}

.model-library-schema-viewer pre {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: auto;
  padding: 18px;
  color: #dbeafe;
  background: #111827;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre;
}

.model-library-schema-viewer code {
  font-family: Consolas, "Courier New", monospace;
}

.model-library-main-viewer {
  overflow: visible;
  width: min(100%, 380px);
  margin: 18px auto 0;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f4f6f8;
}

.model-library-main-image {
  width: 100%;
  height: auto;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #7b8794;
  background:
    linear-gradient(#e8edf2 1px, transparent 1px),
    linear-gradient(90deg, #e8edf2 1px, transparent 1px),
    #f4f6f8;
  background-size: 32px 32px;
}

.model-library-main-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center;
}

.model-library-main-viewer figcaption {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dce3eb;
  padding: 0 14px;
  color: #344050;
  background: #fff;
}

.model-library-main-viewer figcaption span {
  color: #6d5dfc;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 900;
}

.model-contact-section {
  padding-top: 22px;
}

.model-contact-section + .model-contact-section {
  margin-top: 22px;
  border-top: 1px solid #e3e8ef;
}

.model-contact-section-head > div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 9px;
  align-items: baseline;
}

.model-contact-section-head > div > span,
.model-contact-code {
  color: #6d5dfc;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.model-contact-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 128px));
  justify-content: start;
  gap: 10px;
  margin-top: 14px;
}

.model-contact-sheet.pose-sheet {
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 12px;
}

.pose-sheet .model-contact-sheet-item {
  align-self: start;
  display: grid;
  grid-template-rows: auto auto auto;
}

.pose-sheet .model-contact-sheet-preview {
  aspect-ratio: 1 / 1;
}

.model-contact-sheet-item {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
}

.model-contact-sheet-item.active {
  border-color: #6d5dfc;
  box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.14);
}

.model-contact-sheet-preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #7b8794;
  background: #eef2f7;
  box-shadow: none;
}

.model-contact-sheet-preview:hover {
  transform: none;
  background: #e8ebf2;
}

.model-contact-sheet-preview:focus-visible {
  outline: 3px solid rgba(109, 93, 252, 0.34);
  outline-offset: -3px;
}

.model-contact-sheet-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-contact-sheet-item figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border-top: 1px solid #edf1f5;
  padding: 7px;
}

.pose-sheet .model-contact-sheet-item figcaption {
  padding: 9px 10px 8px;
}

.model-contact-name {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.model-contact-name strong,
.model-contact-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-contact-name strong {
  color: #344050;
  font-size: 0.82rem;
}

.model-contact-name small {
  color: #7b8794;
  font-size: 0.7rem;
}

.model-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  border-top: 1px solid #edf1f5;
  padding: 6px 7px;
}

.model-contact-actions button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 30px;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
}

.model-contact-actions:empty {
  display: none;
}

.model-contact-publication-state {
  border-top: 1px solid #e8eef6;
  padding: 7px 8px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.model-contact-publication-state.failed {
  color: #991b1b;
  background: #fef2f2;
}

.model-contact-publication-state span {
  display: block;
  overflow-wrap: anywhere;
}

.model-library-empty {
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px dashed #c8d2df;
  border-radius: 8px;
  color: #6d7988;
  background: #f8fafc;
}

@media (max-width: 1180px) {
  .photographer-master-detail {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .pose-library-workspace .photographer-master-detail {
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  }

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

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

  .viral-video-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .viral-video-analysis-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .viral-video-visual-card-grid,
  .viral-video-domain-grid,
  .viral-video-audio-track-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viral-video-shot-layout {
    grid-template-columns: 1fr;
  }

  .viral-video-contract-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .viral-video-contract-note p {
    grid-column: 1 / -1;
  }

  .pose-reference-grid,
  .shoot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shoot-composer-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .composer-pose-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .identity-front-workbench {
    grid-template-columns: 1fr;
  }

  .identity-front-copy {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .identity-front-form-scroll {
    max-height: min(70dvh, 720px);
  }

  .identity-front-slot {
    position: static;
  }

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

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

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

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

  .sculptor-layout {
    grid-template-columns: 1fr;
  }

  .sculptor-editor-card,
  .sculptor-history-card {
    grid-column: span 1;
  }

  .sculptor-editor {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-wrap: wrap;
  }

  .hero-side {
    width: 100%;
    min-width: 0;
  }

  .generation-mode-compact {
    grid-template-columns: auto minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
  }

  .generation-mode-compact .quality-field,
  .generation-mode-compact .size-field {
    grid-column: 2 / 3;
  }

  .asset-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .login-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .task-grid {
    grid-template-columns: 1fr;
  }

  .task-library-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .identity-calibration-slots {
    grid-template-columns: 1fr;
  }

  .studio-shell {
    padding: 16px;
  }

  .studio-section-switch,
  .workbench-switch {
    width: 100%;
  }

  .studio-section-switch {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .studio-section-switch button {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .style-library-summary {
    width: 100%;
  }

  .style-library-summary div {
    padding: 8px;
  }

  .style-library-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-master {
    border-right: 0;
    border-bottom: 1px solid #dbe2ea;
  }

  .style-library-detail {
    padding: 0 16px 28px;
  }

  .style-library-detail-heading,
  .style-library-action-band {
    align-items: stretch;
    flex-direction: column;
  }

  .style-library-action-band > div:last-child {
    justify-content: flex-end;
  }

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

  .style-library-revisions dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-test-action {
    align-items: stretch;
    flex-direction: column;
  }

  .style-library-test-composer,
  .style-library-refinement-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-review-action {
    align-items: stretch;
    flex-direction: column;
  }

  .style-library-review-action button {
    align-self: flex-start;
  }

  .style-library-refinement-preview {
    width: min(100%, 260px);
  }

  .style-library-test-render-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-publication-receipt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .style-library-publication-receipt-actions {
    grid-column: 1 / -1;
  }

  .style-library-publication-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pose-library-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pose-library-summary div {
    padding: 8px;
  }

  .photographer-master-detail,
  .shoot-composer-layout {
    grid-template-columns: 1fr;
  }

  .viral-video-pipeline-card > header,
  .viral-video-professional-head,
  .viral-video-shot-workbench > header,
  .viral-video-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .viral-video-workspace-nav {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 8px;
  }

  .viral-video-section-tabs button {
    min-width: 128px;
  }

  .viral-video-analysis-home {
    min-height: 320px;
    padding: 20px 0;
  }

  .viral-video-analysis-home-card {
    padding: 24px 18px;
  }

  .viral-video-analysis-home-form {
    grid-template-columns: 1fr;
  }

  .viral-video-archive-grid {
    grid-template-columns: 1fr;
  }

  .viral-video-report-nav,
  .viral-video-report-analysis-head {
    align-items: stretch;
    flex-direction: column;
  }

  .viral-video-report-nav > span,
  .viral-video-report-analysis-head > span {
    align-self: flex-start;
  }

  .viral-video-report-technical > summary {
    align-items: flex-start;
  }

  .viral-video-workspace-nav > .text-button {
    align-self: flex-end;
    margin-bottom: 0;
  }

  .viral-video-material-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .viral-video-material-group-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .viral-video-material-group-status {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .viral-video-setup-grid,
  .viral-video-role-plan,
  .viral-video-analysis-columns {
    grid-template-columns: 1fr;
  }

  .viral-video-url-form > div {
    grid-template-columns: 1fr;
  }

  .viral-video-preview-actions,
  .viral-video-preview-actions > div {
    align-items: stretch;
    flex-direction: column;
  }

  .viral-video-dropzone,
  .viral-video-preview {
    width: min(100%, 320px);
  }

  .viral-video-preview.landscape {
    width: 100%;
  }

  .viral-video-stage-grid {
    grid-template-columns: 1fr;
  }

  .viral-video-module-grid {
    grid-template-columns: 1fr;
  }

  .viral-video-analysis-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viral-video-overview-strip,
  .viral-video-model-quality,
  .viral-video-visual-card-grid,
  .viral-video-visual-charts,
  .viral-video-domain-grid,
  .viral-video-audio-track-list,
  .viral-video-scoring-layout {
    grid-template-columns: 1fr;
  }

  .viral-video-audio-track-card dl,
  .viral-video-transcript-panel button {
    grid-template-columns: 1fr;
  }

  .viral-video-material-grid {
    grid-template-columns: minmax(0, 240px);
  }

  .viral-video-visual-card {
    grid-template-columns: 1fr;
  }

  .viral-video-editing-summary > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viral-video-visual-card-media {
    min-height: 0;
  }

  .viral-video-view-switcher,
  .viral-video-domain-panel > header {
    align-items: stretch;
    flex-direction: column;
  }

  .viral-video-contract-note {
    grid-template-columns: 1fr;
  }

  .viral-video-contract-note p {
    grid-column: auto;
  }

  .pose-library-workspace .photographer-master-detail {
    grid-template-columns: 1fr;
  }

  .pose-library-preview-modal,
  .pose-library-details-modal,
  .pose-library-create-modal {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
    padding: 14px;
  }

  .pose-library-preview-modal {
    height: calc(100dvh - 24px);
  }

  .pose-library-create-modal {
    height: calc(100dvh - 24px);
  }

  .pose-library-create-header {
    align-items: stretch;
    flex-direction: column;
  }

  .pose-create-dialog-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .pose-create-source-column,
  .pose-create-analysis-column {
    overflow: visible;
  }

  .pose-create-source-column .pose-upload-dropzone,
  .pose-create-result-stage {
    min-height: 420px;
    height: 66dvh;
  }

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

  .pose-library-preview-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .pose-library-preview-media {
    min-height: min(68dvh, 620px);
  }

  .photographer-detail {
    position: static;
  }

  .photographer-section-head,
  .composer-head,
  .composer-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pose-reference-grid,
  .shoot-grid,
  .composer-pose-grid,
  .style-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-catalog-control {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .style-catalog-control button {
    width: 100%;
  }

  .pose-create-fields {
    grid-template-columns: 1fr;
  }

  .pose-detail-placeholder {
    min-height: 420px;
  }

  .pose-create-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pose-create-actions button {
    width: 100%;
  }

  .shoot-composer-workspace {
    padding: 0 16px;
  }

  .shoot-model-preview-panel {
    border-top: 1px solid #e3e8ef;
    border-left: 0;
    padding: 18px 16px;
  }

  .shoot-model-preview-media {
    width: min(100%, 320px);
  }

  .composer-generate-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-generate-actions .primary {
    width: 100%;
  }

  .hero-side,
  .generation-mode-compact,
  .provider-form-grid {
    grid-template-columns: 1fr;
  }

  .generation-mode-compact .quality-field,
  .generation-mode-compact .size-field {
    grid-column: auto;
  }

  .model-sculptor-agent header,
  .model-sculptor-agent footer,
  .sculptor-primary-actions,
  .publication-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .sculptor-primary-actions {
    display: flex;
  }

  .sculptor-primary-buttons {
    justify-content: stretch;
  }

  .sculptor-primary-buttons button {
    flex: 1 1 160px;
  }

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

  .sculptor-age-selector {
    grid-template-columns: 1fr;
  }

  .sculptor-activity-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .sculptor-status {
    justify-items: start;
    white-space: normal;
  }

  .generation-workflow {
    font-size: 0.8rem;
  }

  .sculptor-summary-grid {
    grid-template-columns: 1fr;
  }

  .sculpture-brief-head {
    display: grid;
  }

  .sculpture-brief-head small {
    max-width: none;
    text-align: left;
  }

  .sculpture-brief-columns {
    grid-template-columns: 1fr;
  }

  .floating-status {
    right: 12px;
    bottom: 12px;
    width: min(300px, calc(100vw - 24px));
  }

  .provider-modal-backdrop {
    padding: 24px 14px;
  }

  .identity-naming-dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .identity-naming-layout {
    grid-template-columns: 1fr;
  }

  .identity-naming-preview {
    min-height: 260px;
    max-height: 42vh;
  }
}

.style-photographer-layout,
.model-portrait-feature-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.photography-character-panel.workbench-character-panel {
  align-self: start;
  max-height: none;
}

.workbench-character-panel .photography-character-nameplate {
  padding: 14px 16px 15px;
}

.workbench-character-panel .photography-character-nameplate strong {
  font-size: 1.22rem;
}

.workbench-character-panel .photography-character-stage {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
}

.workbench-character-panel .photography-character-stage img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
}

.workbench-character-panel .photography-character-label {
  top: 12px;
  left: 12px;
}

.workbench-character-panel .photography-character-placeholder {
  width: 100%;
  height: 100%;
  align-content: center;
  border: 1px dashed rgba(140, 121, 109, 0.4);
  border-radius: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.46);
}

.workbench-character-panel .photography-character-portrait figcaption {
  padding: 11px 14px;
}

.model-portrait-feature-workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.model-portrait-feature-workspace > .workbench-switch {
  margin-bottom: 0;
}

.model-portrait-feature-empty {
  min-height: 610px;
  flex: 1;
}

.makeup-workspace {
  width: 100%;
}

.makeup-left-rail {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.makeover-workbench {
  display: grid;
  grid-template-columns: minmax(440px, 1.72fr) minmax(270px, 0.72fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.makeover-edit-panel,
.makeover-options-panel,
.makeover-preview-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(133, 112, 97, 0.16);
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 18px 54px rgba(49, 40, 35, 0.08);
}

.makeover-edit-panel,
.makeover-options-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.makeover-panel-heading {
  padding: 22px 20px 17px;
  border-bottom: 1px solid rgba(120, 101, 88, 0.12);
}

.makeover-panel-heading.compact {
  padding-bottom: 18px;
}

.makeover-panel-heading > span,
.makeover-preview-heading span:first-child {
  color: #96705f;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.makeover-panel-heading h2,
.makeover-preview-heading h2 {
  margin: 5px 0 7px;
  color: #2d211c;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.38rem;
  line-height: 1.15;
}

.makeover-panel-heading p {
  margin: 0;
  color: #7b6e67;
  font-size: 0.76rem;
  line-height: 1.55;
}

.makeover-category-list {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.makeover-category {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px;
  color: #51453f;
  text-align: left;
  background: transparent;
  box-shadow: none;
}

.makeover-category:hover {
  transform: none;
  border-color: rgba(137, 102, 84, 0.12);
  background: #f8f2ed;
}

.makeover-category.active {
  border-color: rgba(144, 85, 60, 0.2);
  color: #6e3425;
  background: linear-gradient(135deg, #f8eae1, #f2ded2);
  box-shadow: inset 3px 0 0 #9f6048;
}

.makeover-category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #715d53;
  background: #f0e9e3;
  font-size: 1rem;
}

.makeover-category.active .makeover-category-icon {
  color: #fffaf7;
  background: #9f6048;
}

.makeover-category > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.makeover-category strong {
  font-size: 0.83rem;
}

.makeover-category small {
  overflow: hidden;
  color: #96877e;
  font-size: 0.65rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.makeover-category i {
  color: #aa9b92;
  font-size: 1.2rem;
  font-style: normal;
}

.makeover-identity-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 2px 12px 14px;
  border: 1px solid rgba(47, 112, 94, 0.18);
  border-radius: 14px;
  padding: 12px;
  color: #28594c;
  background: #eff7f3;
}

.makeover-identity-lock > span {
  font-size: 1.15rem;
}

.makeover-identity-lock div {
  display: grid;
  gap: 3px;
}

.makeover-identity-lock strong {
  font-size: 0.72rem;
}

.makeover-identity-lock small {
  color: #608075;
  font-size: 0.64rem;
  line-height: 1.45;
}

.makeover-preview-panel {
  background: #231d1a;
}

.makeover-preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  color: #fffaf6;
  background: linear-gradient(135deg, #332822, #211a17);
}

.makeover-preview-heading h2 {
  margin-bottom: 0;
  color: #fffaf6;
  font-size: 1.22rem;
}

.makeover-preview-source {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 250, 246, 0.72) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0 !important;
}

.makeover-comparison {
  --compare-position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: #dcd5cf;
  isolation: isolate;
}

.makeover-before-image,
.makeover-after-image {
  position: absolute;
  inset: 0;
}

.makeover-before-image img,
.makeover-after-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.makeover-after-image {
  z-index: 2;
  clip-path: inset(0 0 0 var(--compare-position));
}

.makeover-comparison.awaiting-result .makeover-after-image {
  filter: none;
}

.makeover-comparison.is-generating .makeover-before-image img,
.makeover-comparison.is-generating .makeover-after-image img {
  filter: saturate(0.72) brightness(0.72);
}

.makeover-generation-mask {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 34px);
  color: #fffaf6;
  background:
    radial-gradient(circle at 50% 38%, rgba(126, 174, 159, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(20, 27, 25, 0.48), rgba(21, 18, 17, 0.78));
  backdrop-filter: blur(5px);
}

.makeover-generation-mask::before {
  content: "";
  position: absolute;
  top: -28%;
  bottom: -28%;
  left: -44%;
  width: 28%;
  opacity: 0.42;
  background: linear-gradient(90deg, transparent, rgba(225, 255, 246, 0.3), transparent);
  transform: rotate(12deg);
  animation: makeover-generation-scan 2.8s ease-in-out infinite;
}

.makeover-generation-mask-card {
  position: relative;
  width: min(100%, 430px);
  display: grid;
  justify-items: center;
  gap: 16px;
  border: 1px solid rgba(229, 245, 239, 0.3);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 30px);
  background: rgba(25, 31, 29, 0.82);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.makeover-generation-mask-orbit {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(202, 235, 224, 0.24);
  border-radius: 50%;
  color: #d8f3ea;
  background: rgba(94, 139, 125, 0.16);
}

.makeover-generation-mask-orbit > i {
  position: absolute;
  inset: -5px;
  border: 2px solid transparent;
  border-top-color: #d9f5eb;
  border-right-color: rgba(217, 245, 235, 0.2);
  border-radius: 50%;
  animation: makeover-generation-spin 1.15s linear infinite;
}

.makeover-generation-mask-orbit > span {
  font-size: 1.45rem;
  font-weight: 900;
}

.makeover-generation-mask-heading {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.makeover-generation-mask-heading > span {
  color: #9bd2c0;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.makeover-generation-mask-heading > strong {
  font-size: clamp(1rem, 2.6vw, 1.28rem);
}

.makeover-generation-mask-heading > small {
  min-height: 2.8em;
  color: rgba(245, 252, 249, 0.72);
  font-size: 0.72rem;
  line-height: 1.4;
}

.makeover-generation-mask-progress {
  --makeover-generation-progress: 10%;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.makeover-generation-mask-progress > i {
  width: var(--makeover-generation-progress);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #79bca6, #ddf4ec);
  box-shadow: 0 0 18px rgba(174, 225, 208, 0.48);
  transition: width 320ms ease;
}

.makeover-generation-mask-steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.makeover-generation-mask-steps li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(238, 246, 243, 0.42);
  font-size: 0.64rem;
  font-weight: 750;
}

.makeover-generation-mask-steps li > i {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.58rem;
  font-style: normal;
}

.makeover-generation-mask-steps li.done,
.makeover-generation-mask-steps li.active {
  color: #f3fbf8;
}

.makeover-generation-mask-steps li.done > i {
  border-color: #82bca9;
  color: #17352d;
  background: #9cd1c0;
}

.makeover-generation-mask-steps li.active > i {
  border-color: #d9f5eb;
  color: #ecfff9;
  background: rgba(137, 198, 178, 0.22);
  box-shadow: 0 0 0 5px rgba(137, 198, 178, 0.09);
  animation: makeover-generation-pulse 1.4s ease-in-out infinite;
}

.makeover-generation-mask-card > p {
  margin: -2px 0 0;
  color: rgba(238, 246, 243, 0.56);
  font-size: 0.6rem;
  text-align: center;
}

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

@keyframes makeover-generation-scan {
  0% { left: -44%; }
  58%, 100% { left: 128%; }
}

@keyframes makeover-generation-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.makeover-comparison-label {
  position: absolute;
  z-index: 5;
  top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(23, 18, 15, 0.5);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.65rem;
  font-weight: 800;
}

.makeover-comparison-label.before { left: 14px; }
.makeover-comparison-label.after { right: 14px; }

.makeover-comparison-line {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.28);
  transform: translateX(-1px);
  pointer-events: none;
}

.makeover-comparison-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(68, 48, 39, 0.72);
  box-shadow: 0 7px 26px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(7px);
  transform: translate(-50%, -50%);
}

.makeover-comparison-line i {
  position: absolute;
  z-index: 1;
  top: 50%;
  color: #fff;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-54%);
}

.makeover-comparison-line i:first-child { right: 6px; }
.makeover-comparison-line i:last-child { left: 6px; }

.makeover-comparison > input[type="range"] {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.makeover-comparison:has(> input[type="range"]:focus-visible) .makeover-comparison-line::before {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.38),
    0 7px 26px rgba(0, 0, 0, 0.24);
}

.makeover-preview-placeholder {
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  color: #5f514a;
  text-align: center;
  background: #ece6e0;
}

.makeover-preview-placeholder span {
  color: #897b73;
  font-size: 0.78rem;
}

.makeover-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 15px;
  color: #f8efea;
  background: #2b211d;
}

.makeover-preview-footer > div {
  display: grid;
  gap: 2px;
}

.makeover-preview-footer strong { font-size: 0.76rem; }
.makeover-preview-footer span { color: #bdaea6; font-size: 0.64rem; }
.makeover-preview-footer output {
  min-width: 48px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #3f2d24;
  text-align: center;
  background: #ead6ca;
  font-size: 0.68rem;
  font-weight: 900;
}

.makeover-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
}

.makeover-option-card {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid rgba(129, 106, 94, 0.14);
  border-radius: 15px;
  padding: 11px 8px 10px;
  background: #faf7f4;
  box-shadow: none;
}

.makeover-option-card:hover {
  transform: none;
  border-color: rgba(142, 83, 58, 0.35);
  background: #fffaf7;
}

.makeover-option-card.selected {
  border-color: #9f6048;
  background: #fff8f3;
  box-shadow: 0 8px 22px rgba(112, 67, 49, 0.12);
}

.makeover-option-swatch {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--swatch), var(--swatch-accent));
  box-shadow: 0 5px 14px rgba(62, 45, 38, 0.16), 0 0 0 1px rgba(91, 68, 57, 0.12);
}

.makeover-option-swatch i {
  width: 17px;
  height: 26px;
  border-radius: 70% 30% 58% 42%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(27deg);
}

.makeover-option-card.lens .makeover-option-swatch {
  border-radius: 50%;
  background:
    radial-gradient(circle, #121212 0 14%, transparent 15%),
    repeating-radial-gradient(circle, transparent 0 5px, rgba(255, 255, 255, 0.23) 6px 7px),
    radial-gradient(circle, var(--swatch) 18%, var(--swatch-accent) 64%, #232323 67% 72%, #f8f8f8 73%);
}

.makeover-option-card.lens .makeover-option-swatch i { display: none; }

.makeover-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: center;
}

.makeover-option-copy strong {
  overflow: hidden;
  color: #453831;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.makeover-option-copy small {
  min-height: 2.5em;
  color: #918178;
  font-size: 0.59rem;
  line-height: 1.3;
}

.makeover-option-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #9f6048;
  font-size: 0.62rem;
  font-weight: 900;
}

.makeover-option-card.selected .makeover-option-check { display: grid; }

.makeover-hair-section {
  display: grid;
  gap: 9px;
  padding: 13px 14px 5px;
}

.makeover-hair-section + .makeover-hair-section {
  border-top: 1px solid rgba(129, 106, 94, 0.12);
  margin-top: 9px;
  padding-top: 14px;
}

.makeover-hair-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.makeover-hair-section > header strong {
  color: #55453d;
  font-size: 0.72rem;
}

.makeover-hair-section > header span {
  color: #a08374;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.makeover-hairstyle-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(129, 106, 94, 0.16);
  border-radius: 13px;
  padding: 0 0 9px;
  color: #493b34;
  text-align: left;
  background: #faf7f4;
  box-shadow: none;
}

.makeover-hairstyle-card:hover {
  transform: none;
  border-color: rgba(142, 83, 58, 0.4);
}

.makeover-hairstyle-card.selected {
  border-color: #9f6048;
  background: #fff8f3;
  box-shadow: 0 8px 22px rgba(112, 67, 49, 0.12);
}

.makeover-hairstyle-card.selected .makeover-option-check { display: grid; }

.makeover-hairstyle-image {
  position: relative;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #9b8275;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(229, 218, 209, 0.74)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(139, 110, 95, 0.05) 8px 9px);
}

.makeover-hairstyle-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.makeover-hairstyle-image > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(139, 103, 84, 0.32);
  border-radius: 50%;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
}

.makeover-hairstyle-image > em {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 999px;
  padding: 4px 6px;
  color: #fff;
  background: rgba(41, 31, 27, 0.76);
  backdrop-filter: blur(5px);
  font-size: 0.49rem;
  font-style: normal;
  font-weight: 850;
}

.makeover-hairstyle-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 0 8px;
}

.makeover-hairstyle-copy strong {
  overflow: hidden;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.makeover-hairstyle-copy small {
  min-height: 2.5em;
  color: #907f76;
  font-size: 0.54rem;
  line-height: 1.3;
}

.makeover-hair-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.makeover-hair-color-option {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(129, 106, 94, 0.14);
  border-radius: 11px;
  padding: 7px 4px;
  color: #6b5b52;
  background: #faf7f4;
  box-shadow: none;
  font-size: 0.53rem;
}

.makeover-hair-color-option:hover { transform: none; }
.makeover-hair-color-option.selected {
  border-color: #9f6048;
  color: #7d4633;
  background: #fff8f3;
}

.makeover-hair-color-option i {
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--swatch), var(--swatch-accent));
  box-shadow: 0 0 0 1px rgba(91, 68, 57, 0.15), 0 4px 9px rgba(62, 45, 38, 0.16);
}

.makeover-hair-color-option span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.makeover-intensity-control {
  display: grid;
  gap: 9px;
  margin: 0 14px;
  border-top: 1px solid rgba(129, 106, 94, 0.12);
  padding: 15px 2px 4px;
}

.makeover-intensity-control > span {
  display: flex;
  justify-content: space-between;
  color: #56473f;
  font-size: 0.73rem;
}

.makeover-intensity-control output { color: #925740; font-weight: 900; }
.makeover-intensity-control input { width: 100%; accent-color: #9f6048; }
.makeover-intensity-control small { color: #93847c; font-size: 0.61rem; line-height: 1.45; }

.makeover-option-summary {
  display: grid;
  gap: 3px;
  margin: 12px 14px;
  border-radius: 14px;
  padding: 12px;
  color: #4d3f38;
  background: #f4eee9;
}

.makeover-option-summary span { color: #9a7b6c; font-size: 0.59rem; font-weight: 850; letter-spacing: 0.1em; }
.makeover-option-summary strong { font-size: 0.77rem; }
.makeover-option-summary small { color: #8b7a71; font-size: 0.63rem; }

.makeover-plan-card {
  display: grid;
  gap: 10px;
  margin: 12px 14px;
  border: 1px solid rgba(126, 96, 81, 0.15);
  border-radius: 15px;
  padding: 13px;
  background: #fffaf6;
}

.makeover-plan-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.makeover-plan-card > header > div {
  display: grid;
  gap: 2px;
}

.makeover-plan-card > header span {
  color: #a17c6a;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.makeover-plan-card > header strong {
  color: #493a33;
  font-size: 0.76rem;
}

.makeover-plan-card > header button {
  border: 1px solid rgba(143, 91, 67, 0.22);
  padding: 0.42rem 0.58rem;
  color: #83503c;
  background: #f7ebe4;
  box-shadow: none;
  font-size: 0.61rem;
}

.makeover-saved-plans {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.makeover-saved-plans button {
  min-width: max-content;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(126, 96, 81, 0.14);
  padding: 0.43rem 0.56rem;
  color: #69564c;
  background: #f5efeb;
  box-shadow: none;
  font-size: 0.62rem;
}

.makeover-saved-plans button.active {
  border-color: #9f6048;
  color: #6e3425;
  background: #f6e4da;
}

.makeover-saved-plans small { color: #a18475; font-size: 0.53rem; }

.makeover-plan-empty,
.makeover-plan-notice {
  margin: 0;
  color: #8b7a71;
  font-size: 0.61rem;
  line-height: 1.45;
}

.makeover-plan-notice { color: #32705f; font-weight: 750; }

.makeover-plan-name {
  display: grid;
  gap: 5px;
}

.makeover-plan-name span {
  color: #78665d;
  font-size: 0.61rem;
  font-weight: 800;
}

.makeover-plan-name input {
  width: 100%;
  border: 1px solid rgba(126, 96, 81, 0.2);
  border-radius: 9px;
  padding: 8px 9px;
  color: #40332d;
  background: #fff;
  font-size: 0.7rem;
}

.makeover-save-button {
  width: 100%;
  padding: 0.65rem 0.8rem;
  color: #fffaf7;
  background: linear-gradient(135deg, #a5654c, #81452f);
  box-shadow: 0 8px 18px rgba(119, 65, 44, 0.18);
  font-size: 0.7rem;
  font-weight: 850;
}

.makeover-generation-action {
  display: grid;
  gap: 9px;
  margin: 8px 14px 12px;
}

.makeover-generation-action > button {
  width: 100%;
  min-height: 58px;
  display: grid;
  gap: 3px;
  justify-items: start;
  border: 1px solid rgba(78, 48, 37, 0.16);
  border-radius: 13px;
  padding: 0.72rem 0.86rem;
  color: #fffaf7;
  background: linear-gradient(135deg, #372820 0%, #7d4937 58%, #a86d54 100%);
  box-shadow: 0 10px 24px rgba(92, 52, 37, 0.2);
  text-align: left;
}

.makeover-generation-action > button:hover { transform: translateY(-1px); }
.makeover-generation-action > button:disabled { opacity: 0.55; transform: none; }
.makeover-generation-action > button span { font-size: 0.78rem; font-weight: 900; }
.makeover-generation-action > button small { color: rgba(255, 248, 243, 0.72); font-size: 0.57rem; }

.makeover-generation-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(55, 112, 86, 0.2);
  border-radius: 11px;
  padding: 9px 10px;
  color: #315f50;
  background: #f0f8f4;
}

.makeover-generation-receipt > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #44816d;
  font-size: 0.62rem;
  font-weight: 900;
}

.makeover-generation-receipt > div { min-width: 0; display: grid; gap: 2px; }
.makeover-generation-receipt strong { font-size: 0.66rem; }
.makeover-generation-receipt small { color: #648477; font-size: 0.55rem; line-height: 1.4; }
.makeover-generation-receipt a { color: #477263; font-size: 0.57rem; font-weight: 850; }

.makeover-reset-button {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  border: 1px solid rgba(126, 96, 81, 0.16);
  padding: 0.65rem 0.8rem;
  color: #78635a;
  background: transparent;
  box-shadow: none;
  font-size: 0.7rem;
  font-weight: 800;
}

.makeover-reset-button:hover {
  transform: none;
  color: #6e3425;
  background: #f8f1ec;
}

.photography-character-panel {
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(155deg, #fffdf9 0%, #f2ece5 100%);
}

.photography-character-portrait {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  background: #e9e2da;
}

.photography-character-nameplate {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 17px 20px 18px;
  color: #fffaf4;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(209, 164, 98, 0.18), transparent 28%, transparent 72%, rgba(209, 164, 98, 0.18)),
    linear-gradient(135deg, #2f211b 0%, #4b3228 100%);
}

.photography-character-nameplate span {
  color: rgba(255, 244, 228, 0.68);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.photography-character-nameplate strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fffdf9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.photography-character-stage {
  position: relative;
  height: clamp(470px, 62vh, 680px);
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(91, 65, 49, 0.06)),
    #eee7df;
}

.photography-character-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.photography-character-label {
  position: absolute;
  top: 16px;
  left: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  color: #fff;
  background: rgba(38, 27, 22, 0.58);
  backdrop-filter: blur(12px);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.photography-character-placeholder {
  display: grid;
  gap: 7px;
  place-items: center;
  padding: 24px;
  color: #8c796d;
  text-align: center;
}

.photography-character-placeholder span {
  font-size: 0.76rem;
}

.photography-character-portrait figcaption {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  color: #f9f5f1;
  background: #392a23;
}

.photography-character-portrait figcaption strong {
  font-size: 0.8rem;
}

.photography-character-portrait figcaption span {
  color: #cdbfb7;
  font-size: 0.7rem;
}

.photography-character-progress {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.photography-character-progress header {
  display: grid;
  gap: 3px;
}

.photography-character-progress header span {
  color: #8a7569;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.photography-character-progress header strong {
  color: #392a23;
  font-size: 0.9rem;
}

.photography-character-progress ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photography-character-progress li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #dfd5cc;
  border-radius: 12px;
  padding: 10px;
  color: #7b6c63;
  background: rgba(255, 255, 255, 0.62);
}

.photography-character-progress li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #6f5ce7;
  background: #eeeaff;
  font-size: 0.7rem;
  font-weight: 900;
}

.photography-character-progress li > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.photography-character-progress li strong,
.photography-character-progress li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-character-progress li strong { color: #46372f; font-size: 0.76rem; }
.photography-character-progress li small { font-size: 0.66rem; }
.photography-character-progress li.active { border-color: #aa9df4; background: #f7f5ff; }
.photography-character-progress li.ready { border-color: #b8d8c5; background: #f5fbf7; }
.photography-character-progress li.ready > span { color: #fff; background: #287455; }

.photography-preview-panel {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.photography-preview-panel h2 {
  margin-bottom: 14px;
}

.photography-preview-content {
  position: relative;
  min-width: 0;
}

.photography-pose-hover-preview {
  position: absolute;
  inset: 12px 0 0 12px;
  z-index: 3;
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid #cfd8e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.2);
  pointer-events: none;
}

.photography-pose-hover-preview[hidden] {
  display: none;
}

.photography-pose-hover-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #edf1f5;
}

.photography-pose-hover-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

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

.photography-preview-slot {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.photography-preview-media {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #d7dfe7;
  border-radius: 6px;
  background: #edf1f5;
}

.photography-preview-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.photography-preview-empty span {
  padding: 8px;
  color: #758191;
  font-size: 0.74rem;
  text-align: center;
}

.photography-preview-slot figcaption {
  min-height: 2.65rem;
  display: grid;
  align-content: start;
  gap: 2px;
  line-height: 1.25;
}

.photography-preview-slot figcaption strong,
.photography-preview-slot figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-preview-slot figcaption strong {
  color: #263241;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.photography-preview-slot figcaption span {
  color: #758191;
  font-size: 0.7rem;
}

.style-photographer-workspace {
  display: grid;
  gap: 0;
  min-width: 0;
}

.style-photographer-workspace > .workbench-switch {
  margin: 0;
}

.photography-pose-strip-band,
.photography-pose-selector-band,
.photography-stage-band {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid #dfe5eb;
}

.photography-pose-selector-band {
  padding-top: 18px;
}

.photography-band-heading > small {
  color: #7b8795;
  font-size: 0.7rem;
}

.photography-pose-selection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.pose-control-contract,
.pose-face-detail {
  display: grid;
  gap: 7px;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.pose-control-contract.status-ready {
  border-color: #a9d8bf;
  background: #f3fbf6;
}

.pose-control-contract > div,
.pose-face-detail > header,
.pose-face-detail > header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pose-face-detail > header > div {
  justify-content: flex-start;
}

.pose-control-contract span,
.pose-face-detail span {
  color: #667483;
  font-size: 0.68rem;
  font-weight: 800;
}

.pose-control-contract strong,
.pose-face-detail strong {
  color: #263241;
  font-size: 0.74rem;
}

.pose-control-contract.status-ready strong {
  color: #176b44;
}

.pose-control-contract small,
.pose-face-detail > p {
  margin: 0;
  color: #607080;
  font-size: 0.72rem;
  line-height: 1.5;
}

.pose-face-detail > header em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  color: #5c4ab8;
  background: #eeeaff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.pose-face-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.pose-face-detail dl > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pose-face-detail dt {
  color: #7b8794;
  font-size: 0.65rem;
  font-weight: 800;
}

.pose-face-detail dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #344050;
  font-size: 0.71rem;
  line-height: 1.45;
}

.photography-pose-selection-card {
  min-width: 0;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "media copy"
    "media action";
  gap: 14px;
  align-items: stretch;
  border: 1px solid #d7dfe7;
  border-radius: 16px;
  padding: 14px;
  color: #253140;
  text-align: left;
  background: linear-gradient(135deg, #f9fafc, #f2f0ff);
  box-shadow: none;
}

.photography-pose-selection-card:hover {
  border-color: #8f82ec;
  transform: none;
  box-shadow: 0 10px 28px rgba(88, 72, 181, 0.1);
}

.photography-pose-selection-card.has-selection {
  border-color: #9c8ff0;
  background: linear-gradient(135deg, #fff, #f4f1ff);
}

.photography-pose-selection-media {
  grid-area: media;
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: #6f5ce7;
  background: #e9e5ff;
  font-size: 2.4rem;
}

.photography-pose-selection-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.photography-pose-selection-copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 14px 0;
}

.photography-pose-selection-copy small {
  color: #7669c7;
  font-size: 0.7rem;
  font-weight: 850;
}

.photography-pose-selection-copy strong,
.photography-pose-selection-copy span {
  min-width: 0;
  white-space: normal;
}

.photography-pose-selection-copy strong {
  max-width: 18em;
  color: #252c39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.28;
}

.photography-pose-selection-copy span {
  max-width: 28em;
  color: #718093;
  font-size: 0.72rem;
  line-height: 1.65;
}

.photography-pose-selection-card > em {
  grid-area: action;
  align-self: end;
  justify-self: start;
  margin: 0 0 14px 14px;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  color: #fff;
  background: #6f5ce7;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.photography-pose-clear {
  align-self: start;
}

.photography-pose-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
}

.photography-pose-picker {
  width: min(1180px, calc(100vw - 48px));
  height: min(860px, calc(100dvh - 48px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  padding: 20px;
  overflow: hidden;
  color: #17202a;
  background: #f8fafc;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.photography-pose-picker > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.photography-pose-picker > header h2 {
  margin: 0.1rem 0 0.25rem;
}

.photography-pose-picker > header span {
  color: #687586;
  font-size: 0.76rem;
}

.photography-pose-picker-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 14px 2px;
  scrollbar-gutter: stable;
}

.photography-pose-picker .photography-pose-thumb {
  width: 100%;
  height: auto;
  min-height: 228px;
  grid-template-rows: auto auto;
  align-content: start;
  border-radius: 12px;
  padding: 8px;
}

.photography-pose-picker .photography-pose-thumb.selected::after {
  content: "已选择";
  justify-self: start;
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
  color: #fff;
  background: #6f5ce7;
  font-size: 0.62rem;
  font-weight: 850;
}

.photography-band-heading,
.photography-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.photography-band-heading > div,
.photography-stage-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.photography-band-heading span,
.photography-stage-heading span {
  color: #687586;
  font-size: 0.76rem;
  font-weight: 800;
}

.photography-band-heading strong,
.photography-stage-heading h2 {
  margin: 0;
  color: #17202a;
  font-size: 1rem;
  letter-spacing: 0;
}

.status-chip.warning {
  border-color: #f2c879;
  color: #7a4b00;
  background: #fff8e8;
}

.photography-pose-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  grid-auto-rows: 178px;
  align-content: start;
  gap: 10px;
  height: 576px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid #d7dfe7;
  border-radius: 6px;
  background: #f7f9fb;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.photography-pose-thumb {
  width: 120px;
  height: 178px;
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid #d7dfe7;
  border-radius: 6px;
  padding: 5px;
  color: #303b48;
  background: #fff;
}

.photography-pose-thumb:hover {
  border-color: #8f82ec;
}

.photography-pose-thumb.selected {
  border-color: #6f5ce7;
  box-shadow: 0 0 0 2px rgba(111, 92, 231, 0.14);
}

.photography-pose-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  background: #edf1f5;
}

.photography-pose-thumb span {
  overflow: hidden;
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-inline-empty {
  width: 180px;
  min-height: 112px;
  display: grid;
  place-items: center;
  color: #758191;
  font-size: 0.8rem;
}

.photography-pose-strip > .photography-inline-empty {
  grid-column: 1 / -1;
  width: 100%;
}

.photography-stage-body {
  min-width: 0;
}

.photography-direction-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.photography-direction-panel {
  min-width: 0;
  border: 1px solid rgba(68, 81, 95, 0.12);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(31, 42, 55, 0.07);
}

.photography-composition-panel {
  background:
    radial-gradient(circle at 0 0, rgba(190, 161, 119, 0.12), transparent 34%),
    linear-gradient(145deg, #fffdf9, #f5f6f8);
}

.photography-lighting-panel {
  position: sticky;
  top: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 92, 231, 0.13), transparent 36%),
    linear-gradient(145deg, #faf9ff, #f4f5f8);
}

.photography-direction-panel-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}

.photography-direction-panel-heading > small {
  color: #8b79d8;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.photography-composition-panel .photography-direction-panel-heading > small {
  color: #9a7049;
}

.photography-direction-panel-heading > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.photography-direction-panel-heading h3 {
  margin: 0;
  color: #202a35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 650;
}

.photography-direction-panel-heading span {
  color: #7b8795;
  font-size: 0.68rem;
  text-align: right;
}

.photography-composition-panel .photography-pose-selector-band {
  margin-bottom: 16px;
  padding: 0 0 16px;
}

.photography-scene-suggestions {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(154, 112, 73, 0.18);
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(190, 161, 119, 0.14), transparent 42%),
    rgba(255, 253, 249, 0.88);
}

.photography-scene-suggestions > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.photography-scene-suggestions > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.photography-scene-suggestions > header small {
  color: #a27a55;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.photography-scene-suggestions > header strong {
  color: #31343a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.photography-scene-suggestions > header > span {
  flex: 0 0 auto;
  color: #8a8178;
  font-size: 0.62rem;
}

.photography-scene-suggestions.using-previous-analysis {
  border-color: rgba(186, 123, 37, 0.34);
  background:
    radial-gradient(circle at 0 0, rgba(226, 172, 82, 0.15), transparent 42%),
    rgba(255, 252, 244, 0.92);
}

.photography-scene-suggestions.using-previous-analysis > header > span {
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  color: #95631e;
  background: rgba(226, 172, 82, 0.16);
  font-weight: 850;
}

.photography-scene-suggestion-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.photography-scene-suggestion {
  position: relative;
  min-width: 0;
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(68, 81, 95, 0.12);
  border-radius: 12px;
  padding: 11px;
  color: #313942;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.photography-scene-suggestion:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 108px;
}

.photography-scene-suggestion:hover {
  border-color: rgba(154, 112, 73, 0.52);
  background: #fff;
  box-shadow: 0 12px 26px rgba(77, 60, 44, 0.1);
  transform: translateY(-1px);
}

.photography-scene-suggestion.selected {
  border-color: #8f6641;
  background: #fffaf2;
  box-shadow: 0 0 0 2px rgba(154, 112, 73, 0.12);
}

.photography-scene-suggestion > span {
  position: absolute;
  top: 9px;
  right: 10px;
  color: rgba(130, 95, 63, 0.35);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.photography-scene-suggestion > strong {
  max-width: calc(100% - 30px);
  color: #2b3037;
  font-size: 0.74rem;
}

.photography-scene-suggestion > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #737b85;
  font-size: 0.62rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photography-scene-suggestion > em {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
  font-style: normal;
}

.photography-scene-suggestion > em i {
  border-radius: 999px;
  padding: 0.18rem 0.38rem;
  color: #84603f;
  background: rgba(190, 161, 119, 0.15);
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 800;
}

.photography-lighting-panel .photography-style-selector {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.photography-direction-actions {
  margin-top: 18px;
  border-top: 1px solid #dfe5eb;
  padding-top: 16px;
}

.photography-direction-actions .primary {
  min-width: 220px;
}

.photography-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photography-fields label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #44515f;
  font-size: 0.76rem;
  font-weight: 750;
}

.photography-fields label > span em {
  margin-left: 4px;
  color: #b42318;
  font-size: 0.66rem;
  font-style: normal;
}

.photography-fields .wide {
  grid-column: 1 / -1;
}

.photography-style-selector {
  min-width: 0;
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(40, 50, 65, 0.12);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(111, 92, 231, 0.11), transparent 34%),
    linear-gradient(145deg, #fbfaf8, #f4f5f7);
  box-shadow: 0 18px 50px rgba(27, 39, 51, 0.08);
}

.photography-style-selector-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.photography-style-selector-heading > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 10px;
}

.photography-style-selector-heading small {
  grid-column: 1 / -1;
  color: #8776d5;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.photography-style-selector-heading strong {
  color: #1d2530;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.photography-style-selector-heading span {
  min-width: 0;
  overflow: hidden;
  color: #778291;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-style-selector-heading em {
  flex: 0 0 auto;
  border: 1px solid rgba(111, 92, 231, 0.18);
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  color: #6756bb;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
}

.photography-style-showcase {
  min-width: 0;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 76% 16%, rgba(167, 139, 250, 0.28), transparent 31%),
    linear-gradient(135deg, #171b24, #2d3140 56%, #3b3154);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.2);
}

.photography-style-showcase-media {
  position: relative;
  min-width: 0;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #252a35;
}

.photography-style-showcase-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photography-style-showcase-media > span {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
}

.photography-style-showcase-media::after {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  background: linear-gradient(transparent, rgba(8, 12, 20, 0.88));
}

.photography-style-showcase-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.photography-style-showcase-media figcaption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.photography-style-showcase-media figcaption strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.2;
}

.photography-style-showcase-copy {
  min-width: 0;
  align-self: center;
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 42px);
}

.photography-style-showcase-copy > span {
  width: max-content;
  border-bottom: 1px solid rgba(196, 181, 253, 0.5);
  padding-bottom: 4px;
  color: #c4b5fd;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.photography-style-showcase-copy h3 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.photography-style-showcase-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(241, 245, 249, 0.8);
  font-size: 0.78rem;
  line-height: 1.75;
  white-space: pre-line;
}

.photography-style-showcase-copy > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.photography-style-showcase-copy i {
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  margin-top: 0.55em;
  background: #a78bfa;
}

.photography-style-showcase-copy small {
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.5;
}

.photography-style-portrait-guide {
  display: grid;
  gap: 9px;
  margin-top: 2px;
  border-top: 1px solid rgba(196, 181, 253, 0.2);
  padding-top: 14px;
}

.photography-style-portrait-guide header {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.photography-style-portrait-guide header span {
  color: #c4b5fd;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.photography-style-portrait-guide header strong {
  color: #fff;
  font-size: 0.72rem;
}

.photography-style-portrait-guide p {
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.72rem;
  line-height: 1.7;
}

.photography-style-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.photography-style-effects span {
  border: 1px solid rgba(196, 181, 253, 0.26);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  color: #e9e4ff;
  background: rgba(124, 92, 231, 0.14);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.photography-style-gallery {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 158px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 10px;
  scrollbar-color: rgba(111, 92, 231, 0.42) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.photography-style-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(62px, auto);
  gap: 8px;
  border: 1px solid rgba(40, 50, 65, 0.11);
  border-radius: 12px;
  padding: 6px;
  color: #273240;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  text-align: left;
  scroll-snap-align: start;
}

.photography-style-card:hover {
  border-color: rgba(111, 92, 231, 0.52);
  background: #fff;
  box-shadow: 0 14px 30px rgba(45, 38, 90, 0.12);
  transform: translateY(-2px);
}

.photography-style-card.selected {
  border-color: #6f5ce7;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(111, 92, 231, 0.14), 0 16px 34px rgba(45, 38, 90, 0.14);
}

.photography-style-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(145deg, #303646, #171b24);
}

.photography-style-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.photography-style-card:hover .photography-style-card-media img {
  transform: scale(1.035);
}

.photography-style-card-media > span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.photography-style-card-media b {
  position: absolute;
  top: 7px;
  left: 7px;
  min-width: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.2rem 0.34rem;
  color: #fff;
  background: rgba(12, 17, 26, 0.58);
  font-size: 0.58rem;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(8px);
}

.photography-style-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 0 3px 3px;
}

.photography-style-card-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #252f3b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-style-card-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #788493;
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photography-style-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.photography-fields select,
.photography-fields input[type="number"],
.photography-fields textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #ccd5de;
  border-radius: 6px;
  padding: 0.68rem 0.72rem;
  color: #1e2935;
  background: #fff;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.photography-fields textarea {
  resize: vertical;
  line-height: 1.5;
}

.photography-advanced-fields {
  border: 1px solid #d8dfe7;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.photography-advanced-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.photography-advanced-fields summary::-webkit-details-marker {
  display: none;
}

.photography-advanced-fields summary span {
  color: #344151;
  font-size: 0.78rem;
  font-weight: 850;
}

.photography-advanced-fields summary small {
  color: #7b8795;
  font-size: 0.68rem;
}

.photography-advanced-fields[open] summary {
  border-bottom: 1px solid #e0e6ec;
  background: #f2f5f9;
}

.photography-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.photography-advanced-grid .wide {
  grid-column: 1 / -1;
}

.photography-fields select:focus,
.photography-fields input[type="number"]:focus,
.photography-fields textarea:focus {
  border-color: #6f5ce7;
  outline: 2px solid rgba(111, 92, 231, 0.12);
}

.photography-compact-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.photography-history-control {
  position: relative;
  align-self: end;
  justify-self: end;
  width: 46px;
  height: 46px;
}

.photography-history-trigger {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #314151;
  background: #ffffff;
}

.photography-history-trigger > span {
  font-size: 1.35rem;
  line-height: 1;
}

.photography-history-trigger > strong {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 9px;
  color: #ffffff;
  background: #b42318;
  font-size: 0.65rem;
  line-height: 1;
}

.photography-history-popover {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #ccd5de;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(27, 39, 51, 0.18);
}

.photography-history-item {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 0;
  border-radius: 4px;
  color: #263241;
  background: transparent;
  text-align: left;
}

.photography-history-item:hover:not(:disabled),
.photography-history-item:focus-visible {
  background: #eef4f1;
}

.photography-history-thumb {
  width: 44px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: #718090;
  background: #e9eef2;
}

.photography-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photography-history-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.photography-history-copy strong,
.photography-history-copy small,
.photography-history-copy time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-history-copy strong {
  font-size: 0.78rem;
}

.photography-history-copy small,
.photography-history-copy time {
  color: #718090;
  font-size: 0.68rem;
}

.photography-history-empty {
  padding: 26px 12px;
  color: #718090;
  font-size: 0.75rem;
  text-align: center;
}

.photography-finalization-modes {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid #ccd5de;
  border-radius: 6px;
  background: #f3f6f8;
}

.photography-finalization-modes button {
  min-width: 0;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  padding: 5px 10px;
  color: #596675;
  background: transparent;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 750;
}

.photography-finalization-modes button.selected {
  color: #ffffff;
  background: #263241;
}

.photography-final-pose-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #ddd8f4;
  border-radius: 12px;
  padding: 9px;
  background: #faf9ff;
}

.photography-final-pose-thumb {
  width: 58px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #6f5ce7;
  background: #e9e5ff;
  font-size: 1.2rem;
}

.photography-final-pose-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.photography-final-pose-summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.photography-final-pose-summary small {
  color: #7669c7;
  font-size: 0.66rem;
  font-weight: 850;
}

.photography-final-pose-summary strong {
  overflow: hidden;
  color: #303849;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-identity-toggle {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  justify-self: start;
  width: auto;
  min-height: 32px;
}

.photography-identity-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #287455;
}

.photography-stage-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.photography-base-library {
  min-width: 0;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dfe5eb;
}

.photography-base-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.photography-base-library-heading > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.photography-base-library-heading strong {
  color: #263241;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.photography-base-library-heading span {
  color: #758191;
  font-size: 0.75rem;
}

.photography-analysis-all {
  min-height: 30px;
  border: 1px solid #aeb8c3;
  border-radius: 4px;
  padding: 5px 10px;
  color: #273646;
  background: #fff;
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 750;
}

.photography-analysis-all:disabled {
  cursor: default;
  opacity: 0.56;
}

.photography-base-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.photography-base-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(42px, auto) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d7dfe7;
  border-radius: 6px;
  background: #ffffff;
}

.photography-base-card.selected {
  border-color: #287455;
  box-shadow: 0 0 0 2px rgba(40, 116, 85, 0.12);
}

.photography-base-card.history-target {
  border-color: #1e7a57;
  box-shadow: 0 0 0 3px rgba(30, 122, 87, 0.2);
  animation: photography-history-highlight 1.8s ease-out;
}

@keyframes photography-history-highlight {
  0%, 35% { box-shadow: 0 0 0 5px rgba(30, 122, 87, 0.28); }
  100% { box-shadow: 0 0 0 3px rgba(30, 122, 87, 0.06); }
}

.photography-base-preview {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: #637083;
  background: #edf1f5;
}

.photography-base-preview:not(:disabled) {
  cursor: zoom-in;
}

.photography-base-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.photography-base-preview span {
  padding: 10px;
  font-size: 0.78rem;
  text-align: center;
}

.photography-base-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
}

.photography-base-card-copy strong,
.photography-base-card-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-base-card-copy strong {
  color: #263241;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.photography-base-card-copy span {
  color: #758191;
  font-size: 0.7rem;
}

.reference-recreation-evaluation {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.12rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #eef1f6;
  color: #697586;
}

.reference-recreation-evaluation.success {
  background: #e7f8ef;
  color: #13775f;
}

.reference-recreation-evaluation.warning {
  background: #fff3d9;
  color: #9a6100;
}

.reference-recreation-evaluation.danger {
  background: #ffebe9;
  color: #b43c32;
}

.photography-base-card-actions {
  min-width: 0;
  display: flex;
  gap: 6px;
}

.photography-base-card-actions > button:first-child:not(.photography-queue-action):not(.photography-base-delete) {
  min-width: 0;
  flex: 1 1 auto;
}

.photography-variant-card-actions {
  justify-content: end;
}

.photography-base-card-actions > button {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.72rem;
}

.photography-base-delete {
  width: 32px;
  padding: 0;
  color: #b42318;
  border-color: #efc2bd;
  background: #fffafa;
}

.photography-queue-action {
  width: 32px;
  flex: 0 0 32px;
  padding: 0;
}

.photography-queue-action.cancel {
  color: #9b2c24;
  border-color: #e3bbb7;
  background: #fffafa;
}

.photography-queue-action.retry {
  color: #275f9a;
  border-color: #b8cce0;
  background: #f7fbff;
}

.photography-base-promote {
  width: 32px;
  padding: 0;
  color: #176b3a;
  border-color: #a9d8bd;
  background: #f6fff9;
}

.photography-base-promote:hover:not(:disabled) {
  color: #0d512a;
  border-color: #73bd92;
  background: #eaf8ef;
}

.photography-base-delete:hover:not(:disabled) {
  color: #8f1710;
  border-color: #e49a93;
  background: #fff2f1;
}

.photography-variant-stage {
  border-bottom: 0;
  margin: 0 -22px -22px;
  padding: 26px 22px 28px;
  background: linear-gradient(145deg, rgba(244, 241, 255, 0.74), rgba(255, 255, 255, 0.88));
}

.photography-variant-stage > .photography-stage-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(480px, 1.28fr);
  gap: 24px;
  align-items: start;
}

.photography-variant-stage .photography-variant-fields {
  position: sticky;
  top: 18px;
  border: 1px solid #ded8f5;
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(77, 61, 154, 0.08);
}

.photography-final-gallery {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.photography-final-feature {
  min-width: 0;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 12px;
  border: 1px solid #d7d1f3;
  border-radius: 18px;
  padding: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 48px rgba(73, 57, 145, 0.12);
}

.photography-final-feature-media {
  width: 100%;
  min-height: 478px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: #756d90;
  background: #ece9f7;
  box-shadow: none;
}

.photography-final-feature-media:not(:disabled) {
  cursor: zoom-in;
}

.photography-final-feature-media:hover {
  transform: none;
}

.photography-final-feature-media img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  display: block;
  object-fit: contain;
}

.photography-final-feature-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 6px;
}

.photography-final-feature-copy > span {
  color: #7669c7;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.photography-final-feature-copy > strong {
  color: #28233d;
  font-size: 1rem;
}

.photography-final-feature-copy > small {
  color: #756f86;
  font-size: 0.7rem;
}

.photography-final-feature-empty {
  grid-column: 1 / -1;
  min-height: 480px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #cfc7ee;
  border-radius: 12px;
  color: #71698a;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(126, 104, 232, 0.11), transparent 18rem),
    #faf9ff;
}

.photography-final-feature-empty span {
  color: #6f5ce7;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.photography-final-feature-empty strong {
  max-width: 320px;
  font-size: 0.9rem;
}

.photography-final-candidates-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.photography-final-candidates-heading strong {
  color: #343044;
  font-size: 0.82rem;
}

.photography-final-candidates-heading span {
  color: #817b90;
  font-size: 0.68rem;
}

@media (max-width: 1320px) {
  .makeup-feature-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 12px;
  }

  .makeover-workbench {
    grid-template-columns: minmax(360px, 1.62fr) minmax(230px, 0.74fr);
    gap: 10px;
  }

  .makeover-category {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .makeover-category-icon {
    width: 30px;
    height: 30px;
  }

  .photography-direction-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .photography-lighting-panel {
    position: static;
  }
}

@media (max-width: 1100px) {
  .makeup-feature-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .style-photographer-layout,
  .model-portrait-feature-layout {
    grid-template-columns: 1fr;
  }

  .makeover-workbench {
    grid-template-columns: 1fr;
  }

  .makeover-edit-panel,
  .makeover-options-panel {
    position: static;
    max-height: none;
  }

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

  .makeover-identity-lock {
    margin-top: 8px;
  }

  .makeover-preview-panel {
    grid-row: 1;
  }

  .makeover-options-panel { grid-row: 2; }

  .makeover-comparison {
    min-height: 0;
    max-height: none;
  }

  .photography-preview-panel {
    position: static;
    max-height: none;
  }

  .photography-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .photography-pose-strip-band,
  .photography-pose-selector-band,
  .photography-stage-band {
    padding: 18px 0;
  }

  .photography-character-panel {
    position: static;
    max-height: none;
  }

  .photography-character-stage {
    height: min(68vh, 680px);
  }

  .photography-variant-stage {
    margin: 0 -22px -22px;
    padding: 22px;
  }

  .photography-variant-stage > .photography-stage-body {
    grid-template-columns: 1fr;
  }

  .photography-variant-stage .photography-variant-fields {
    position: static;
  }

}

@media (max-width: 560px) {
  .makeover-category-list,
  .makeover-option-grid {
    grid-template-columns: 1fr;
  }

  .makeover-option-card {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .makeover-option-swatch {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .makeover-option-copy { text-align: left; }
  .makeover-option-copy small { min-height: 0; }

  .photography-direction-panel {
    border-radius: 16px;
    padding: 12px;
  }

  .photography-direction-panel-heading > div {
    display: grid;
    gap: 3px;
  }

  .photography-direction-panel-heading span {
    text-align: left;
  }

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

  .photography-fields {
    grid-template-columns: 1fr;
  }

  .photography-style-selector {
    border-radius: 16px;
    padding: 12px;
  }

  .photography-style-selector-heading span {
    display: none;
  }

  .photography-style-showcase {
    grid-template-columns: 1fr;
  }

  .photography-style-showcase-media {
    min-height: 360px;
    max-height: 62vh;
  }

  .photography-style-showcase-copy {
    padding: 22px;
  }

  .photography-style-gallery {
    grid-auto-columns: minmax(126px, 42vw);
  }

  .photography-compact-controls {
    grid-template-columns: 1fr;
  }

  .photography-pose-selection-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .photography-pose-selection-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "media"
      "copy"
      "action";
    padding: 10px;
  }

  .photography-pose-selection-media {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 52vh;
    aspect-ratio: 3 / 4;
  }

  .photography-pose-selection-copy {
    padding: 6px 4px 0;
  }

  .photography-pose-selection-card > em {
    margin: 0 4px 4px;
    justify-self: stretch;
    text-align: center;
  }

  .photography-pose-clear {
    width: 100%;
  }

  .photography-scene-suggestions > header {
    align-items: start;
    display: grid;
  }

  .photography-scene-suggestion-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photography-scene-suggestion:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .photography-pose-picker-backdrop {
    padding: 10px;
  }

  .photography-pose-picker {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    padding: 14px;
  }

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

  .photography-advanced-grid {
    grid-template-columns: 1fr;
  }

  .photography-final-feature {
    min-height: 420px;
    grid-template-columns: 1fr;
  }

  .photography-final-feature-media {
    min-height: 400px;
  }

  .photography-fields .wide {
    grid-column: auto;
  }

  .photography-stage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .photography-stage-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photography-base-card.history-target {
    animation: none;
  }
  .login-background-video {
    display: none;
  }
}

.one-step-replica-intro {
  max-width: 860px;
  margin: 0 0 20px;
  color: var(--muted, #667085);
  line-height: 1.7;
}

.one-step-replica-inputs {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(320px, 1.25fr);
  gap: 22px;
  align-items: stretch;
}

.one-step-replica-upload {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 265px;
  padding: 16px;
  border: 1px dashed #b8a8ff;
  border-radius: 18px;
  background: #fbfaff;
  cursor: pointer;
  overflow: hidden;
}

.one-step-replica-upload input { display: none; }
.one-step-replica-upload > span { font-weight: 700; color: #3f3a5a; }
.one-step-replica-upload strong { display: grid; min-height: 0; place-items: center; color: #8a7bd8; text-align: center; }
.one-step-replica-upload img { width: 100%; min-height: 0; height: 100%; object-fit: cover; border-radius: 12px; background: #f2f0f8; }

.one-step-replica-controls { display: grid; gap: 16px; align-content: start; }
.one-step-replica-controls button.primary.is-generating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  background: linear-gradient(110deg, #6247d5, #937aff, #6247d5);
  background-size: 220% 100%;
  animation: one-step-replica-button-flow 2.8s ease-in-out infinite;
}
.one-step-replica-button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: one-step-replica-spin 1s linear infinite;
}
.one-step-replica-pending-card .photography-base-preview {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  background: linear-gradient(145deg, #332a70, #1d193d);
}
.one-step-replica-pending-card .pose-generation-veil { border-radius: inherit; }
.one-step-replica-live-progress { display: grid; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid #ded9ef; border-radius: 8px; background: #fff; }
.one-step-replica-live-progress > p { margin: 0; color: #4f5668; font-size: 13px; }
.one-step-replica-progress-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.one-step-replica-progress-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 48px; padding: 8px 10px; border: 1px solid #e4e7ec; border-radius: 7px; background: #f8fafc; color: #667085; }
.one-step-replica-progress-step > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e4e7ec; font-weight: 750; }
.one-step-replica-progress-step div { display: grid; min-width: 0; gap: 2px; }
.one-step-replica-progress-step strong, .one-step-replica-progress-step small { overflow-wrap: anywhere; }
.one-step-replica-progress-step small { font-size: 11px; }
.one-step-replica-progress-step.active { border-color: #8065ed; background: #f4f1ff; color: #4636a8; }
.one-step-replica-progress-step.active > span { background: #8065ed; color: #fff; }
.one-step-replica-progress-step.completed { border-color: #a7d7c5; background: #f0faf6; color: #286a50; }
.one-step-replica-progress-step.completed > span { background: #3a9b76; color: #fff; }
.one-step-replica-live-image { display: grid; gap: 8px; max-width: 240px; }
.one-step-replica-live-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: #f2f4f7; }
.one-step-replica-process-card { border-color: #c9c2ef; }
.one-step-replica-stage-waiting { display: grid; width: 100%; height: 100%; place-items: center; align-content: center; gap: 8px; background: #f5f6f8; color: #7b8191; }
.one-step-replica-stage-waiting span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #cfd4dc; border-radius: 50%; font-weight: 750; }
@keyframes one-step-replica-spin { to { transform: rotate(360deg); } }
@keyframes one-step-replica-button-flow { 50% { background-position: 100% 0; } }
.one-step-replica-controls label { display: grid; gap: 7px; color: #3c4250; font-weight: 650; }
.one-step-replica-controls label small { color: #7b8191; font-weight: 400; }
.one-step-replica-controls select { width: 100%; min-height: 42px; }
.one-step-replica-style-mode { display: flex; gap: 8px; flex-wrap: wrap; }
.one-step-replica-style-mode button { border: 1px solid #ded9ef; background: #fff; color: #5b5770; }
.one-step-replica-style-mode button.selected { border-color: #8065ed; background: #f0edff; color: #5137c6; }
.one-step-replica-rules { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #f5f8ff; color: #667085; line-height: 1.55; }
.one-step-replica-rules strong { color: #373358; }

@media (max-width: 780px) {
  .one-step-replica-inputs { grid-template-columns: 1fr; }
  .one-step-replica-rules { grid-template-columns: 1fr; gap: 4px; }
  .one-step-replica-progress-steps { grid-template-columns: 1fr; }
}

/* Style Library: operational authoring workspace */
.hero.style-library-hero {
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  border-color: #d9dfe4;
  border-radius: 8px;
  padding: 20px 22px;
  background: rgba(250, 251, 251, 0.92);
  box-shadow: 0 12px 30px rgba(31, 39, 45, 0.06);
  backdrop-filter: blur(14px);
}

.hero.style-library-hero h1 {
  margin: 3px 0 6px;
  color: #1b2328;
  font-size: 1.28rem;
}

.hero.style-library-hero > div:first-child > p:last-child {
  max-width: 560px;
  color: #6f7981;
  font-size: 0.76rem;
  line-height: 1.5;
}

.hero.style-library-hero .hero-side {
  min-width: min(620px, 100%);
}

.hero.style-library-hero .generation-mode-compact {
  border-color: #d6dde1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.hero.style-library-hero .style-library-summary div {
  padding: 7px 14px;
}

.hero.style-library-hero .style-library-summary strong {
  font-size: 1rem;
}

.style-library-workspace {
  grid-template-columns: minmax(270px, 304px) minmax(0, 1fr);
  min-height: 760px;
  border: 1px solid #d9dfe4;
  border-radius: 8px;
  overflow: clip;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(31, 39, 45, 0.08);
}

.style-library-master {
  align-self: stretch;
  border-right: 1px solid #d9dfe4;
  background: #f3f5f6;
}

.style-library-master > header {
  padding: 24px 22px 18px;
  background: #ffffff;
}

.style-library-master > header p,
.style-library-create-heading span {
  margin: 4px 0 0;
  color: #77818a;
  font-size: 0.72rem;
}

.style-library-master h2 {
  color: #1d252b;
  font-size: 1.05rem;
}

.style-library-create-form {
  gap: 10px;
  padding: 18px 22px 20px;
  background: #f7f8f9;
}

.style-library-create-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.style-library-create-heading strong {
  color: #283138;
  font-size: 0.78rem;
}

.style-library-create-form .field {
  gap: 5px;
}

.style-library-create-form .field > span {
  color: #68727b;
  font-size: 0.68rem;
}

.style-library-create-form input,
.style-library-create-form textarea {
  border-color: #cfd6dc;
  border-radius: 5px;
  background: #ffffff;
}

.style-library-create-form button.primary {
  min-height: 38px;
  border-radius: 5px;
  box-shadow: none;
}

.style-library-definition-list {
  gap: 2px;
  padding: 10px 0 18px;
}

.style-library-definition-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 70px;
  border-bottom: 0;
  border-left: 3px solid transparent;
  padding: 12px 16px 12px 14px;
}

.style-library-definition-row:hover {
  background: #e9edef;
}

.style-library-definition-row.active {
  border-left-color: #2f7165;
  background: #ffffff;
  box-shadow: 0 1px 0 #dfe4e7, 0 -1px 0 #dfe4e7;
}

.style-library-definition-row > i {
  color: #9aa2a9;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

.style-library-definition-row.active > i {
  color: #2f7165;
}

.style-library-definition-row strong {
  font-size: 0.8rem;
}

.style-library-definition-row .style-library-status {
  min-height: 22px;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.62rem;
}

.style-library-detail {
  padding: 0 clamp(24px, 3vw, 48px) 44px;
  background: #ffffff;
}

.style-library-detail-heading {
  align-items: center;
  min-height: 118px;
  padding: 26px 0 24px;
}

.style-library-detail-heading h2 {
  color: #161d22;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.style-library-detail-heading p {
  max-width: 680px;
  margin-top: 6px;
  color: #6e7880;
  font-size: 0.8rem;
  line-height: 1.55;
}

.style-library-detail-heading > .style-library-status {
  border-radius: 5px;
}

.style-library-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid #dfe4e7;
  padding: 18px 0;
}

.style-library-workflow > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 92px;
  color: #919aa1;
}

.style-library-workflow > div:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 10px;
  left: 40px;
  height: 1px;
  background: #d9dfe3;
}

.style-library-workflow span {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd6db;
  border-radius: 50%;
  color: #7d878f;
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
}

.style-library-workflow strong {
  position: relative;
  z-index: 1;
  padding-right: 12px;
  background: #ffffff;
  font-size: 0.72rem;
}

.style-library-workflow .complete {
  color: #286457;
}

.style-library-workflow .complete span {
  border-color: #2f7165;
  color: #ffffff;
  background: #2f7165;
}

.style-library-workflow .complete:not(:last-child)::after {
  background: #75a298;
}

.style-library-workflow .current {
  color: #1d252b;
}

.style-library-workflow .current span {
  border: 2px solid #1d252b;
  color: #1d252b;
}

.style-library-section {
  padding: 30px 0;
}

.style-library-section-heading {
  align-items: center;
  margin-bottom: 18px;
}

.style-library-section-heading h3 {
  color: #20282e;
  font-size: 1rem;
}

.style-library-section-heading .eyebrow {
  color: #879098;
  font-size: 0.62rem;
}

.style-library-reference-grid {
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
}

.style-library-reference-item,
.style-library-upload-tile {
  border-color: #d8dee2;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(29, 37, 43, 0.05);
}

.style-library-reference-preview {
  border-radius: 5px 5px 0 0;
  background: #e9edef;
}

.style-library-reference-meta {
  padding: 9px 10px;
}

.style-library-reference-meta strong {
  color: #303a41;
  font-size: 0.7rem;
}

.style-library-reference-tools {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 0;
  padding: 0;
}

.style-library-reference-item {
  position: relative;
}

.style-library-reference-tools button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background: rgba(22, 29, 34, 0.74);
  box-shadow: none;
}

.style-library-upload-tile {
  min-height: 222px;
  border-color: #aebbc1;
  color: #3f625b;
  background: #f5f8f7;
  box-shadow: none;
}

.style-library-upload-tile:hover {
  border-color: #2f7165;
  background: #edf5f2;
}

.style-library-upload-tile > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid #9eb5ae;
  border-radius: 50%;
  font-size: 1.3rem;
}

.style-library-action-band {
  margin: 0 calc(clamp(24px, 3vw, 48px) * -1);
  border: 0;
  padding: 18px clamp(24px, 3vw, 48px);
  background: #eef2f1;
}

.style-library-action-band > div:first-child span {
  color: #638078;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.style-library-action-band > div:first-child strong {
  color: #263d37;
  font-size: 0.84rem;
}

.style-library-profile-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  border-bottom: 1px solid #dbe1e4;
}

.style-library-profile-stage > .style-library-section {
  border-bottom: 0;
}

.style-library-profile-stage > .style-library-review {
  align-self: stretch;
  border-left: 1px solid #d9e3df;
  padding-left: 26px;
}

.style-library-dimensions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  border-top-color: #dfe5e7;
}

.style-library-dimensions details {
  min-width: 0;
}

.style-library-dimensions summary {
  min-height: 52px;
}

.style-library-dimensions summary strong {
  color: #2b353b;
  font-size: 0.76rem;
}

.style-library-dimensions p {
  color: #455159;
  font-size: 0.77rem;
}

.style-library-review-action {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  border-left: 3px solid #6a998d;
  padding: 14px 0 14px 16px;
  background: #f4f8f6;
}

.style-library-review-action button {
  width: 100%;
  border-radius: 5px;
  box-shadow: none;
}

.style-library-technical-details {
  margin-top: 12px;
  border-top: 0;
  padding-top: 0;
}

.style-library-technical-details summary,
.style-library-publication-details summary {
  cursor: pointer;
  color: #758078;
  font-size: 0.7rem;
}

.style-library-test-shoots {
  margin: 0 calc(clamp(24px, 3vw, 48px) * -1);
  border-bottom: 0;
  padding: 34px clamp(24px, 3vw, 48px) 38px;
  background: #f3f5f6;
}

.style-library-test-composer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  border-top: 1px solid #d8dee2;
  padding-top: 18px;
}

.style-library-test-composer textarea,
.style-library-refinement-composer textarea {
  border: 1px solid #cbd3d8;
  border-radius: 5px;
  background: #ffffff;
}

.style-library-test-action {
  border-bottom: 1px solid #d8dee2;
  padding-bottom: 22px;
}

.style-library-test-action button.primary {
  min-width: 150px;
  border-radius: 5px;
  box-shadow: none;
}

.style-library-test-render-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 16px;
  justify-content: start;
}

.style-library-test-render-item {
  border-color: #cfd7dc;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(32, 41, 47, 0.08);
}

.style-library-test-render-actions {
  flex-wrap: wrap;
}

.style-library-test-render-actions button {
  border-radius: 4px;
  box-shadow: none;
}

.style-library-refinement-workspace {
  margin: 0 calc(clamp(24px, 3vw, 48px) * -1);
  border-top: 0;
  border-bottom: 0;
  padding: 34px clamp(24px, 3vw, 48px);
  background: #eef3f1;
}

.style-library-refinement-preview {
  border-radius: 6px;
}

.style-library-refinement-layout .style-library-refinement-composer,
.style-library-refinement-layout .style-library-refinement-history {
  border-color: #cfd9d5;
  border-radius: 6px;
  background: #ffffff;
}

.style-library-publication {
  margin: 0 calc(clamp(24px, 3vw, 48px) * -1);
  border-bottom: 0;
  padding: 34px clamp(24px, 3vw, 48px);
  color: #eef3ef;
  background: #202522;
}

.style-library-publication .style-library-section-heading h3,
.style-library-publication .style-library-section-heading > span,
.style-library-publication .eyebrow,
.style-library-publication-note,
.style-library-publication-readiness span,
.style-library-publication-actions > span {
  color: #c5cec9;
}

.style-library-publication .style-library-section-heading h3 {
  color: #ffffff;
}

.style-library-publication-receipt {
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 16px 18px;
  background: #2b312d;
}

.style-library-publication-state {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.style-library-publication-state > span {
  color: #b7c1bb;
}

.style-library-publication-receipt-actions {
  display: flex;
  flex-wrap: wrap;
}

.style-library-publication-receipt-actions button {
  border-radius: 4px;
  box-shadow: none;
}

.style-library-publication-receipt-actions .primary,
.style-library-publication-actions .primary {
  color: #173b31;
  background: #edf5f1;
}

.style-library-publication-receipt .danger-action {
  border-color: #896f6f;
  color: #ffd6d6;
  background: transparent;
}

.style-library-publication-details {
  grid-column: 1 / -1;
  border-top: 1px solid #434b46;
  padding-top: 11px;
}

.style-library-publication-details summary {
  color: #aeb8b2;
}

.style-library-publication-details dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 0;
}

.style-library-publication-details dt {
  color: #909b94;
  font-size: 0.66rem;
}

.style-library-publication-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #edf3ef;
  font-size: 0.72rem;
}

.style-library-publication-readiness > div:first-child strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.style-library-selected-cover {
  max-width: 420px;
  border-color: #49524d;
  border-radius: 6px;
  background: #2b312d;
}

.style-library-selected-cover span {
  color: #aeb8b2;
}

.style-library-selected-cover strong {
  color: #ffffff;
}

.style-library-selected-cover-preview {
  border-radius: 4px;
}

.style-library-publication-actions {
  border-top-color: #444c47;
}

.style-library-history {
  border-bottom: 0;
  padding-bottom: 0;
}

.style-library-revisions details {
  background: #fafbfb;
}

.style-library-revisions summary {
  padding: 0 12px;
}

.style-library-empty {
  width: 100%;
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd3d8;
  border-radius: 6px;
  color: #768087;
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 1120px) {
  .style-library-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .style-library-profile-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-profile-stage > .style-library-review {
    border-top: 1px solid #d9e3df;
    border-left: 0;
    padding-top: 24px;
    padding-left: 0;
  }

  .style-library-test-composer {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-test-scene {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .style-library-workspace {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .style-library-master {
    max-height: none;
  }

  .style-library-rename-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }

  .style-library-master > header,
  .style-library-create-form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .style-library-definition-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 82vw);
    overflow-x: auto;
    padding: 10px 18px 18px;
  }

  .style-library-definition-row,
  .style-library-definition-row.active {
    border: 1px solid #d9dfe3;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
  }

  .style-library-definition-row.active {
    border-color: #2f7165;
  }

  .style-library-detail {
    padding: 0 18px 30px;
  }

  .style-library-workflow {
    grid-template-columns: repeat(5, minmax(108px, 1fr));
    margin-right: -18px;
    padding-right: 18px;
  }

  .style-library-section {
    padding: 26px 0;
  }

  .style-library-action-band,
  .style-library-test-shoots,
  .style-library-refinement-workspace,
  .style-library-publication {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .style-library-dimensions,
  .style-library-test-composer,
  .style-library-publication-details dl {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .style-library-upload-tile {
    min-height: 190px;
  }

  .style-library-test-scene {
    grid-column: auto;
  }

  .style-library-test-selection-summary {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    min-height: 96px;
  }

  .style-library-test-selection-media {
    width: 72px;
  }

  .style-library-scene-suggestions > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .style-library-scene-suggestion-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-test-picker-backdrop {
    padding: 10px;
  }

  .style-library-test-picker {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    padding: 14px;
  }

  .style-library-test-picker-grid,
  .style-library-test-picker-grid.model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-library-test-render-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-publication-receipt {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-publication-receipt-actions {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .style-library-reference-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-library-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .style-library-action-band > div,
  .style-library-test-action,
  .style-library-publication-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .style-library-action-band button,
  .style-library-test-action button,
  .style-library-publication-actions button {
    width: 100%;
  }

  .style-library-test-selection-summary {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .style-library-test-selection-media {
    width: 64px;
  }

  .style-library-test-selection-summary > em {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.model-contact-analysis {
  align-self: center;
  border: 1px solid #d5dce5;
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  color: #727e8d;
  background: #f7f9fb;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.model-contact-analysis.ready {
  border-color: #a9d4c0;
  color: #176044;
  background: #eef9f4;
}

.photography-benchmark-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 160, 71, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 244, 216, 0.96), rgba(247, 227, 190, 0.82));
  color: #513513;
}

.photography-benchmark-lock div {
  display: grid;
  gap: 3px;
}

.photography-benchmark-lock span,
.photography-benchmark-lock small {
  color: #765733;
}

.photography-benchmark-lock button {
  flex: 0 0 auto;
}

.photography-fields textarea:disabled,
.photography-compact-controls select:disabled {
  opacity: 0.82;
  cursor: not-allowed;
  color: #5d4a32;
  background: rgba(247, 240, 228, 0.8);
}

.pose-batch-panel {
  min-width: 0;
}

.pose-batch-concurrency {
  width: min(180px, 100%);
}

.pose-batch-progress {
  height: 6px;
  overflow: hidden;
  background: #dce2e7;
  border-radius: 3px;
}

.pose-batch-progress > span {
  display: block;
  height: 100%;
  background: #207a58;
  transition: width 180ms ease;
}

.pose-batch-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.pose-batch-list {
  display: grid;
  min-width: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.pose-batch-row {
  display: grid;
  grid-template-columns: 64px minmax(150px, 1fr) minmax(230px, auto) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.pose-batch-row.has-error {
  border-left: 3px solid #b64238;
  padding-left: 9px;
}

.pose-batch-row > img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: #edf0f2;
  border-radius: 4px;
}

.pose-batch-row-main,
.pose-batch-stages {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pose-batch-row-main input,
.pose-batch-row-main select {
  width: 100%;
  min-width: 0;
}

.pose-batch-stages {
  grid-template-columns: repeat(3, minmax(72px, 1fr));
}

.pose-batch-stages span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pose-batch-stages .completed {
  color: #176644;
}

.pose-batch-stages .failed,
.pose-batch-error {
  color: #a2332b;
}

.pose-batch-error {
  grid-column: 2 / -1;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .pose-batch-row {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
  }

  .pose-batch-row > img {
    width: 56px;
    height: 70px;
  }

  .pose-batch-stages,
  .pose-batch-row > button,
  .pose-batch-error {
    grid-column: 1 / -1;
  }

  .pose-batch-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pose-batch-summary,
  .pose-batch-panel .pose-create-actions {
    flex-wrap: wrap;
  }
}

@keyframes sculptor-card-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sculptor-orbit {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes sculptor-step-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .model-sculptor-agent.is-running::before,
  .sculptor-orb span,
  .sculptor-activity-step.is-active,
  .selected-preview.shimmer-frame,
  .generation-placeholder .thumb,
  .shimmer-frame::after,
  .floating-status.is-generating::after,
  .generation-route-card.is-generating::after,
  .slot-card.is-generating::after {
    animation: none;
  }
}
.photography-image-analysis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.photography-analysis-status,
.photography-analysis-sensitivity {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #d7dce2;
  border-radius: 4px;
  background: #f5f6f7;
  color: #343a40;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.photography-analysis-status.complete {
  border-color: #b9d8c4;
  background: #edf8f1;
  color: #1d6638;
}

.photography-analysis-status.warning,
.photography-analysis-sensitivity {
  border-color: #e4cd91;
  background: #fff8e7;
  color: #74520b;
}

.photography-analysis-status.danger {
  border-color: #e2b4b4;
  background: #fff0f0;
  color: #8c2424;
}

.photography-analysis-review {
  min-height: 24px;
  border: 1px solid #b8c0c8;
  border-radius: 4px;
  padding: 3px 8px;
  color: #2f3a43;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 750;
}

.photography-analysis-review:disabled {
  cursor: wait;
  opacity: 0.62;
}

.virtual-persona-header-status,
.virtual-persona-future-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: #5b21b6;
  background: #f1ecff;
  font-size: 0.76rem;
  font-weight: 850;
}

.virtual-persona-workbench {
  display: grid;
  gap: 18px;
}

.virtual-persona-source {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(87, 62, 47, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(193, 141, 92, 0.14), transparent 19rem),
    linear-gradient(145deg, #fffdf9 0%, #f7f1e9 100%);
  box-shadow: 0 28px 70px rgba(67, 47, 36, 0.1);
}

.virtual-persona-primary-portrait {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  background: #e9e2da;
}

.virtual-persona-portrait-nameplate {
  display: grid;
  gap: 0.28rem;
  justify-items: center;
  padding: 1rem 1.25rem 1.08rem;
  color: #fffaf4;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(209, 164, 98, 0.18), transparent 28%, transparent 72%, rgba(209, 164, 98, 0.18)),
    linear-gradient(135deg, #2f211b 0%, #4b3228 100%);
  border-bottom: 1px solid rgba(255, 244, 228, 0.18);
}

.virtual-persona-portrait-nameplate span {
  color: rgba(255, 244, 228, 0.68);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
}

.virtual-persona-portrait-nameplate strong {
  max-width: 100%;
  color: #fffdf9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.virtual-persona-portrait-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(560px, 68vh, 760px);
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(91, 65, 49, 0.06)),
    #eee7df;
}

.virtual-persona-portrait-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.virtual-persona-primary-portrait.has-effect-portrait .virtual-persona-portrait-stage {
  background: linear-gradient(150deg, #063b36, #071d22 65%, #051216);
}

.virtual-persona-primary-portrait.has-effect-portrait .virtual-persona-portrait-stage img {
  object-fit: contain;
  object-position: center;
}

.virtual-persona-portrait-label {
  position: absolute;
  top: 18px;
  left: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: #fff;
  background: rgba(38, 27, 22, 0.56);
  backdrop-filter: blur(12px);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.virtual-persona-portrait-placeholder {
  display: grid;
  gap: 8px;
  place-items: center;
  color: #8c796d;
  text-align: center;
}

.virtual-persona-portrait-placeholder span {
  font-size: 0.78rem;
}

.virtual-persona-primary-portrait figcaption {
  display: grid;
  gap: 2px;
  padding: 13px 16px;
  color: #f9f5f1;
  background: #392a23;
}

.virtual-persona-primary-portrait figcaption strong {
  font-size: 0.8rem;
}

.virtual-persona-primary-portrait figcaption span {
  color: #cdbfb7;
  font-size: 0.7rem;
}

.virtual-persona-source-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(26px, 4vw, 58px);
}

.virtual-persona-source-copy h4 {
  margin: 0.18rem 0 0.35rem;
  color: #2d211c;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.virtual-persona-source-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.virtual-persona-title-row > div > span {
  color: #9b6d4b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.virtual-persona-mbti-seal {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(126, 82, 51, 0.28);
  border-radius: 50%;
  color: #7a4b2f;
  background: rgba(255, 253, 249, 0.72);
  font-family: Georgia, serif;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 5px rgba(154, 103, 68, 0.06);
}

.virtual-persona-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 12px;
}

.virtual-persona-hero-meta span {
  border-left: 2px solid #bd855c;
  padding: 0.2rem 0.58rem;
  color: #725b4e;
  font-size: 0.76rem;
  font-weight: 850;
}

.virtual-persona-source-copy .virtual-persona-lead {
  max-width: 680px;
  color: #4d4039;
  font-size: 1rem;
  line-height: 1.85;
}

.virtual-persona-source-copy blockquote {
  margin: 18px 0 16px;
  border-left: 3px solid #b9784d;
  padding: 5px 0 5px 16px;
  color: #6d4934;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
}

.virtual-persona-prerequisites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.virtual-persona-side-reference {
  display: block;
  margin-top: 9px;
  color: #9a7d6b;
  line-height: 1.5;
}

.virtual-persona-prerequisites span {
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 850;
}

.virtual-persona-prerequisites .ready {
  color: #047857;
  background: #ecfdf5;
}

.virtual-persona-prerequisites .waiting {
  color: #92400e;
  background: #fffbeb;
}

.virtual-persona-generate-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.virtual-persona-source-copy .virtual-persona-generate-row {
  margin-top: 22px;
  border-color: rgba(121, 86, 63, 0.14);
  background: rgba(255, 255, 255, 0.56);
}

.virtual-persona-generate-row > div {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.virtual-persona-generate-row small {
  color: #64748b;
}

.virtual-persona-generate-row button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  width: auto;
  min-width: 190px;
  color: #fff;
  background: linear-gradient(135deg, #7a4b2f, #a96d45);
  font-weight: 900;
}

.virtual-persona-generate-row button.primary.is-generating {
  color: #fffaf4;
  background: linear-gradient(115deg, #4a3025, #96603e, #4a3025);
  background-size: 220% 100%;
  box-shadow: 0 12px 28px rgba(80, 49, 34, 0.2);
  opacity: 1;
  animation: virtual-persona-button-flow 3.2s ease-in-out infinite;
}

.virtual-persona-chat-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(121, 86, 63, 0.14);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.56);
}

.virtual-persona-chat-entry-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fffaf4;
  background: linear-gradient(145deg, #2e211c, #8e593a);
  box-shadow: 0 9px 22px rgba(80, 49, 34, 0.16);
}

.virtual-persona-chat-entry-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.virtual-persona-chat-entry > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.virtual-persona-chat-entry > div strong {
  color: #392820;
}

.virtual-persona-chat-entry > div small {
  color: #64748b;
  line-height: 1.45;
}

.virtual-persona-chat-entry-button {
  min-width: 132px;
  border-color: #7a4b2f;
  color: #fffaf4;
  background: #392820;
  font-weight: 900;
}

.virtual-persona-chat-entry-button:hover:not(:disabled) {
  border-color: #a96d45;
  color: #fff;
  background: #7a4b2f;
}

html.virtual-persona-chat-open,
html.virtual-persona-chat-open body {
  overflow: hidden;
  background: #17120f;
}

.virtual-persona-chat-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-width: 0;
  min-height: 100dvh;
  overflow: hidden;
  color: #fffaf4;
  background: #151311;
}

.virtual-persona-chat-screen::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.04) 0%, rgba(9, 8, 7, 0.12) 48%, rgba(9, 8, 7, 0.28) 100%),
    radial-gradient(circle at 74% 48%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.virtual-persona-chat-ambient {
  position: absolute;
  z-index: 0;
  inset: -12%;
  overflow: hidden;
  background: #151311;
}

.virtual-persona-chat-ambient img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(38px) brightness(0.68) saturate(1.55) contrast(1.04);
  transform: scale(1.12);
}

.virtual-persona-chat-exit {
  position: fixed;
  z-index: 4;
  top: 28px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 999px;
  padding: 0.68rem 1rem;
  color: #fffaf4;
  background: rgba(25, 19, 15, 0.66);
  backdrop-filter: blur(12px);
  font-weight: 850;
}

.virtual-persona-chat-exit span {
  font-size: 1.25rem;
  line-height: 1;
}

.virtual-persona-chat-exit:hover {
  border-color: rgba(255, 250, 244, 0.48);
  background: rgba(103, 62, 39, 0.72);
}

.virtual-persona-chat-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  width: 100%;
  height: 100dvh;
}

.virtual-persona-chat-portrait {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: rgba(21, 19, 17, 0.72);
}

.virtual-persona-chat-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(16, 13, 11, 0.88));
  pointer-events: none;
}

.virtual-persona-chat-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.virtual-persona-chat-portrait-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 250, 244, 0.62);
}

.virtual-persona-chat-portrait figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 4vw, 64px);
  bottom: clamp(28px, 6vh, 72px);
  display: grid;
  gap: 5px;
}

.virtual-persona-chat-portrait figcaption span {
  color: rgba(255, 250, 244, 0.62);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.virtual-persona-chat-portrait figcaption strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1;
}

.virtual-persona-chat-waveform {
  width: min(360px, 74%);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0 8px;
}

.virtual-persona-chat-waveform i {
  width: 4px;
  height: var(--wave-height);
  flex: 1 1 4px;
  max-width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8ed, rgba(255, 222, 197, 0.62));
  box-shadow: 0 0 12px rgba(255, 223, 196, 0.34);
  transform-origin: center;
  animation: virtual-persona-chat-wave var(--wave-duration) ease-in-out infinite alternate;
  animation-delay: var(--wave-delay);
}

.virtual-persona-chat-waveform i:nth-child(3n) { animation-duration: 0.73s; }
.virtual-persona-chat-waveform i:nth-child(4n) { animation-duration: 0.91s; }
.virtual-persona-chat-waveform i:nth-child(5n) { animation-duration: 0.62s; }
.virtual-persona-chat-waveform i:nth-child(7n) { animation-duration: 1.03s; }

@keyframes virtual-persona-chat-wave {
  0% { transform: scaleY(0.34); opacity: 0.58; }
  38% { transform: scaleY(1.18); opacity: 0.94; }
  67% { transform: scaleY(0.62); opacity: 0.72; }
  100% { transform: scaleY(1.62); opacity: 1; }
}

.virtual-persona-chat-console {
  display: grid;
  place-content: center;
  justify-items: center;
  min-width: 0;
  padding: 100px clamp(32px, 6vw, 96px) 64px;
  text-align: center;
  background: linear-gradient(90deg, rgba(16, 14, 13, 0.08), rgba(16, 14, 13, 0.2));
  backdrop-filter: blur(1px);
}

.virtual-persona-chat-console h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2.1rem, 4.8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.56);
}

.virtual-persona-chat-console > p:not(.eyebrow) {
  max-width: 520px;
  margin: 16px 0 36px;
  color: rgba(255, 250, 244, 0.82);
  font-size: clamp(0.9rem, 1.4vw, 1.08rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.64);
}

.virtual-persona-chat-console > small {
  margin-top: 22px;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: rgba(255, 250, 244, 0.68);
  background: rgba(12, 10, 9, 0.28);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
}

.virtual-persona-chat-microphone {
  position: relative;
  width: clamp(112px, 12vw, 148px);
  height: clamp(112px, 12vw, 148px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 250, 244, 0.2);
  border-radius: 50%;
  color: #fffaf4;
  background: linear-gradient(145deg, #96603e, #4b3023);
  box-shadow: 0 0 0 18px rgba(168, 104, 62, 0.08), 0 30px 76px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, box-shadow 240ms ease, background 240ms ease;
}

.virtual-persona-chat-microphone:hover {
  transform: scale(1.025);
  box-shadow: 0 0 0 23px rgba(168, 104, 62, 0.1), 0 34px 82px rgba(0, 0, 0, 0.46);
}

.virtual-persona-chat-microphone svg {
  width: clamp(38px, 4vw, 52px);
  height: clamp(38px, 4vw, 52px);
  fill: currentColor;
}

.virtual-persona-chat-microphone span {
  font-size: 0.88rem;
  font-weight: 900;
}

.virtual-persona-chat-screen.is-listening .virtual-persona-chat-microphone {
  background: linear-gradient(145deg, #b4233c, #63182b);
  box-shadow: 0 0 0 18px rgba(244, 63, 94, 0.11), 0 0 0 38px rgba(244, 63, 94, 0.055), 0 30px 76px rgba(0, 0, 0, 0.4);
  animation: virtual-persona-chat-pulse 1.8s ease-in-out infinite;
}

@keyframes virtual-persona-chat-pulse {
  50% { box-shadow: 0 0 0 25px rgba(244, 63, 94, 0.12), 0 0 0 52px rgba(244, 63, 94, 0.045), 0 30px 76px rgba(0, 0, 0, 0.4); }
}

.virtual-persona-button-spinner,
.virtual-persona-generation-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: virtual-persona-spin 1.4s linear infinite;
}

.virtual-persona-primary-portrait.is-persona-generating .virtual-persona-portrait-stage img {
  filter: saturate(0.72) brightness(0.62);
  transform: scale(1.012);
  transition: filter 0.5s ease, transform 4s ease;
}

.virtual-persona-generation-veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  color: #fffdf9;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(171, 112, 72, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(34, 24, 20, 0.18), rgba(34, 24, 20, 0.54));
  backdrop-filter: blur(1.5px);
}

.virtual-persona-generation-veil > strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0.04em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.virtual-persona-generation-veil > span {
  max-width: 420px;
  color: rgba(255, 250, 244, 0.82);
  font-size: 0.82rem;
  line-height: 1.6;
}

.virtual-persona-generation-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 246, 234, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 32px rgba(255, 235, 208, 0.08), 0 0 48px rgba(224, 159, 103, 0.16);
  animation: virtual-persona-orbit-breathe 3.4s ease-in-out infinite;
}

.virtual-persona-generation-orbit::before,
.virtual-persona-generation-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 246, 234, 0.25);
  border-radius: 50%;
}

.virtual-persona-generation-orbit::before { inset: 11px; }
.virtual-persona-generation-orbit::after { inset: 25px; }

.virtual-persona-generation-orbit i {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6d3a8;
  box-shadow: 0 0 13px rgba(246, 211, 168, 0.82);
  transform-origin: 48px 48px;
  animation: virtual-persona-orbit 4.8s linear infinite;
}

.virtual-persona-generation-orbit i:nth-child(1) { top: 0; left: 45px; }
.virtual-persona-generation-orbit i:nth-child(2) { top: 7px; left: 45px; animation-delay: -1.6s; }
.virtual-persona-generation-orbit i:nth-child(3) { top: 15px; left: 45px; animation-delay: -3.2s; }

.virtual-persona-generation-status {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  border: 1px solid rgba(158, 99, 62, 0.22);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.92), rgba(241, 226, 212, 0.78));
  box-shadow: 0 18px 42px rgba(80, 53, 37, 0.1);
}

.virtual-persona-generation-status header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.virtual-persona-generation-status header > div {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
}

.virtual-persona-generation-status header strong { color: #392820; }
.virtual-persona-generation-status header small {
  min-height: 2.9em;
  color: #806b5f;
  line-height: 1.45;
}
.virtual-persona-generation-status header em {
  flex: 0 0 auto;
  color: #8a5b3d;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 800;
}

.virtual-persona-generation-spinner {
  width: 24px;
  height: 24px;
  border-color: rgba(138, 91, 61, 0.18);
  border-top-color: #9a613d;
}

.virtual-persona-generation-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(103, 72, 54, 0.12);
}

.virtual-persona-generation-progress i {
  display: block;
  width: var(--persona-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c4a31, #d59b67, #7c4a31);
  background-size: 220% 100%;
  transition: width 0.65s ease;
  animation: virtual-persona-progress-flow 3s ease-in-out infinite;
}

.virtual-persona-generation-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.virtual-persona-generation-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  min-height: 76px;
  border-radius: 12px;
  padding: 9px;
  color: #98887e;
  background: rgba(255, 255, 255, 0.45);
}

.virtual-persona-generation-steps li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #8a796f;
  background: #eee6df;
  font-size: 0.68rem;
  font-weight: 900;
}

.virtual-persona-generation-steps li > div { display: grid; gap: 2px; min-width: 0; }
.virtual-persona-generation-steps li strong { font-size: 0.73rem; line-height: 1.35; }
.virtual-persona-generation-steps li small { font-size: 0.64rem; line-height: 1.35; }
.virtual-persona-generation-steps li.active { color: #6b422c; background: #fffaf4; box-shadow: 0 7px 18px rgba(91, 57, 37, 0.08); }
.virtual-persona-generation-steps li.active > span { color: #fff; background: #9a613d; animation: virtual-persona-step-pulse 2.4s ease-in-out infinite; }
.virtual-persona-generation-steps li.done { color: #52705c; }
.virtual-persona-generation-steps li.done > span { color: #fff; background: #5e8068; }

.virtual-persona-generation-dossier {
  overflow: hidden;
  border: 1px solid rgba(99, 72, 55, 0.14);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 32px);
  background: #f8f3ec;
}

.virtual-persona-generation-dossier > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.virtual-persona-generation-dossier > header div { display: grid; gap: 5px; }
.virtual-persona-generation-dossier > header span { color: #9b6d4b; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em; }
.virtual-persona-generation-dossier > header strong { color: #392820; font-family: Georgia, "Songti SC", serif; font-size: clamp(1.25rem, 2vw, 1.85rem); }
.virtual-persona-generation-dossier > header em { color: #9a613d; font-family: Georgia, serif; font-size: 1.4rem; font-style: normal; font-weight: 800; }

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

.virtual-persona-generation-skeleton article {
  display: grid;
  gap: 12px;
  min-height: 150px;
  border: 1px solid rgba(103, 76, 58, 0.1);
  border-radius: 6px 18px 18px 18px;
  padding: 20px;
  background: rgba(255, 254, 251, 0.8);
}

.virtual-persona-generation-skeleton article.wide { grid-column: 1 / -1; }
.virtual-persona-generation-skeleton article > span { color: #b38565; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.12em; }
.virtual-persona-generation-skeleton article i {
  display: block;
  width: 100%;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(100deg, #eee3d9 20%, #fbf7f2 42%, #eee3d9 64%);
  background-size: 240% 100%;
  animation: virtual-persona-skeleton-flow 2.8s ease-in-out infinite;
}
.virtual-persona-generation-skeleton article i:nth-of-type(2) { width: 82%; }
.virtual-persona-generation-skeleton article i:nth-of-type(3) { width: 64%; }
.virtual-persona-generation-skeleton article i:nth-of-type(4) { width: 73%; }

@keyframes virtual-persona-spin { to { transform: rotate(360deg); } }
@keyframes virtual-persona-orbit { to { transform: rotate(360deg); } }
@keyframes virtual-persona-orbit-breathe { 50% { transform: scale(1.06); box-shadow: inset 0 0 38px rgba(255, 235, 208, 0.13), 0 0 62px rgba(224, 159, 103, 0.24); } }
@keyframes virtual-persona-button-flow { 50% { background-position: 100% 0; } }
@keyframes virtual-persona-progress-flow { 50% { background-position: 100% 0; } }
@keyframes virtual-persona-step-pulse { 50% { box-shadow: 0 0 0 7px rgba(154, 97, 61, 0.12); } }
@keyframes virtual-persona-skeleton-flow { 50% { background-position: 100% 0; } }

.virtual-persona-empty,
.virtual-persona-disclosure {
  border: 1px dashed #c4b5fd;
  border-radius: 18px;
  padding: 22px;
  color: #5b21b6;
  background: #faf8ff;
  text-align: center;
}

.virtual-persona-empty p,
.virtual-persona-disclosure p {
  margin: 0.45rem auto 0;
  max-width: 900px;
  color: #64748b;
  line-height: 1.65;
}

.virtual-persona-disclosure span {
  margin-left: 8px;
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 850;
}

.virtual-persona-disclosure {
  border-style: solid;
  border-color: rgba(142, 104, 78, 0.18);
  color: #694731;
  background: #fbf7f1;
  text-align: left;
}

.virtual-persona-disclosure p {
  margin-left: 0;
}

.virtual-persona-notebook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: clamp(20px, 3.4vw, 46px);
  border: 1px solid rgba(63, 49, 39, 0.24);
  border-radius: 4px;
  background:
    radial-gradient(circle at 10% 5%, rgba(134, 94, 60, 0.055), transparent 28rem),
    #f4eedf;
  box-shadow: 0 30px 70px rgba(62, 48, 37, 0.16);
}

.virtual-persona-newspaper-masthead {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  border-top: 5px double #29231f;
  border-bottom: 5px double #29231f;
  padding: 14px 4px 12px;
}

.virtual-persona-newspaper-masthead > div {
  display: grid;
  gap: 1px;
  text-align: center;
}

.virtual-persona-newspaper-masthead h2 {
  margin: 0;
  color: #201c19;
  font-family: "Songti SC", "SimSun", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 0.98;
}

.virtual-persona-newspaper-masthead span,
.virtual-persona-newspaper-masthead small {
  color: #6e5d50;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.virtual-persona-newspaper-masthead > p {
  display: grid;
  gap: 3px;
  margin: 0;
  min-width: 150px;
  color: #332b25;
  text-align: right;
}

.virtual-persona-newspaper-masthead > p strong { font-family: Georgia, serif; font-size: 0.9rem; }
.virtual-persona-newspaper-masthead > p span { letter-spacing: 0; }

.virtual-persona-newspaper-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(24px, 4vw, 54px);
  border-bottom: 3px solid #29231f;
  padding-bottom: 30px;
}

.virtual-persona-newspaper-lead figure,
.virtual-persona-newspaper-photo {
  min-width: 0;
  margin: 0;
}

.virtual-persona-newspaper-lead figure img {
  display: block;
  width: 100%;
  height: clamp(420px, 55vw, 720px);
  border: 1px solid rgba(44, 35, 29, 0.3);
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82) contrast(1.04);
}

.virtual-persona-newspaper-lead figure.has-effect-portrait img {
  object-fit: contain;
  object-position: center;
  background: #101517;
}

.virtual-persona-newspaper-lead figcaption,
.virtual-persona-newspaper-photo figcaption {
  margin-top: 8px;
  color: #685b51;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 0.72rem;
  line-height: 1.55;
}

.virtual-persona-newspaper-lead article {
  align-self: center;
  min-width: 0;
}

.virtual-persona-newspaper-kicker {
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid #302822;
  padding: 0.3rem 0.58rem;
  color: #302822;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.virtual-persona-newspaper-lead h3 {
  margin: 0;
  color: #201c19;
  font-family: "Songti SC", "SimSun", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.virtual-persona-newspaper-deck {
  margin: 18px 0 8px;
  color: #54483f;
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.65;
}

.virtual-persona-newspaper-byline {
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(48, 40, 34, 0.28);
  padding-bottom: 12px;
  color: #8a342d;
  font-size: 0.72rem;
  font-weight: 850;
}

.virtual-persona-newspaper-lead-copy,
.virtual-persona-newspaper-story {
  color: #403731;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 0.94rem;
  line-height: 1.92;
  text-align: justify;
}

.virtual-persona-newspaper-lead-copy::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: #8a342d;
  font-size: 3.5em;
  font-weight: 900;
  line-height: 0.8;
}

.virtual-persona-newspaper-lead blockquote {
  margin: 22px 0 0;
  border-top: 1px solid #3a302a;
  border-bottom: 1px solid #3a302a;
  padding: 15px 8px;
  color: #7d302a;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

.virtual-persona-newspaper-visuals {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) repeat(2, minmax(220px, 1.05fr));
  gap: 18px;
  border-bottom: 3px solid #29231f;
  padding: 24px 0;
}

.virtual-persona-newspaper-photo img {
  display: block;
  width: 100%;
  height: 300px;
  border: 1px solid rgba(44, 35, 29, 0.28);
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.25) sepia(0.08);
}

.virtual-persona-newspaper-photo figcaption {
  display: grid;
  gap: 2px;
}

.virtual-persona-newspaper-photo figcaption strong { color: #2b2521; }

.virtual-persona-newspaper-illustration {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(47, 37, 30, 0.34);
  padding: 22px;
  color: #fffaf0;
  background: #5a4a3e;
  isolation: isolate;
}

.virtual-persona-newspaper-illustration > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.04);
}

.virtual-persona-newspaper-illustration::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 18, 16, 0.08) 18%, rgba(21, 18, 16, 0.84) 100%);
}

.virtual-persona-newspaper-illustration.is-location { background: linear-gradient(145deg, #334650, #7c6755); }
.virtual-persona-newspaper-illustration.is-education { background: linear-gradient(145deg, #6f332f, #9b7150); }
.virtual-persona-newspaper-illustration > span { margin-bottom: auto; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.16em; }
.virtual-persona-newspaper-illustration > strong { overflow-wrap: anywhere; font-family: "Songti SC", "SimSun", serif; font-size: clamp(2rem, 3vw, 3.7rem); line-height: 1; }
.virtual-persona-newspaper-illustration > small { margin-top: 8px; color: rgba(255, 250, 240, 0.72); font-size: 0.7rem; }
.virtual-persona-newspaper-illustration > p { margin: 16px 0 0; border-top: 1px solid rgba(255, 250, 240, 0.28); padding-top: 12px; font-family: "Songti SC", "SimSun", serif; font-size: 0.78rem; line-height: 1.65; }

.virtual-persona-note {
  position: relative;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(48, 40, 34, 0.34);
  padding: 26px 24px;
  background: transparent;
  box-shadow: none;
}

.virtual-persona-note:nth-of-type(even) { border-left: 1px solid rgba(48, 40, 34, 0.34); }

.virtual-persona-note-wide {
  grid-column: 1 / -1;
}

.virtual-persona-note-index {
  display: block;
  margin-bottom: 7px;
  color: #ae7954;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.virtual-persona-note h5 {
  margin: 0 0 15px;
  color: #332620;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.virtual-persona-note h6 {
  margin: 16px 0 7px;
  color: #725b4e;
  font-size: 0.78rem;
}

.virtual-persona-note p {
  margin: 0.45rem 0 0;
  color: #665951;
  line-height: 1.86;
  text-align: justify;
}

.virtual-persona-note-content {
  background: rgba(107, 50, 44, 0.055);
}

.virtual-persona-note .virtual-persona-facts div,
.virtual-persona-note .virtual-persona-public-figures > div,
.virtual-persona-note .virtual-persona-pets > div {
  background: rgba(255, 253, 246, 0.5);
  border-radius: 0;
  border-top: 1px solid rgba(60, 48, 39, 0.18);
}

.virtual-persona-note .virtual-persona-tags span {
  color: #674b3a;
  background: #efe4d8;
}

.virtual-persona-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.virtual-persona-facts div {
  min-width: 0;
  border-radius: 12px;
  padding: 9px 10px;
  background: #f8fafc;
}

.virtual-persona-facts dt {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
}

.virtual-persona-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
}

.virtual-persona-mbti-mark {
  display: inline-grid;
  place-items: center;
  min-width: 82px;
  min-height: 54px;
  margin: 0 12px 10px 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #5b5dfc);
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.virtual-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.virtual-persona-tags span {
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  color: #475569;
  background: #eef2f7;
  font-size: 0.74rem;
  font-weight: 750;
}

.virtual-persona-empty-value {
  color: #94a3b8;
  font-size: 0.8rem;
}

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

.virtual-persona-public-figures,
.virtual-persona-pets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.virtual-persona-public-figures > div,
.virtual-persona-pets > div {
  border-radius: 13px;
  padding: 10px;
  background: #f8fafc;
}

.virtual-persona-public-figures small,
.virtual-persona-pets span {
  display: block;
  margin-top: 2px;
  color: #7c3aed;
  font-size: 0.7rem;
  font-weight: 800;
}

.virtual-persona-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.virtual-persona-timeline li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
}

.virtual-persona-timeline li > span {
  color: #7c3aed;
  font-size: 0.76rem;
  font-weight: 900;
}

.virtual-persona-timeline li > div {
  position: relative;
  border-left: 2px solid #ddd6fe;
  padding: 0 0 8px 14px;
}

.virtual-persona-timeline li > div::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c3aed;
}

.virtual-persona-timeline small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
}

@media (max-width: 1180px) {
  .virtual-persona-source {
    grid-template-columns: 1fr;
  }

  .virtual-persona-primary-portrait {
    max-width: 620px;
    margin: 22px auto 0;
    border-radius: 20px;
    overflow: hidden;
  }

  .virtual-persona-portrait-stage {
    height: min(720px, 72vh);
  }

  .virtual-persona-newspaper-lead {
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  }

  .virtual-persona-newspaper-visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .virtual-persona-newspaper-illustration.is-education {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .virtual-persona-source-copy {
    padding: 24px 18px;
  }

  .virtual-persona-portrait-stage {
    height: min(520px, 70vh);
  }

  .virtual-persona-title-row,
  .virtual-persona-generate-row {
    align-items: stretch;
    flex-direction: column;
  }

  .virtual-persona-chat-entry {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .virtual-persona-chat-entry-icon {
    width: 44px;
    height: 44px;
  }

  .virtual-persona-chat-entry-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .virtual-persona-chat-exit {
    top: 14px;
    right: 14px;
  }

  .virtual-persona-chat-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 43dvh) minmax(0, 57dvh);
  }

  .virtual-persona-chat-console {
    padding: 42px 20px 24px;
  }

  .virtual-persona-chat-console h1 {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
  }

  .virtual-persona-chat-console > p:not(.eyebrow) {
    margin: 10px 0 24px;
  }

  .virtual-persona-chat-microphone {
    width: min(24dvh, 132px);
    height: min(24dvh, 132px);
  }

  .virtual-persona-chat-portrait figcaption {
    left: 20px;
    bottom: 18px;
  }

  .virtual-persona-chat-waveform {
    width: min(280px, 72vw);
    height: 38px;
    gap: 3px;
    margin: 3px 0 5px;
  }

  .virtual-persona-generate-row button.primary {
    width: 100%;
    min-width: 0;
  }

  .virtual-persona-generation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .virtual-persona-generation-skeleton {
    grid-template-columns: 1fr;
  }

  .virtual-persona-generation-skeleton article.wide {
    grid-column: auto;
  }

  .virtual-persona-notebook {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .virtual-persona-newspaper-masthead {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .virtual-persona-newspaper-masthead > p {
    display: flex;
    justify-content: space-between;
    text-align: left;
  }

  .virtual-persona-newspaper-lead,
  .virtual-persona-newspaper-visuals {
    grid-template-columns: 1fr;
  }

  .virtual-persona-newspaper-lead figure img {
    height: min(620px, 76vh);
  }

  .virtual-persona-newspaper-illustration.is-education {
    grid-column: auto;
  }

  .virtual-persona-note {
    padding: 22px 8px;
  }

  .virtual-persona-note:nth-of-type(even) {
    border-left: 0;
  }

  .virtual-persona-note-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .virtual-persona-generate-row button.primary.is-generating,
  .virtual-persona-button-spinner,
  .virtual-persona-generation-spinner,
  .virtual-persona-generation-orbit,
  .virtual-persona-generation-orbit i,
  .virtual-persona-generation-progress i,
  .virtual-persona-generation-steps li.active > span,
  .virtual-persona-generation-skeleton article i,
  .pose-generation-orbit,
  .pose-generation-orbit i,
  .pose-reference-card-shell.is-generating .pose-reference-card,
  .pose-card-status.is-generating i,
  .viral-video-archive-analysis-track i,
  .viral-video-archive-analysis-meta i,
  .makeover-generation-mask::before,
  .makeover-generation-mask-orbit > i,
  .makeover-generation-mask-steps li.active > i {
    animation: none;
  }

  .makeover-generation-mask-progress > i {
    transition: none;
  }

  .virtual-persona-chat-screen.is-listening .virtual-persona-chat-microphone {
    animation: none;
  }

  .virtual-persona-chat-waveform i {
    animation: none;
    transform: scaleY(0.78);
  }
}
