:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-muted: #f1f3f6;
  --ink: #17181a;
  --ink-soft: #5d6168;
  --ink-faint: #666b73;
  --line: #dfe1e5;
  --line-strong: #c7cacf;
  --blue: #146ef5;
  --blue-dark: #0758c9;
  --blue-soft: #eaf2ff;
  --green: #137a45;
  --green-soft: #e9f7ef;
  --amber: #965d00;
  --amber-soft: #fff4d8;
  --red: #b42318;
  --red-soft: #ffefed;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 18px 45px rgba(25, 30, 38, 0.07), 0 2px 8px rgba(25, 30, 38, 0.04);
  --shadow-float: 0 22px 60px rgba(21, 27, 35, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(20, 110, 245, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfbfd 0, var(--bg) 40rem);
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 11px 16px;
  color: #fff;
  background: #111;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #0d63e4;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(199, 202, 207, 0.68);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  color: #484b51;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.language-picker {
  min-height: 38px;
  padding: 4px 5px 4px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #484b51;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.language-label {
  color: var(--ink-soft);
  white-space: nowrap;
}

.language-picker select {
  min-width: 112px;
  min-height: 30px;
  padding: 3px 28px 3px 8px;
  color: var(--ink);
  background-color: var(--surface-solid);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.status-dot,
.live-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #21a663;
  box-shadow: 0 0 0 3px rgba(33, 166, 99, 0.12);
}

.hero {
  min-height: 530px;
  padding-block: 92px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 72px;
}

.eyebrow,
.mini-label {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.form-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

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

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  color: #8b8e94;
  background: #eceef1;
  border-color: #d8dade;
  cursor: not-allowed;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 9px 24px rgba(20, 110, 245, 0.22);
}

.button-primary:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button-secondary:hover:not(:disabled) {
  background: #f6f7f9;
}

.button-dark {
  color: #fff;
  background: #1b1c1f;
  border-color: #1b1c1f;
}

.assumption-note {
  max-width: 680px;
  margin: 28px 0 0;
  padding-left: 14px;
  color: #5a5d63;
  border-left: 2px solid #aabbd8;
  font-size: 12px;
  line-height: 1.65;
}

.automation-card {
  position: relative;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 225, 229, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.automation-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(20, 110, 245, 0.16), transparent 66%);
}

.card-topline,
.form-section-heading,
.preview-toolbar,
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.automation-card .mini-label {
  margin: 0;
}

.automation-card h2 {
  margin: 28px 0 6px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.next-run {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 16px;
  background: #f2f6fc;
  border: 1px solid #dfe9f7;
  border-radius: 18px;
}

.next-run span,
.next-run small {
  color: var(--ink-soft);
  font-size: 12px;
}

.next-run strong {
  grid-row: span 2;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.run-steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.run-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #6b6e74;
  font-size: 13px;
}

.run-steps li span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #eceef1;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.run-steps .is-done {
  color: var(--green);
}

.run-steps .is-done span {
  color: #fff;
  background: var(--green);
}

.run-steps .is-current {
  color: var(--ink);
  font-weight: 700;
}

.run-steps .is-current span {
  color: #fff;
  background: var(--blue);
}

.metrics {
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.metrics article {
  min-width: 0;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 14px;
}

.metrics article + article {
  border-left: 1px solid var(--line);
}

.metrics span,
.metrics small {
  color: var(--ink-soft);
  font-size: 12px;
}

.metrics strong {
  grid-row: span 2;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.stepper {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  list-style: none;
}

.stepper li {
  min-height: 38px;
  padding: 6px 12px 6px 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b6e74;
  background: #e9eaed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stepper span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #666a70;
  background: #fff;
  border-radius: 50%;
  font-size: 11px;
}

.stepper .active {
  color: #fff;
  background: #1a1b1e;
}

.stepper .active span {
  color: #fff;
  background: var(--blue);
}

.stepper .completed:not(.active) {
  color: var(--green);
  background: var(--green-soft);
}

.stepper .completed:not(.active) span {
  color: #fff;
  background: var(--green);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: start;
  gap: 24px;
}

.editor-card,
.preview-card,
.task-table-wrap {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.editor-card {
  padding: 30px;
}

.form-section {
  padding-bottom: 30px;
}

.form-section + .form-section {
  padding-top: 30px;
  border-top: 1px solid #e8e9ec;
}

.form-section-heading {
  margin-bottom: 22px;
}

.form-section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-heading h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.section-number {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.optional-label,
.required-note {
  color: var(--ink-faint);
  font-size: 11px;
}

.upload-zone {
  min-height: 142px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  background: #f8f9fb;
  border: 1.5px dashed #b9bec7;
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.upload-zone:focus-within {
  outline: 3px solid #0d63e4;
  outline-offset: 3px;
}

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

.upload-zone strong {
  font-size: 14px;
}

.upload-zone small,
.field small {
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.5;
}

.upload-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #d9e4f5;
  border-radius: 11px;
  font-size: 22px;
}

.image-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.empty-image-slot {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  background: #f4f5f7;
  border-radius: 12px;
  font-size: 11px;
}

.empty-image-slot span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25272b;
  border-radius: 7px;
  font-weight: 800;
}

.image-thumb {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1.2;
  background: #eef0f3;
  border: 1px solid #dfe2e6;
  border-radius: 13px;
  overflow: hidden;
}

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

.image-thumb figcaption {
  position: absolute;
  left: 7px;
  bottom: 7px;
  max-width: calc(100% - 54px);
  padding: 5px 8px;
  color: #fff;
  background: rgba(17, 20, 25, 0.76);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.image-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(17, 20, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.scene-studio {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.58fr);
  gap: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(20, 110, 245, 0.09), transparent 42%),
    #f5f8fc;
  border: 1px solid #d9e4f2;
  border-radius: 18px;
}

.scene-studio-copy {
  display: grid;
  align-content: center;
  gap: 6px;
}

.scene-studio-copy .mini-label,
.angle-results-heading .mini-label {
  margin: 0;
  font-size: 9px;
}

.scene-studio-copy strong {
  font-size: 14px;
  line-height: 1.45;
}

.scene-studio-copy small,
.local-render-note {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.scene-field {
  align-self: center;
}

.angle-plan {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
}

.angle-plan li {
  min-width: 0;
  padding: 13px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 3px 9px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dfe5ec;
  border-radius: 13px;
}

.angle-plan li > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1b1e23;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.angle-plan strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.angle-plan small {
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.35;
}

.local-render-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 13px;
  color: #4d5662;
  background: #eef3fa;
  border-radius: 11px;
}

.local-render-note strong {
  color: var(--blue-dark);
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.field-wide {
  grid-column: 1 / -1;
}

.compact-top {
  margin-top: 18px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: #323438;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd2d7;
  border-radius: 11px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #a9adb4;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 110, 245, 0.13);
}

[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.field-error:not(:empty)::before {
  content: "! ";
  font-weight: 900;
}

.field-error-block {
  margin-top: 8px;
}

.price-adjuster {
  margin-top: 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.price-adjuster > div:first-child {
  display: grid;
  gap: 5px;
}

.price-adjuster strong {
  font-size: 13px;
}

.price-adjuster small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.price-adjust-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-adjust-controls > label {
  color: #45484e;
  font-size: 11px;
  font-weight: 700;
}

.input-suffix {
  position: relative;
  width: 92px;
}

.input-suffix input {
  padding-right: 28px;
}

.input-suffix span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 12px;
  pointer-events: none;
}

.button-small {
  min-height: 44px;
  padding-inline: 13px;
  font-size: 12px;
}

.inline-feedback {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.inline-feedback:empty {
  display: none;
}

.inline-feedback.is-success {
  color: var(--green);
}

.inline-feedback.is-error {
  color: var(--red);
}

.rule-panel {
  margin-top: 18px;
  padding: 18px;
  background: #f4f7fb;
  border: 1px solid #dce5f1;
  border-radius: 16px;
}

.switch-row {
  cursor: pointer;
}

.switch-row > span {
  display: grid;
  gap: 4px;
}

.switch-row strong {
  font-size: 13px;
}

.switch-row small {
  color: var(--ink-soft);
  font-size: 11px;
}

input[role="switch"] {
  appearance: none;
  width: 46px;
  min-height: 26px;
  padding: 2px;
  flex: 0 0 auto;
  background: #aeb2b8;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

input[role="switch"]::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

input[role="switch"]:checked {
  background: var(--green);
}

input[role="switch"]:checked::before {
  transform: translateX(20px);
}

.rule-fields input:disabled {
  color: #6d7076;
  background: #e7e9ec;
  border-color: #d3d6da;
  cursor: not-allowed;
}

.rule-fields {
  margin-top: 16px;
}

.demo-controls {
  margin-bottom: 22px;
  padding: 14px 16px;
  color: var(--ink-soft);
  background: #f6f7f8;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
}

.demo-controls summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #44474d;
  font-weight: 700;
  cursor: pointer;
}

.demo-controls label {
  min-height: 44px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
}

.demo-controls input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.form-actions {
  justify-content: flex-end;
}

.button-generate {
  min-width: 230px;
}

.preview-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.preview-toolbar {
  min-height: 58px;
  padding: 0 20px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-state {
  min-height: 46px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-bottom: 1px solid #d8e6fb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.preview-state[data-state="success"] {
  color: var(--green);
  background: var(--green-soft);
  border-color: #d6ebdf;
}

.preview-state[data-state="error"] {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f1d7d3;
}

.preview-state-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  font-weight: 900;
}

.preview-surface {
  position: relative;
  width: 100%;
  max-height: 720px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #e8ebef;
  scrollbar-gutter: stable;
}

.detail-image-empty {
  min-height: 540px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-soft);
  text-align: center;
}

.detail-image-empty strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
}

.detail-image-empty small {
  max-width: 260px;
  font-size: 11px;
  line-height: 1.55;
}

.detail-page-image {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.preview-surface.is-generating .detail-page-image {
  opacity: 0.34;
}

.preview-surface.is-stale::after {
  content: attr(data-stale-label);
  position: sticky;
  left: 50%;
  bottom: 18px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: -58px auto 16px;
  padding: 10px 13px;
  display: block;
  color: #fff;
  background: rgba(23, 24, 26, 0.88);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  pointer-events: none;
}

.angle-results {
  padding: 18px 20px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.angle-results-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.angle-results-heading h3 {
  margin: 5px 0 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.sample-badge {
  min-height: 25px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  color: #555b64;
  background: #f0f2f5;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.sample-badge.is-generated {
  color: var(--green);
  background: var(--green-soft);
}

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

.angle-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e0e3e7;
  border-radius: 12px;
}

.angle-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #e9ebee;
}

.angle-card-placeholder {
  min-height: 132px;
  padding: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  color: var(--ink-soft);
  text-align: center;
}

.angle-card-placeholder > span {
  width: 42px;
  height: 42px;
  display: block;
  background:
    linear-gradient(110deg, transparent 20%, rgba(255,255,255,.78) 42%, transparent 62%),
    #dfe3e8;
  background-size: 220% 100%;
  border-radius: 13px;
  animation: placeholder-sheen 1.6s ease-in-out infinite;
}

.angle-card-placeholder strong {
  font-size: 9px;
}

.angle-card figcaption {
  min-height: 34px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #44484f;
  background: #fff;
  font-size: 9px;
  font-weight: 750;
}

.angle-download {
  width: 44px;
  height: 44px;
  margin: -5px -6px -5px 0;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.angle-download:hover {
  background: var(--blue-soft);
}

.preview-image {
  aspect-ratio: 1.55;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #767a82;
  background:
    linear-gradient(135deg, rgba(255,255,255,.7), transparent 45%),
    #eceff3;
  border-bottom: 1px solid var(--line);
  background-position: center;
  background-size: cover;
}

.preview-image.has-image {
  color: transparent;
}

.preview-image-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #70747b;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #d7dade;
  border-radius: 13px;
  font-size: 22px;
}

.preview-image strong {
  margin-top: 6px;
  font-size: 13px;
}

.preview-image small {
  font-size: 11px;
}

.preview-content {
  padding: 28px;
}

.preview-category,
.preview-section-label {
  margin: 0;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.preview-content h3 {
  margin: 12px 0 0;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.preview-price {
  margin-top: 20px;
  padding-bottom: 22px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #eceef1;
}

.preview-price strong {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.preview-price span {
  color: var(--ink-soft);
  font-size: 11px;
}

.preview-proof {
  padding-block: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-bottom: 1px solid #eceef1;
}

.preview-proof span {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.3;
}

.preview-proof strong {
  color: var(--ink);
  font-size: 13px;
}

.preview-block {
  padding-top: 25px;
}

.preview-block h4 {
  margin: 9px 0 0;
  font-size: 17px;
  line-height: 1.4;
}

.preview-block ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.preview-block li {
  position: relative;
  padding-left: 21px;
  color: #4e5157;
  font-size: 12px;
  line-height: 1.55;
}

.preview-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.preview-oem {
  margin-top: 26px;
  padding: 23px;
  display: grid;
  gap: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(59, 138, 255, 0.36), transparent 45%),
    #161a20;
  border-radius: 18px;
}

.preview-oem span {
  color: #86b8ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.preview-oem strong {
  font-size: 17px;
  line-height: 1.4;
}

.preview-oem p {
  margin: 0;
  color: #c3c8cf;
  font-size: 11px;
  line-height: 1.6;
}

.preview-actions {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #f8f9fa;
}

.preview-actions .button {
  flex: 1;
  padding-inline: 12px;
}

.tasks {
  padding-block: 120px 80px;
}

.task-heading {
  align-items: flex-end;
}

.task-filters {
  padding: 4px;
  display: flex;
  gap: 3px;
  background: #e8e9ec;
  border-radius: 12px;
}

.filter-button {
  min-height: 44px;
  padding: 0 14px;
  color: #595c62;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 7px rgba(32, 36, 44, 0.1);
}

.task-table-wrap {
  overflow: hidden;
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.task-table th,
.task-table td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: middle;
}

.task-table th {
  color: #686b72;
  background: #f5f6f8;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.task-table td {
  color: #3e4147;
  border-bottom: 1px solid #eceef0;
  font-size: 12px;
}

.task-table tr:last-child td {
  border-bottom: 0;
}

.task-table th:first-child {
  width: 30%;
}

.task-table th:nth-child(4) {
  width: 15%;
}

.task-table th:last-child {
  width: 7%;
}

.task-table td > strong,
.task-table td > small {
  display: block;
}

.task-table td > strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.task-table td > small {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 10px;
}

.progress {
  width: 100%;
  height: 6px;
  background: #e4e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  height: 100%;
  display: block;
  background: var(--green);
  border-radius: inherit;
}

.progress.warning span {
  background: var(--amber);
}

.state-badge {
  min-height: 27px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.state-ready,
.state-published {
  color: var(--green);
  background: var(--green-soft);
}

.state-scheduled {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.state-failed {
  color: var(--red);
  background: var(--red-soft);
}

.state-draft {
  color: var(--amber);
  background: var(--amber-soft);
}

.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.text-button:hover {
  background: var(--blue-soft);
}

.empty-state {
  padding: 54px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state > span {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: #767a82;
  background: #f0f1f3;
  border-radius: 14px;
  font-size: 22px;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.empty-state p {
  margin: 8px 0 0;
  font-size: 12px;
}

.site-footer {
  padding-block: 30px 42px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-height: 54px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  background: #232529;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(20, 23, 28, 0.24);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  animation: toast-in 180ms ease-out both;
}

.toast-success {
  background: #125f3a;
}

.toast-error {
  background: #8f221a;
}

.toast-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.spinner {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.clipboard-fallback {
  position: fixed;
  top: -1000px;
  left: -1000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes placeholder-sheen {
  0%, 35% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr minmax(290px, 0.65fr);
    gap: 40px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    position: static;
  }

  .preview-surface {
    display: block;
    max-height: 900px;
  }

  .preview-image {
    min-height: 100%;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-block: 68px 42px;
    grid-template-columns: 1fr;
  }

  .automation-card {
    max-width: 520px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 80px;
  }

  .metrics article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metrics article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-heading,
  .task-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .task-table,
  .task-table tbody,
  .task-table tr,
  .task-table td {
    display: block;
  }

  .task-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .task-table tr {
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--line);
  }

  .task-table tr:last-child {
    border-bottom: 0;
  }

  .task-table td {
    min-height: 36px;
    padding: 7px 0;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border: 0;
  }

  .task-table td::before {
    content: attr(data-label);
    color: var(--ink-faint);
    font-size: 10px;
    font-weight: 800;
  }

  .task-table td:first-child {
    display: block;
    padding-bottom: 12px;
  }

  .task-table td:first-child::before,
  .task-table td:last-child::before {
    display: none;
  }

  .task-table td:last-child {
    display: flex;
    justify-content: flex-end;
  }

  .task-table .progress {
    max-width: 220px;
  }
}

@media (max-width: 620px) {
  .shell,
  .header-inner {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 64px;
    padding-block: 10px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .header-tools {
    width: 100%;
    padding-bottom: 2px;
    justify-content: space-between;
  }

  .header-status {
    max-width: none;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
  }

  .hero {
    padding-block: 56px 34px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    letter-spacing: -0.06em;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1;
  }

  .automation-card {
    padding: 21px;
    border-radius: 22px;
  }

  .next-run strong {
    font-size: 34px;
  }

  .metrics {
    margin-bottom: 68px;
  }

  .metrics article {
    padding: 19px 17px;
    grid-template-columns: 1fr auto;
  }

  .metrics strong {
    font-size: 25px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .stepper {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .stepper li {
    padding-right: 8px;
    justify-content: flex-start;
    align-items: flex-start;
    white-space: normal;
    line-height: 1.25;
  }

  .editor-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .preview-card,
  .task-table-wrap {
    border-radius: 22px;
  }

  .two-columns,
  .three-columns,
  .four-columns {
    grid-template-columns: 1fr;
  }

  .image-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-studio {
    grid-template-columns: 1fr;
  }

  .scene-field,
  .angle-plan,
  .local-render-note {
    grid-column: 1;
  }

  .angle-plan {
    grid-template-columns: 1fr;
  }

  .image-remove {
    width: 44px;
    height: 44px;
  }

  .switch-row {
    align-items: flex-start;
  }

  .form-actions .button {
    width: 100%;
  }

  .price-adjuster {
    grid-template-columns: 1fr;
  }

  .price-adjust-controls {
    display: grid;
    grid-template-columns: 1fr 92px;
  }

  .price-adjust-controls .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .form-actions .button-primary {
    order: -1;
  }

  .preview-surface {
    display: block;
    width: 100%;
    max-height: 680px;
  }

  .detail-image-empty {
    min-height: 360px;
  }

  .preview-image {
    min-height: 245px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-content {
    padding: 24px 20px;
  }

  .preview-proof {
    gap: 7px;
  }

  .preview-actions .button {
    min-width: 100%;
  }

  .tasks {
    padding-block: 90px 60px;
  }

  .task-filters {
    width: 100%;
    overflow-x: auto;
  }

  .filter-button {
    flex: 1;
    white-space: nowrap;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .header-status {
    max-width: none;
    padding-inline: 8px;
    font-size: 10px;
  }

  .language-label {
    display: none;
  }

  .language-picker {
    padding-left: 5px;
  }

  .language-picker select {
    min-width: 104px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .metrics article {
    display: block;
  }

  .metrics strong,
  .metrics small {
    display: block;
  }

  .metrics strong {
    margin: 8px 0 5px;
  }

  .stepper {
    gap: 4px;
  }

  .stepper li {
    min-height: 36px;
    padding-left: 6px;
    gap: 5px;
    font-size: 10px;
  }

  .stepper span {
    width: 22px;
    height: 22px;
  }

  .angle-gallery {
    grid-template-columns: 1fr;
  }

  .angle-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .angle-card figcaption {
    min-height: 100%;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .angle-download {
    margin: 4px 0 0 -6px;
  }

  .preview-proof {
    grid-template-columns: 1fr;
  }

  .preview-proof span {
    grid-template-columns: 88px 1fr;
    align-items: baseline;
  }

  .task-table td {
    grid-template-columns: 92px minmax(0, 1fr);
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .spinner {
    animation: none !important;
    border-color: rgba(255, 255, 255, 0.7);
  }
}

@media (forced-colors: active) {
  .status-dot,
  .live-dot,
  .progress span {
    forced-color-adjust: none;
  }

  .button,
  input,
  select,
  textarea,
  .upload-zone {
    border: 1px solid ButtonText;
  }
}
