﻿:root {
  color-scheme: light;
  --bg: #f3f6f5;
  --paper: #ffffff;
  --paper-soft: #eef3f1;
  --ink: #111414;
  --muted: #64706d;
  --line: #d9e1de;
  --accent: #d93654;
  --accent-dark: #a81732;
  --ok: #1f7a5d;
  --shadow: 0 22px 70px rgba(20, 36, 32, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7f9f8 0%, var(--bg) 42%, #edf2f0 100%);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(17, 20, 20, 0.08);
  background: rgba(247, 249, 248, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.hero-facts,
.proof-strip,
.payment-box,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 48px;
  align-items: center;
  max-width: 1360px;
  min-height: calc(100dvh - 68px);
  margin: 0 auto;
  padding: 46px 32px 28px;
}

.hero-copy {
  max-width: 620px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
dl,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 650px;
  font-size: clamp(44px, 6.8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.case-copy p,
.privacy-section p,
.footer,
.status,
.prompt-card p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: 18px;
}

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

.primary-btn,
.ghost-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.primary-btn {
  background: var(--accent);
  color: #ffffff;
}

.ghost-btn,
.secondary-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

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

.primary-btn:active,
.ghost-btn:active,
.secondary-btn:active,
.nav-cta:active {
  transform: translateY(1px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  background: #9aa4a1;
}

.hero-facts {
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 0;
}

.hero-facts div {
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-facts dt {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-proof {
  position: relative;
  min-height: 710px;
}

.proof-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.proof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-photo figcaption,
.case-images figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.proof-before {
  left: 0;
  top: 86px;
  width: 44%;
  height: 515px;
  transform: rotate(-4deg);
}

.proof-after {
  right: 0;
  top: 0;
  width: 64%;
  height: 700px;
  border: 8px solid #ffffff;
}

.showcase-rail {
  display: grid;
  grid-auto-columns: minmax(620px, 100%);
  grid-auto-flow: column;
  gap: 34px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.showcase-card {
  position: relative;
  min-height: 710px;
  scroll-snap-align: center;
}

.showcase-pair {
  position: relative;
  height: 710px;
}

.showcase-rail .proof-photo {
  position: absolute;
}

.proof-strip {
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px 72px;
}

.proof-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.demo-gallery,
.studio,
.prompt-library,
.search-library,
.privacy-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 78px 32px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.compact-heading {
  max-width: 680px;
}

.feature-case {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: 26px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--ink);
  color: #ffffff;
}

.case-copy span {
  margin-bottom: 16px;
  color: #ffccd5;
  font-weight: 900;
}

.case-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.case-images {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 12px;
}

.case-images figure {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.case-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
}

.upload-panel,
.preview-panel,
.prompt-card,
.privacy-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 218px;
  padding: 24px;
  border: 1px dashed #aab6b2;
  border-radius: var(--radius);
  background: #f8faf9;
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone > :not(input) {
  pointer-events: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.dropzone strong {
  font-size: 20px;
}

.dropzone small {
  margin-top: 8px;
  color: var(--muted);
}

.controls {
  display: grid;
  gap: 12px;
}

.controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

select:focus,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(217, 54, 84, 0.24);
  outline-offset: 3px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.consent input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.payment-box {
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
}

.payment-box div {
  display: grid;
  gap: 3px;
}

.payment-box span {
  color: var(--muted);
  font-size: 13px;
}

.payment-box strong {
  font-size: 28px;
}

.submit-btn {
  width: 100%;
}

.status {
  min-height: 24px;
  margin-bottom: 0;
  font-size: 14px;
}

.status.good {
  color: var(--ok);
}

.status.bad {
  color: var(--accent-dark);
}

.preview-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
}

.preview-card {
  display: grid;
  gap: 10px;
}

.preview-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.preview-slot,
.result-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 590px;
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--muted);
  text-align: center;
}

.preview-slot em,
.result-slot em {
  font-style: normal;
}

.preview-slot img,
.result-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-slot.loading {
  background:
    linear-gradient(100deg, #eef3f1 20%, #ffffff 35%, #eef3f1 50%) 0 0 / 240% 100%,
    #eef3f1;
  animation: sweep 1.25s infinite linear;
}

@keyframes sweep {
  to {
    background-position: -240% 0;
  }
}

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

.prompt-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 210px;
  padding: 20px;
}

.prompt-card strong {
  font-size: 20px;
  line-height: 1.25;
}

.prompt-card p {
  margin-bottom: 0;
}

.prompt-card button,
.prompt-card a {
  justify-self: start;
  align-self: end;
}

.privacy-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 40px;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .feature-case,
  .workbench,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-proof {
    min-height: 640px;
  }

  .showcase-rail {
    grid-auto-columns: minmax(520px, 100%);
  }

  .showcase-card,
  .showcase-pair {
    min-height: 640px;
    height: 640px;
  }

  .case-copy {
    min-height: auto;
  }

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

@media (max-width: 700px) {
  .topbar,
  .hero,
  .demo-gallery,
  .studio,
  .prompt-library,
  .search-library,
  .privacy-section,
  .footer,
  .proof-strip {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-cta {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-proof {
    min-height: 500px;
  }

  .showcase-rail {
    grid-auto-columns: minmax(330px, 94vw);
    gap: 18px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 12px;
  }

  .showcase-card,
  .showcase-pair {
    min-height: 500px;
    height: 500px;
  }

  .proof-before {
    top: 58px;
    width: 48%;
    height: 360px;
  }

  .proof-after {
    width: 68%;
    height: 470px;
    border-width: 6px;
  }

  .proof-strip {
    justify-content: flex-start;
    padding-bottom: 46px;
  }

  .case-images,
  .preview-panel,
  .prompt-grid,
  .search-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .case-images figure,
  .preview-slot,
  .result-slot {
    min-height: 430px;
  }

  .payment-box {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-box .ghost-btn {
    width: 100%;
  }
}

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

.package-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.package-card:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 54, 84, 0.42);
}

.package-card.selected {
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(217, 54, 84, 0.16);
}

.package-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.package-card strong {
  font-size: 24px;
  line-height: 1;
}

.package-card small {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 700px) {
  .credit-packages {
    grid-template-columns: 1fr;
  }
}

.account-chip {
  justify-self: end;
  display: inline-grid;
  gap: 2px;
  min-width: 116px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  transition: transform 180ms ease, background 180ms ease;
}

.account-chip:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.account-chip:active {
  transform: translateY(1px);
}

.account-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.account-chip strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
}

@media (min-width: 701px) {
  .credit-packages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .account-chip {
    min-width: 94px;
    padding: 7px 12px;
  }
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 700px) {
  body {
    padding-bottom: 86px;
    background: #f5f7f6;
  }

  .topbar {
    min-height: 58px;
    padding: 8px 14px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
  }

  .account-chip {
    min-width: 76px;
    padding: 6px 10px;
    border-color: var(--line);
    background: #ffffff;
  }

  .account-chip span {
    display: none;
  }

  .account-chip strong {
    font-size: 13px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 14px 34px;
  }

  .hero-copy {
    display: contents;
  }

  .kicker {
    margin-bottom: 10px;
    font-size: 12px;
  }

  h1 {
    order: 1;
    margin-bottom: 0;
    font-size: 36px;
    line-height: 1.04;
  }

  .hero-text {
    order: 2;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.58;
  }

  .hero-proof {
    order: 3;
    display: grid;
    grid-template-columns: 0.84fr 1fr;
    gap: 8px;
    width: 100%;
    min-height: 0;
  }

  .proof-photo {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    transform: none;
    border: 0;
    box-shadow: 0 14px 36px rgba(20, 36, 32, 0.14);
  }

  .proof-after {
    border: 4px solid #ffffff;
  }

  .proof-photo figcaption,
  .case-images figcaption {
    left: 9px;
    bottom: 9px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .hero-actions {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 9px;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    min-height: 46px;
    padding: 0 10px;
  }

  .hero-facts {
    order: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 0;
  }

  .hero-facts div {
    min-width: 0;
    padding: 10px 8px;
  }

  .hero-facts dt {
    font-size: 16px;
  }

  .hero-facts dd {
    font-size: 11px;
    line-height: 1.3;
  }

  .studio,
  .demo-gallery,
  .privacy-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

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

  h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .section-heading p {
    font-size: 14px;
    line-height: 1.58;
  }

  .workbench {
    gap: 14px;
  }

  .upload-panel,
  .preview-panel,
  .feature-case,
  .privacy-section {
    box-shadow: 0 14px 42px rgba(20, 36, 32, 0.1);
  }

  .upload-panel {
    gap: 14px;
    padding: 14px;
  }

  .dropzone {
    min-height: 150px;
    padding: 18px 14px;
  }

  .drop-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 9px;
  }

  .controls {
    gap: 10px;
  }

  select,
  .primary-btn,
  .ghost-btn,
  .secondary-btn {
    min-height: 48px;
  }

  .credit-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .package-card {
    min-height: 94px;
    padding: 12px;
  }

  .package-card strong {
    font-size: 22px;
  }

  .payment-box {
    padding: 13px;
  }

  .payment-box strong {
    font-size: 22px;
  }

  .preview-panel {
    gap: 12px;
    padding: 12px;
  }

  .preview-slot,
  .result-slot {
    min-height: 360px;
    aspect-ratio: 3 / 4;
  }

  .feature-case {
    padding: 12px;
    gap: 12px;
  }

  .case-copy {
    padding: 18px;
  }

  .case-copy h3 {
    font-size: 24px;
  }

  .case-copy p {
    font-size: 14px;
    line-height: 1.58;
  }

  .case-images {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .case-images figure {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .privacy-section {
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer {
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
  }

  .mobile-action-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 8px;
    border: 1px solid rgba(17, 20, 20, 0.1);
    border-radius: 999px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 50px rgba(20, 36, 32, 0.2);
    backdrop-filter: blur(18px);
  }

  .mobile-action-bar a {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 900;
  }

  .mobile-action-bar a:first-child {
    border: 1px solid var(--line);
    background: #ffffff;
  }

  .mobile-action-bar span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
  }

  .mobile-action-bar strong {
    font-size: 14px;
    line-height: 1;
  }

  .mobile-action-bar .mobile-primary {
    background: var(--accent);
    color: #ffffff;
  }
}


/* Reliable desktop upload control: keep the native file picker visible. */
.dropzone input {
  position: static;
  z-index: auto;
  width: 100%;
  height: auto;
  max-width: 320px;
  margin-top: 14px;
  opacity: 1;
  cursor: pointer;
}

.dropzone > :not(input) {
  pointer-events: auto;
}

.dropzone input::file-selector-button {
  min-height: 42px;
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  background: #101817;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 24, 23, 0.16);
}

.download-btn:hover {
  transform: translateY(-1px);
}

.download-btn[hidden] {
  display: none;
}

.batch-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

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

.batch-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.batch-head small {
  color: var(--muted);
  font-weight: 800;
}

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

.batch-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: #ffffff;
}

.batch-item.running {
  border-color: rgba(217, 54, 84, 0.45);
  box-shadow: 0 10px 30px rgba(217, 54, 84, 0.1);
}

.batch-item.done {
  border-color: rgba(31, 122, 93, 0.38);
}

.batch-item.error {
  border-color: rgba(168, 23, 50, 0.42);
  background: #fff7f8;
}

.batch-thumb {
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper-soft);
  aspect-ratio: 3 / 4;
}

.batch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.batch-meta {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.batch-meta strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-save {
  justify-self: start;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: #101817;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mini-save:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 700px) {
  .batch-grid {
    grid-template-columns: 1fr;
  }

  .batch-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}


.hero-showcase {
  min-width: 0;
}

.showcase-rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 6px 18px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.showcase-rail:active {
  cursor: grabbing;
}

.showcase-rail::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  position: relative;
  flex: 0 0 min(100%, 760px);
  min-height: 710px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: translateZ(0);
}

.showcase-pair {
  position: relative;
  height: 710px;
}

.showcase-rail .proof-photo {
  position: absolute;
  cursor: zoom-in;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.showcase-rail .proof-photo:active {
  transform: scale(0.985) rotate(var(--proof-rotate, 0deg));
}

.showcase-rail .proof-before {
  --proof-rotate: -4deg;
  top: 86px;
  left: 0;
  width: 44%;
  height: 515px;
  transform: rotate(-4deg);
}

.showcase-rail .proof-after {
  --proof-rotate: 0deg;
  top: 0;
  right: 0;
  width: 64%;
  height: 700px;
  border: 8px solid #ffffff;
  transform: none;
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.showcase-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #c8d1ce;
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.showcase-dots button.active {
  width: 26px;
  background: var(--ink);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 18, 15, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(10px);
}

.image-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(94vw, 1200px);
  max-height: 90vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.account-chip,
.mobile-action-bar button {
  font: inherit;
}

.account-chip {
  cursor: pointer;
}

.mobile-action-bar button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

@media (max-width: 700px) {
  .mobile-action-bar button {
    display: grid;
    place-items: center;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 900;
  }
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 20, 17, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.account-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.announcement-modal { position:fixed; inset:0; z-index:1050; display:grid; place-items:center; padding:20px; background:rgba(10,20,17,.52); opacity:0; pointer-events:none; transition:opacity .18s ease; }
.announcement-modal.open { opacity:1; pointer-events:auto; }
.announcement-dialog { position:relative; width:min(100%,430px); max-height:calc(100vh - 40px); overflow:auto; padding:28px; border-radius:8px; background:#fff; box-shadow:0 24px 72px rgba(13,24,20,.28); text-align:center; }
.announcement-dialog h2 { margin:3px 0 8px; font-size:25px; }.announcement-dialog p:not(.kicker) { margin:0 0 18px; color:var(--muted); line-height:1.6; }.announcement-dialog img { width:min(100%,288px); margin:0 auto 16px; border-radius:6px; }.announcement-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:28px; cursor:pointer; }.group-number { display:flex; align-items:center; justify-content:center; gap:9px; flex-wrap:wrap; }.group-number span { color:var(--muted); }.group-number strong { font-size:18px; }.group-number button { border:1px solid var(--line); border-radius:6px; background:#fff; padding:7px 10px; cursor:pointer; font:inherit; }

@media (max-width: 700px) {
  .studio { padding:42px 14px 28px; }.studio-heading { margin-bottom:20px; }.studio-heading h2 { font-size:27px; line-height:1.18; }.workbench { grid-template-columns:1fr; gap:14px; }.upload-panel { padding:14px; gap:14px; }.dropzone { min-height:176px; padding:18px; }.controls { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.controls label { min-width:0; }.controls select { width:100%; min-height:44px; }.credit-packages { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.package-card { min-height:106px; padding:12px 8px; }.payment-box { gap:12px; padding:14px; }.payment-box .ghost-btn { min-height:44px; padding:0 12px; white-space:nowrap; }.preview-panel { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.preview-card { min-width:0; padding:10px; }.preview-slot,.result-slot { min-height:220px; }.batch-panel { grid-column:1 / -1; }.announcement-modal { padding:12px; }.announcement-dialog { width:100%; max-height:calc(100vh - 24px); padding:24px 18px 18px; }.announcement-dialog h2 { font-size:23px; }.announcement-dialog img { width:min(100%,270px); }.group-number { display:grid; grid-template-columns:auto 1fr auto; font-size:14px; }.account-dialog { max-height:calc(100vh - 24px); overflow:auto; padding:26px 18px 18px; }.auth-form input { min-height:46px; }.verification-row { grid-template-columns:minmax(0,1fr) 98px; }
}

.account-dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(13, 24, 20, 0.24);
}

.account-dialog h2 { margin: 4px 0 8px; }
.account-copy { margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.account-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.account-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.account-tabs button { padding: 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.account-tabs button.active { border-color: var(--accent); color: var(--ink); font-weight: 800; }
.auth-form { display: grid; gap: 14px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.auth-form .primary-btn { width: 100%; margin-top: 4px; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.verification-row button { min-width: 102px; padding: 0 12px; border-radius: 6px; background: var(--ink); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.verification-row button:disabled { cursor: not-allowed; opacity: 0.6; }
.auth-status { min-height: 22px; margin: 14px 0 0; font-size: 14px; }
.auth-status.good { color: #147845; }
.auth-status.bad { color: #ba263d; }
.account-summary { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #f7faf8; }
.account-summary strong { font-size: 22px; }
.account-summary span { color: var(--muted); }
.account-summary b { margin-top: 5px; }
.text-button { margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; }

.account-history { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.account-history-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }.account-history-head span { color:var(--muted); font-size:13px; }
.account-history-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.history-item { overflow:hidden; border:1px solid var(--line); border-radius:6px; background:#fff; }.history-item img { width:100%; aspect-ratio:1/1; object-fit:cover; }.history-item div { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:8px; }.history-item span { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.history-item button { flex:0 0 auto; border:1px solid var(--line); border-radius:5px; background:#fff; padding:5px 7px; cursor:pointer; font:inherit; font-size:12px; }.history-empty { margin:0; color:var(--muted); font-size:13px; }

@media (max-width:700px) { .account-history-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.history-item div { display:grid; gap:6px; }.history-item button { width:100%; min-height:34px; }.download-btn { min-height:46px; } }

@media (max-width: 900px) {
  .showcase-card,
  .showcase-pair {
    height: 640px;
    min-height: 640px;
  }

  .showcase-card {
    flex-basis: min(100%, 620px);
  }
}

@media (max-width: 700px) {
  .hero-showcase {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .showcase-rail.hero-proof {
    display: flex;
    grid-template-columns: none;
    gap: 18px;
    width: calc(100% + 36px);
    min-height: 520px;
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 18px 18px;
  }

  .showcase-card {
    flex: 0 0 92vw;
    height: 520px;
    min-height: 520px;
  }

  .showcase-pair {
    height: 520px;
  }

  .showcase-rail .proof-photo {
    position: absolute;
    inset: auto;
    min-height: 0;
    aspect-ratio: auto;
    box-shadow: 0 14px 36px rgba(20, 36, 32, 0.14);
  }

  .showcase-rail .proof-before {
    top: 74px;
    left: 0;
    width: 48%;
    height: 390px;
    transform: rotate(-4deg);
  }

  .showcase-rail .proof-after {
    top: 0;
    right: 0;
    width: 69%;
    height: 500px;
    border: 5px solid #ffffff;
    transform: none;
  }

  .showcase-dots {
    margin-top: 4px;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox img {
    max-width: 96vw;
    max-height: 86vh;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-rail {
    scroll-behavior: auto;
  }

  .image-lightbox {
    transition: none;
  }
}
