:root {
  --bg: #f3efe7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #fffdf9;
  --line: rgba(36, 28, 21, 0.12);
  --text: #211914;
  --muted: #6d6259;
  --accent: #b4492d;
  --accent-dark: #8d2f18;
  --shadow: 0 22px 60px rgba(48, 32, 16, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 73, 45, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(33, 25, 20, 0.12), transparent 25%),
    linear-gradient(135deg, #f6f0e7 0%, #efe7db 100%);
}

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

[hidden] {
  display: none !important;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(247, 243, 236, 0.84);
  border-bottom: 1px solid rgba(52, 41, 31, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

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

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #d29b55);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-text strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
}

.topbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
  min-height: 86px;
  padding: 8px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #e8b55f);
  box-shadow: 0 0 0 8px rgba(180, 73, 45, 0.12);
}

.topnav,
.topbar-actions,
.hero-actions,
.community-points {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav {
  justify-content: center;
}

.topbar-actions {
  justify-content: flex-end;
  min-width: 244px;
}

.topnav a {
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
}

.topnav a[aria-current="page"] {
  background: rgba(180, 73, 45, 0.14);
  color: var(--accent-dark);
}

.homepage {
  display: grid;
  gap: 28px;
}

.catalog-home {
  display: grid;
  gap: 24px;
  min-width: 0;
  width: 100%;
}

.marketplace-main {
  margin-top: 8px;
}

.marketplace-site-header + .site-shell {
  padding-top: 24px;
}

.marketplace-header-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

.marketplace-nav {
  justify-content: center;
}

.marketplace-session-actions {
  justify-content: flex-end;
  min-width: 244px;
}

.landing-section {
  display: grid;
  gap: 20px;
  padding: 0;
}

.landing-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.landing-section-kicker {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.landing-section-header h1,
.landing-section-header h2 {
  margin: 0;
}

.landing-section-copy {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.landing-section-news {
  margin-top: 8px;
}

.product-price-meta {
  color: var(--accent);
  font-size: inherit;
  letter-spacing: 0;
  text-transform: uppercase;
  visibility: hidden;
}

.category-browser {
  display: grid;
  gap: 18px;
  width: 100%;
}

.catalog-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  width: 100%;
}

.category-cloud {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(33, 25, 20, 0.06);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
  text-align: center;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: max-content;
}

.category-chip:hover {
  transform: translateY(-1px);
}

.category-chip-major {
  background: rgba(180, 73, 45, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
}

.category-chip-sub {
  background: rgba(33, 25, 20, 0.06);
}

.category-chip.is-active {
  background: var(--accent);
  color: #fff8f4;
}

.hero,
.sub-header,
.form-card,
.detail-card,
.product-card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border-radius: 32px;
  align-items: flex-end;
  margin-bottom: 36px;
}

.hero-home {
  align-items: stretch;
  margin-bottom: 0;
}

.hero-copy-block {
  flex: 1 1 58%;
}

.hero-panel {
  flex: 1 1 42%;
  display: grid;
  gap: 16px;
}

.hero-panel-card,
.hero-floating-card,
.metrics-strip article,
.category-feature,
.workflow-card,
.community-banner {
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel-card,
.hero-floating-card {
  border-radius: 28px;
  padding: 24px;
}

.panel-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

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

.hero-stat-grid article,
.metrics-strip article {
  display: grid;
  gap: 8px;
}

.hero-stat-grid strong,
.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  line-height: 1;
}

.hero-stat-grid span,
.signal-list,
.metrics-strip p,
.category-feature p,
.workflow-card p,
.community-banner p {
  color: var(--muted);
}

.signal-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metrics-strip article {
  border-radius: 24px;
  padding: 22px;
}

.metric-value {
  color: var(--accent-dark);
}

.hero h1,
.register-copy h1,
.detail-content h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy,
.section-copy,
.register-copy p,
.detail-description,
.empty-state p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.section-label,
.product-category {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff8f4;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: var(--surface-strong);
  border-color: var(--line);
}

.session-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(33, 25, 20, 0.07);
  font-weight: 700;
}

.showcase-section,
.workflow-section {
  display: grid;
  gap: 22px;
}

.section-head,
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.sub-header {
  padding: 18px 22px;
  border-radius: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 272px);
  gap: 22px;
  width: 100%;
  min-width: 0;
  align-items: start;
  justify-items: stretch;
  justify-content: space-between;
}

.category-showcase,
.workflow-grid {
  display: grid;
  gap: 18px;
}

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

.category-feature,
.workflow-card,
.community-banner {
  border-radius: 28px;
  padding: 24px;
}

.category-feature h3,
.workflow-card h3,
.community-banner h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.category-kicker,
.workflow-step {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(33, 25, 20, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.accent-one {
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.92), rgba(255, 252, 246, 0.78)),
    radial-gradient(circle at top right, rgba(180, 73, 45, 0.2), transparent 32%);
}

.accent-two {
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.92), rgba(255, 252, 246, 0.78)),
    radial-gradient(circle at top right, rgba(122, 98, 217, 0.12), transparent 32%);
}

.accent-three {
  background:
    linear-gradient(180deg, rgba(248, 245, 239, 0.92), rgba(255, 252, 246, 0.78)),
    radial-gradient(circle at top right, rgba(232, 181, 95, 0.18), transparent 32%);
}

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

.workflow-step {
  color: var(--accent-dark);
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 100%;
  min-width: 0;
  min-height: 320px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(48, 32, 16, 0.16);
}

.product-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #c8b39a, #8f6e55);
  width: 100%;
}

.product-image.is-contained,
.detail-image.is-contained,
.preview-draggable-image.is-contained {
  object-fit: contain;
}

.product-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
  flex: 1 1 auto;
  padding: 10px 14px 14px;
}

.product-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.product-price {
  display: inline-flex;
  width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4ef;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0;
  flex-shrink: 0;
  justify-content: center;
}

.product-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  padding-top: 0;
}

.product-like-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

.product-like-icon {
  color: var(--accent);
  line-height: 1;
}

.product-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-categories,
.selected-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.product-meta-row .product-categories {
  margin-bottom: 0;
  min-width: 0;
}

.product-meta-row .category-tag {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(180, 73, 45, 0.1);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
}

.register-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.register-detail-form {
  display: grid;
  gap: 24px;
}

.register-type-card {
  display: grid;
  gap: 18px;
}

.register-type-head {
  display: grid;
  gap: 8px;
}

.register-type-head h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.04;
}

.register-type-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.register-type-option {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.register-type-option.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f4;
}

[data-market-only].is-hidden,
[data-news-only].is-hidden {
  display: none !important;
}

.register-detail-card {
  align-items: start;
}

.register-image-panel {
  display: grid;
  gap: 16px;
}

.register-thumbnail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  min-height: 0;
  object-fit: cover !important;
  border-radius: 24px;
}

.register-image-dropzone {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 340px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 24px;
  background: #e9dfd2;
}

.register-image-dropzone.has-image {
  cursor: default;
}

.register-image-dropzone.has-image .register-image-hint {
  opacity: 0;
  pointer-events: none;
}

.register-image-dropzone.is-post-mode .register-image-hint {
  display: none;
}

.register-image-dropzone.is-dragover {
  outline: 2px dashed var(--accent);
  outline-offset: 10px;
}

.register-image-clear {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 20, 15, 0.72);
  color: #fff8f4;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.register-image-dropzone.has-image .register-image-clear {
  opacity: 0;
  pointer-events: none;
}

.register-image-hint {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  display: none;
}

.register-post-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 5px;
  pointer-events: none;
  padding: 24px;
}

.register-post-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.register-post-overlay-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  color: #fff8f4;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 10px 28px rgba(16, 10, 8, 0.45);
  white-space: nowrap;
  transform-origin: left center;
  will-change: transform;
}

.register-post-overlay-line-bottom {
  align-items: flex-end;
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.95;
}

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


.register-detail-content {
  display: grid;
  gap: 18px;
}

.register-inline-field,
.register-description-field {
  display: grid;
  gap: 8px;
}

.register-file-field {
  align-items: start;
}

.register-file-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 84px;
  padding: 0 18px;
  border: 1px dashed rgba(128, 128, 128, 0.55);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.82);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.register-file-field:hover .register-file-dropzone {
  border-color: rgba(180, 73, 45, 0.55);
  background: rgba(255, 250, 244, 0.94);
}

.register-file-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

.register-file-label {
  font-weight: 600;
  color: var(--muted);
}

.register-title-field,
.register-price-field {
  display: block;
  width: 100%;
}

.register-news-title-field {
  margin-bottom: 18px;
}

.register-post-title-stack {
  display: grid;
  gap: 12px;
}

.register-field-label,
.register-inline-field > span:first-child {
  font-weight: 600;
}

.register-title-field input {
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

.register-title-field input::placeholder {
  color: rgba(43, 31, 22, 0.42);
}

.register-news-title-field input {
  border: 1px solid rgba(36, 28, 21, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 253, 249, 0.92);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.register-detail-content > .register-title-field[data-market-only] input,
.register-detail-content > .register-price-field input {
  border: 1px solid rgba(36, 28, 21, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 253, 249, 0.92);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.register-price-field input {
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
}

.register-price-field input::placeholder {
  color: rgba(180, 73, 45, 0.48);
}

.register-description-field textarea {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  background: rgba(255, 253, 249, 0.86);
  resize: vertical;
  width: 100%;
}

.register-description-field {
  display: grid;
  gap: 12px;
}

.register-description-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.register-editor-color-field input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.92);
  font: inherit;
}

.register-editor-style-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.register-editor-align-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.register-editor-symbol-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.register-editor-style {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.register-editor-symbol {
  min-height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.register-editor-align {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.align-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
}

.align-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.align-left span:nth-child(1) {
  width: 100%;
}

.align-left span:nth-child(2) {
  width: 78%;
}

.align-left span:nth-child(3) {
  width: 58%;
}

.align-center {
  align-items: center;
}

.align-center span:nth-child(1) {
  width: 100%;
}

.align-center span:nth-child(2) {
  width: 78%;
}

.align-center span:nth-child(3) {
  width: 58%;
}

.align-right {
  align-items: flex-end;
}

.align-right span:nth-child(1) {
  width: 100%;
}

.align-right span:nth-child(2) {
  width: 78%;
}

.align-right span:nth-child(3) {
  width: 58%;
}

.register-editor-style.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f4;
}

.register-editor-align.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f4;
}

.register-editor-color-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.register-editor-color-field input {
  width: 44px;
  height: 42px;
  padding: 4px;
}

.register-description-editor {
  min-height: 380px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  background: rgba(255, 253, 249, 0.86);
  outline: none;
  line-height: 1.7;
}

.register-post-body-heading {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px 4px;
  background: rgba(255, 253, 249, 0.86);
}

.register-description-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(43, 31, 22, 0.4);
}

.register-description-editor h1,
.register-description-editor h2,
.register-description-editor p {
  margin: 0 0 14px;
}

.register-description-editor h1 {
  font-size: 2rem;
  line-height: 1.15;
}

.register-description-editor h2 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.register-description-editor p {
  font-size: 1rem;
}

.detail-card.register-description-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px;
}

.register-detail-actions {
  align-items: stretch;
}

.register-category-block {
  display: grid;
  gap: 8px;
}

.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;
}

.my-market-header {
  display: flex;
  align-items: end;
  gap: 24px;
}

.my-content-section {
  display: grid;
  gap: 18px;
}

.my-content-tabs-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.my-content-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-content-add-button {
  min-width: 152px;
}

.my-content-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.my-content-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f4;
}

.my-content-panel {
  display: none;
}

.my-content-panel.is-active {
  display: block;
}

.my-content-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.my-content-section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.my-news-grid {
  display: grid;
}

.auth-layout {
  display: flex;
  justify-content: center;
}

.preview-card {
  display: grid;
  align-content: start;
  gap: 14px;
  justify-items: start;
}

.product-preview-stage {
  display: grid;
  justify-content: start;
  min-height: 320px;
}

.detail-preview-stage {
  width: 100%;
}

.preview-copy {
  display: grid;
  gap: 4px;
}

.detail-preview-copy {
  display: grid;
  gap: 4px;
  width: 100%;
}

.preview-copy h1,
.preview-copy .section-label,
.preview-copy .section-copy {
  margin: 0;
}

.product-card-preview {
  display: flex;
  cursor: default;
  width: 272px;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.detail-card-preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  width: 100%;
  padding: 22px;
}

.detail-card-preview .detail-image {
  min-height: 240px;
}

.preview-image-shell {
  overflow: hidden;
}

.preview-draggable-image {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.preview-draggable-image:active {
  cursor: grabbing;
}

.auth-card-centered {
  width: min(560px, 100%);
}

.register-copy {
  padding: 18px 10px;
}

.form-card,
.detail-card,
.empty-state {
  border-radius: 32px;
  padding: 28px;
}

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

.auth-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

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

.auth-tab {
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f4;
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: grid;
}

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.oauth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(48, 32, 16, 0.1);
}

.oauth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(33, 25, 20, 0.1);
  flex-shrink: 0;
}

.oauth-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.oauth-mark-google {
  background: #ffffff;
}

.oauth-mark-apple {
  background: #ffffff;
  color: #111111;
}

.auth-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: var(--surface);
}


.product-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.product-form input,
.product-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: rgba(255, 253, 249, 0.9);
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-option {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.category-option:hover {
  transform: translateY(-1px);
}

.category-option.is-selected {
  background: var(--accent);
  color: #fff8f4;
  border-color: var(--accent);
}

.full-width {
  width: 100%;
}

.form-message {
  margin: 14px 0 0;
  min-height: 24px;
  color: var(--accent-dark);
  font-weight: 600;
}

.form-message.is-error {
  color: #a03226;
}

.form-message.is-success {
  color: #1f6a45;
}

.input-guide {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
}

.detail-description-panel {
  display: grid;
  gap: 14px;
}

.detail-description-panel h2,
.detail-description-panel p {
  margin: 0;
}

.rich-description h1,
.rich-description h2,
.rich-description p,
.rich-description ul,
.rich-description ol {
  margin: 0 0 14px;
}

.rich-description hr {
  border: 0;
  border-top: 1px solid rgba(128, 128, 128, 0.5);
  margin: 18px 0;
}

.rich-description h1 {
  font-size: 2rem;
  line-height: 1.15;
}

.rich-description h2 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: 24px;
}

.detail-price {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 10px 0 18px;
}

.detail-description {
  margin-bottom: 24px;
}

.detail-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(33, 25, 20, 0.06);
  font-weight: 600;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  margin-top: 24px;
}

.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.community-points span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(33, 25, 20, 0.07);
  font-weight: 700;
}

.marketplace-hero {
  margin-bottom: 0;
}

.ad-prep-card {
  display: grid;
  gap: 12px;
}

.ad-slot-placeholder,
.footer-ad-box {
  min-height: 96px;
  border-radius: 18px;
  border: 1px dashed rgba(180, 73, 45, 0.4);
  background: rgba(255, 252, 246, 0.78);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.site-footer-shell {
  margin-top: 36px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.footer-ad-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-ad-shell {
  margin-bottom: 8px;
}

.footer-label,
.footer-brand {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-grid-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-meta-line {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-link-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-link-group a {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.compact-footer {
  margin-top: 28px;
}

@media (max-width: 840px) {
  .hero,
  .section-head,
  .sub-header,
  .my-market-header,
  .my-content-tabs-shell,
  .register-layout,
  .detail-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    align-items: flex-start;
  }

  .metrics-strip,
  .category-showcase,
  .workflow-grid,
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    justify-content: stretch;
  }

  .community-banner {
    align-items: flex-start;
  }

  .footer-grid-shell {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .header-inner,
  .marketplace-header-inner {
    width: min(100% - 20px, 1180px);
  }

  .marketplace-header-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 14px 0;
  }

  .hero,
  .category-feature,
  .workflow-card,
  .community-banner,
  .form-card,
  .detail-card,
  .empty-state {
    padding: 20px;
    border-radius: 24px;
  }

  .topbar-actions,
  .hero-actions {
    width: 100%;
  }

  .topnav {
    width: 100%;
  }

  .site-nav,
  .marketplace-session-actions {
    width: 100%;
  }

  .landing-section {
    padding: 22px;
    border-radius: 26px;
  }

  .landing-section-header {
    align-items: flex-start;
  }

  .site-nav a {
    flex: 1 1 120px;
    text-align: center;
  }

  .topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .topnav a {
    flex: 1 1 120px;
    text-align: center;
  }

  .topbar-actions .button,
  .hero-actions .button {
    flex: 1 1 180px;
  }

  .catalog-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .category-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .product-card {
    min-height: 0;
  }
}
