: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;
}

.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(170px, 1fr));
  gap: 12px;
}

.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 {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

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

.task-cover {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #edf1f7;
}

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

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

.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;
}

.task-body {
  display: grid;
  gap: 6px;
}

.task-body strong {
  overflow: hidden;
  color: #17202a;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.task-stats span {
  border-radius: 999px;
  padding: 0.2rem 0.44rem;
  color: #53606d;
  background: #eef2f7;
  font-size: 0.7rem;
  font-weight: 750;
}

.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;
}

.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);
}

.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-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;
}

.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: none;
}

.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-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-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-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 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(240px, 1fr) minmax(150px, 34vh);
    gap: 12px;
  }

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

.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;
}

.workbench-switch {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 4px;
  background: rgba(248, 250, 252, 0.92);
}

.workbench-switch button {
  min-height: 38px;
  border-radius: 7px;
  padding: 0.55rem 0.9rem;
  color: #5f6b78;
  background: transparent;
  box-shadow: none;
}

.workbench-switch button.active {
  color: #17202a;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 41, 55, 0.1);
}

.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;
}

.photographer-project-compact {
  min-width: 320px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.photographer-project-compact > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.photographer-project-compact > strong {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: #17202a;
  background: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.photographer-project-compact small {
  color: #7b8794;
}

.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-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 10px;
}

.viral-video-summary div {
  display: grid;
  gap: 5px;
  border-left: 1px solid #dce3eb;
  padding: 10px 16px;
}

.viral-video-summary span {
  color: #748091;
  font-size: 0.74rem;
  font-weight: 800;
}

.viral-video-summary strong {
  color: #17202a;
  font-size: 1rem;
}

.viral-video-workspace {
  display: grid;
  gap: 18px;
}

.viral-video-intro,
.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-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.viral-video-intro h2,
.viral-video-intro p,
.viral-video-card h3,
.viral-video-pipeline-card h2,
.viral-video-pipeline-card p {
  margin-top: 0;
}

.viral-video-intro h2 {
  margin-bottom: 7px;
}

.viral-video-intro > div > p:last-child {
  max-width: none;
  margin-bottom: 0;
  overflow-x: auto;
  color: #657283;
  line-height: 1.65;
  white-space: nowrap;
}

.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-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 {
  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-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-model-help {
  margin: 0;
  color: #718096;
  line-height: 1.6;
}

.viral-video-model-placeholder,
.viral-video-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  color: #708093;
  text-align: center;
}

.viral-video-model-placeholder span,
.viral-video-empty > span {
  color: #7b61ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.viral-video-model-placeholder strong,
.viral-video-empty strong {
  color: #293545;
}

.viral-video-empty p {
  margin: 0;
  color: #718096;
  line-height: 1.6;
}

.viral-video-selected-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 12px;
  align-items: start;
}

.viral-video-selected-model,
.viral-video-add-model {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid #dce3eb;
  border-radius: 14px;
  padding: 9px;
  background: #f8fafc;
}

.viral-video-selected-model > strong,
.viral-video-selected-model > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-selected-model > strong {
  color: #293545;
}

.viral-video-selected-model > small {
  color: #7b8794;
  font-size: 0.72rem;
}

.viral-video-selected-preview {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: #eef2f7;
  box-shadow: none;
}

.viral-video-selected-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.viral-video-selected-model > .danger {
  width: 100%;
  padding: 0.35rem;
  color: #a33c3c;
}

.viral-video-add-model {
  min-height: 270px;
  place-content: center;
  justify-items: center;
  color: #6851dc;
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 42%, rgba(123, 97, 255, 0.1), transparent 38%),
    #fbfaff;
  box-shadow: none;
}

.viral-video-add-model > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #c7bcff;
  border-radius: 50%;
  color: #fff;
  background: #7b61ff;
  font-size: 2rem;
  font-weight: 400;
}

.viral-video-add-model > small {
  color: #8a7ebd;
}

.viral-video-add-model:disabled {
  color: #8a94a3;
  background: #f3f5f8;
}

.viral-video-add-model:disabled > span {
  border-color: #d5dbe4;
  background: #aab3c0;
}

.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-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-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;
}

.viral-video-library-backdrop {
  z-index: 1000;
}

.viral-video-library-backdrop ~ .image-preview-backdrop {
  z-index: 1100;
}

.viral-video-library-modal {
  width: min(1180px, calc(100vw - 40px));
  max-height: min(860px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.viral-video-library-modal > header,
.viral-video-library-detail > header,
.viral-video-library-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.viral-video-library-modal > header h2,
.viral-video-library-modal > header p,
.viral-video-library-detail h3 {
  margin-top: 0;
}

.viral-video-library-modal > header h2 {
  margin-bottom: 6px;
}

.viral-video-library-modal > header p:last-child {
  margin-bottom: 0;
  color: #718096;
}

.viral-video-library-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.viral-video-library-list,
.viral-video-library-detail {
  min-height: 0;
  overflow-y: auto;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.viral-video-library-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.viral-video-library-list > span {
  margin-bottom: 4px;
  color: #7b8794;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.viral-video-library-list button {
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 12px;
  color: #526173;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.viral-video-library-list button.active {
  border-color: #9d8bff;
  color: #34276b;
  background: #f1edff;
}

.viral-video-library-list button span,
.viral-video-library-list button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-library-list button small {
  color: #7b8794;
}

.viral-video-library-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  background: #fff;
}

.viral-video-library-detail > header span,
.viral-video-library-detail > header small {
  color: #7b8794;
}

.viral-video-library-detail > header h3 {
  margin: 4px 0;
}

.viral-video-library-views {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

.viral-video-library-views button {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: grid;
  gap: 0;
  border: 1px solid #dce3eb;
  border-radius: 11px;
  padding: 0;
  color: #526173;
  background: #f8fafc;
  box-shadow: none;
}

.viral-video-library-views img {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: block;
  object-fit: cover;
  background: #eef2f7;
}

.viral-video-library-views button > span:last-child {
  overflow: hidden;
  padding: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-video-library-loading {
  min-height: 360px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px dashed #c8d2df;
  border-radius: 11px;
  color: #7b8794;
  background: #f8fafc;
  text-align: center;
}

.viral-video-library-loading strong {
  color: #344050;
}

.viral-video-library-footer {
  align-items: center;
  border-top: 1px solid #e1e7ef;
  padding-top: 14px;
}

.viral-video-library-footer span {
  color: #657283;
  font-weight: 800;
}

.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-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-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-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-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-summary {
    grid-template-columns: repeat(2, minmax(0, 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));
  }

  .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) {
  .identity-calibration-slots {
    grid-template-columns: 1fr;
  }

  .studio-shell {
    padding: 16px;
  }

  .studio-section-switch,
  .workbench-switch {
    width: 100%;
  }

  .studio-section-switch {
    justify-content: stretch;
  }

  .studio-section-switch button {
    flex: 1;
  }

  .pose-library-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .pose-library-summary div {
    padding: 8px;
  }

  .viral-video-summary div {
    padding: 8px;
  }

  .photographer-project-compact {
    min-width: 0;
  }

  .photographer-master-detail,
  .shoot-composer-layout {
    grid-template-columns: 1fr;
  }

  .viral-video-intro,
  .viral-video-pipeline-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .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-intro > div > p:last-child {
    padding-bottom: 4px;
  }

  .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-contract-note {
    grid-template-columns: 1fr;
  }

  .viral-video-contract-note p {
    grid-column: auto;
  }

  .viral-video-library-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 15px;
  }

  .viral-video-library-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .viral-video-library-list {
    max-height: 190px;
  }

  .viral-video-library-detail {
    overflow: visible;
  }

  .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 {
  align-items: start;
}

.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-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;
}

.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) {
  .photography-direction-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .photography-lighting-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .style-photographer-layout {
    grid-template-columns: 1fr;
  }

  .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) {
  .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;
  }
}

.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-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-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 { 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(4, 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;
  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 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-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 {
    animation: none;
  }
}
