:root {
  color-scheme: dark;
  font-family: "IBM Plex Sans", sans-serif;
  --bg: #111111;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 249, 240, 0.92);
  --muted: rgba(255, 249, 240, 0.62);
  --accent: #d8b16d;
  --danger: #ff7a66;
  --success: #87d38a;
  --warning: #f0c86a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 177, 109, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(135, 211, 138, 0.08), transparent 22%),
    var(--bg);
  color: var(--text);
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  transition: grid-template-columns 220ms ease;
}

.app-shell.is-rail-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.app-rail {
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: padding 220ms ease;
}

.rail-toggle {
  position: absolute;
  top: 24px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.96);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rail-toggle:hover {
  border-color: rgba(216, 177, 109, 0.55);
  background: rgba(31, 28, 22, 0.98);
  transform: scale(1.05);
}

.rail-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brand-lockup h1,
.topbar h2,
.headline {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-lockup h1 {
  font-size: 32px;
}

.topbar h2 {
  font-size: 30px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.subcopy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.nav-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
  min-height: 48px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-item-short {
  display: none;
}

.nav-item:hover,
.nav-item.is-active {
  transform: translateX(3px);
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.rail-note {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(216, 177, 109, 0.14), rgba(255, 255, 255, 0.02));
}

.rail-note p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rail-note strong {
  font-size: 32px;
  font-family: "Space Grotesk", sans-serif;
}

.app-shell.is-rail-collapsed .app-rail {
  padding: 28px 14px;
  align-items: center;
  gap: 22px;
}

.app-shell.is-rail-collapsed .brand-lockup {
  width: 100%;
  padding-top: 22px;
  text-align: center;
}

.app-shell.is-rail-collapsed .brand-lockup .eyebrow,
.app-shell.is-rail-collapsed .brand-lockup .subcopy,
.app-shell.is-rail-collapsed .nav-item-label,
.app-shell.is-rail-collapsed .rail-note p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell.is-rail-collapsed .brand-lockup h1 {
  margin: 0 auto;
  width: 36px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.app-shell.is-rail-collapsed .brand-lockup h1::first-letter {
  color: var(--accent);
}

.app-shell.is-rail-collapsed .nav-cluster {
  width: 100%;
  align-items: center;
}

.app-shell.is-rail-collapsed .nav-item {
  width: 52px;
  height: 52px;
  justify-content: center;
  padding: 0;
  border-radius: 18px;
  font-weight: 700;
}

.app-shell.is-rail-collapsed .nav-item-short {
  display: block;
  font-size: 14px;
}

.app-shell.is-rail-collapsed .nav-item:hover,
.app-shell.is-rail-collapsed .nav-item.is-active {
  transform: translateY(-2px);
}

.app-shell.is-rail-collapsed .rail-note {
  width: 52px;
  min-height: 52px;
  padding: 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.app-shell.is-rail-collapsed .rail-note strong {
  font-size: 20px;
}

.app-main {
  min-width: 0;
}

.topbar {
  padding: 28px 36px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.topbar-user span {
  color: var(--text);
  font-weight: 700;
}

.topbar-user small {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
}

.ghost-action,
.primary-action {
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ghost-action {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.ghost-action:hover,
.primary-action:hover {
  border-color: rgba(216, 177, 109, 0.55);
  transform: translateY(-1px);
}

.primary-action {
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #16110a;
  font-weight: 700;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid #e2e6ec;
  border-radius: 18px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.18);
}

.login-panel h1 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  letter-spacing: 0;
  color: #172033;
}

.login-panel .eyebrow {
  color: #9a6b1e;
}

.login-panel .subcopy {
  color: #667085;
}

.login-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #f8fafc;
  color: #172033;
  padding: 0 14px;
  font: inherit;
}

.login-form input:focus {
  outline: 3px solid rgba(193, 139, 50, 0.16);
  border-color: #b47b22;
  background: #ffffff;
}

.form-error {
  margin: 0;
  color: var(--danger);
  line-height: 1.5;
}

.password-change-form {
  display: grid;
  gap: 16px;
}

.password-change-form label {
  display: grid;
  gap: 8px;
  color: #475467;
  font-weight: 600;
}

.password-change-form input {
  min-height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  color: #172033;
  font: inherit;
}

.password-change-form input:focus {
  outline: 3px solid rgba(193, 139, 50, 0.16);
  border-color: #b47b22;
}

.page-shell {
  padding: 24px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rise-in 420ms ease backwards;
}

.section-shell,
.action-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-shell .el-tabs__item:not(.is-active) {
  color: var(--muted);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.collapsible-tab,
.collapsible-subtab,
.collapsible-row-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.collapsible-tab {
  margin-bottom: 18px;
}

.section-shell.is-collapsed .collapsible-tab,
.collapsible-panel.is-collapsed .collapsible-subtab,
.collapsible-panel.is-collapsed .stage-run-header {
  margin-bottom: 0;
}

.collapsible-subtab {
  margin-bottom: 14px;
}

.stage-run-header {
  align-items: center;
  margin-bottom: 10px;
}

.stage-run-header .collapsible-row-trigger {
  width: auto;
  flex: 1 1 auto;
}

.collapsible-row-trigger {
  align-items: center;
  min-width: 0;
}

.collapsible-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collapsible-tab .headline {
  display: block;
}

.collapsible-row-title {
  color: var(--text);
  font-weight: 600;
}

.collapsible-row-trigger > .meta-line {
  flex: 1 1 auto;
}

.collapsible-tab:focus-visible,
.collapsible-subtab:focus-visible,
.collapsible-row-trigger:focus-visible {
  outline: 2px solid rgba(216, 177, 109, 0.78);
  outline-offset: 4px;
}

.collapsible-tab:hover .headline,
.collapsible-subtab:hover .collapsible-row-title,
.collapsible-row-trigger:hover strong {
  color: var(--accent);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.buyer-rejection-row {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  background: #f8fafc;
}

.headline {
  font-size: 28px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
}

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

.metric {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.metric p {
  margin: 0 0 8px;
  color: var(--muted);
}

.metric strong {
  font-size: 26px;
  font-family: "Space Grotesk", sans-serif;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sticky-column {
  position: sticky;
  top: 24px;
  align-self: start;
}

.list-stack,
.soft-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-row {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.public-url-panel {
  display: grid;
  gap: 10px;
}

.public-reply-panel {
  display: grid;
  gap: 12px;
}

.public-url-text {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #a8d4ff;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  user-select: text;
  overflow-wrap: anywhere;
  white-space: normal;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  line-height: 1;
}

.status-badge[data-tone="neutral"] {
  color: rgba(255, 249, 240, 0.72);
}

.status-badge[data-tone="progress"] {
  color: var(--accent);
}

.status-badge[data-tone="warning"] {
  color: var(--warning);
}

.status-badge[data-tone="danger"] {
  color: var(--danger);
}

.status-badge[data-tone="success"] {
  color: var(--success);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.project-form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-band.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.select-option-meta {
  float: right;
  max-width: 260px;
  overflow: hidden;
  color: #8a90a6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-panel {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
}

.action-group {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.action-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.seller-final-review-preview {
  max-height: 260px;
  margin: 12px 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.seller-final-source {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.buyer-submission-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.buyer-submission-panel h5 {
  margin: 0;
  font-size: 14px;
}

.buyer-submission-descriptions {
  overflow: hidden;
  border-radius: 8px;
}

.buyer-submission-descriptions .el-descriptions__label {
  width: 96px;
  color: var(--text-muted);
}

.buyer-submission-descriptions .el-descriptions__content {
  white-space: pre-wrap;
  word-break: break-word;
}

.buyer-submission-image-groups {
  display: grid;
  gap: 14px;
}

.buyer-submission-image-group h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
}

.buyer-submission-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}

.buyer-submission-image {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
  word-break: break-word;
}

.buyer-submission-image img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-subtle);
}

.seller-final-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 16px;
}

.seller-final-inputs h5 {
  margin: 0;
  font-size: 14px;
}

.seller-final-inputs dl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}

.seller-final-inputs dt {
  color: var(--text-muted);
}

.seller-final-inputs dd {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.seller-final-technical-inputs {
  padding-top: 10px;
  border-top: 1px solid var(--border-muted);
}

.action-panel-header h3 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

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

.asset-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.asset-item {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.workbench-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216, 177, 109, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.workbench-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 177, 109, 0.55), transparent);
}

.workbench-hero .hero-band {
  align-items: stretch;
}

.workbench-hero .metric-strip {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.workbench-assets {
  background: rgba(255, 255, 255, 0.025);
}

.workbench-assets > .collapsible-tab {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reverse-assets {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.reverse-section {
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reverse-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.reverse-section .collapsible-subtab {
  align-items: center;
}

.reverse-section-title {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.reverse-section-count {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.reverse-asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.reverse-asset-grid--video {
  grid-template-columns: minmax(0, 1fr);
}

.reverse-asset-grid--prompts {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.reverse-asset-item {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.018);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.reverse-asset-item:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 177, 109, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.02);
}

.reverse-asset-item[data-tone="video"] .asset-preview,
.reverse-asset-item[data-tone="video"] .asset-fallback {
  min-height: 120px;
  max-height: 240px;
  object-fit: contain;
}

.reverse-asset-item[data-tone="image"] .asset-preview,
.reverse-asset-item[data-tone="image"] .asset-fallback {
  aspect-ratio: 4 / 3;
}

.asset-text-preview {
  min-height: 170px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-panel {
  position: relative;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 177, 109, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.18);
}

.asset-text-preview.text-panel {
  margin-top: 0;
}

.text-panel p,
.asset-description {
  margin: 0;
  color: rgba(255, 249, 240, 0.82);
  line-height: 1.7;
  white-space: pre-line;
}

.text-panel p,
.text-panel .json-block {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.text-panel.is-expanded p,
.text-panel.is-expanded .json-block {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.text-panel-toggle {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.text-panel-toggle:hover,
.text-panel-toggle:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.video-prompt-display {
  margin-top: 12px;
}

.prompt-display-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.prompt-display-title span {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid rgba(216, 177, 109, 0.38);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
}

.video-prompt-feedback {
  border-color: rgba(216, 177, 109, 0.42);
  background:
    linear-gradient(135deg, rgba(216, 177, 109, 0.18), transparent 46%),
    rgba(216, 177, 109, 0.06);
}

.video-prompt-history,
.video-prompt-original {
  background: rgba(0, 0, 0, 0.14);
}

.reverse-asset-item[data-tone="prompt"] .asset-item-copy,
.reverse-asset-item[data-tone="process"] .asset-item-copy {
  padding-top: 14px;
}

.reverse-empty {
  grid-column: 1 / -1;
  padding: 26px 18px;
  border-radius: 8px;
}

.asset-item-copy {
  padding: 16px;
}

.reference-upload-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.upload-dropzone {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.upload-dropzone p {
  margin: 0;
  color: var(--muted);
}

.upload-input {
  display: none;
}

.inline-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  background: var(--panel);
  font-size: 13px;
  cursor: pointer;
}

.inline-upload-button:hover {
  border-color: var(--primary);
}

.asset-preview,
.asset-fallback {
  min-height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(216, 177, 109, 0.22), rgba(255, 255, 255, 0.04));
}

.asset-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.json-block {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 249, 240, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.6;
}

.text-panel .json-block {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.el-dialog {
  --el-dialog-bg-color: #171717;
  --el-dialog-border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.el-dialog__title,
.el-dialog__body {
  color: var(--text);
}

.el-dialog__headerbtn .el-dialog__close {
  color: var(--muted);
}

.el-dialog__headerbtn:hover .el-dialog__close {
  color: var(--text);
}

.surface-table .el-table,
.surface-table .el-table__inner-wrapper::before {
  background: transparent;
}

.surface-table .el-table th.el-table__cell,
.surface-table .el-table td.el-table__cell {
  background: transparent;
}

.surface-table .el-table tr {
  background: transparent;
}

.surface-table .el-table .cell {
  color: var(--text);
}

.surface-table .el-table__header-wrapper th {
  color: var(--muted);
  font-weight: 500;
}

.surface-table .el-table td,
.surface-table .el-table th {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.surface-table .el-table {
  --el-table-row-hover-bg-color: transparent;
  --el-table-current-row-bg-color: transparent;
}

.surface-table .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell,
.surface-table .el-table__body tr.hover-row > td.el-table__cell {
  background-color: transparent !important;
}

.surface-table .el-table__body tr,
.surface-table .el-table__body td.el-table__cell {
  transition: none !important;
}

.surface-table .el-table__body tr:hover,
.surface-table .el-table__body tr.hover-row,
.surface-table .el-table__body tr.current-row {
  background-color: transparent !important;
  filter: none !important;
}

.surface-table .el-table__body tr:hover > td.el-table__cell,
.surface-table .el-table__body tr.hover-row > td.el-table__cell,
.surface-table .el-table__body tr.current-row > td.el-table__cell {
  background-color: transparent !important;
  background-image: none !important;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 22px;
}

.public-app-shell {
  min-height: 100vh;
  background: #f7f8fb;
  color: #172033;
}

.taobao-public-page {
  --taobao-violet: #5b5bf2;
  --taobao-violet-soft: #eef0ff;
  --taobao-border: #e5e7f2;
  min-height: 100vh;
  padding: 16px 0 120px;
  background: #f2f3f8;
  color: #1f2433;
}

.taobao-phone {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 14px;
}

.taobao-topbar {
  text-align: center;
  padding: 6px 0 2px;
}

.taobao-topbar h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1f2433;
}

.taobao-order-no {
  margin: 4px 0 0;
  color: #8a90a6;
  font-size: 12px;
}

.taobao-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(31, 36, 51, 0.05);
}

.taobao-stepper li {
  color: #9aa0b4;
  font-size: 12px;
  white-space: nowrap;
}

.taobao-step-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.taobao-step-button:focus-visible {
  outline: 2px solid rgba(80, 82, 255, 0.35);
  outline-offset: 3px;
  border-radius: 999px;
}

.taobao-step-index {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #d4d7e4;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.taobao-stepper li.is-active {
  color: var(--taobao-violet);
  font-weight: 700;
}

.taobao-stepper li.is-active .taobao-step-index {
  background: var(--taobao-violet);
}

.taobao-card {
  padding: 16px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(31, 36, 51, 0.05);
}

.taobao-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.taobao-card-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2433;
}

.taobao-card-title em {
  margin-left: auto;
  color: #9aa0b4;
  font-size: 12px;
  font-style: normal;
}

.taobao-card-no {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--taobao-violet);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.taobao-required {
  color: #d93025;
  font-weight: 700;
}

.taobao-card-sub {
  margin: 8px 0 14px;
  color: #8a90a6;
  font-size: 12px;
  line-height: 1.5;
}

.taobao-card-hint {
  margin: 12px 0 0;
  color: #9aa0b4;
  font-size: 12px;
  line-height: 1.5;
}

.taobao-sub-label {
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5066;
}

.taobao-category-select {
  width: 100%;
}

.taobao-category-select--secondary {
  margin-top: 10px;
}

.taobao-category-select .el-select__wrapper {
  min-height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--taobao-border) inset;
  font-size: 15px;
}

.taobao-category-select .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--taobao-violet) inset;
}

.taobao-file-input {
  display: none;
}

.taobao-upload-sections {
  display: grid;
  gap: 14px;
}

.taobao-upload-section {
  padding: 14px;
  border: 1px solid #e6e8f1;
  border-radius: 12px;
  background: #fbfbfd;
}

.taobao-upload-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.taobao-upload-section-header strong {
  color: #22263a;
  font-size: 14px;
}

.taobao-upload-section-header p {
  margin: 5px 0 0;
  color: #8a90a6;
  font-size: 12px;
}

.taobao-upload-side-hint {
  margin-left: 6px;
  color: #777e96;
  font-size: 12px;
  font-weight: 400;
}

.taobao-upload-side-count {
  flex: 0 0 auto;
  color: #777e96;
  font-size: 12px;
}

.taobao-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.taobao-upload-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f3f8;
}

.taobao-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.taobao-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 36, 51, 0.55);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.taobao-upload-add {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px dashed #c7cbdb;
  border-radius: 10px;
  background: #f8f9fc;
  color: #9aa0b4;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.taobao-upload-add:hover:not(:disabled) {
  border-color: var(--taobao-violet);
  color: var(--taobao-violet);
}

.taobao-upload-add:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.taobao-upload-side-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(31, 36, 51, 0.68);
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
}

.taobao-sku-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.taobao-sku-status {
  color: #656b7f;
  font-size: 12px;
  line-height: 1.5;
}

.taobao-upload-plus {
  font-size: 26px;
  line-height: 1;
}

.taobao-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.taobao-pill {
  position: relative;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--taobao-border);
  border-radius: 10px;
  background: #ffffff;
  color: #4a5066;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.taobao-pill.is-selected {
  border-color: var(--taobao-violet);
  background: var(--taobao-violet-soft);
  color: var(--taobao-violet);
  font-weight: 600;
}

.taobao-pill.is-selected::after {
  content: "✓";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 0 10px 0 10px;
  background: var(--taobao-violet);
  color: #ffffff;
  font-size: 11px;
}

.taobao-fixed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f6fb;
  color: #6b7186;
  font-size: 13px;
}

.taobao-select-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #565c70;
  font-size: 13px;
  font-weight: 600;
}

.taobao-ai-tag {
  margin: 0 0 12px;
  color: var(--taobao-violet);
  font-size: 13px;
  font-weight: 600;
}

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

.taobao-template-card {
  display: grid;
  gap: 6px;
  padding: 0 0 12px;
  border: 1px solid var(--taobao-border);
  border-radius: 12px;
  background: #ffffff;
  color: #1f2433;
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease;
}

.taobao-template-card.is-selected {
  border-color: var(--taobao-violet);
}

.taobao-template-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #e6e7fb, #cfd2f4);
  color: #ffffff;
}

.taobao-template-card.is-selected .taobao-template-thumb::before {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--taobao-violet);
  font-size: 12px;
}

.taobao-template-play {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--taobao-violet);
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.taobao-template-play:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.95);
}

.taobao-template-play--disabled {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

.taobao-template-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(31, 36, 51, 0.6);
  font-size: 11px;
}

.taobao-template-card strong {
  padding: 0 10px;
  font-size: 14px;
}

.taobao-template-scene {
  padding: 0 10px;
  color: #8a90a6;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.taobao-selling-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, 168px));
  gap: 10px;
  justify-content: start;
}

.taobao-selling-grid--custom {
  margin-top: 10px;
}

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

.taobao-selling-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--taobao-border);
  border-radius: 10px;
  background: #ffffff;
  color: #1f2433;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.taobao-selling-card strong {
  font-size: 14px;
}

.taobao-selling-card span {
  color: #8a90a6;
  font-size: 12px;
}

.taobao-selling-card.is-selected {
  border-color: var(--taobao-violet);
  background: var(--taobao-violet-soft);
}

.taobao-selling-card.is-selected strong {
  color: var(--taobao-violet);
}

.taobao-error-popover {
  display: grid;
  gap: 10px;
  color: #1f2937;
}

.taobao-error-popper.el-popper {
  --el-popover-bg-color: #ffffff;
  --el-popover-border-color: #dfe5ef;
  --el-text-color-primary: #111827;
  --el-text-color-regular: #374151;
  background: #ffffff;
  border-color: #dfe5ef;
  color: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.taobao-error-popper.el-popper .el-popper__arrow::before {
  background: #ffffff;
  border-color: #dfe5ef;
}

.taobao-error-popper .el-tag {
  color: #f56c6c;
}

.taobao-error-popover .meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #111827;
}

.taobao-error-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.taobao-error-summary {
  padding: 8px 10px;
  border: 1px solid #fee2e2;
  border-radius: 6px;
  background: #fff7f7;
  color: #7f1d1d;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}

.taobao-error-missing {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: start;
  color: #6b7280;
  font-size: 12px;
}

.taobao-error-detail {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}

.taobao-error-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
}

.taobao-error-row span {
  color: #6b7280;
}

.taobao-error-row strong {
  color: #1f2937;
  font-weight: 500;
}

.taobao-field-error {
  display: block;
  margin-top: 6px;
  color: #c2410c;
  font-size: 12px;
  line-height: 1.5;
}

.taobao-dialog-form .el-input.is-field-error .el-input__wrapper,
.taobao-dialog-form .el-textarea.is-field-error .el-textarea__inner {
  box-shadow: 0 0 0 1px #f97316 inset;
  background: #fff7ed;
}

.taobao-selling-card--ai {
  border-style: dashed;
  background: #fbfbff;
}

.taobao-selling-card--ai span {
  color: var(--taobao-violet);
}

.taobao-selling-card--custom {
  background: #f8fbff;
}

.taobao-selling-card--custom span {
  color: #4d76b8;
}

.taobao-preview-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.taobao-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.taobao-preview-item {
  display: grid;
  gap: 2px;
}

.taobao-preview-item dt {
  color: #9aa0b4;
  font-size: 12px;
}

.taobao-preview-item dd {
  margin: 0;
  color: #1f2433;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.taobao-preview-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.taobao-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #d9deea;
  border-radius: 6px;
  background: #f8faff;
  color: #172033;
  line-height: 1.25;
}

.taobao-state-panel {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(31, 36, 51, 0.05);
}

.taobao-state-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.taobao-state-panel p {
  margin: 0;
  color: #6b7186;
  line-height: 1.6;
}

.taobao-buyer-confirmation-panel {
  justify-items: stretch;
  align-content: start;
  gap: 18px;
  padding: 22px 16px 96px;
  text-align: left;
}

.taobao-buyer-confirmation-header {
  display: grid;
  gap: 6px;
}

.taobao-buyer-confirmation-header h2 {
  color: #171b2a;
  font-size: 20px;
}

.taobao-buyer-confirmation-header p {
  font-size: 14px;
}

.taobao-buyer-confirmation-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.taobao-buyer-confirmation-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8eaf4;
  border-radius: 10px;
  background: #f9faff;
}

.taobao-buyer-confirmation-meta dt {
  color: #858ca3;
  font-size: 12px;
}

.taobao-buyer-confirmation-meta dd {
  margin: 0;
  color: #171b2a;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.taobao-buyer-confirmation-form {
  display: grid;
  gap: 14px;
}

.taobao-buyer-confirmation-form label {
  display: grid;
  gap: 8px;
}

.taobao-buyer-confirmation-form label > span {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.taobao-buyer-confirmation-form .el-input__wrapper,
.taobao-buyer-confirmation-form .el-select__wrapper,
.taobao-buyer-confirmation-form .el-textarea__inner {
  border-radius: 8px;
  box-shadow: 0 0 0 1px #dce1ec inset;
}

.taobao-buyer-confirmation-form .el-select {
  width: 100%;
}

.taobao-buyer-confirmation-form .el-textarea__inner {
  min-height: 96px !important;
  line-height: 1.6;
}

.taobao-buyer-confirmation-readonly {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #e8eaf4;
  border-radius: 8px;
  background: #f9faff;
  color: #30384f;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.taobao-script-review-panel {
  justify-items: stretch;
  align-content: start;
  gap: 18px;
  padding: 22px 16px 96px;
  text-align: left;
}

.taobao-script-review-header {
  display: grid;
  gap: 6px;
}

.taobao-script-review-header h2 {
  font-size: 20px;
  color: #171b2a;
}

.taobao-script-review-header p {
  font-size: 14px;
}

.taobao-script-eyebrow {
  color: var(--taobao-violet) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.taobao-script-overview {
  display: grid;
  gap: 10px;
}

.taobao-script-summary-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e8eaf4;
  border-radius: 10px;
  background: #f9faff;
}

.taobao-script-summary-card span,
.taobao-script-section-title span,
.taobao-shot-field span,
.taobao-shot-duration span {
  color: #858ca3;
  font-size: 12px;
  line-height: 1.2;
}

.taobao-script-summary-card strong {
  color: #171b2a;
  font-size: 16px;
  line-height: 1.45;
}

.taobao-script-summary-card p {
  color: #30384f;
  font-size: 14px;
  line-height: 1.65;
}

.taobao-script-section {
  display: grid;
  gap: 12px;
}

.taobao-script-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.taobao-script-section-title h3 {
  margin: 0;
  color: #171b2a;
  font-size: 17px;
  font-weight: 700;
}

.taobao-shot-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4e7f0;
  border-radius: 12px;
  background: #ffffff;
}

.taobao-shot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.taobao-shot-index {
  color: #171b2a;
  font-size: 15px;
  font-weight: 700;
}

.taobao-shot-duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.taobao-shot-duration .el-input-number {
  width: 104px;
}

.taobao-shot-field {
  display: grid;
  gap: 7px;
}

.taobao-shot-field .el-input,
.taobao-shot-field .el-textarea,
.taobao-voiceover-item .el-textarea {
  width: 100%;
}

.taobao-shot-field .el-input__wrapper,
.taobao-shot-field .el-textarea__inner,
.taobao-voiceover-item .el-textarea__inner {
  border-radius: 8px;
  box-shadow: 0 0 0 1px #dce1ec inset;
}

.taobao-shot-field .el-textarea__inner,
.taobao-voiceover-item .el-textarea__inner {
  min-height: 74px !important;
  line-height: 1.55;
}

.taobao-voiceover-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4e7f0;
  border-radius: 12px;
  background: #ffffff;
}

.taobao-voiceover-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--taobao-violet-soft);
  color: var(--taobao-violet);
  font-size: 13px;
  font-weight: 700;
}

.taobao-result-video {
  width: min(100%, 320px);
  margin-top: 8px;
  border-radius: 12px;
  background: #0f172a;
}

.taobao-download-panel {
  width: min(100%, 320px);
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.taobao-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: #1f2433;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.taobao-download-button:hover {
  color: #ffffff;
  background: #111827;
}

.taobao-download-link {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e4e7f0;
  border-radius: 10px;
  background: #f8f9fc;
  text-align: left;
}

.taobao-download-link span {
  color: #6b7186;
  font-size: 12px;
}

.taobao-download-link input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d8deec;
  border-radius: 8px;
  background: #ffffff;
  color: #3b63f6;
  font-size: 12px;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.taobao-download-link button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #1f2433;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.taobao-submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 -6px 18px rgba(31, 36, 51, 0.08);
}

.taobao-submit-button {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  display: block;
  height: 50px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #6a5cff, #8b5cf6);
}

.taobao-submit-button.is-disabled,
.taobao-submit-button.is-disabled:hover {
  background: #c7cbdb;
}

.taobao-buyer-confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.taobao-buyer-confirmation-actions .taobao-buyer-edit-button {
  width: min(30%, 132px);
  height: 50px;
  margin: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.taobao-buyer-confirmation-actions .taobao-submit-button {
  width: min(70%, 306px);
  margin: 0;
}

.taobao-confirmation-modal {
  background: rgba(31, 36, 51, 0.56);
  backdrop-filter: blur(3px);
}

.taobao-confirmation-modal .taobao-confirmation-dialog.el-dialog,
.taobao-confirmation-dialog.el-dialog {
  --el-dialog-bg-color: #ffffff;
  --el-dialog-border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(31, 36, 51, 0.24);
  color: #1f2433;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__header,
.taobao-confirmation-dialog .el-dialog__header {
  display: none;
  padding: 0;
  margin: 0;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__title,
.taobao-confirmation-dialog .el-dialog__title {
  color: #1f2433;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__headerbtn,
.taobao-confirmation-dialog .el-dialog__headerbtn {
  top: 9px;
  right: 10px;
  width: 40px;
  height: 40px;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__headerbtn .el-dialog__close,
.taobao-confirmation-dialog .el-dialog__headerbtn .el-dialog__close {
  color: #9aa0b4;
  font-size: 18px;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__headerbtn:hover .el-dialog__close,
.taobao-confirmation-dialog .el-dialog__headerbtn:hover .el-dialog__close {
  color: #4a5066;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__body,
.taobao-confirmation-dialog .el-dialog__body {
  padding: 28px 20px 22px;
  color: #1f2433;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer,
.taobao-confirmation-dialog .el-dialog__footer {
  padding: 0 20px 20px;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .dialog-footer,
.taobao-confirmation-dialog .dialog-footer,
.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer,
.taobao-confirmation-dialog .el-dialog__footer {
  display: grid;
  grid-template-columns: repeat(2, 98px);
  justify-content: center;
  gap: 12px;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer .el-button,
.taobao-confirmation-dialog .el-dialog__footer .el-button {
  width: 98px;
  min-width: 0;
  min-height: 44px;
  margin-left: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}

.taobao-confirmation-message {
  margin: 0;
  color: #1f2433;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer .el-button--default,
.taobao-confirmation-dialog .el-dialog__footer .el-button--default {
  background: #ffffff;
  border-color: #dfe2ee;
  color: #5f667a;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer .el-button--default:hover,
.taobao-confirmation-dialog .el-dialog__footer .el-button--default:hover {
  background: #f8f9fc;
  border-color: #c9cede;
  color: #3d4355;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer .el-button--primary,
.taobao-confirmation-dialog .el-dialog__footer .el-button--primary {
  border-color: var(--taobao-violet);
  background: linear-gradient(135deg, #6a5cff, #8b5cf6);
  color: #ffffff;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer .el-button--primary:hover,
.taobao-confirmation-dialog .el-dialog__footer .el-button--primary:hover {
  border-color: #514fe8;
  background: linear-gradient(135deg, #5d50f4, #7c4df0);
}

.taobao-dialog-form {
  display: grid;
  gap: 12px;
}

.taobao-dialog-form label {
  display: grid;
  gap: 7px;
  color: #4a5066;
  font-size: 13px;
  font-weight: 600;
}

.taobao-dialog-form .el-input__wrapper,
.taobao-dialog-form .el-textarea__inner {
  min-height: 42px;
  background: #f8f9fc;
  border: 1px solid #e2e5ef;
  border-radius: 10px;
  box-shadow: none;
  color: #1f2433;
  font-size: 14px;
}

.taobao-dialog-form .el-input__wrapper:hover,
.taobao-dialog-form .el-textarea__inner:hover {
  border-color: #c9cede;
}

.taobao-dialog-form .el-input__wrapper.is-focus,
.taobao-dialog-form .el-textarea__inner:focus {
  border-color: var(--taobao-violet);
  box-shadow: none;
}

.taobao-dialog-form .el-input__inner,
.taobao-dialog-form .el-textarea__inner {
  color: #1f2433;
}

.taobao-dialog-form .el-input__inner::placeholder,
.taobao-dialog-form .el-textarea__inner::placeholder {
  color: #a4a9b8;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .taobao-preview-grid,
.taobao-confirmation-dialog .taobao-preview-grid {
  margin: 0;
  padding: 14px;
  border: 1px solid #e8eaf4;
  border-radius: 12px;
  background: #f8f9ff;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .taobao-preview-item dt,
.taobao-confirmation-dialog .taobao-preview-item dt {
  color: #8a90a6;
}

.taobao-confirmation-modal .taobao-confirmation-dialog .taobao-preview-item dd,
.taobao-confirmation-dialog .taobao-preview-item dd {
  color: var(--taobao-violet);
}

.taobao-confirmation-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .taobao-confirmation-modal .taobao-confirmation-dialog.el-dialog,
  .taobao-confirmation-dialog.el-dialog {
    width: calc(100vw - 32px) !important;
  }

  .taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer,
  .taobao-confirmation-dialog .el-dialog__footer {
    gap: 8px;
  }

  .taobao-confirmation-modal .taobao-confirmation-dialog .el-dialog__footer .el-button,
  .taobao-confirmation-dialog .el-dialog__footer .el-button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 10px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-band,
  .detail-grid,
  .metric-strip,
  .workbench-hero .metric-strip,
  .form-band,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .sticky-column {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar,
  .page-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-shell,
  .action-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .reverse-asset-grid,
  .reverse-asset-grid--prompts,
  .reverse-asset-grid--video {
    grid-template-columns: 1fr;
  }

  .reverse-section .collapsible-subtab {
    align-items: flex-start;
  }

  .reverse-section-count {
    min-width: 36px;
    height: 36px;
  }

  .reverse-asset-item[data-tone="video"] .asset-preview,
  .reverse-asset-item[data-tone="video"] .asset-fallback {
    min-height: 100px;
    max-height: 200px;
  }
}
.taobao-card.is-revision-target {
  border-color: var(--el-color-danger);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--el-color-danger) 16%, transparent);
}

.taobao-buyer-revision-banner {
  border-color: var(--el-color-danger-light-5);
  background: var(--el-color-danger-light-9);
}
