:root {
  --ink: #16222a;
  --muted: #64727b;
  --line: #dce4e6;
  --soft-line: #edf1f2;
  --canvas: #f6f8f7;
  --white: #ffffff;
  --teal: #087e78;
  --teal-dark: #05635f;
  --teal-soft: #e5f5f2;
  --coral: #d95f42;
  --coral-soft: #fff0eb;
  --yellow: #e0a72a;
  --yellow-soft: #fff8dc;
  --red: #bf3d37;
  --red-soft: #ffefee;
  --shadow: 0 10px 30px rgba(23, 45, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Noto Sans SC", system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; stroke-width: 2; }
main { min-height: calc(100vh - 230px); }
.content-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-shell { height: 66px; width: min(1240px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 9px; font-family: "Space Grotesk", "Noto Sans SC", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0; }
.brand-mark { width: 29px; height: 29px; display: inline-grid; place-items: center; color: #fff; background: var(--teal); border-radius: 7px; }
.brand-mark svg { width: 17px; }
.main-nav { display: flex; gap: 3px; align-items: center; }
.main-nav a { color: var(--muted); padding: 7px 10px; border-radius: 5px; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--teal-dark); background: var(--teal-soft); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.icon-button { border: 1px solid transparent; color: var(--muted); background: transparent; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 5px; padding: 0; position: relative; }
.menu-toggle { display: none; }
.icon-button:hover { background: var(--soft-line); color: var(--ink); }
.notification-dot { position: absolute; min-width: 17px; height: 17px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; top: -2px; right: -5px; border: 2px solid #fff; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; padding: 3px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary svg { width: 15px; }
.avatar, .seller-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #f6ddb9; color: #7e421c; font-weight: 700; }
.account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.account-popover { position: absolute; right: 0; top: 44px; width: 175px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.account-popover a, .account-popover button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; text-align: left; }
.account-popover a:hover, .account-popover button:hover { background: var(--soft-line); }
.account-popover svg { width: 16px; }
.notice-bar { background: var(--yellow-soft); color: #725114; border-bottom: 1px solid #f1dfa4; }
.notice-bar > div { width: min(1240px, calc(100% - 40px)); min-height: 35px; margin: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.notice-bar svg { width: 15px; flex: 0 0 auto; }
.notice-bar a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.button { border: 1px solid transparent; border-radius: 5px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 39px; padding: 8px 14px; font-weight: 700; white-space: nowrap; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; }
.button-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: #aab8bc; background: var(--canvas); }
.button-danger { color: #fff; background: var(--red); border-color: var(--red); }
.button-danger:hover { background: #a7312c; }
.button-ghost { color: var(--muted); background: transparent; }
.button-ghost:hover { background: var(--soft-line); transform: none; }
.button-small { min-height: 32px; padding: 5px 9px; font-size: 13px; }
.button-large { min-height: 47px; font-size: 16px; }
.button-block { width: 100%; }
.text-button { border: 0; background: none; color: var(--muted); padding: 5px; display: inline-flex; align-items: center; gap: 5px; }
.text-button:hover { color: var(--teal-dark); }
.danger-text { color: var(--red); }

.flash-stack { width: min(1180px, calc(100% - 48px)); margin: 15px auto 0; display: grid; gap: 8px; }
.flash { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 5px; font-size: 14px; }
.flash-success { background: var(--teal-soft); color: #07635e; border: 1px solid #bfe4dd; }
.flash-error { background: var(--red-soft); color: #94342e; border: 1px solid #f0c2bf; }
.flash-warning { background: var(--yellow-soft); color: #725114; border: 1px solid #f1dfa4; }
.flash svg { flex: 0 0 auto; }

.market-intro { padding: 60px 0 44px; background: #e9f4f1; border-bottom: 1px solid #d7e8e5; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); align-items: end; gap: 50px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1.1px; display: flex; gap: 5px; align-items: center; }
.eyebrow svg { width: 15px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: "Space Grotesk", "Noto Sans SC", sans-serif; letter-spacing: 0; }
.market-intro h1 { max-width: 710px; margin: 0; font-size: 42px; line-height: 1.18; }
.intro-copy { max-width: 620px; margin: 15px 0 0; color: var(--muted); font-size: 16px; }
.market-stats { margin-top: 22px; display: flex; gap: 20px; color: var(--muted); }
.market-stats span { border-right: 1px solid #bed9d4; padding-right: 20px; }
.market-stats span:last-child { border: 0; padding: 0; }
.market-stats strong { display: block; color: var(--ink); font: 700 23px/1 "Space Grotesk", sans-serif; }
.publish-cta { min-height: 110px; padding: 19px; display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 12px; background: #fff; border: 1px solid #cde3df; border-radius: 7px; box-shadow: 0 8px 25px rgba(18, 86, 79, .08); }
.publish-cta:hover { border-color: var(--teal); transform: translateY(-2px); }
.publish-cta > svg { color: var(--teal); }
.publish-cta > svg:last-child { width: 19px; }
.publish-cta > svg:first-child { width: 38px; height: 38px; padding: 9px; background: var(--teal-soft); border-radius: 5px; }
.publish-cta strong, .publish-cta small { display: block; }
.publish-cta small { color: var(--muted); margin-top: 3px; font-size: 12px; }
.mobile-market-intro { display: none; }
.market-section { padding: 30px 0 70px; }
.search-panel { display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(5, minmax(96px, 1fr)) auto; gap: 8px; }
.market-search-bar, .advanced-filters, .advanced-filter-controls { display: contents; }
.advanced-filters summary { display: none; }
.search-field { min-width: 0; position: relative; }
.search-field svg { position: absolute; left: 11px; top: 11px; color: var(--muted); width: 17px; }
input, textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; min-height: 39px; padding: 8px 10px; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.search-field input { padding-left: 36px; }
textarea { min-height: 105px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 126, 120, .13); }
.category-strip { display: flex; overflow-x: auto; gap: 7px; padding: 22px 0 20px; scrollbar-width: thin; }
.category-chip { flex: 0 0 auto; border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; color: var(--muted); background: #fff; font-size: 13px; font-weight: 600; }
.category-chip:hover, .category-chip.active { color: var(--teal-dark); border-color: #a7d5ce; background: var(--teal-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading .eyebrow { margin-bottom: 2px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.market-results { transition: opacity .16s ease; }
.market-results.is-refreshing { opacity: .62; pointer-events: none; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.listing-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.listing-card:hover { border-color: #a8c5c1; box-shadow: var(--shadow); transform: translateY(-3px); }
.listing-media { min-height: 0; aspect-ratio: 1.38 / 1; overflow: hidden; position: relative; background: var(--soft-line); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.listing-card:hover .listing-media img { transform: scale(1.035); }
.status-pill { position: absolute; top: 10px; right: 10px; display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border-radius: 999px; color: #175e59; background: #e4f6f1; font-size: 12px; font-weight: 700; }
.status-reserved { color: #806013; background: var(--yellow-soft); }
.status-sold, .status-removed { color: #727b7d; background: #edf0f0; }
.listing-body { display: flex; min-height: 171px; flex-direction: column; padding: 14px; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.listing-meta span { padding: 2px 6px; border-radius: 3px; background: var(--canvas); }
.listing-body h3 { margin: 7px 0 10px; font-size: 16px; line-height: 1.38; }
.listing-price { display: flex; gap: 7px; align-items: center; color: var(--coral); }
.listing-price strong { font: 700 18px "Space Grotesk", "Noto Sans SC", sans-serif; }
.listing-price span { color: var(--muted); font-size: 12px; }
.listing-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.listing-footer span { min-width: 0; display: flex; align-items: center; gap: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-footer svg { width: 13px; flex: 0 0 auto; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin: 26px 0 17px; }
.back-link:hover { color: var(--teal); }
.back-link svg { width: 17px; }
.detail-page { padding-bottom: 65px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(335px, .65fr); gap: 30px; align-items: start; }
.gallery-main { aspect-ratio: 1.13 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 9px; overflow-x: auto; padding-top: 10px; }
.gallery-thumb { width: 64px; height: 53px; flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #fff; }
.gallery-thumb.active { border-color: var(--teal); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 24px; }
.detail-topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.detail-topline .status-pill { position: static; }
.detail-summary .listing-meta { margin-top: 16px; }
.detail-summary h1 { margin: 8px 0 12px; font-size: 27px; line-height: 1.26; }
.detail-price { display: flex; align-items: center; gap: 8px; color: var(--coral); }
.detail-price strong { font: 700 29px "Space Grotesk", "Noto Sans SC", sans-serif; }
.detail-price span { background: var(--coral-soft); padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.summary-divider { border-top: 1px solid var(--soft-line); margin: 20px 0 10px; }
.item-facts { margin: 0; display: grid; gap: 4px; }
.item-facts div { display: grid; grid-template-columns: 105px 1fr; gap: 8px; padding: 6px 0; }
.item-facts dt { color: var(--muted); display: flex; align-items: center; gap: 5px; }
.item-facts dt svg { width: 15px; }
.item-facts dd { margin: 0; text-align: right; font-weight: 600; }
.review-note { margin: 14px 0 0; padding: 9px; border-radius: 4px; color: #846215; background: var(--yellow-soft); font-size: 13px; display: flex; gap: 7px; }
.review-note svg { width: 17px; flex: 0 0 auto; }
.owner-actions { margin-top: 20px; }
.owner-actions p { display: flex; align-items: center; gap: 6px; padding: 10px; margin: 0 0 10px; background: var(--teal-soft); color: var(--teal-dark); border-radius: 4px; font-size: 13px; }
.owner-actions svg { width: 16px; }
.admin-delete-action { display: grid; gap: 11px; margin-top: 14px; padding: 12px; border: 1px solid #efc6c3; border-radius: 5px; background: #fff9f8; }
.admin-delete-action > div { display: flex; gap: 8px; align-items: start; color: #923932; }
.admin-delete-action > div > svg { width: 18px; flex: 0 0 auto; margin-top: 1px; }
.admin-delete-action strong, .admin-delete-action small { display: block; }
.admin-delete-action small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.admin-deleted-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-deleted-state svg { width: 15px; color: var(--teal); }
.contact-revealed { margin-top: 20px; border: 1px solid #bde1da; background: #f6fffd; border-radius: 6px; padding: 14px; }
.contact-revealed-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.contact-revealed-heading > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-soft); }
.contact-revealed-heading strong, .contact-revealed-heading small { display: block; }
.contact-revealed-heading small { color: var(--muted); font-size: 11px; }
.contact-row { min-height: 37px; border-top: 1px solid #d9ece8; display: grid; grid-template-columns: 46px 1fr 26px; align-items: center; gap: 8px; }
.contact-row span { color: var(--muted); font-size: 12px; }
.contact-row strong { text-align: right; font-size: 13px; word-break: break-all; }
.copy-button { width: 26px; height: 26px; color: var(--teal); border: 0; background: transparent; display: grid; place-items: center; border-radius: 4px; }
.copy-button:hover { background: var(--teal-soft); }
.copy-button svg { width: 15px; }
.exchange-note { margin: 9px 0 0; display: flex; align-items: start; gap: 5px; color: var(--muted); font-size: 12px; }
.exchange-note svg { width: 15px; flex: 0 0 auto; color: var(--teal); }
.unavailable-action { margin-top: 20px; color: var(--muted); background: var(--soft-line); border-radius: 4px; padding: 13px; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.unavailable-action svg { width: 18px; }
.detail-secondary-actions { margin-top: 12px; display: flex; align-items: center; gap: 9px; }
.detail-secondary-actions form { flex: 1; }
.detail-secondary-actions .button { width: 100%; }
.detail-lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; margin-top: 30px; }
.content-block, .seller-panel { padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.content-block h2, .seller-panel h2 { margin: 0 0 10px; font-size: 19px; }
.description-text { margin: 0; white-space: pre-line; color: #3d4a51; }
.seller-panel { display: flex; gap: 12px; align-items: center; }
.seller-avatar { width: 48px; height: 48px; font-size: 20px; background: #dfece9; color: var(--teal-dark); }
.seller-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.seller-panel h2 { margin: 1px 0; }
.seller-panel span { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 3px; }
.seller-panel span svg { width: 14px; }
.seller-panel form { margin-left: auto; }

.dialog { width: min(480px, calc(100% - 32px)); border: 0; padding: 27px; border-radius: 8px; color: var(--ink); box-shadow: 0 24px 65px rgba(0,0,0,.23); }
.dialog::backdrop { background: rgba(11, 28, 32, .55); }
.dialog-close { position: absolute; top: 10px; right: 10px; }
.dialog-icon { width: 43px; height: 43px; border-radius: 6px; color: var(--teal); background: var(--teal-soft); display: grid; place-items: center; }
.dialog-icon.warning { color: #94680b; background: var(--yellow-soft); }
.dialog h2 { margin: 13px 0 8px; font-size: 23px; }
.dialog > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.privacy-callout { margin: 16px 0; padding: 10px; display: flex; gap: 8px; font-size: 12px; color: #3d6761; background: var(--teal-soft); border-radius: 4px; }
.privacy-callout svg { width: 17px; flex: 0 0 auto; }
.stack-form { display: grid; gap: 12px; }

.form-page, .dashboard-page, .rules-page { padding: 42px 0 65px; }
.page-heading { max-width: 720px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: 31px; line-height: 1.23; }
.page-heading > p:last-child { color: var(--muted); margin: 8px 0 0; }
.page-heading.with-action { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.item-editor, .profile-layout, .settings-form { display: grid; gap: 16px; }
.form-section { padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.form-section-heading { display: flex; gap: 12px; align-items: start; padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid var(--soft-line); }
.form-section-heading > span { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); border-radius: 4px; font: 700 13px "Space Grotesk", sans-serif; }
.form-section-heading h2 { margin: 0; font-size: 19px; }
.form-section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; color: #3c4b52; font-weight: 600; font-size: 14px; }
label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 9px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 9px 20px; }
.checkbox-line { width: fit-content; display: inline-flex; grid-template-columns: auto 1fr; align-items: center; gap: 7px; font-weight: 500; }
.checkbox-line input { width: 15px; min-height: auto; accent-color: var(--teal); }
.upload-field { padding: 13px; border: 1px dashed #a8c7c3; border-radius: 5px; background: #fafffe; }
.upload-field input { border: 0; padding: 0; min-height: auto; background: transparent; }
.existing-images { display: flex; gap: 8px; overflow: auto; }
.existing-images img { width: 62px; height: 50px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; }
.form-submit > span, .form-submit > div { display: flex; align-items: center; gap: 6px; }
.form-submit svg { width: 16px; color: var(--teal); }
.publish-consent { display: grid; gap: 13px; padding: 18px 0 0; border-top: 1px solid var(--soft-line); }
.publish-consent-heading { display: flex; align-items: flex-start; gap: 10px; }
.publish-consent-heading > svg { flex: 0 0 auto; width: 22px; color: var(--coral); }
.publish-consent h2 { margin: 0; font-size: 16px; }
.publish-consent-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.publish-consent details { padding: 12px 14px; border: 1px solid var(--soft-line); border-radius: 5px; background: #fbfdfd; color: var(--muted); font-size: 13px; line-height: 1.65; }
.publish-consent summary { color: var(--teal-dark); cursor: pointer; font-weight: 700; }
.publish-consent ol { margin: 10px 0 0; padding-left: 20px; }
.publish-consent li + li { margin-top: 5px; }
.consent-check { width: auto; line-height: 1.5; }
.consent-check a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.identity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--soft-line); border-radius: 5px; overflow: hidden; }
.identity-grid div { padding: 13px; border-right: 1px solid var(--soft-line); min-width: 0; }
.identity-grid div:last-child { border: 0; }
.identity-grid span, .identity-grid strong { display: block; }
.identity-grid span { color: var(--muted); font-size: 12px; }
.identity-grid strong { margin-top: 3px; overflow-wrap: anywhere; font-size: 14px; }
.contact-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-toggle { display: block; position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.contact-toggle:has(input:checked) { border-color: #82c7bd; background: #f5fffd; }
.contact-toggle.disabled { opacity: .55; background: var(--soft-line); }
.blocked-user-list { display: grid; }
.blocked-user { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--soft-line); }
.blocked-user:first-child { padding-top: 0; }
.blocked-user:last-child { padding-bottom: 0; border-bottom: 0; }
.blocked-user .avatar { width: 34px; height: 34px; font-size: 13px; }
.blocked-user strong, .blocked-user small { display: block; }
.blocked-user small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.blocked-users-empty { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); }
.blocked-users-empty svg { width: 17px; color: var(--teal); }
.contact-toggle input { position: absolute; right: 10px; top: 11px; width: 16px; min-height: auto; accent-color: var(--teal); }
.contact-toggle > span { display: grid; grid-template-columns: 22px 1fr; column-gap: 7px; }
.contact-toggle svg { grid-row: 1 / 3; color: var(--teal); width: 18px; }
.contact-toggle strong, .contact-toggle small { display: block; }
.contact-toggle small { color: var(--muted); font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }

.manage-list, .exchange-list, .notification-list, .moderation-list, .report-list { display: grid; gap: 11px; }
.manage-item { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.manage-item > img { width: 118px; aspect-ratio: 1.2; object-fit: cover; border-radius: 4px; }
.manage-main h2 { margin: 6px 0 3px; font-size: 17px; }
.manage-main h2 a:hover { color: var(--teal); }
.manage-main p { margin: 0; color: var(--muted); font-size: 12px; }
.review-note-text { color: #866316 !important; }
.review-badge { display: inline-block; min-height: 21px; padding: 2px 6px; border-radius: 3px; color: #1b6b61; background: var(--teal-soft); font-size: 11px; font-weight: 700; }
.review-pending { color: #886416; background: var(--yellow-soft); }
.review-rejected { color: #9d3e38; background: var(--red-soft); }
.manage-actions { display: flex; flex-direction: column; align-items: end; gap: 7px; }
.manage-actions .status-pill { position: static; }
.status-menu { position: relative; }
.status-menu summary { list-style: none; }
.status-menu summary::-webkit-details-marker { display: none; }
.status-menu summary svg { width: 14px; }
.status-menu > div { position: absolute; z-index: 2; top: 37px; right: 0; min-width: 110px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.status-menu form button { width: 100%; padding: 6px 7px; border: 0; background: transparent; text-align: left; border-radius: 3px; }
.status-menu form button:hover { background: var(--soft-line); }
.empty-state { display: grid; justify-items: center; padding: 70px 22px; background: #fff; border: 1px dashed #bfd0d1; border-radius: 7px; text-align: center; }
.empty-state svg { width: 42px; height: 42px; color: var(--teal); }
.empty-state h3 { margin: 12px 0 3px; font-size: 19px; }
.empty-state p { max-width: 360px; color: var(--muted); margin: 0 0 16px; }
.empty-state.compact { padding: 42px 20px; }
.exchange-item { padding: 19px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.exchange-item-top { display: flex; justify-content: space-between; gap: 16px; }
.exchange-item-top > svg { color: var(--teal); width: 25px; height: 25px; }
.exchange-direction { font-size: 12px; color: var(--teal); font-weight: 700; }
.exchange-item h2 { margin: 2px 0; font-size: 18px; }
.exchange-item h2 a:hover { color: var(--teal); }
.exchange-item p { margin: 0; color: var(--muted); font-size: 12px; }
.exchange-contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--soft-line); margin-top: 14px; padding-top: 13px; gap: 8px; }
.exchange-contacts > div { position: relative; min-width: 0; padding-right: 26px; }
.exchange-contacts span, .exchange-contacts strong { display: block; }
.exchange-contacts span { color: var(--muted); font-size: 11px; }
.exchange-contacts strong { overflow-wrap: anywhere; font-size: 13px; }
.exchange-contacts .copy-button { position: absolute; right: 0; bottom: 0; }
.notification-item { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 14px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.notification-item.unread { border-left: 3px solid var(--teal); background: #fbfffe; }
.notification-icon { width: 33px; height: 33px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); border-radius: 5px; }
.notification-icon svg { width: 17px; }
.notification-item strong { font-size: 14px; }
.notification-item p { margin: 2px 0; color: var(--muted); font-size: 13px; }
.notification-item small { color: var(--muted); font-size: 11px; }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rules-grid article { min-height: 200px; padding: 26px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-grid article > span { color: var(--coral); font: 700 14px "Space Grotesk", sans-serif; }
.rules-grid h2 { margin: 11px 0 7px; font-size: 20px; }
.rules-grid p { margin: 0; color: var(--muted); }
.policy-callout { margin-top: 24px; display: flex; gap: 12px; padding: 20px; color: #1d4e49; background: var(--teal-soft); border-radius: 7px; }
.policy-callout > svg { flex: 0 0 auto; color: var(--teal); width: 26px; height: 26px; }
.policy-callout h2 { margin: 0; font-size: 18px; }
.policy-callout p { margin: 3px 0 0; }
.policy-document { padding: 8px 26px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.policy-document section { padding: 22px 0; border-bottom: 1px solid var(--soft-line); }
.policy-document section:last-child { border-bottom: 0; }
.policy-document h2 { margin: 0 0 8px; font-size: 18px; }
.policy-document p { margin: 0; color: var(--muted); line-height: 1.75; overflow-wrap: anywhere; }
.policy-document a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent-page { min-height: calc(100vh - 185px); display: grid; place-items: center; padding: 42px 0 58px; }
.consent-card { width: min(680px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.consent-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-soft); border-radius: 6px; }
.consent-mark svg { width: 22px; }
.consent-card .eyebrow { margin: 16px 0 4px; }
.consent-card h1 { margin: 0; font-size: 28px; }
.consent-intro { margin: 8px 0 22px; color: var(--muted); line-height: 1.65; }
.consent-summary { display: grid; gap: 9px; margin-bottom: 20px; }
.consent-summary article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 14px; border: 1px solid var(--soft-line); border-radius: 5px; background: var(--canvas); }
.consent-summary article > svg { width: 19px; color: var(--teal); }
.consent-summary h2 { margin: 0 0 3px; font-size: 15px; }
.consent-summary p { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent-summary a { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-dark); font-size: 13px; font-weight: 700; }
.consent-summary a svg { width: 14px; }
.consent-form { display: grid; gap: 10px; }
.consent-form .checkbox-line { align-items: start; padding: 11px 12px; border: 1px solid var(--soft-line); border-radius: 5px; }
.consent-form .checkbox-line input { margin-top: 3px; }
.consent-form .checkbox-line a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent-decline { color: #9d3e38; }
.consent-decline:hover { color: #84312c; background: var(--red-soft); }
.consent-note { display: flex; gap: 7px; margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-note svg { flex: 0 0 auto; width: 16px; margin-top: 1px; color: var(--teal); }
.dev-login-page { min-height: calc(100vh - 185px); display: grid; place-items: center; padding: 40px 20px; }
.dev-login-box { width: min(420px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.dev-login-box > .brand-mark { width: 39px; height: 39px; }
.dev-login-box h1 { margin: 10px 0 5px; font-size: 28px; }
.dev-login-box > p:last-of-type { color: var(--muted); margin: 0 0 20px; }
.dev-login-box form { display: grid; gap: 9px; }
.error-state { display: grid; justify-items: center; text-align: center; padding: 90px 20px; }
.error-state > span { color: var(--teal); font: 700 80px/1 "Space Grotesk", sans-serif; }
.error-state h1 { margin: 7px 0; font-size: 28px; }
.error-state p { color: var(--muted); margin: 0 0 18px; }

.admin-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 30px; padding: 35px 0 65px; }
.admin-sidebar { position: sticky; top: 103px; align-self: start; padding: 17px 0; }
.admin-sidebar h1 { margin: 0 0 14px; font-size: 24px; }
.admin-sidebar nav { display: grid; gap: 2px; }
.admin-sidebar nav a, .admin-back { display: flex; align-items: center; gap: 9px; color: var(--muted); padding: 9px; border-radius: 4px; font-weight: 600; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: var(--teal-dark); background: var(--teal-soft); }
.admin-sidebar nav svg, .admin-back svg { width: 17px; }
.admin-back { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.admin-back:hover { color: var(--ink); }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 22px; }
.admin-heading h1 { margin: 0; font-size: 29px; }
.admin-heading p:last-child { margin: 5px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.metric-grid article { min-height: 142px; display: flex; flex-direction: column; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.metric-grid span { color: var(--muted); font-size: 13px; }
.metric-grid strong { margin: 7px 0 auto; font: 700 34px "Space Grotesk", sans-serif; }
.metric-grid a { color: var(--teal); font-size: 12px; font-weight: 700; }
.metric-grid a svg { width: 13px; vertical-align: -2px; }
.admin-panel { padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.admin-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-panel-heading h2 { margin: 0; font-size: 19px; }
.admin-panel-heading span, .muted { color: var(--muted); font-size: 12px; }
.data-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th { color: var(--muted); background: var(--canvas); font-size: 12px; font-weight: 600; text-align: left; }
th, td { border-bottom: 1px solid var(--soft-line); padding: 10px; vertical-align: middle; }
td { font-size: 13px; }
td code { font-size: 11px; color: var(--teal); }
.admin-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 15px; overflow-x: auto; }
.admin-tabs a { flex: 0 0 auto; padding: 8px 2px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.admin-tabs a.active { color: var(--teal); border-color: var(--teal); }
.moderation-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) 245px; gap: 15px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.moderation-item > img { width: 100px; height: 88px; object-fit: cover; border-radius: 4px; }
.moderation-item h2 { margin: 5px 0; font-size: 17px; }
.moderation-item h2 a:hover { color: var(--teal); }
.moderation-item p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.moderation-item small { color: var(--muted); font-size: 11px; }
.line-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-actions form { display: grid; gap: 7px; }
.review-actions form > div { display: flex; gap: 6px; }
.review-actions input { min-height: 33px; font-size: 12px; }
.report-item { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.report-header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.report-header h2 { margin: 4px 0 0; font-size: 18px; }
.report-header h2 a:hover { color: var(--teal); }
.report-header small { color: var(--muted); }
.report-item dl { display: flex; flex-wrap: wrap; gap: 8px 25px; margin: 13px 0 8px; }
.report-item dl div { display: flex; gap: 5px; }
.report-item dt { color: var(--muted); font-size: 12px; }
.report-item dd { margin: 0; font-size: 12px; font-weight: 600; }
.report-detail { margin: 0; padding: 9px; color: #4f5a60; background: var(--canvas); border-radius: 4px; font-size: 13px; }
.report-resolve { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: end; gap: 9px; margin-top: 13px; }
.report-resolve > div { display: flex; gap: 6px; }
.resolution-note { margin: 13px 0 0; color: var(--teal-dark); font-size: 13px; display: flex; gap: 5px; align-items: center; }
.resolution-note svg { width: 16px; }
.table-user { display: flex; align-items: center; gap: 8px; }
.table-user .avatar { width: 27px; height: 27px; font-size: 12px; }
.table-user strong, .table-user small { display: block; }
td small { color: var(--muted); }
.role-badge { color: #725114; background: var(--yellow-soft); padding: 2px 6px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.switch-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { color: var(--muted); margin-top: 3px; font-weight: 400; }
.switch-row input { display: none; }
.switch-row i { width: 43px; height: 24px; position: relative; background: #bdc8ca; border-radius: 999px; transition: background .2s; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.switch-row input:checked + i { background: var(--teal); }
.switch-row input:checked + i::after { transform: translateX(19px); }

.site-footer { background: #14292c; color: #dbe5e5; padding: 28px 0; }
.footer-shell { width: min(1180px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #e2ac3c; color: #282313; }
.site-footer p { margin: 5px 0 0; color: #9eb3b4; font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 18px; color: #a9babb; font-size: 12px; }
.footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .search-panel { grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(105px, 1fr)); }
  .search-panel .button { grid-column: span 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 20px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .moderation-item { grid-template-columns: 88px minmax(0, 1fr); }
  .moderation-item > img { width: 88px; height: 78px; }
  .review-actions { grid-column: 1 / -1; }
  .review-actions form { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .report-resolve { grid-template-columns: minmax(180px, 1fr) auto; }
  .report-resolve .checkbox-line { grid-row: 2; }
  .report-resolve > div { grid-row: 2; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .content-shell { width: min(100% - 28px, 600px); }
  .nav-shell { width: min(100% - 28px, 600px); height: 60px; gap: 10px; }
  .brand { font-size: 17px; }
  .main-nav { display: none; position: absolute; top: 60px; left: 14px; right: 14px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 9px; }
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .nav-actions { margin-left: 0; gap: 4px; }
  .account-name, .account-menu summary > svg { display: none; }
  .nav-actions .button { width: 35px; min-width: 35px; min-height: 35px; padding: 7px; font-size: 0; }
  .nav-actions .button svg { width: 16px; margin: 0; }
  .notice-bar > div { width: min(100% - 28px, 600px); min-height: 33px; align-items: center; gap: 5px; padding: 4px 0; }
  .notice-bar > div > span { font-size: 0; }
  .notice-bar > div > span::after { content: "仅提供展示与联络，线下交易请当面验货。"; font-size: 11px; }
  .notice-bar a { margin-left: auto; font-size: 11px; }
  .market-intro { padding: 0; }
  .intro-grid { display: none; }
  .mobile-market-intro { display: block; padding: 8px 0; }
  .mobile-market-bar { display: flex; align-items: baseline; gap: 8px; }
  .mobile-market-bar strong { font-family: "Space Grotesk", "Noto Sans SC", sans-serif; font-size: 17px; }
  .mobile-market-bar span { color: var(--muted); font-size: 12px; }
  .mobile-market-details { margin-top: 6px; border: 1px solid #cde3df; border-radius: 5px; background: rgba(255, 255, 255, .68); }
  .mobile-market-details summary { min-height: 35px; display: flex; align-items: center; gap: 6px; padding: 7px 9px; color: var(--teal-dark); cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
  .mobile-market-details summary::-webkit-details-marker, .advanced-filters summary::-webkit-details-marker { display: none; }
  .mobile-market-details summary > svg { width: 15px; }
  .mobile-market-details summary > svg:last-child { margin-left: auto; transition: transform .16s ease; }
  .mobile-market-details[open] summary > svg:last-child, .advanced-filters[open] summary > svg:last-child { transform: rotate(180deg); }
  .mobile-market-details-body { padding: 0 9px 10px; }
  .mobile-market-details-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
  .mobile-market-details-body .publish-cta { min-height: 58px; margin-top: 9px; padding: 10px; grid-template-columns: 30px 1fr 16px; gap: 9px; box-shadow: none; }
  .mobile-market-details-body .publish-cta > svg:first-child { width: 30px; height: 30px; padding: 7px; }
  .mobile-market-details-body .publish-cta strong { font-size: 13px; }
  .mobile-market-details-body .publish-cta small { font-size: 11px; }
  .market-section { padding: 14px 0 45px; }
  .post-type-tabs { margin-bottom: 8px; }
  .post-type-tab { min-height: 34px; padding: 5px 8px; font-size: 12px; }
  .search-panel { display: block; }
  .market-search-bar { display: grid; grid-template-columns: minmax(0, 1fr) 39px; gap: 7px; }
  .search-field { grid-column: auto; }
  .filter-search-button { width: 39px; min-width: 39px; min-height: 39px; padding: 8px; font-size: 0; }
  .filter-search-button svg { width: 18px; margin: 0; }
  .advanced-filters { display: block; margin-top: 7px; }
  .advanced-filters summary { min-height: 35px; display: flex; align-items: center; gap: 6px; padding: 7px 9px; color: var(--teal-dark); border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
  .advanced-filters summary > svg { width: 15px; }
  .advanced-filters summary small { margin-left: 2px; color: var(--teal); font-size: 11px; }
  .advanced-filters summary > svg:last-child { margin-left: auto; transition: transform .16s ease; }
  .advanced-filter-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-top: 7px; }
  .advanced-filter-controls select { min-height: 36px; padding: 7px 8px; font-size: 12px; }
  .advanced-filter-controls select:last-child { grid-column: 1 / -1; }
  .category-strip { display: none; }
  .section-heading { align-items: center; gap: 8px; margin: 13px 0 10px; }
  .section-heading .eyebrow { display: none; }
  .section-heading h2 { font-size: 18px; }
  .section-heading > p { text-align: right; font-size: 11px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .listing-media { aspect-ratio: 1 / 1; }
  .listing-body { min-height: 0; padding: 9px; }
  .listing-meta { margin-bottom: 5px; }
  .listing-meta span:not(.post-kind) { display: none; }
  .listing-body h3 { display: -webkit-box; margin: 0 0 7px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.35; }
  .listing-price { margin-top: 0; }
  .listing-price strong { font-size: 16px; }
  .listing-price span { font-size: 10px; }
  .listing-footer { font-size: 10px; }
  .listing-footer span:last-child { display: none; }
  .detail-layout, .detail-lower-grid { grid-template-columns: 1fr; }
  .detail-summary { padding: 18px; }
  .detail-summary h1 { font-size: 24px; }
  .detail-lower-grid { gap: 14px; margin-top: 14px; }
  .item-facts div { grid-template-columns: 90px 1fr; }
  .detail-secondary-actions { flex-wrap: wrap; }
  .detail-secondary-actions .text-button { margin-left: auto; }
  .page-heading { margin-bottom: 18px; }
  .page-heading h1, .admin-heading h1 { font-size: 26px; }
  .page-heading.with-action, .admin-heading { align-items: start; flex-direction: column; }
  .form-page, .dashboard-page, .rules-page { padding: 30px 0 45px; }
  .form-section { padding: 16px; }
  .form-grid, .contact-toggle-grid { grid-template-columns: 1fr; }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-grid div { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .identity-grid div:last-child { border-bottom: 0; }
  .form-submit { align-items: start; flex-direction: column; }
  .form-submit .button { width: 100%; }
  .manage-item { grid-template-columns: 75px minmax(0, 1fr); gap: 10px; }
  .manage-item > img { width: 75px; height: 68px; }
  .manage-main { min-width: 0; }
  .manage-main h2 { font-size: 15px; }
  .manage-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .manage-actions .status-pill { margin-right: auto; }
  .exchange-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article { min-height: 0; padding: 20px; }
  .policy-document { padding: 4px 18px; }
  .policy-document section { padding: 18px 0; }
  .policy-document h2 { font-size: 17px; }
  .consent-page { min-height: auto; padding: 26px 0 42px; }
  .consent-card { padding: 20px; }
  .consent-card h1 { font-size: 24px; }
  .admin-layout { display: block; padding: 22px 0 45px; }
  .admin-sidebar { position: static; padding: 0; margin-bottom: 23px; }
  .admin-sidebar h1 { display: inline-block; margin-right: 13px; }
  .admin-sidebar nav { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 5px; }
  .admin-sidebar nav a { flex: 0 0 auto; font-size: 13px; }
  .admin-sidebar nav a svg { display: none; }
  .admin-back { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid article { min-height: 118px; padding: 12px; }
  .metric-grid strong { font-size: 28px; }
  .admin-panel { padding: 14px; }
  .moderation-item { grid-template-columns: 66px minmax(0, 1fr); gap: 10px; }
  .moderation-item > img { width: 66px; height: 66px; }
  .moderation-item h2 { font-size: 15px; }
  .review-actions form { grid-template-columns: 1fr; }
  .report-resolve { grid-template-columns: 1fr; }
  .report-resolve .checkbox-line, .report-resolve > div { grid-row: auto; }
  .site-footer { padding: 23px 0; }
  .footer-shell { width: min(100% - 28px, 600px); align-items: start; flex-direction: column; }
  .footer-links { align-items: start; flex-direction: column; gap: 6px; }
}
@media (max-width: 390px) {
  .nav-actions .button { font-size: 0; min-width: 35px; padding: 7px; }
  .nav-actions .button svg { margin: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .listing-media { aspect-ratio: 1.5 / 1; }
}

/* Transfer and wanted posts share one market while retaining clear intent. */
.post-type-tabs { display: flex; gap: 7px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.post-type-tab { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; font-weight: 700; }
.post-type-tab svg { width: 15px; }
.post-type-tab:hover, .post-type-tab.active { color: var(--teal-dark); background: var(--teal-soft); border-color: #a7d5ce; }
.post-type-tab.wanted:hover, .post-type-tab.wanted.active { color: #995036; background: var(--coral-soft); border-color: #efc8bc; }
.post-kind { color: var(--teal-dark); background: var(--teal-soft) !important; font-weight: 700; }
.post-kind-wanted { color: #995036; background: var(--coral-soft) !important; }
.listing-placeholder, .gallery-placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 7px; color: #87503b; background: #fff5ef; text-align: center; }
.listing-placeholder svg, .gallery-placeholder svg { width: 31px; height: 31px; color: var(--coral); }
.listing-placeholder strong, .gallery-placeholder strong { font-size: 15px; }
.listing-placeholder span, .gallery-placeholder span { color: var(--muted); font-size: 12px; }
.gallery-placeholder { min-height: 100%; }
.post-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post-type-option { position: relative; display: block; cursor: pointer; }
.post-type-option > input { position: absolute; opacity: 0; pointer-events: none; }
.post-type-option > span { min-height: 96px; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; align-content: center; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.post-type-option > span > i, .post-type-option > span > svg { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 4px; }
.post-type-option > span > i svg { width: 18px; }
.post-type-option > span > svg { padding: 8px; }
.post-type-option strong { color: var(--ink); }
.post-type-option small { color: var(--muted); font-size: 12px; line-height: 1.45; font-weight: 400; }
.post-type-option > input:focus-visible + span { box-shadow: 0 0 0 3px rgba(8, 126, 120, .16); }
.post-type-option > input:checked + span { color: var(--teal-dark); border-color: var(--teal); background: #f8fffd; }
.post-type-option.wanted > span > i, .post-type-option.wanted > span > svg { color: #995036; background: var(--coral-soft); }
.post-type-option.wanted > input:checked + span { border-color: var(--coral); background: #fffaf8; }
.manage-placeholder, .moderation-placeholder { display: grid; place-items: center; align-content: center; gap: 3px; color: #87503b; background: #fff5ef; border-radius: 4px; font-size: 11px; font-weight: 700; }
.manage-placeholder { width: 118px; aspect-ratio: 1.2; }
.moderation-placeholder { width: 100px; height: 88px; }
.manage-placeholder svg, .moderation-placeholder svg { width: 20px; }

@media (max-width: 1050px) {
  .moderation-placeholder { width: 88px; height: 78px; }
}
@media (max-width: 760px) {
  .post-type-options { grid-template-columns: 1fr; }
  .post-type-option > span { min-height: 92px; }
  .manage-placeholder { width: 75px; height: 68px; aspect-ratio: auto; }
  .moderation-placeholder { width: 66px; height: 66px; }
}
