:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --ink: #111111;
  --muted: #666666;
  --line: #e3e3e3;
  --line-strong: #cfcfcf;
  --black: #111111;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

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

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

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

.site-header,
.site-footer,
.hero,
.section-block,
.page-band {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.top-banner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 44px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.top-banner[hidden] {
  display: none;
}

.top-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  text-align: center;
}

.top-banner-link strong {
  font-weight: 900;
}

.top-banner-highlight {
  color: #ffe66d;
}

.top-banner-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  position: relative;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #f2f2f2 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.top-banner-icon::before,
.top-banner-icon::after {
  content: "";
  position: absolute;
}

.top-banner-gift::before {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, #9f111b 0%, #111 76%);
}

.top-banner-gift::after {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(90deg);
  box-shadow: 0 0 0 0 #fff, 0 -5px 0 #fff;
}

.top-banner-spark {
  background: transparent;
  box-shadow: none;
}

.top-banner-spark::before {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 2px, transparent 3px),
    conic-gradient(from 0deg, transparent 0 10deg, #fff 10deg 18deg, transparent 18deg 62deg, #9f111b 62deg 72deg, transparent 72deg 126deg, #fff 126deg 136deg, transparent 136deg 206deg, #9f111b 206deg 218deg, transparent 218deg 284deg, #fff 284deg 294deg, transparent 294deg);
}

.top-banner-spark::after {
  width: 5px;
  height: 5px;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  background: #9f111b;
  box-shadow: -18px 7px 0 #fff, -7px 19px 0 #fff;
}

.top-banner-close {
  position: absolute;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-header {
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: 0;
  padding-inline: max(20px, calc((100% - 1120px) / 2));
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 245, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.nav-menu,
.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 21px;
  font-weight: 850;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  font-size: 17px;
}

.site-nav {
  position: relative;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-menu {
  gap: 22px;
}

.site-nav a:hover,
.nav-menu-toggle:hover {
  color: var(--ink);
}

.nav-menu-toggle {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.nav-menu-toggle span:not(.sr-only) {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--black);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
}

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

.hero {
  min-height: calc(100vh - 138px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  align-items: center;
  gap: 48px;
  padding: 40px 0 72px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #4b4b4b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-title-icon {
  width: 84px;
  height: 84px;
  display: none;
  position: relative;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 245, 0.96)),
    #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
}

.hero-title-icon span {
  position: absolute;
  border-radius: 10px;
}

.hero-title-icon span:first-child {
  left: 15px;
  top: 17px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    #fff;
  background-size: 12px 12px;
}

.hero-title-icon span:last-child {
  right: 13px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(159, 17, 27, 0.9) 0%, rgba(17, 17, 17, 0.98) 72%),
    #111;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.hero-title-icon::before,
.hero-title-icon::after {
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: 999px;
}

.hero-title-icon::before {
  left: 25px;
  bottom: 22px;
  width: 18px;
  height: 4px;
  background: #9f111b;
}

.hero-title-icon::after {
  right: 25px;
  top: 27px;
  width: 4px;
  height: 20px;
  background: #fff;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}

@media (min-width: 761px) {
  .hero-copy h1 {
    margin-top: 52px;
    margin-bottom: 62px;
  }
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-text,
.page-heading p,
.feature-grid article p,
.steps,
.empty-preview {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-text strong {
  color: #333;
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-actions,
.form-actions {
  gap: 12px;
}

.seller-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.seller-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 850;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--black);
}

.button.primary {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.button.ghost {
  background: transparent;
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.button[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.flash-messages {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 18px;
}

.flash-messages p {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 13px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.processing-page {
  min-height: calc(100vh - 162px);
  width: min(760px, calc(100% - 40px));
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 56px 0 90px;
}

.processing-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 54px);
  background: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.processing-panel h1 {
  margin-inline: auto;
  font-size: clamp(34px, 6vw, 56px);
}

.spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border: 4px solid #e8e8e8;
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

#processing-step {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}

.processing-steps {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  color: var(--muted);
  list-style: none;
  text-align: left;
}

.processing-steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-soft);
}

.processing-error {
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

.product-stage {
  width: min(600px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 42px 42px;
  box-shadow: var(--shadow);
}

.product-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.product-card span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-card.before {
  position: relative;
}

.product-card.after {
  position: relative;
  transform: translateY(18px);
  background: #f8f8f8;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}

.product-card img,
.mock-product {
  min-height: 0;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-soft);
}

.mock-product {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #efefef);
  text-align: center;
}

.mock-product strong {
  font-size: 25px;
  letter-spacing: 0;
}

.mock-product small {
  color: var(--muted);
}

.mock-product.premium {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(140deg, #efefef, #ffffff 46%, #dcdcdc);
}

.metric-panel {
  width: min(600px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.metric-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-panel strong {
  display: block;
  margin: 0;
  font-size: 34px;
}

.metric-panel small {
  color: var(--muted);
}

.marketplace-strip {
  width: min(600px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.market-logo {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.market-logo.smartstore {
  color: #03c75a;
}

.market-logo.coupang {
  color: #e5231f;
  font-size: 18px;
}

.market-logo.eleven {
  color: #d71920;
  font-size: 17px;
}

.market-logo.auction {
  color: #d71920;
}

.market-logo.gmarket {
  color: #00a651;
}

.section-block {
  padding: 34px 0 88px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: end;
}

.section-heading-row p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.sample-section {
  border-top: 1px solid var(--line);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.sample-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.sample-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.sample-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  aspect-ratio: 1 / 1;
}

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

.sample-card figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 12px;
  font-weight: 850;
}

.sample-card h3 {
  margin-bottom: 8px;
}

.sample-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-preview-section {
  border-top: 1px solid var(--line);
}

.faq-preview-layout,
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-preview-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin-top: 28px;
}

.faq-preview-layout {
  min-width: 0;
}

.faq-list {
  max-width: 900px;
}

.faq-preview-layout details,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.faq-preview-layout summary,
.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-preview-layout summary::after,
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.faq-preview-layout details[open] summary::after,
.faq-list details[open] summary::after {
  content: "-";
}

.faq-preview-layout p,
.faq-list p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-preview-action {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-soft);
}

.faq-preview-action p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-preview-action strong {
  color: var(--ink);
  font-size: 18px;
}

.home-page.reveal-ready .reveal-target {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.home-page.reveal-ready .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-page.reveal-ready .hero-visual .reveal-target {
  transform: translateY(18px) scale(0.985);
}

.home-page.reveal-ready .hero-visual .reveal-target.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .home-page.reveal-ready .reveal-target,
  .home-page.reveal-ready .hero-visual .reveal-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-grid article,
.upload-form,
.image-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.feature-grid article {
  padding: 24px;
}

.feature-grid article span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
}

.steps {
  margin: 0;
  padding-left: 24px;
}

.steps li + li {
  margin-top: 13px;
}

.page-band {
  padding: 58px 0 90px;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.page-heading h1 {
  font-size: clamp(36px, 5.6vw, 64px);
}

.upload-form {
  max-width: 960px;
  padding: 22px;
}

.upload-examples {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 22px;
}

.upload-example {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.upload-example .sample-pair {
  margin-bottom: 12px;
}

.upload-example figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  aspect-ratio: 1 / 1;
}

.upload-example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-example figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 12px;
  font-weight: 850;
}

.upload-example h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.upload-guide-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: 12px;
  row-gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.upload-guide-panel span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.upload-guide-panel strong {
  align-self: center;
  font-size: 18px;
  line-height: 1.35;
}

.dropzone {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 34px;
  background: var(--surface-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.dropzone.is-dragover {
  border-color: #9f111b;
  background: #fff8f8;
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9f111b 0%, #5f0710 48%, #111111 100%);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(159, 17, 27, 0.26);
}

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

.dropzone small,
.option-card small {
  color: var(--muted);
}

.dropzone input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.upload-preview {
  width: min(100%, 520px);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.upload-preview[hidden] {
  display: none;
}

.upload-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface-soft);
}

.form-section {
  margin-top: 28px;
}

.form-section h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.optional-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.request-note-field {
  display: block;
}

.request-note-field textarea {
  width: 100%;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.request-note-field textarea:focus {
  outline: 2px solid rgba(17, 17, 17, 0.14);
  outline-offset: 2px;
  border-color: var(--black);
}

.upload-url-section {
  margin-top: 18px;
}

.upload-url-section input[type="url"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.upload-url-section input[type="url"]:focus {
  outline: 2px solid rgba(17, 17, 17, 0.14);
  outline-offset: 2px;
  border-color: var(--black);
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.bulk-url-section textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.bulk-url-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bulk-job-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.bulk-job-list[hidden] {
  display: none;
}

.bulk-job-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 8px;
}

.bulk-job-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.bulk-job-url {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-job-status {
  font-size: 13px;
  font-weight: 750;
}

.bulk-job-result img {
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

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

.bulk-job-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.bulk-job-panel-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bulk-job-panel .bulk-job-result img {
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

@media (max-width: 760px) {
  .bulk-job-compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

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

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

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

.option-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
}

.option-card.compact {
  min-height: 76px;
}

.option-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--black);
}

.option-card span {
  font-weight: 850;
  line-height: 1.3;
}

.option-card em {
  display: inline-flex;
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.option-card:has(input:checked) {
  border-color: var(--black);
  box-shadow: inset 0 0 0 1px var(--black);
}

.disabled-card {
  opacity: 0.58;
  cursor: not-allowed;
}

.disabled-card input {
  cursor: not-allowed;
}

.upload-form .form-actions,
.page-band > .form-actions {
  margin-top: 22px;
}

.auth-page {
  max-width: 560px;
}

.auth-heading {
  margin-bottom: 20px;
}

.auth-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.policy-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.auth-form input,
.auth-form textarea {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  font: inherit;
  background: #fff;
}

.auth-form textarea {
  min-height: 180px;
  padding: 13px;
  resize: vertical;
  line-height: 1.6;
}

.contact-page {
  max-width: 720px;
}

.contact-form {
  margin-bottom: 80px;
}

.contact-website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.social-button {
  width: 100%;
  justify-content: center;
  background: #fff;
}

.google-button::before {
  content: "G";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-right: 8px;
  color: #4285f4;
  font-weight: 900;
}

.naver-button {
  border-color: #03c75a;
  color: #03c75a;
}

.naver-button::before {
  content: "N";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  margin-right: 8px;
  background: #03c75a;
  color: #fff;
  font-weight: 900;
}

.auth-link {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-link a {
  color: var(--ink);
  font-weight: 850;
}

.credit-notice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
}

.credit-notice strong,
.credit-notice a {
  font-size: 14px;
}

.credit-balance {
  color: #9f111b;
}

.credit-notice a {
  color: var(--muted);
  font-weight: 850;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
}

.dashboard-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.dashboard-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.dashboard-summary strong {
  font-size: 28px;
}

.dashboard-email {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.account-panel {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.account-field {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.account-field span,
.account-field small {
  color: var(--muted);
}

.account-field span {
  font-size: 13px;
  font-weight: 850;
}

.account-field strong {
  overflow-wrap: anywhere;
  font-size: 22px;
}

.account-field .button {
  width: fit-content;
}

.social-account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-content {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.policy-content section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.policy-content h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.policy-content p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.account-dialog {
  width: min(100% - 28px, 460px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.dialog-form {
  border: 0;
  max-width: none;
}

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

.dialog-heading h2 {
  margin: 0;
  font-size: 24px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.auth-provider-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-provider-list {
  margin-top: 10px;
}

.auth-provider-badge {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.auth-provider-email {
  background: #111;
  color: #fff;
}

.auth-provider-google {
  color: #4285f4;
}

.auth-provider-naver {
  border-color: #03c75a;
  background: #03c75a;
  color: #fff;
}

.auth-provider-kakao {
  border-color: #fee500;
  background: #fee500;
  color: #111;
}

.job-history,
.billing-history {
  margin-top: 34px;
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.job-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.job-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.job-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.job-row strong,
.job-row small {
  display: block;
}

.job-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.empty-history {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.empty-history p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.bank-info {
  max-width: 520px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.bank-info span,
.billing-request-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.bank-info strong {
  font-size: 22px;
}

.bank-info small {
  color: var(--muted);
}

.pricing-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
}

.pricing-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.pricing-card strong {
  display: block;
  font-size: 24px;
}

.pricing-card p,
.pricing-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-card form,
.pricing-card .button {
  margin-top: auto;
}

.billing-request-form {
  display: grid;
  gap: 10px;
}

.billing-request-form label {
  display: grid;
  gap: 6px;
}

.billing-request-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.pricing-card form .button {
  width: 100%;
}

.billing-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.billing-row strong,
.billing-row small {
  display: block;
}

.billing-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 850;
}

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

.admin-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.admin-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-summary strong {
  font-size: 30px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.admin-table a {
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inquiry-table {
  min-width: 920px;
}

.inquiry-message {
  min-width: 280px;
  max-width: 520px;
  white-space: pre-wrap;
  line-height: 1.55;
}

.stats-summary strong {
  overflow-wrap: anywhere;
}

.stats-summary .warning-card {
  border-color: #d55b5b;
  background: #fff0f0;
}

.stats-summary .warning-card span,
.stats-summary .warning-card strong {
  color: #8b1e1e;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stats-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.stats-panel h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.stats-panel p {
  margin: 0;
  color: var(--muted);
}

.ip-stats-panel {
  grid-column: 1 / -1;
}

.ip-stats-panel .stats-bar-row {
  grid-template-columns: minmax(220px, 1.15fr) minmax(240px, 3fr) 52px;
}

.stats-bars {
  display: grid;
  gap: 12px;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.9fr) minmax(120px, 1.8fr) 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stats-bar-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.stats-bar-row i {
  height: 100%;
  min-width: 2px;
  display: block;
  border-radius: inherit;
  background: #111;
}

.stats-bar-row strong {
  color: var(--ink);
  text-align: right;
}

.daily-stats-panel {
  margin-top: 16px;
}

.daily-stats {
  height: 180px;
  display: grid;
  grid-template-columns: repeat(30, minmax(18px, 1fr));
  align-items: end;
  gap: 6px;
  padding-top: 28px;
}

.daily-stat {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 7px;
}

.daily-stat i {
  position: relative;
  width: 100%;
  min-height: 2px;
  display: block;
  border-radius: 6px 6px 0 0;
  background: #111;
}

.daily-stat i b {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.daily-stat span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  writing-mode: vertical-rl;
}

.stats-event-table {
  min-width: 1080px;
}

.stats-panel + .stats-panel {
  margin-top: 16px;
}

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

.traffic-alert-list article {
  border: 1px solid #d55b5b;
  border-radius: 8px;
  padding: 12px;
  background: #fff0f0;
}

.traffic-alert-list strong,
.traffic-alert-list span,
.traffic-alert-list small {
  display: block;
}

.traffic-alert-list strong {
  margin-bottom: 5px;
  color: #8b1e1e;
}

.traffic-alert-list span {
  color: var(--ink);
  font-weight: 850;
}

.traffic-alert-list small {
  margin-top: 5px;
  color: var(--muted);
}

.traffic-alert-list form {
  margin-top: 10px;
}

.ip-block-panel {
  margin-top: 16px;
}

.stats-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stats-panel-heading h2 {
  margin-bottom: 0;
}

.stats-panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.ip-block-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.ip-block-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.ip-block-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ip-block-table {
  min-width: 760px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions .button {
  min-height: 34px;
  padding: 0 11px;
}

.credit-grant-form {
  display: grid;
  grid-template-columns: 90px minmax(140px, 1fr) auto;
  gap: 8px;
  min-width: 330px;
}

.credit-grant-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.credit-grant-form .button {
  min-height: 38px;
  padding: 0 12px;
}

.admin-history-section {
  margin-top: 26px;
}

.admin-history-section h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.api-balance-panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
}

.api-balance-panel h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.api-balance-panel p {
  color: var(--muted);
}

.api-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.api-balance-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.api-balance-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.api-balance-grid strong {
  display: block;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.api-balance-form {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.api-balance-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.api-balance-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.api-balance-history {
  margin-top: 22px;
}

.api-balance-history h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.balance-warning {
  margin-top: 14px;
  border: 1px solid #d8b24c;
  border-radius: 8px;
  padding: 12px;
  background: #fff8e5;
  color: #6f4d00;
  font-weight: 850;
}

.balance-warning.strong {
  border-color: #d55b5b;
  background: #fff0f0;
  color: #8b1e1e;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
  align-items: stretch;
}

.image-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.image-preview,
.generated-preview,
.empty-preview {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: contain;
}

.original-preview {
  aspect-ratio: auto;
  min-height: 360px;
}

.result-preview {
  aspect-ratio: 1 / 1;
}

.result-heading {
  margin-bottom: 24px;
}

.job-meta {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-compare-grid {
  margin-bottom: 24px;
}

.result-card {
  min-height: 606px;
}

.featured-result-card {
  border-color: var(--black);
}

.fixed-preview {
  height: 520px;
  min-height: 520px;
  aspect-ratio: auto;
}

.result-message-box {
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface-soft);
  text-align: center;
}

.result-message-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.empty-preview,
.generated-preview {
  display: grid;
  place-items: center;
  padding: 24px;
}

.generated-preview {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #f7f7f7;
  background-size: 36px 36px;
}

.loading-preview .mock-product {
  animation: pulse 1.8s ease-in-out infinite;
}

.error-preview {
  background: #f8f8f8;
}

.generated-preview .mock-product {
  width: min(260px, 74%);
  min-height: 250px;
  background: linear-gradient(145deg, #fff, #e9e9e9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.result-alert {
  max-width: 760px;
  margin: 0 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.result-alert strong {
  display: block;
  margin-bottom: 6px;
}

.result-alert p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

.site-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.footer-contact-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink) !important;
  font-weight: 800 !important;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 26px;
  }

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

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

@media (max-width: 760px) {
  .top-banner {
    min-height: 74px;
    justify-content: center;
    padding: 18px 48px 18px 14px;
    font-size: 13px;
    line-height: 1.45;
  }

  .top-banner-link {
    width: min(100%, 520px);
    justify-content: center;
    text-align: center;
  }

  .top-banner-close {
    right: 10px;
  }

  .top-banner-extra {
    display: none;
  }

  .site-header,
  .site-footer,
  .hero,
  .section-block,
  .page-band {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    width: 100%;
    height: 68px;
    align-items: center;
    margin-inline: 0;
    padding: 18px 14px;
  }

  .site-nav {
    margin-left: auto;
    gap: 8px;
    font-size: 14px;
  }

  .nav-cta {
    order: 1;
    min-height: 40px;
    padding-inline: 12px;
  }

  .nav-menu-toggle {
    order: 2;
    display: inline-grid;
    gap: 3px;
  }

  .nav-menu {
    order: 3;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    min-width: 168px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open .nav-menu {
    display: flex;
  }

  .nav-menu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    padding: 0 10px;
  }

  .nav-menu a:hover {
    background: var(--surface-soft);
  }

  h1 {
    font-size: 38px;
    line-height: 1.12;
    margin-bottom: 24px;
  }

  .hero {
    gap: 30px;
    padding-top: 62px;
    padding-bottom: 82px;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
    padding-bottom: 28px;
    text-align: center;
  }

  .hero-copy .eyebrow {
    order: 3;
    margin-top: -42px;
    margin-bottom: 60px;
  }

  .hero-title-icon {
    order: 1;
    display: block;
  }

  .hero-copy h1 {
    order: 2;
  }

  .hero-copy .hero-text {
    order: 4;
  }

  .hero-copy .seller-points {
    order: 5;
  }

  .hero-copy .hero-actions {
    order: 6;
  }

  .hero-text {
    margin-bottom: 24px;
    line-height: 1.8;
  }

  .seller-points {
    justify-content: center;
    margin-bottom: 30px;
    row-gap: 10px;
  }

  .hero-actions {
    gap: 14px;
    flex-direction: row;
    justify-content: center;
  }

  .feature-grid,
  .sample-grid,
  .faq-preview-layout,
  .upload-examples,
  .section-heading-row,
  .split-section,
  .mode-grid,
  .angle-grid,
  .ratio-grid,
  .dashboard-summary,
  .pricing-panel,
  .admin-summary,
  .stats-grid,
  .api-balance-grid,
  .api-balance-form,
  .ip-block-form,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .daily-stats {
    overflow-x: auto;
    grid-template-columns: repeat(30, 24px);
  }

  .ip-stats-panel .stats-bar-row {
    grid-template-columns: minmax(92px, 0.9fr) minmax(120px, 1.8fr) 44px;
  }

  .form-actions,
  .result-actions,
  .credit-notice,
  .faq-preview-action,
  .account-field .button,
  .social-account-links,
  .job-row,
  .billing-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: auto;
    flex: 0 1 148px;
    min-width: 0;
    padding-inline: 12px;
  }

  .hero .hero-actions .button {
    width: auto;
  }

  .hero .hero-actions {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .result-card {
    min-height: auto;
  }

  .fixed-preview {
    height: 420px;
    min-height: 420px;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .footer-links {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .footer-links a + a::before {
    content: "|";
    margin-right: 8px;
    color: var(--muted);
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 76px;
  }

  .hero h1 {
    font-size: 35px;
    line-height: 1.14;
    margin-bottom: 53px;
  }

  .hero h1 span {
    display: block;
  }

  .hero .eyebrow {
    margin-bottom: 60px;
  }

  .hero-text {
    margin-bottom: 34px;
  }

  .hero-visual {
    min-height: 690px;
  }

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

  .product-stage {
    width: min(360px, 100%);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .product-card.after {
    transform: none;
  }

  .metric-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .dropzone {
    min-height: 220px;
    padding: 24px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .hero h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 28px;
  }

  .hero-copy .eyebrow {
    margin-top: 0;
    margin-bottom: 48px;
  }
}
