:root {
  color-scheme: dark;
  --bg-dark: #0b0e12;
  --bg-panel: rgba(16, 20, 27, 0.78);
  --bg-panel-strong: #11161d;
  --bg-light: #f5f1e8;
  --bg-light-panel: rgba(255, 255, 255, 0.8);
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-light: rgba(16, 18, 22, 0.08);
  --text-strong: #f6f5ef;
  --text-mid: rgba(246, 245, 239, 0.72);
  --text-dark: #13161b;
  --text-soft: rgba(19, 22, 27, 0.62);
  --accent: #c6ff5a;
  --accent-deep: #1a2a00;
  --warm: #ffd2a8;
  --violet: #ddd0ff;
  --shadow-soft: 0 24px 80px rgba(8, 10, 14, 0.16);
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 168, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(221, 208, 255, 0.12), transparent 28%),
    var(--bg-dark);
  color: var(--text-strong);
}

body[data-ui-lang="en"] {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body[data-ui-lang="cn"] {
  font-family: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body[data-workspace-theme="light"] {
  color-scheme: light;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 168, 0.46), transparent 26%),
    radial-gradient(circle at top right, rgba(221, 208, 255, 0.36), transparent 30%),
    linear-gradient(180deg, #f8f5ed 0%, #ede7db 100%);
  color: var(--text-dark);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.workspace-shell {
  min-height: 100vh;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11, 14, 18, 0.62);
}

body[data-workspace-theme="light"] .workspace-topbar {
  border-bottom: 1px solid var(--line-light);
  background: rgba(248, 245, 237, 0.82);
}

.workspace-topbar__inner,
.workspace-main {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
}

.workspace-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.workspace-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.workspace-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #90d918);
  color: #112100;
  font-weight: 800;
}

.workspace-brand__text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.workspace-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mid);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

body[data-workspace-theme="light"] .workspace-step {
  color: var(--text-soft);
}

.workspace-step__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(198, 255, 90, 0.14);
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}

body[data-workspace-theme="light"] .lang-switch {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.72);
}

.lang-btn {
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.66;
}

.lang-btn.active {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent), #a6e838);
  color: var(--accent-deep);
}

.workspace-main {
  padding: 42px 0 56px;
}

.hero-band {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-band__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-band__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-band__copy {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.stage-shell {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-deep);
}

body[data-workspace-theme="light"] .stage-shell {
  border-color: var(--line-light);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow-soft);
}

.stage-shell--light {
  overflow: hidden;
  position: relative;
}

.stage-shell--light::before,
.stage-shell--light::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.stage-shell--light::before {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  background: rgba(221, 208, 255, 0.42);
  filter: blur(12px);
}

.stage-shell--light::after {
  width: 180px;
  height: 180px;
  bottom: -50px;
  left: -24px;
  background: rgba(255, 210, 168, 0.46);
  filter: blur(16px);
}

.panel-grid {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.panel-grid--create {
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
}

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

.wizard-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 4px;
  align-items: center;
}

.wizard-rail__btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-mid);
}

body[data-workspace-theme="light"] .wizard-rail__btn {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-soft);
}

.wizard-rail__btn.is-active {
  border-color: rgba(198, 255, 90, 0.45);
  background: rgba(198, 255, 90, 0.14);
  color: var(--text-strong);
}

body[data-workspace-theme="light"] .wizard-rail__btn.is-active {
  border-color: rgba(90, 110, 40, 0.35);
  background: rgba(198, 255, 90, 0.22);
  color: var(--text-dark);
}

.wizard-rail__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.wizard-rail__btn:not(:disabled):not(.is-active) {
  cursor: pointer;
}

.upload-zone--compact {
  min-height: 120px;
}

.wizard-nav-row {
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.panel-grid--confirm {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.78fr);
}

/* Confirm step: main column (choices + summary) + sticky live rail */
.panel-grid--confirm-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  align-items: start;
}

.confirm-col--full {
  grid-column: 1 / -1;
}

.confirm-col--live {
  position: sticky;
  top: 88px;
  align-self: start;
}

.analysis-live-panel--compact .live-head {
  margin-bottom: 8px;
}

.analysis-live-panel--compact .live-head .surface__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.analysis-live-panel--compact .live-stage__title {
  font-size: 1.05rem;
}

.analysis-live-panel--compact .live-stage__copy {
  font-size: 0.9rem;
  line-height: 1.55;
}

.live-log--compact {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.live-log__details {
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.55);
  padding: 8px 10px;
}

.live-log__summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  list-style: none;
}

.live-log__summary::-webkit-details-marker {
  display: none;
}

.live-log__details-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-light);
}

.live-log__text--stacked {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin-top: 6px;
}

.live-log__text--stacked:first-child {
  margin-top: 0;
}

/* Same two-column rhythm as confirm (analysis) for result + unified flows */
.panel-grid--unified {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.78fr);
}

.panel-grid--result {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.workspace-col-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.workspace-step-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0 28px 8px;
  align-items: center;
  border-bottom: 1px solid rgba(16, 18, 22, 0.06);
  margin-bottom: 4px;
}

body[data-workspace-theme="light"] .workspace-step-rail {
  border-bottom-color: var(--line-light);
}

.workspace-step-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -9px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a.workspace-step-rail__link:hover {
  color: var(--text-dark);
}

.workspace-step-rail__link.is-active {
  color: var(--text-dark);
  border-bottom-color: rgba(90, 110, 40, 0.42);
  cursor: default;
}

.workspace-step-rail__link.is-disabled,
a.workspace-step-rail__link.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.surface,
.surface-light {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.surface {
  border: 1px solid var(--line-dark);
  background: var(--bg-panel);
}

.surface-light {
  border: 1px solid var(--line-light);
  background: var(--bg-light-panel);
}

.surface-muted {
  border-style: dashed;
}

.surface__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
}

body[data-workspace-theme="light"] .surface__kicker {
  color: var(--text-soft);
}

.surface__title {
  margin: 10px 0 0;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 700;
}

.surface__copy {
  margin: 8px 0 0;
  color: var(--text-mid);
  line-height: 1.7;
}

body[data-workspace-theme="light"] .surface__copy {
  color: var(--text-soft);
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 24px;
  border: 1px dashed rgba(16, 18, 22, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(255, 210, 168, 0.18), rgba(221, 208, 255, 0.14));
  overflow: hidden;
  cursor: pointer;
}

.upload-zone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.upload-zone__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 32px rgba(19, 22, 27, 0.08);
  color: var(--text-dark);
  font-weight: 700;
}

.field-grid {
  display: grid;
  gap: 14px;
}

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

.field-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(16, 18, 22, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(20, 25, 10, 0.24);
  box-shadow: 0 0 0 4px rgba(198, 255, 90, 0.12);
}

.toggle-row {
  display: grid;
  gap: 10px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-dark);
}

.toggle input {
  width: 16px;
  height: 16px;
}

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

.template-card {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid rgba(16, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.template-card__image {
  height: 126px;
  background:
    linear-gradient(135deg, rgba(255, 210, 168, 0.44), rgba(221, 208, 255, 0.36)),
    #f7f5ef;
}

.template-card__body {
  padding: 16px;
}

.template-card__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}

.template-card__title {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.template-card__copy {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a8ed2f);
  color: var(--accent-deep);
}

.btn-secondary {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-dark);
}

body[data-workspace-theme="dark"] .btn-secondary {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
}

.btn-link {
  min-height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.status-banner {
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  line-height: 1.7;
}

body[data-workspace-theme="dark"] .status-banner {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mid);
}

.progress-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.progress-summary__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.progress-summary__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}

body[data-workspace-theme="dark"] .progress-summary__meta {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-mid);
}

.progress-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.progress-stage {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.progress-stage__dot {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
}

body[data-workspace-theme="light"] .progress-stage__dot {
  border-color: rgba(16, 18, 22, 0.12);
  background: rgba(16, 18, 22, 0.05);
}

.progress-stage.is-active .progress-stage__dot {
  border-color: rgba(198, 255, 90, 0.8);
  box-shadow: 0 0 0 5px rgba(198, 255, 90, 0.16);
}

.progress-stage.is-active .progress-stage__dot::after,
.progress-stage.is-done .progress-stage__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.progress-stage__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-stage__copy {
  margin-top: 4px;
  color: var(--text-mid);
  line-height: 1.6;
}

body[data-workspace-theme="light"] .progress-stage__copy {
  color: var(--text-soft);
}

.analysis-hero {
  display: grid;
  gap: 10px;
}

.analysis-hero__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.analysis-hero__meta {
  color: var(--text-soft);
  line-height: 1.7;
}

.live-panel {
  position: relative;
  overflow: hidden;
}

.live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(198, 255, 90, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

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

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(86, 124, 0, 0.16);
  background: rgba(198, 255, 90, 0.12);
  color: #3e5700;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7ab000;
  box-shadow: 0 0 0 0 rgba(122, 176, 0, 0.42);
  animation: workspacePulse 1.6s ease-out infinite;
}

@keyframes workspacePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(122, 176, 0, 0.42);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(122, 176, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(122, 176, 0, 0);
  }
}

.live-stage {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.live-stage__title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-dark);
}

.live-stage__copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.live-log {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.live-log__item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.live-log__dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(16, 18, 22, 0.18);
}

.live-log__item.is-latest .live-log__dot {
  background: #7ab000;
  box-shadow: 0 0 0 6px rgba(122, 176, 0, 0.12);
}

.live-log__text {
  color: var(--text-dark);
  line-height: 1.7;
}

.surface.is-disabled {
  opacity: 0.7;
  pointer-events: none;
}

.choice-group {
  display: grid;
  gap: 12px;
}

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

.brief-card {
  border-radius: 16px;
  border: 1px solid rgba(16, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.64);
  padding: 14px;
}

.brief-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.brief-card__value {
  margin-top: 8px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.5;
}

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

.reasoning-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.reasoning-item__dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #7ab000;
}

.reasoning-item__text {
  color: var(--text-dark);
  line-height: 1.7;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-card {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(16, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
  cursor: pointer;
}

.choice-card.is-selected {
  border-color: rgba(86, 124, 0, 0.18);
  background: rgba(198, 255, 90, 0.18);
  box-shadow: inset 0 0 0 1px rgba(86, 124, 0, 0.08);
}

.choice-card__title {
  font-weight: 700;
  color: var(--text-dark);
}

.choice-card__copy {
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.6;
}

.text-block {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
  color: inherit;
}

.canvas-shell {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at top, rgba(198, 255, 90, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--bg-panel-strong);
  overflow: hidden;
}

.canvas-shell--light {
  border: 1px solid var(--line-light);
  background:
    radial-gradient(circle at top, rgba(198, 255, 90, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 250, 0.98));
}

.canvas-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 28px;
}

.canvas-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.canvas-placeholder {
  max-width: 520px;
  text-align: center;
  color: var(--text-mid);
}

.canvas-meta {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.canvas-meta--light {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-soft);
}

.pill-row,
.mini-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mid);
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-pill--light {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
}

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

.iteration-grid--light .iteration-card {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.55);
}

.iteration-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.iteration-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-list,
.social-assets {
  display: grid;
  gap: 12px;
}

.history-card,
.social-card {
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.history-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.history-card img,
.social-card img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.history-card__title,
.social-card__title {
  font-weight: 700;
}

.history-card__meta,
.social-card__copy {
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.55;
}

body[data-workspace-theme="light"] .workspace-col-side .history-card,
.history-card--light {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.78);
}

body[data-workspace-theme="light"] .workspace-col-side .history-card__meta {
  color: var(--text-soft);
}

.live-indicator.is-idle .live-indicator__dot {
  animation: none;
  box-shadow: none;
  background: var(--text-soft);
}

.live-indicator.is-running {
  border-color: rgba(86, 124, 0, 0.22);
  background: rgba(198, 255, 90, 0.16);
}

.social-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
}

.social-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 9, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.social-preview-modal.hidden {
  display: none;
}

.social-preview-panel {
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-dark);
  background: #0f1319;
}

.social-preview-panel img {
  width: 100%;
  max-height: calc(92vh - 84px);
  object-fit: contain;
  background: #0b0e12;
}

.social-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-dark);
}

.ghost-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-note {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--text-mid);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-workspace-theme="light"] .footer-note {
  color: var(--text-soft);
}

@media (max-width: 1080px) {
  .panel-grid--create,
  .panel-grid--confirm,
  .panel-grid--confirm-layout,
  .panel-grid--unified,
  .panel-grid--result {
    grid-template-columns: 1fr;
  }

  .confirm-col--live {
    position: static;
  }

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

  .canvas-stage {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .workspace-topbar__inner,
  .workspace-main,
  .footer-note {
    width: min(100vw - 20px, 1240px);
  }

  .panel-grid {
    padding: 16px;
  }

  .field-grid--two,
  .field-grid--three,
  .template-grid,
  .iteration-grid,
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .hero-band__title,
  .analysis-hero__title {
    font-size: 2.2rem;
  }

  .history-card,
  .social-card {
    grid-template-columns: 60px 1fr;
  }

  .history-card > :last-child,
  .social-card > :last-child {
    grid-column: 1 / -1;
  }
}

/* Result page: workflow below hero, square main carousel, gallery lightbox */
.result-carousel-shell.is-highlight {
  animation: resultShellPulse 1.4s ease-out;
}

@keyframes resultShellPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(86, 124, 0, 0.28);
  }
  100% {
    box-shadow: 0 0 0 14px transparent;
  }
}

.result-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
}

.result-carousel__nav {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-dark);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  align-self: center;
}

.result-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.result-carousel__viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.result-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-carousel__placeholder {
  padding: 24px;
}

.result-carousel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.result-carousel__toolbar .canvas-meta {
  position: static;
}

.iteration-card.is-selected {
  outline: 2px solid rgba(86, 124, 0, 0.5);
  outline-offset: 2px;
}

.history-card[role="button"]:focus-visible {
  outline: 2px solid rgba(86, 124, 0, 0.65);
  outline-offset: 3px;
}

.result-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.result-gallery-modal.hidden {
  display: none;
}

/* Immersive preview: edge-to-edge image, floating chrome, scroll + wheel zoom */
.result-gallery-modal--immersive {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.result-gallery-modal--immersive .result-gallery-panel {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  border: none;
  background: transparent;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  overflow: hidden;
}

.result-gallery-modal--immersive .result-gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: none;
  background: rgba(4, 6, 9, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.result-gallery-modal--immersive .result-gallery-topbar .ghost-note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.result-gallery-modal--immersive .result-gallery-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.result-gallery-modal--immersive .result-gallery-topbar__btn.btn-primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.result-gallery-modal--immersive .result-gallery-topbar__btn.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
}

.result-gallery-modal--immersive .result-gallery-stage {
  position: relative;
  min-height: 0;
  padding: 0;
  display: block;
}

.result-gallery-modal--immersive .result-gallery-zoomport {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.result-gallery-modal--immersive .result-gallery-zoomport.is-dragging {
  cursor: grabbing;
}

.result-gallery-modal--immersive .result-gallery-zoom-inner {
  min-height: 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px;
}

.result-gallery-modal--immersive .result-gallery-stage__img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.result-gallery-modal--immersive .result-gallery-stage__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  min-width: 46px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.result-gallery-modal--immersive .result-gallery-stage__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.result-gallery-modal--immersive #result-gallery-modal-prev {
  left: 12px;
}

.result-gallery-modal--immersive #result-gallery-modal-next {
  right: 12px;
}

.result-gallery-modal--immersive .result-gallery-zoom-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: rgba(4, 6, 9, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.result-gallery-zoom-btn {
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.result-gallery-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.result-gallery-zoom-pct {
  min-width: 3.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.result-gallery-zoom-reset {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.result-gallery-zoom-reset:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Legacy card layout if a template omits --immersive */
.result-gallery-panel {
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-light);
  background: #faf8f4;
}

.result-gallery-modal:not(.result-gallery-modal--immersive) .result-gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-light);
}

.result-gallery-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.result-gallery-modal:not(.result-gallery-modal--immersive) .result-gallery-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 16px 20px;
}

.result-gallery-modal:not(.result-gallery-modal--immersive) .result-gallery-stage__nav {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.result-gallery-modal:not(.result-gallery-modal--immersive) .result-gallery-stage__img {
  width: 100%;
  max-height: min(72vh, 900px);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(19, 22, 27, 0.04);
}

.result-gallery-modal--single:not(.result-gallery-modal--immersive) .result-gallery-panel {
  width: min(96vw, 1400px);
  max-height: 96vh;
}

.result-gallery-modal--single:not(.result-gallery-modal--immersive) .result-gallery-stage__img {
  max-height: min(90vh, 1400px);
}

/* --- Create step 1: PicCopilot-style asset bar (workspace_create) --- */

.pic-hero-band {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto 20px;
  padding: 0 4px;
}

.pic-hero-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-dark);
}

.pic-hero-brand {
  color: var(--text-dark);
}

.pic-hero-sub {
  margin: 10px 0 0;
  max-width: 52rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.stage-shell--pic-create .panel-grid {
  padding-top: 20px;
}

.wizard-panel--pic {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pic-command-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 245, 237, 0.88) 100%);
  box-shadow: 0 18px 48px rgba(19, 22, 27, 0.06);
  padding: 22px 22px 18px;
}

body[data-workspace-theme="light"] .pic-command-card {
  border-color: rgba(16, 18, 22, 0.1);
}

.pic-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}

.pic-bar__uploads {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pic-upload-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  max-width: 168px;
}

.pic-slot {
  cursor: pointer;
  display: block;
  width: 100%;
  margin: 0;
}

.pic-slot__frame {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 168px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(16, 18, 22, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 241, 232, 0.92)),
    radial-gradient(circle at 30% 20%, rgba(198, 255, 90, 0.12), transparent 55%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pic-slot:hover .pic-slot__frame {
  border-color: rgba(90, 110, 40, 0.35);
  box-shadow: 0 0 0 3px rgba(198, 255, 90, 0.18);
}

.pic-slot:focus-within .pic-slot__frame {
  outline: 2px solid rgba(90, 110, 40, 0.45);
  outline-offset: 2px;
}

.pic-slot__plus {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(19, 22, 27, 0.28);
  user-select: none;
  transition: opacity 0.15s ease;
}

.pic-slot__frame:has(.pic-slot__img:not(.hidden)) .pic-slot__plus {
  opacity: 0;
}

.pic-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pic-upload-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  word-break: break-word;
}

.pic-bar__join {
  flex: 0 0 auto;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(16, 18, 22, 0.1);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px rgba(19, 22, 27, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(19, 22, 27, 0.35);
}

.pic-bar__join::before {
  content: "+";
  line-height: 1;
}

.pic-bar__editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
}

.pic-editor-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.pic-bar__textarea {
  flex: 1;
  min-height: 140px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 18, 22, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  line-height: 1.55;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pic-bar__textarea::placeholder {
  color: rgba(19, 22, 27, 0.38);
}

.pic-bar__textarea:hover {
  border-color: rgba(16, 18, 22, 0.18);
}

.pic-bar__textarea:focus {
  outline: none;
  border-color: rgba(90, 110, 40, 0.4);
  box-shadow: 0 0 0 3px rgba(198, 255, 90, 0.2);
}

.pic-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 18, 22, 0.08);
}

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

.pic-bar__lang-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.pic-bar__select {
  min-width: 160px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 18, 22, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  cursor: pointer;
}

.pic-bar__select:focus {
  outline: none;
  border-color: rgba(90, 110, 40, 0.4);
  box-shadow: 0 0 0 3px rgba(198, 255, 90, 0.18);
}

.pic-bar__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #a6e838);
  color: var(--accent-deep);
  box-shadow: 0 10px 28px rgba(122, 180, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pic-bar__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(122, 180, 0, 0.34);
}

.pic-bar__submit:active {
  transform: translateY(0);
}

.pic-bar__submit-ico {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
}

.pic-bar__hint {
  margin: 14px 0 0;
  padding: 0 2px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.pic-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pic-subcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 18, 22, 0.1);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 148px;
}

.pic-subcard:hover {
  border-color: rgba(90, 110, 40, 0.28);
  box-shadow: 0 12px 32px rgba(19, 22, 27, 0.06);
}

.pic-subcard:focus-within {
  border-color: rgba(90, 110, 40, 0.38);
  box-shadow: 0 0 0 3px rgba(198, 255, 90, 0.16);
}

.pic-subcard--logo {
  cursor: default;
}

.pic-subcard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pic-subcard__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.pic-subcard__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 18, 22, 0.1);
  background: rgba(248, 245, 237, 0.95);
  color: var(--text-soft);
}

.pic-subcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.pic-subcard__hint {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.pic-subcard__preview {
  width: 100%;
  max-height: 112px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(16, 18, 22, 0.08);
  background: rgba(19, 22, 27, 0.04);
}

.pic-subcard__body--logo {
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border-radius: 14px;
  border: 1px dashed rgba(16, 18, 22, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(248, 245, 237, 0.5));
  padding: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pic-subcard__body--logo:hover {
  border-color: rgba(90, 110, 40, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(248, 245, 237, 0.65));
}

.pic-subcard__upload-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 18, 22, 0.1);
  box-shadow: 0 8px 20px rgba(19, 22, 27, 0.08);
  pointer-events: none;
}

.pic-subcard__body--logo:has(.pic-subcard__preview:not(.hidden)) {
  border-style: solid;
  padding: 8px;
  gap: 8px;
  align-items: stretch;
}

.pic-subcard__body--logo .pic-subcard__preview:not(.hidden) + .pic-subcard__upload-pill {
  align-self: center;
  font-size: 0.78rem;
  padding: 6px 12px;
  box-shadow: none;
}

.pic-demo-row {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(16, 18, 22, 0.14);
  background: rgba(255, 255, 255, 0.45);
  padding: 16px 18px;
}

@media (max-width: 900px) {
  .pic-bar {
    grid-template-columns: 1fr;
  }

  .pic-bar__uploads {
    justify-content: center;
  }

  .pic-bar__join {
    margin-top: 0;
    margin-bottom: 4px;
    transform: rotate(90deg);
  }

  .pic-secondary-grid {
    grid-template-columns: 1fr;
  }
}

/* Confirm: collapsible analysis blocks + preference rows */
.workspace-fold {
  margin-top: 18px;
  padding: 14px 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.55);
}

.workspace-fold__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.workspace-fold__summary::-webkit-details-marker {
  display: none;
}

.workspace-fold__title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-fold__hint {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.workspace-fold__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 18, 22, 0.08);
}

.choice-group--pref {
  margin-top: 14px;
}

.pref-choice-details {
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 18, 22, 0.1);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.pref-choice-summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.pref-choice-summary::-webkit-details-marker {
  display: none;
}

.pref-choice-summary__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  flex-shrink: 0;
}

.pref-choice-summary__value {
  font-size: 0.92rem;
  text-align: right;
  color: var(--text-dark);
  line-height: 1.35;
}

.pref-choice-grid {
  padding: 0 12px 14px;
}

.result-job-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.long-page-panel__hint {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.long-page-panel__stage {
  margin-top: 12px;
  max-height: min(85vh, 1100px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(16, 18, 22, 0.1);
  background: rgba(19, 22, 27, 0.03);
}

.long-page-panel__img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.long-page-panel__actions {
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
