/* ==========================================================================
   街角集市 · 求购信息
   紧凑发布区 + 求购信息优先展示
   ========================================================================== */

:root {
  --paper: #f2eadc;
  --surface: #fffaf1;
  --surface-strong: #fffdf8;
  --ink: #17251d;
  --ink-soft: #33443a;
  --muted: #70766b;
  --muted-light: #858a7f;
  --accent: #ce4c32;
  --accent-deep: #ad3b25;
  --moss: #1e5c47;
  --moss-soft: #dbe9df;
  --gold: #e5bd62;
  --line: rgba(23, 37, 29, 0.14);
  --line-strong: rgba(23, 37, 29, 0.26);
  --shadow: 0 24px 55px -38px rgba(44, 35, 22, 0.55);
  --shadow-sm: 0 12px 26px -22px rgba(44, 35, 22, 0.4);
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", STSong, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 9% 5%, rgba(255, 253, 247, 0.9), transparent 26%),
    radial-gradient(circle at 94% 12%, rgba(230, 203, 150, 0.25), transparent 24%),
    linear-gradient(112deg, transparent 0 49.7%, rgba(23, 37, 29, 0.025) 49.8% 50.2%, transparent 50.3%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(59, 46, 28, 0.025) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(59, 46, 28, 0.018) 5px 6px);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--surface-strong);
  background: var(--moss);
}

:focus-visible {
  outline: 3px solid rgba(206, 76, 50, 0.55);
  outline-offset: 2px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 15px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  top: 22vh;
  left: -190px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(30, 92, 71, 0.1);
  box-shadow: inset 0 0 0 48px rgba(255, 250, 241, 0.28);
}

.ambient-two {
  right: -110px;
  bottom: 9vh;
  width: 270px;
  height: 270px;
  background: radial-gradient(circle at 35% 35%, rgba(229, 189, 98, 0.18), transparent 62%);
}

/* ---------- 顶栏 ---------- */

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 16px auto 0;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background: linear-gradient(100deg, #174b38, #1e5c47);
  border: 1px solid rgba(12, 45, 32, 0.32);
  border-radius: 14px;
  box-shadow: 0 14px 30px -26px rgba(23, 37, 29, 0.7);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  text-decoration: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.brand-copy strong {
  color: #ffb45e;
  font-family: var(--serif);
  font-size: clamp(14px, 1.45vw, 19px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* ---------- 紧凑发布区 ---------- */

.compose {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 22px auto 0;
  padding: 18px 22px 13px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(23, 37, 29, 0.16);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.compose::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 54px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}

.compose-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 12px;
}

.compose-heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.compose h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.compose-warning {
  margin: 0;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.55;
}

.compose-tip {
  max-width: 590px;
  margin: 0 0 2px auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
  text-align: right;
  white-space: normal;
}

.compose-fields {
  display: grid;
  grid-template-columns: 265px minmax(280px, 1fr) 260px 118px;
  gap: 12px;
  align-items: end;
}

.compose-group {
  min-width: 0;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 16px;
  margin-bottom: 5px;
}

.field-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field-micro {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.contact-line {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.contact-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 100px;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(242, 234, 220, 0.55);
}

.type-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.type-face {
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 6px;
  font-size: 10px;
  transition: color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.type-option input:checked + .type-face {
  color: var(--surface-strong);
  background: var(--ink);
  box-shadow: 0 4px 9px -6px rgba(23, 37, 29, 0.8);
}

.type-option input:focus-visible + .type-face {
  outline: 3px solid rgba(206, 76, 50, 0.5);
  outline-offset: 1px;
}

.contact-input-wrap {
  display: block;
  flex: 1;
  min-width: 0;
}

.contact-input-wrap input,
.compose-content textarea,
.captcha-input-wrap input {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.contact-input-wrap input {
  height: 42px;
  padding: 0 10px;
  font-size: 12px;
}

.contact-input-wrap input::placeholder,
.compose-content textarea::placeholder,
.captcha-input-wrap input::placeholder {
  color: #a4a79c;
}

.contact-input-wrap input:hover,
.compose-content textarea:hover,
.captcha-input-wrap input:hover {
  border-color: var(--line-strong);
}

.contact-input-wrap input:focus,
.compose-content textarea:focus,
.captcha-input-wrap input:focus {
  border-color: rgba(30, 92, 71, 0.62);
  background: var(--surface-strong);
  box-shadow: 0 0 0 3px rgba(30, 92, 71, 0.09);
}

.has-error input,
.has-error textarea {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(206, 76, 50, 0.09) !important;
}

.compose-content {
  position: relative;
  display: block;
}

.compose-content textarea {
  height: 42px;
  display: block;
  padding: 9px 56px 9px 11px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  resize: none;
}

.char-row {
  position: absolute;
  right: 11px;
  bottom: 12px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.char-row b {
  color: var(--ink-soft);
  font-weight: 500;
}

.char-row.is-near-limit b {
  color: var(--accent);
}

.char-total {
  color: var(--muted-light);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 127px;
  gap: 7px;
}

.captcha-input-wrap {
  display: block;
  min-width: 0;
}

.captcha-input-wrap input {
  height: 42px;
  padding: 0 5px;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.18em;
  text-align: center;
  text-indent: 0.18em;
}

.captcha-refresh {
  position: relative;
  width: 127px;
  height: 42px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f1e7;
  cursor: pointer;
}

.captcha-refresh img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  visibility: hidden;
}

.captcha-refresh.has-image img {
  visibility: visible;
}

.captcha-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  background: repeating-linear-gradient(135deg, #f4ede1 0 7px, #efe5d5 7px 8px);
}

.captcha-refresh.has-image .captcha-placeholder {
  display: none;
}

.captcha-refresh.is-loading {
  opacity: 0.65;
  cursor: wait;
}

.captcha-shuffle {
  position: absolute;
  right: 3px;
  bottom: 2px;
  padding: 1px 4px;
  color: var(--moss);
  border-radius: 3px;
  background: rgba(255, 250, 241, 0.85);
  font-size: 8px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.captcha-refresh:hover .captcha-shuffle,
.captcha-refresh:focus-visible .captcha-shuffle {
  opacity: 1;
  transform: translateY(0);
}

.submit-button {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px 0 14px;
  color: var(--surface-strong);
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 20px -14px rgba(23, 37, 29, 0.8);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.submit-button:hover {
  background: var(--moss);
  box-shadow: 0 12px 24px -14px rgba(30, 92, 71, 0.75);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.submit-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.submit-arrow {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.1);
}

.form-meta {
  min-height: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
}

.form-message {
  flex: 1;
  min-width: 0;
  color: var(--accent-deep);
  font-size: 10px;
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--moss);
}

.privacy-note {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted-light);
  font-size: 8px;
  line-height: 1.6;
  text-align: right;
}

/* ---------- 求购信息列表 ---------- */

.listings {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 29px 0 36px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-strong);
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3.2vw, 39px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.listing-count {
  min-width: 22px;
  padding: 2px 8px;
  color: var(--moss);
  border: 1px solid rgba(30, 92, 71, 0.16);
  border-radius: 999px;
  background: var(--moss-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

.section-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  transition: color 140ms ease;
}

.text-button:hover {
  color: var(--accent);
}

.text-button.is-loading svg {
  animation: spin 700ms linear infinite;
}

.text-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.listing-card {
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 13px 14px 10px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.84);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.listing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  opacity: 0.72;
}

.listing-card:nth-child(4n + 2)::before {
  background: var(--moss);
}

.listing-card:nth-child(4n + 3)::before {
  background: var(--gold);
}

.listing-card:nth-child(4n)::before {
  background: #6b6884;
}

.listing-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 36px -28px rgba(44, 35, 22, 0.48);
  transform: translateY(-2px);
}

.listing-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 7px;
  flex: 0 0 auto;
}

.card-index {
  flex: 0 0 auto;
  margin-top: 5px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.listing-content {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.listing-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.listing-contact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 2px 6px;
  color: var(--moss);
  border-radius: 999px;
  background: rgba(219, 233, 223, 0.68);
  font-size: 9px;
}

.contact-badge.is-qq {
  color: #2c577c;
  background: #e2ebf4;
}

.contact-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.listing-contact-value {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  white-space: nowrap;
}

.listing-time-label {
  color: var(--muted-light);
  font-size: 7px;
}

.listing-time {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

.verified-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--moss);
  font-size: 8px;
}

.copy-button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: color 130ms ease, border-color 130ms ease, background 130ms ease;
}

.copy-button:hover {
  color: var(--moss);
  border-color: rgba(30, 92, 71, 0.38);
  background: rgba(219, 233, 223, 0.4);
}

.copy-button.is-copied {
  color: var(--moss);
  border-color: rgba(30, 92, 71, 0.38);
  background: var(--moss-soft);
}

.listing-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.page-button {
  padding: 6px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 250, 241, 0.5);
  cursor: pointer;
  font-size: 9px;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.page-button:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.page-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.page-info {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

/* ---------- 空状态、骨架屏、提示 ---------- */

.empty-state {
  margin-top: 18px;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: rgba(255, 250, 241, 0.44);
}

.empty-mark {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.empty-state p {
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 11px;
}

.empty-link {
  display: inline-block;
  padding-bottom: 2px;
  color: var(--accent);
  border-bottom: 1px solid rgba(206, 76, 50, 0.4);
  font-size: 11px;
  text-decoration: none;
}

.skeleton-card {
  min-height: 110px;
  padding: 19px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 250, 241, 0.52);
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 10px;
  margin-bottom: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(23, 37, 29, 0.06), rgba(23, 37, 29, 0.12), rgba(23, 37, 29, 0.06));
  background-size: 220% 100%;
  animation: shimmer 1.6s ease infinite;
}

.skeleton-line-sm {
  width: 28%;
  height: 7px;
  margin-bottom: 30px;
}

.skeleton-line-md {
  width: 63%;
}

.skeleton-footer {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(23, 37, 29, 0.035), transparent);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(340px, calc(100vw - 40px));
  padding: 11px 16px;
  color: var(--surface-strong);
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 10px;
  background: rgba(23, 37, 29, 0.95);
  box-shadow: 0 18px 40px -18px rgba(23, 37, 29, 0.7);
  font-size: 11px;
  line-height: 1.55;
  animation: toast-in 180ms ease both;
}

.toast.is-error {
  background: rgba(142, 48, 32, 0.97);
}

/* ---------- 页脚 ---------- */

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 15px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

/* ---------- 动效 ---------- */

@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .compose-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
      "contact content"
      "captcha submit";
    gap: 11px 14px;
    align-items: end;
  }

  .compose-contact {
    grid-area: contact;
  }

  .compose-content {
    grid-area: content;
  }

  .compose-captcha {
    grid-area: captcha;
  }

  .compose-submit {
    grid-area: submit;
    width: 100%;
  }

  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 127px;
  }

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

@media (max-width: 820px) {
  .site-header,
  .compose,
  .listings,
  .site-footer {
    width: min(100% - 36px, 680px);
  }

  .site-header {
    padding-top: 15px;
  }

  .compose {
    margin-top: 18px;
    padding: 17px 17px 12px;
  }

  .compose-head {
    margin-bottom: 13px;
  }

  .compose h1 {
    font-size: 27px;
  }

  .compose-tip {
    font-size: 10px;
  }

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

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .compose,
  .listings,
  .site-footer {
    width: calc(100% - 28px);
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .compose {
    margin-top: 14px;
    padding: 16px 14px 11px;
    border-radius: 16px;
  }

  .compose::before {
    left: 16px;
  }

  .compose-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
  }

  .compose-tip {
    margin: 0;
    text-align: left;
  }

  .compose-fields {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 10px;
  }

  .compose-contact,
  .compose-content,
  .compose-captcha,
  .compose-submit {
    grid-area: auto;
  }

  .contact-types {
    flex-basis: 110px;
  }

  .contact-input-wrap input {
    font-size: 13px;
  }

  .compose-content textarea {
    font-size: 13px;
  }

  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 127px;
  }

  .captcha-refresh {
    width: 127px;
  }

  .submit-button {
    height: 45px;
    margin-top: 2px;
  }

  .form-meta {
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
  }

  .privacy-note {
    text-align: left;
  }

  .listings {
    padding-top: 23px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

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

  .section-head {
    align-items: flex-start;
  }

  .toast {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
