: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: 12px;
  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;
}

.mobile-nav-link,
.mobile-session-menu {
  display: none;
}

.session-desktop-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.mobile-menu-toggle {
  display: inline-grid;
  gap: 4px;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-session-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(33, 25, 20, 0.12);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow);
}

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

.button-secondary[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.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;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.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: 1px solid rgba(36, 28, 21, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 253, 249, 0.92);
  font: inherit;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  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;
  width: 100%;
}

.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-icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.register-editor-icon-button svg {
  width: 26px;
  height: 26px;
}

.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;
  justify-content: center;
}

.register-editor-color-field input {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.register-editor-color-field input::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 999px;
}

.register-editor-color-field input::-webkit-color-swatch {
  border: 1px solid var(--line);
  border-radius: 999px;
}

.register-editor-color-field input::-moz-color-swatch {
  border: 1px solid var(--line);
  border-radius: 999px;
}

.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-description-editor hr,
.detail-edit-editor hr {
  cursor: pointer;
}

.register-description-editor img,
.detail-edit-editor img,
.rich-description img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.register-description-editor img.is-selected,
.detail-edit-editor img.is-selected {
  box-shadow: 0 0 0 2px rgba(180, 73, 45, 0.18);
}

.richtext-image-block.is-selected {
  outline: 2px solid rgba(180, 73, 45, 0.18);
  outline-offset: 6px;
  border-radius: 22px;
}

.register-description-editor hr.is-selected,
.detail-edit-editor hr.is-selected {
  box-shadow: 0 0 0 2px rgba(180, 73, 45, 0.18);
}

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

.detail-card {
  padding-bottom: 20px;
}

.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;
  align-items: stretch;
}

.detail-hero-card {
  min-height: 350px;
}

.detail-description-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  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;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.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-media-column {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

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

.detail-image-shell {
  position: relative;
  flex: 1 1 auto;
}

.detail-image-shell.is-editable {
  cursor: pointer;
}

.detail-content-footer {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 16px;
}

.detail-image-edit-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);
}

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

.detail-content h1 {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 18px;
}

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

.detail-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.detail-description {
  margin-bottom: 24px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-description,
.rich-description * {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 0;
}

.detail-payment-message {
  min-height: 0;
  margin: 0;
}

.detail-content-footer {
  margin-top: 14px;
  padding-top: 0;
  margin-bottom: 18px;
}

.detail-owner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  justify-content: flex-end;
}

.detail-delete-button {
  color: #8c2f24;
  border-color: rgba(140, 47, 36, 0.2);
}

.detail-edit-panel {
  grid-template-columns: minmax(0, 1fr);
}

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

.detail-comments-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

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

.detail-comments-head h2 {
  margin: 0;
}

.detail-comments-count {
  color: var(--muted);
  font-size: 0.95rem;
}

.comment-composer {
  display: grid;
  gap: 12px;
}

.comment-input-shell {
  --comment-grow-offset: 0px;
  position: relative;
  min-height: calc(1.6em + 32px);
  height: calc(1.6em + 32px);
}

.comment-textarea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: calc(1.6em + 32px);
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(20, 24, 31, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  line-height: 1.6;
  color: var(--text);
  text-align: right;
  resize: none;
  overflow: hidden;
  margin: 0;
}

.comment-textarea:focus {
  outline: none;
  border-color: rgba(20, 24, 31, 0.28);
  box-shadow: 0 0 0 3px rgba(20, 24, 31, 0.08);
}

.comment-textarea:disabled {
  cursor: not-allowed;
  background: rgba(248, 245, 239, 0.78);
}

.comment-composer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.comment-login-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.comment-list {
  display: grid;
  gap: 14px;
  padding-bottom: 0;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 24, 31, 0.24) transparent;
}

.comment-list::-webkit-scrollbar {
  width: 10px;
}

.comment-list::-webkit-scrollbar-track {
  background: transparent;
}

.comment-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.24);
}

.comment-list::-webkit-scrollbar-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
}

.comment-list::-webkit-scrollbar-button:single-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
}

.comment-list::-webkit-scrollbar-button:single-button:vertical:decrement,
.comment-list::-webkit-scrollbar-button:single-button:vertical:increment {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
}

.comment-day-divider {
  display: grid;
  place-items: center;
  margin: 4px 0 2px;
}

.comment-day-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-item {
  display: grid;
  justify-items: start;
  gap: 3px;
  width: fit-content;
  max-width: min(100%, 640px);
}

.comment-item.is-same-time {
  margin-top: -10px;
}

.comment-item.is-own-comment {
  justify-self: end;
  justify-items: start;
}

.comment-item.is-own-comment .comment-body {
  text-align: right;
}

.comment-item.is-own-comment .comment-bubble {
  border-color: #99442a;
  background: linear-gradient(135deg, #964327, #762c20);
}

.comment-item.is-own-comment .comment-bubble::after {
  left: auto;
  right: -4px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid #99442a;
  border-top: 1px solid #99442a;
  background: #823323;
}

.comment-item.is-own-comment .comment-body {
  color: #f6ece4;
}

.comment-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.comment-item:not(.is-own-comment) .comment-bubble-row {
  flex-direction: row-reverse;
}

.comment-bubble {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e2ddd4;
  background: #ffffff;
}

.comment-bubble::after {
  content: "";
  position: absolute;
  top: 8px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-left: 1px solid #e2ddd4;
  border-bottom: 1px solid #e2ddd4;
  background: #ffffff;
  transform: rotate(45deg);
}

.comment-author {
  display: inline-block;
  padding: 0 4px;
  font-size: 0.92rem;
}

.comment-date {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0;
  white-space: nowrap;
}

.comment-date.is-hidden {
  visibility: hidden;
}

.comment-body {
  margin: 0;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.admin-stat-card {
  display: grid;
  gap: 8px;
}

.admin-stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.admin-section-card {
  display: grid;
  gap: 18px;
}

.admin-section-head {
  margin-bottom: 0;
}

.admin-section-head h2 {
  margin: 0;
}

.admin-table-shell {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(33, 25, 20, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table td {
  line-height: 1.55;
}

.admin-table-selectable tbody tr {
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-table-selectable tbody tr:hover {
  background: rgba(33, 25, 20, 0.03);
}

.admin-table-row.is-selected {
  background: rgba(140, 47, 36, 0.08);
}

.comment-delete-button {
  border: 0;
  background: transparent;
  color: #8c2f24;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.comments-empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 24px;
  border: 1px dashed rgba(20, 24, 31, 0.12);
  color: var(--muted);
  text-align: center;
}

.comments-empty-state p {
  margin: 0;
}

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

.detail-edit-field {
  display: grid;
  gap: 8px;
}

.detail-edit-field span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.detail-edit-field input,
.detail-edit-field select {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(33, 25, 20, 0.18);
  border-radius: 18px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.detail-edit-editor {
  min-height: 220px;
  line-height: 1.7;
  outline: none;
}

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

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

.detail-like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(33, 25, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.detail-like-button.is-active {
  color: var(--accent);
  border-color: rgba(180, 73, 45, 0.25);
  background: #fff4ef;
}

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

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 240px;
  width: 100%;
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
}

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

.footer-ad-box-slot {
  min-height: 120px;
  width: 100%;
}

.footer-ad-box-slot.is-unconfigured {
  border-style: solid;
  border-color: rgba(180, 73, 45, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 252, 246, 0.42));
  color: transparent;
}

.ad-slot-unit {
  min-height: 90px;
}

.site-footer-shell {
  margin-top: 18px;
  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: 16px;
}

.hero-ad-shell {
  margin-bottom: 0;
}

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

  .detail-edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-content-head {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-owner-actions {
    justify-content: flex-start;
  }
}

@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: minmax(0, 1fr) max-content;
    align-items: center;
    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,
  .marketplace-nav {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
  }

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

  .marketplace-nav {
    grid-column: 1 / -1;
    justify-content: center;
    grid-row: 2;
  }

  .marketplace-session-actions,
  .topbar-actions {
    width: auto;
    min-width: 0;
    align-self: start;
    justify-self: end;
    justify-content: flex-end;
    position: relative;
    grid-row: 1;
    grid-column: 2;
  }

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

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

  .site-nav a {
    width: 100%;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
    position: static;
  }

  .topnav,
  .marketplace-nav {
    grid-column: 1 / -1;
    justify-content: center;
    grid-row: 2;
  }

  .topnav a,
  .marketplace-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
    padding: 10px 12px;
    margin: 0;
  }

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

  .session-desktop-actions,
  .session-desktop-link {
    display: none;
  }

  .mobile-nav-link,
  .mobile-session-menu {
    display: inline-flex;
  }

  .mobile-session-menu {
    position: relative;
    align-items: center;
    justify-content: flex-end;
  }

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

  .category-browser {
    display: none;
  }

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