:root {
  color-scheme: light;
  --paper: #fffdfa;
  --white: #fff;
  --ink: #24211f;
  --muted: #625b56;
  --border: #e9e1d9;
  --soft: #f7f3ee;
  --accent: #b63d23;
  --accent-hover: #9e321b;
  --accent-soft: #fae8de;
  --shadow: 0 7px 27px #4327140c;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
body:has(dialog[open]) { overflow: hidden; }
main { min-height: 63vh; }
main:focus { outline: none; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .63; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #a73821; outline-offset: 3px; }
button, a, input, select { touch-action: manipulation; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(2.05rem, 4vw, 3rem); letter-spacing: -.048em; }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.72rem); letter-spacing: -.035em; }
h3 { font-size: 1rem; letter-spacing: -.012em; }
strong { font-weight: 700; }
.icon { width: 1.28em; height: 1.28em; flex: none; vertical-align: -.21em; }
.mini { font-size: .79em; }
.shell { width: min(1216px, calc(100% - 72px)); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.accent:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 30; padding: .8rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.btn {
  border: 1px solid transparent; border-radius: 9px; min-height: 43px; padding: .58rem 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .91rem; font-weight: 700; line-height: 1.25; color: var(--ink);
  background: transparent; white-space: nowrap; transition: background-color 160ms, border-color 160ms, color 160ms;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }
.btn.secondary { border-color: #e1d7cd; background: var(--white); }
.btn.secondary:hover:not(:disabled) { color: var(--accent); border-color: #d3a18e; background: #fffaf5; }
.btn.small { min-height: 36px; padding: .43rem .76rem; font-size: .86rem; }
.btn.wide { width: 100%; }
.text-btn {
  background: none; border: 0; padding: 0; font-size: .9rem; font-weight: 700;
  color: inherit; display: inline-flex; align-items: center; gap: .34rem; line-height: 1.35;
}
.text-btn.accent { color: var(--accent); }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
.icon-btn, .nav-icon {
  width: 39px; height: 39px; border: 0; border-radius: 9px; background: transparent;
  display: inline-grid; place-items: center; color: var(--ink); position: relative;
}
.icon-btn:hover, .nav-icon:hover, .nav-icon[aria-current] { background: var(--accent-soft); color: var(--accent); }
.icon-btn .icon, .nav-icon .icon { width: 22px; height: 22px; }

.site-header { background: var(--paper); border-bottom: 1px solid #ece5df; position: sticky; top: 0; z-index: 5; }
.header-row { min-height: 73px; display: flex; align-items: center; gap: 23px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; flex: none; color: var(--ink); }
.brand:hover { color: inherit; }
.brand img { border-radius: 11px; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 1.135rem; letter-spacing: -.055em; font-weight: 800; }
.brand small { font-size: .8rem; letter-spacing: -.018em; font-weight: 650; color: #5d4d43; }
.location-btn {
  display: inline-flex; align-items: center; gap: 6px; background: #fffaf5; border: 1px solid #ecded2;
  border-radius: 9px; padding: .52rem .68rem; color: var(--ink); font-size: .86rem; font-weight: 650; white-space: nowrap;
}
.location-btn:hover { border-color: #d3a18e; }
.location-btn .icon:first-child { color: var(--accent); }
.top-links, .top-actions { display: flex; align-items: center; }
.top-links { gap: 20px; }
.top-links a { font-size: .87rem; font-weight: 650; }
.top-links a[aria-current] { color: var(--accent); }
.top-actions { margin-left: auto; gap: 7px; }
.login-link { padding: .5rem .59rem; white-space: nowrap; }
.post-btn { margin-left: 6px; min-height: 42px; }
.count-badge {
  position: absolute; top: 1px; right: 0; border: 2px solid var(--paper); background: var(--accent); color: white;
  min-width: 18px; height: 18px; border-radius: 20px; padding: 0 3px; font: 700 .67rem/14px var(--sans);
}
.avatar {
  background: #f4e3d7; color: #923418; width: 39px; height: 39px; min-width: 39px; display: inline-grid;
  place-items: center; border-radius: 50%; font-weight: 800;
}
.nav-avatar { width: 35px; height: 35px; min-width: 35px; margin-inline: 5px; }
.mobile-nav { display: none; }

.home { padding-top: 29px; }
.hero {
  min-height: 390px; border-radius: 22px; overflow: hidden; position: relative; isolation: isolate;
  display: flex; align-items: center;
  background: linear-gradient(102deg, #fae7db 5%, #f9e3d5 42%, #f5cbb5 100%);
}
.hero-art {
  position: absolute; z-index: -1; right: 0; top: -5%; width: auto; height: 113%;
  object-fit: cover; object-position: right center; mask-image: linear-gradient(to right, transparent 0%, black 27%);
}
.hero-content { padding: 33px 0 35px clamp(27px, 4vw, 55px); width: min(49%, 583px); }
.hero-local {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px;
  color: #8d3d2a; font-size: .75rem; letter-spacing: .11em; font-weight: 800;
}
.hero h1 { font: 700 clamp(3.25rem, 5.12vw, 4.8rem)/.99 var(--serif); letter-spacing: -.066em; color: #241a16; }
.hero h1 em { color: #a93924; font-style: normal; }
.hero-content > p { margin: 16px 0 20px; max-width: 34ch; color: #504039; line-height: 1.47; font-size: 1.025rem; }
.search-bar {
  display: flex; align-items: center; gap: 9px; border: 1px solid #e7d9cd; background: white;
  border-radius: 11px; padding: 5px 5px 5px 13px; width: 100%; max-width: 510px; color: #796b61; box-shadow: 0 4px 18px #68291612;
}
.search-bar .icon { width: 21px; height: 21px; }
.search-bar input {
  min-width: 0; flex: 1; padding: .45rem .1rem; border: 0; border-radius: 0; background: transparent; font-size: .91rem;
}
.search-bar:focus-within { outline: 2px solid #bf7c65; outline-offset: 2px; }
.search-bar input:focus-visible { outline: none; }
.search-bar .btn { min-height: 39px; min-width: 84px; }
.quick-search { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 13px; font-size: .8rem; color: #654b3e; }
.quick-search a { padding: .15rem .57rem .19rem; border-radius: 100px; border: 1px solid #dab9a7; background: #fffaf483; font-weight: 650; }
.quick-search a:hover { border-color: var(--accent); background: #fffaf3; }
.quick-search > span { padding-right: 2px; font-weight: 650; }

.home-categories, .fresh-section, .community-section { margin-top: 29px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-copy { margin-top: 4px; color: var(--muted); font-size: .91rem; }
.category-grid {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 11px; padding: 0;
}
.peach { --tile: #f8e5d6; --tile-ink: #a84f2b; }
.lavender { --tile: #eae7f8; --tile-ink: #6855a0; }
.mint { --tile: #e3efe5; --tile-ink: #477557; }
.sand { --tile: #f8ebcf; --tile-ink: #896217; }
.rose { --tile: #f6e6eb; --tile-ink: #9e4b67; }
.sky { --tile: #e4eef7; --tile-ink: #356b95; }
.lime { --tile: #ebefd9; --tile-ink: #5b7435; }
.stone { --tile: #eeeae6; --tile-ink: #62554d; }
.category {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 91px; padding: 10px 4px; background: white; border: 1px solid var(--border); border-radius: 13px;
  color: var(--ink); text-align: center; font-size: .85rem; line-height: 1.2; font-weight: 650;
  transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}
.category:hover, .category.selected { border-color: #d9ab98; transform: translateY(-2px); box-shadow: var(--shadow); }
.category-icon {
  display: grid; place-items: center; width: 41px; height: 38px; border-radius: 10px; background: var(--tile); color: var(--tile-ink);
}
.category-icon .icon { width: 23px; height: 23px; }

.listing-grid, .community-grid, .stats-grid { display: grid; gap: 17px; }
.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.listing-card {
  position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: white;
  box-shadow: 0 4px 12px #3f29190a; transition: transform 160ms, border-color 160ms, box-shadow 160ms;
}
.listing-card:hover { transform: translateY(-2px); border-color: #d9b2a0; box-shadow: var(--shadow); }
.listing-link { display: block; height: 100%; }
.listing-link:hover { color: var(--ink); }
.listing-link:focus-visible { outline-offset: -3px; }
.listing-image, .detail-image { position: relative; background: var(--tile, var(--soft)); overflow: hidden; }
.listing-image { aspect-ratio: 1.59; }
.listing-image img, .detail-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-image img { object-position: center 53%; }
.image-placeholder { display: grid; place-items: center; height: 100%; color: var(--tile-ink, var(--muted)); font-size: 2.3rem; }
.image-label {
  position: absolute; left: 11px; top: 11px; border-radius: 6px; background: #fffdf2; color: #694737;
  padding: .19rem .44rem; font-size: .73rem; font-weight: 750; box-shadow: 0 2px 7px #311d1a1f;
}
.heart-button {
  position: absolute; right: 9px; top: 9px; display: grid; place-items: center; width: 37px; height: 37px;
  color: #423631; background: #fffdfa; border: 1px solid #fff9; border-radius: 50%; box-shadow: 0 2px 8px #3a211b20;
}
.heart-button .icon { width: 21px; height: 21px; }
.heart-button:hover, .heart-button.is-saved { color: var(--accent); }
.heart-button.is-saved .icon { fill: #eab3a5; }
.listing-body { padding: 11px 13px 12px; }
.listing-price { font-size: 1.22rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.listing-body h3 { margin: 3px 0 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-meta { display: flex; align-items: center; gap: 4px 10px; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.listing-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-meta .icon { color: #9b6756; margin-right: 3px; width: 14px; height: 14px; }
.listing-card:has(.card-actions) .listing-link { height: auto; }
.card-actions { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; padding: 9px 13px; font-size: .85rem; }
.card-actions a, .card-actions button { color: var(--accent); }

.community-section { padding-top: 22px; border-top: 1px solid var(--border); margin-top: 35px; }
.community-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.community-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border);
  border-radius: 14px; background: white; box-shadow: var(--shadow);
}
.community-photo, .community-embed {
  width: 100%; height: clamp(228px, 24vw, 320px); border: 0; display: block;
  background: #f8f1e9; border-bottom: 1px solid var(--border);
}
.community-photo { position: relative; }
.community-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f3eee7; }
.community-photo img[hidden] { display: none; }
.community-photo-fallback { display: flex; align-items: center; justify-content: center; gap: 7px; height: 100%; padding: 12px; color: var(--muted); }
.community-card-body { flex: 1; padding: 13px 15px 15px; display: flex; flex-direction: column; align-items: flex-start; }
.community-card h3 { margin: 3px 0 6px; line-height: 1.28; font-size: 1rem; overflow-wrap: anywhere; }
.community-source { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 650; }
.provider-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #a43a22; background: var(--accent-soft); }
.provider-icon .icon { width: 17px; height: 17px; }
.provider-icon.provider-olx { color: #355b52; background: #e2eee8; }
.community-price { margin-top: 6px; font-size: 1.33rem; font-weight: 800; letter-spacing: -.036em; }
.community-price.unknown { color: var(--muted); font-size: .91rem; letter-spacing: 0; }
.community-area { font-size: .82rem; color: var(--muted); }
.community-area .icon { width: 15px; margin-right: 4px; }
.community-outbound { padding-top: 8px; margin-top: auto; }
.community-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 15px; }
.community-directory, .source-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.source-tabs { gap: 5px; border-radius: 10px; border: 1px solid var(--border); padding: 4px; background: var(--soft); }
.source-tabs a { padding: 5px 10px; border-radius: 7px; font-size: .88rem; font-weight: 700; }
.source-tabs a[aria-current] { color: var(--accent); background: white; box-shadow: var(--shadow); }
.feed-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feed-status > div { padding: 9px; background: var(--soft); border-radius: 8px; }
.feed-status p { font-size: .87rem; }
.fresh-section .empty { min-height: 166px; }
.sell-banner {
  margin: 30px 0 38px; padding: 21px 24px; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  background: #faeee4; border: 1px solid #efdece; border-radius: 15px;
}
.sell-banner p { margin-top: 5px; color: #675247; }

.site-footer { border-top: 1px solid var(--border); background: #faf6f0; }
.footer-row { min-height: 100px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.footer-row nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .86rem; font-weight: 650; }
.footer-row > small { color: var(--muted); font-size: .8rem; }

.page { padding-block: 27px 44px; }
.narrow { max-width: 760px; }
.reading { max-width: 820px; }
.reading h1 { margin-bottom: 20px; }
.reading .panel { padding: 25px; }
.reading .panel h2:not(:first-child) { margin-top: 11px; }
.reading .panel p { color: var(--muted); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.crumb a { color: var(--accent); }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 17px; margin-bottom: 23px; }
.page-head p { margin-top: 8px; }
.page-head .search-bar { max-width: 440px; }
.page-lead { margin: 8px 0 18px; }
.panel { background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 13px #38241609; }
.loading { display: flex; align-items: center; gap: .65rem; min-height: 12rem; color: var(--muted); }
.loading span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.empty { padding: 33px 20px; min-height: 232px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 11px; text-align: center; background: #fffdf8; border: 1px dashed #ded0c4; border-radius: 14px; }
.empty p { color: var(--muted); max-width: 45ch; }
.empty-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.empty .btn { margin-top: 3px; }
.stack { display: grid; gap: 13px; }
label { display: grid; gap: 6px; color: var(--ink); font-weight: 650; font-size: .91rem; }
label > span.muted { display: inline; }
input, select, textarea {
  color: var(--ink); background: white; border: 1px solid #e0d7ce; border-radius: 8px; padding: .57rem .66rem; min-width: 0;
}
input::placeholder, textarea::placeholder { color: #6f645b; }
textarea { resize: vertical; }
select {
  appearance: none; min-height: 40px; padding-right: 2rem;
  background: white url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 7 4 4 4-4' fill='none' stroke='%23625b56' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .55rem center / 17px;
}
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-message { background: #fff2e9; border: 1px solid #f1d8c8; border-radius: 8px; color: #833821; font-size: .89rem; padding: 8px 11px; }
.form-actions { display: flex; justify-content: end; gap: 9px; }

.browse-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 21px; }
.browse-layout .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-panel { padding: 15px; }
.filter-title { display: flex; align-items: center; gap: 7px; }
.filter-title a { margin-left: auto; }
.result-head { min-height: 41px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sort { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.sort span { color: var(--muted); }
.sort select { min-height: 37px; font-weight: 550; padding-block: .42rem; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 19px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .58fr); align-items: start; gap: 23px; }
.detail-image { aspect-ratio: 1.65; border-radius: 15px; }
.detail-image img { object-fit: contain; }
.detail-image .heart-button { right: 13px; top: 13px; }
.detail-info, .description { padding: 20px; }
.description { margin-top: 14px; }
.description p { margin-top: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-info h1 { font-size: clamp(1.55rem, 2.9vw, 2.45rem); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; padding: .14rem .53rem; border-radius: 100px; background: #edeee7; color: #424c32; font-size: .76rem; font-weight: 750; }
.pill.warm { background: var(--accent-soft); color: #943822; }
.detail-price { margin: 9px 0 1px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.045em; }
.detail-location { color: var(--muted); font-size: .91rem; margin-top: 7px; }
.detail-location .icon { color: var(--accent); margin-right: 3px; }
.seller-box { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--border); padding: 15px 0; margin-top: 16px; }
.seller-box small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.seller-box small .icon { color: #46703b; margin-right: 3px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; }
.detail-actions .text-btn { color: var(--muted); font-size: .85rem; }
.thumbnails { display: flex; gap: 8px; padding-top: 10px; }
.thumbnails button { border: 1px solid var(--border); background: white; border-radius: 8px; padding: 3px; }
.thumbnails button[aria-pressed="true"] { border-color: var(--accent); }
.thumbnails img { width: 72px; height: 51px; object-fit: cover; border-radius: 5px; }
.trade-note { display: flex; gap: 9px; background: #f7efe3; border: 1px solid #eee1cf; border-radius: 12px; margin-top: 14px; padding: 13px 15px; }
.trade-note > .icon { color: #99603e; margin-top: 2px; }
.trade-note p, .trade-note ul { color: var(--muted); font-size: .89rem; }
.trade-note p { margin-top: 1px; }
.trade-note ul { padding-left: 18px; margin: 7px 0; }
.trade-note a { color: var(--accent); font-weight: 700; font-size: .86rem; }

.sell-layout { display: grid; grid-template-columns: minmax(0, 740px) minmax(210px, 290px); justify-content: center; align-items: start; gap: 23px; }
.ad-form { padding: 19px; }
.listing-tips { margin-top: 51px; }
.photo-upload { border-top: 1px solid var(--border); margin-top: 1px; padding-top: 11px; }
.photo-upload .section-head { margin-bottom: 8px; }
.photo-picks { display: flex; gap: 7px; flex-wrap: wrap; }
.photo-pick { width: 94px; height: 72px; position: relative; margin-bottom: 8px; }
.photo-pick img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.photo-pick .icon-btn { position: absolute; width: 25px; height: 25px; border-radius: 50%; top: 2px; right: 2px; background: white; }
.photo-pick .icon-btn .icon { width: 16px; height: 16px; }
.drop-zone { border: 1px dashed #dcbfaf; padding: 10px; border-radius: 9px; gap: 4px; background: #fffaf6; color: var(--muted); }
.drop-zone .icon { color: var(--accent); }
.drop-zone input { padding: 5px 0; border: 0; background: none; font-weight: 400; }
.drop-zone input::file-selector-button { border: 1px solid #e8d4c6; background: white; color: var(--ink); border-radius: 6px; padding: 4px 7px; margin-right: 8px; cursor: pointer; }
.account-panel { padding: 18px; }
.account-panel .seller-box { margin: 0 0 14px; padding: 0 0 13px; border: 0; border-bottom: 1px solid var(--border); }
.account-panel form .btn, .community-admin form .btn { justify-self: start; }
.account-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.inbox-layout { display: grid; grid-template-columns: minmax(235px, .38fr) minmax(0, 1fr); min-height: 480px; overflow: hidden; }
.conversation-list { border-right: 1px solid var(--border); background: #fffcf8; min-width: 0; }
.conversation-list h2 { padding: 15px 13px 14px; font-size: 1.18rem; }
.conversation { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px 12px; border-top: 1px solid var(--border); }
.conversation:hover, .conversation.selected { background: #faeee4; }
.conversation-copy { min-width: 0; }
.conversation-copy > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.conversation-copy small { color: var(--muted); }
.conversation-copy > span { color: var(--muted); font-size: .8rem; }
.inbox-empty-list { padding: 0 13px 15px; color: var(--muted); }
.unread-pill { margin-left: auto; font-size: .76rem; font-weight: 700; padding: 1px 7px; border-radius: 30px; background: var(--accent); color: white; }
.thread-pane { display: flex; flex-direction: column; min-width: 0; }
.thread-pane > .empty { flex: 1; border: 0; border-radius: 0; }
.chat-header { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.chat-header a { display: block; color: var(--accent); font-size: .83rem; }
.chat-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.chat-actions button { font-size: .82rem; }
.message-log { height: min(47vh, 480px); min-height: 300px; overflow-y: auto; padding: 13px; flex: 1 1 auto; }
.message-row { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 10px; }
.message-row.mine { align-items: flex-end; }
.message-row p { background: #f6f1e9; border: 1px solid #efe5d7; border-radius: 11px 11px 11px 2px; max-width: 86%; padding: 6px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.mine p { background: #fbe5da; border-color: #f2d3c3; border-radius: 11px 11px 2px 11px; }
.message-row time { color: var(--muted); font-size: .74rem; margin-top: 1px; }
.chat-prompt, .chat-closed { text-align: center; color: var(--muted); padding: 12px; }
#older-messages { text-align: center; padding-bottom: 9px; }
.composer { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--border); }
.composer input { flex: 1; min-width: 0; }
.mobile-thread-back { display: none; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); }
.notice:last-child { border-bottom: 0; }
.notice.unread { background: #fff5ec; }
.notice small { display: block; color: var(--muted); }
.notice i { display: block; margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.notice-list { overflow: hidden; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 5px; background: #f8f1e9; border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.admin-nav a { padding: 6px 10px; font-size: .91rem; font-weight: 700; border-radius: 7px; }
.admin-nav a[aria-current] { background: white; color: var(--accent); box-shadow: var(--shadow); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 13px; display: grid; gap: 6px; color: var(--ink); }
.stat strong { font-size: 1.8rem; line-height: 1.1; }
.stat > span:last-child { color: var(--muted); font-size: .88rem; }
.admin-recent { margin-top: 21px; }
.admin-search { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.admin-search input { flex: 0 1 290px; }
.table-panel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
thead { background: #faf4ed; text-align: left; color: var(--muted); }
td, th { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); overflow-wrap: anywhere; }
td p { max-width: 45ch; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.report-detail { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-admin { margin-bottom: 14px; padding: 15px; }
.community-admin .section-head { margin-bottom: 0; }

dialog { border: 1px solid #e9d4c5; border-radius: 16px; padding: 20px; width: min(465px, calc(100% - 26px)); color: var(--ink); box-shadow: 0 22px 90px #34201647; }
dialog::backdrop { background: #21150e7d; }
dialog > .muted { margin: 4px 0 14px; }
.modal-head { display: flex; align-items: center; gap: 9px; justify-content: space-between; padding-bottom: 6px; }
.modal-head .icon-btn { margin: -4px -6px 0 0; }
.auth-dialog { margin-top: 14px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; gap: 4px; border-radius: 10px; background: var(--soft); }
.auth-tabs button { border: 0; border-radius: 7px; min-height: 40px; background: transparent; color: var(--muted); font-weight: 700; }
.auth-tabs button[aria-pressed="true"] { color: var(--accent); background: var(--white); box-shadow: var(--shadow); }
.auth-field { display: grid; gap: 6px; }
.password-control { display: flex; align-items: center; gap: 10px; }
.password-control input { min-width: 0; flex: 1; }
.password-control button { min-width: 44px; min-height: 44px; justify-content: center; color: var(--accent); }
.auth-link { justify-self: start; }
.auth-hint { font-size: .84rem; }
.auth-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.auth-confirm { padding: clamp(20px, 5vw, 36px); }
.auth-confirm > p { margin: 12px 0 22px; }
.toast { position: fixed; z-index: 12; bottom: 17px; right: 18px; border-radius: 10px; padding: 9px 14px; max-width: min(420px, calc(100% - 35px)); background: #30231d; color: #fffaf4; box-shadow: 0 5px 20px #34201633; }

@media (max-width: 1040px) {
  .shell { width: calc(100% - 44px); }
  .header-row { gap: 15px; }
  .top-links { gap: 13px; }
  .top-actions { gap: 3px; }
  .hero-content { width: 54%; }
  .category-grid { gap: 7px; }
  .listing-grid { gap: 13px; }
  .listing-meta { align-items: start; flex-wrap: wrap; }
  .browse-layout { gap: 14px; grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .top-links { display: none; }
  .hero { min-height: 365px; }
  .hero-content { width: 62%; }
  .hero-art { mask-image: linear-gradient(to right, transparent 8%, black 41%); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category { min-height: 74px; }
  .listing-grid, .browse-layout .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-meta { flex-wrap: nowrap; }
  .page-head { align-items: start; }
  .page-head .search-bar { max-width: 320px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(255px, .8fr); gap: 12px; }
  .sell-layout { grid-template-columns: minmax(0, 1fr); }
  .listing-tips { margin-top: 0; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 28px); }
  .header-row { min-height: 61px; gap: 7px; }
  .brand { gap: 6px; }
  .brand img { width: 35px; height: 35px; }
  .brand strong { font-size: 1.01rem; }
  .brand small { font-size: .69rem; }
  .site-header .location-btn { max-width: 96px; padding: .44rem .36rem; gap: 2px; font-size: .76rem; }
  .location-btn span { overflow: hidden; text-overflow: ellipsis; }
  .site-header .location-btn .mini { display: none; }
  .top-actions { gap: 0; }
  .header-row .nav-icon { width: 31px; height: 34px; }
  .top-actions .saved-nav, .top-actions .inbox-nav, .top-actions .login-link, .top-actions .nav-avatar { display: none; }
  .post-btn { min-height: 36px; padding: .45rem .53rem; font-size: .75rem; margin-left: 2px; gap: 2px; }
  .home { padding-top: 13px; }
  .hero { min-height: 344px; border-radius: 15px; align-items: end; }
  .hero-art { top: 0; right: -37px; height: 79%; opacity: .87; mask-image: linear-gradient(to right, transparent 40%, black 80%); }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #fae5d8 12%, transparent 60%); pointer-events: none; }
  .hero-content { padding: 23px 15px 17px; width: 100%; }
  .hero-local { font-size: .67rem; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.85rem, 11.8vw, 3.65rem); }
  .hero-content > p { max-width: 29ch; font-size: .92rem; margin: 13px 0 16px; }
  .search-bar { padding-left: 7px; gap: 5px; }
  .search-bar .icon { width: 18px; }
  .search-bar input { font-size: .86rem; }
  .search-bar .btn { min-width: 62px; padding-inline: .58rem; min-height: 35px; font-size: .84rem; }
  .quick-search { margin-top: 9px; }
  .home-categories, .fresh-section, .community-section { margin-top: 23px; }
  .section-head { margin-bottom: 11px; }
  .category { min-height: 70px; font-size: .76rem; gap: 6px; border-radius: 10px; }
  .category-icon { width: 35px; height: 32px; }
  .category-icon .icon { width: 19px; height: 19px; }
  .section-copy { font-size: .84rem; }
  .listing-grid, .community-grid { gap: 9px; }
  .listing-card { border-radius: 10px; }
  .listing-image { aspect-ratio: 1.31; }
  .image-label { top: 6px; left: 6px; font-size: .69rem; }
  .heart-button { width: 31px; height: 31px; right: 6px; top: 6px; }
  .heart-button .icon { width: 18px; height: 18px; }
  .listing-body { padding: 7px 8px 8px; }
  .listing-price { font-size: 1.12rem; }
  .listing-body h3 { font-size: .88rem; margin-bottom: 6px; }
  .listing-meta { font-size: .72rem; column-gap: 4px; flex-wrap: wrap; }
  .listing-meta .icon { width: 12px; height: 12px; margin-right: 1px; }
  .community-grid { grid-template-columns: 1fr; }
  .sell-banner { padding: 14px; flex-wrap: wrap; }
  .footer-row { flex-wrap: wrap; padding-block: 20px 74px; gap: 15px; }
  .footer-row nav { justify-content: start; flex-basis: 100%; order: 3; }
  .mobile-nav { display: flex; position: fixed; z-index: 5; bottom: 0; width: 100%; justify-content: space-around; align-items: center;
    min-height: 53px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: var(--paper); }
  .mobile-nav a { display: grid; justify-items: center; gap: 1px; padding: 5px 12px; color: var(--muted); font-size: .73rem; font-weight: 650; }
  .mobile-nav a[aria-current] { color: var(--accent); }
  .mobile-nav svg { width: 21px; height: 21px; }
  .toast { bottom: 64px; right: 9px; }
  .page { padding-top: 18px; padding-bottom: 30px; }
  .page-head { flex-wrap: wrap; margin-bottom: 15px; gap: 11px; }
  .page-head .search-bar { max-width: none; }
  .browse-layout, .detail-grid { grid-template-columns: 1fr; }
  .filter-panel { padding: 9px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .filter-panel .filter-title, .filter-panel .btn { grid-column: 1 / -1; }
  .filter-panel label { font-size: .83rem; }
  .filter-panel select { font-size: .84rem; }
  .sort span { display: none; }
  .sort select { font-size: .83rem; }
  .detail-grid > div { display: contents; }
  .detail-grid > aside { order: 2; }
  .detail-grid .description { order: 3; }
  .detail-info, .description { padding: 13px; }
  .detail-info .seller-box { margin-top: 9px; padding-block: 8px; }
  .detail-info .detail-price { font-size: 1.62rem; }
  .detail-grid .trade-note { margin-top: 9px; }
  .detail-image { aspect-ratio: 1.43; }
  .ad-form { padding: 11px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-nav { gap: 3px; }
  .admin-nav a { padding: 4px 7px; font-size: .85rem; }
  .inbox-layout { grid-template-columns: 1fr; min-height: 280px; }
  .inbox-layout.has-thread .conversation-list, .inbox-layout:not(.has-thread) .thread-pane { display: none; }
  .mobile-thread-back { display: inline-flex; margin-bottom: 9px; }
  .message-log { min-height: 34vh; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 18px); }
  .header-row { gap: 4px; }
  .post-btn { padding-inline: .38rem; }
  .post-btn .icon { display: none; }
  .btn.small { padding-inline: .51rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
}
