:root {
  color-scheme: light;
  --forest: #082c24;
  --dark: #09221c;
  --lime: #dbf66a;
  --paper: #f5efe5;
  --muted: #42594f;
  font-family: Arial, sans-serif;
  color: var(--dark);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { min-height: 44px; border: 1px solid transparent; border-radius: 11px; padding: 9px 15px; cursor: pointer; color: inherit; background: #edf0e8; font-weight: 700; }
button:hover { filter: brightness(.95); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #4c9c79; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: wait; }
.accent { background: var(--lime); color: #132719; font-weight: 800; }
.primary { background: var(--forest); color: white; }
.site-header { background: var(--forest); color: white; }
.header-inner, .category-bar { max-width: 1300px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 52px); }
.header-inner { display: grid; grid-template-columns: auto minmax(150px, 430px) auto; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { color: white; font-weight: 900; font-size: clamp(25px, 3vw, 39px); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--lime); }
.header-actions { display: flex; gap: 10px; align-items: center; }
#account { background: transparent; color: white; padding-inline: 8px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); color: var(--dark); border-radius: 40px; padding-inline: 13px; }
.search svg { flex: none; }
.search input { border: 0; background: transparent; min-width: 0; width: 100%; min-height: 44px; padding: 7px 2px; font-size: 16px; }
.category-bar { display: flex; gap: 8px; padding-block: 0 12px; overflow-x: auto; scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.category-bar button { flex: none; background: #173b31; border-color: #376054; color: #fbfaf2; border-radius: 40px; }
.category-bar [aria-pressed=true] { color: var(--lime); border-color: var(--lime); }
main { max-width: 1300px; margin: auto; }
.hero { position: relative; display: grid; grid-template-columns: 34% 66%; align-items: stretch; background: #092e25; color: #fffaf0; overflow: hidden; }
.hero img { grid-column: 2; grid-row: 1; width: 100%; height: 100%; max-height: 505px; object-fit: cover; display: block; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 24px clamp(20px, 4vw, 55px) 24px 8px; }
h1 { margin: 0 0 23px; font-size: clamp(37px, 5.8vw, 87px); line-height: .98; letter-spacing: -.045em; font-weight: 900; }
#browse { padding: 10px clamp(16px, 2vw, 29px); font-size: clamp(16px, 2vw, 23px); }
#browse span { margin-inline-start: 8px; }
#market { padding: clamp(18px, 3vw, 40px) clamp(14px, 3vw, 38px) 44px; }
.market-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 15px; }
.market-heading h1 { margin: 0; font-size: clamp(25px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
#count { margin: 0; color: var(--muted); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.card { min-width: 0; }
.card-button { padding: 0; display: block; width: 100%; height: 100%; overflow: hidden; text-align: start; background: #fffaf1; border-color: #e3dacc; box-shadow: 0 2px 6px #33281a12; border-radius: 15px; }
.card-visual { position: relative; display: block; aspect-ratio: 3/2; background: #dce5d8; }
.card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.placeholder { display: grid; height: 100%; place-items: center; font-size: 40px; color: #315a49; }
.sample-label { position: absolute; inset: auto 8px 8px auto; background: var(--forest); color: white; border-radius: 5px; padding: 3px 6px; font-size: 11px; }
.card-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 7px; padding: 11px 13px 14px; }
.card-name { grid-column: 1/-1; font-size: clamp(18px, 2vw, 27px); overflow-wrap: anywhere; }
.card-price { font-size: clamp(17px, 2vw, 25px); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 12px; background: var(--forest); color: white; font-size: 14px; }
footer button { color: var(--lime); background: transparent; text-decoration: underline; }
dialog { color: var(--dark); background: #fffaf1; border: 0; border-radius: 20px; padding: 0; width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 16px 90px #0006; }
dialog::backdrop { background: #061b16aa; }
.head { position: sticky; top: 0; z-index: 1; background: var(--forest); color: white; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.head h2 { margin:0; overflow-wrap: anywhere; font-size: 19px; }
.head button { background: #21483e; color: white; }
#content { padding: 16px; overflow-wrap: anywhere; }
#content p { line-height: 1.5; }
#content label { display: grid; gap: 6px; font-weight: 700; margin-block: 11px; }
#content input, select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #aab8ad; border-radius: 9px; background: white; padding: 9px; font-size: 16px; }
#content textarea { min-height: 88px; resize: vertical; }
.formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; }
.product { display: block; width: 100%; max-height: 44vh; object-fit: contain; background: #eff0e5; border-radius: 12px; }
.detail-action { width: 100%; }
.actions, .send { display: flex; gap: 9px; margin-block: 12px; }
.chat { height: min(40dvh,290px); overflow-y: auto; background: #ebefe5; padding: 10px; border-radius: 12px; }
.msg { width: fit-content; max-width: 88%; background: white; padding: 8px 11px; margin: 6px 0; border-radius: 10px; }
.msg.mine { margin-inline-start: auto; background: #d9edba; }
@media (max-width: 650px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 8px; padding-top: 10px; }
  .header-actions { justify-content: end; gap: 3px; }
  .header-actions button { font-size: 13px; padding-inline: 8px; }
  .search { grid-column: 1/-1; grid-row: 2; }
  .category-bar { padding-block: 8px; }
  .category-bar button { font-size: 13px; padding-block: 6px; }
  .hero { display: flex; flex-direction: column; }
  .hero img { aspect-ratio: 2.35; height: auto; object-fit: cover; object-position: center 58%; }
  .hero-copy { padding: 14px 12px 17px; text-align: center; }
  .desktop-break { display: none; }
  h1 { font-size: clamp(29px, 8vw, 43px); margin-bottom: 10px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card-button { display: grid; grid-template-columns: 41% 1fr; }
  .card-visual { height: 100%; }
  .card-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 8px 10px; }
  .card-copy .muted { font-size: 13px; }
  #count { font-size: 13px; }
}

/* Product gallery and seller entry point */
.site-header { background: #082b23; }
.category-bar button { background: #123b31; }
main { background: #faf5eb; }
.hero {
  isolation: isolate;
  min-height: clamp(245px, 31vw, 405px);
  grid-template-columns: 1fr;
  background: #10382c;
}
.hero img { grid-column: 1; max-height: 405px; object-position: center 57%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg,#07251ff5 2%,#082d23c2 23%,#082d2300 58%);
  pointer-events: none;
}
.hero-copy { z-index: 1; padding-inline: clamp(22px, 6vw, 86px); }
h1 { text-shadow: 0 2px 20px #041710b8; }
#market { padding-block: clamp(20px, 3vw, 38px); }
.cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card-button { background: #fffdf8; }
.card-visual { background: #e7ede1; }
.card-copy { grid-template-columns: 1fr; gap: 4px; }
.card-name { grid-column: auto; }
.card-price { justify-self: start; font-weight: 900; }
.sample-label { background: #fff9ebef; color: #12392c; }
.sell-callout {
  grid-column: 1/-1;
  isolation: isolate;
  background: #efddc3 url('assets/seller.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px #bda98960;
}
.sell-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(270deg,#f6ead6 10%,#f6ead6ec 37%,#f6ead600 74%);
}
.sell-copy { padding: clamp(16px, 3vw, 40px); }
.sell-copy h2 { margin: 0; font-size: clamp(19px, 3vw, 38px); }
.sell-copy p { margin: 6px 0 13px; color: var(--muted); }
.sell-copy button { color: white; background: var(--forest); }
@media (max-width: 750px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .hero { display: grid; min-height: 218px; }
  .hero img { grid-column: 1; aspect-ratio: auto; height: 218px; object-position: center 53%; }
  .hero::after { background: linear-gradient(0deg,#05231ddc 4%,#082d2363 50%,#082d2300 84%); }
  .hero-copy { align-self: end; text-align: start; padding: 12px 16px; }
  .hero-copy h1 { font-size: clamp(31px, 8.6vw, 43px); }
  #browse { min-height: 44px; padding-block: 7px; }
  .card-button { display: block; }
  .card-visual { height: auto; aspect-ratio: 1.35; }
  .card-copy { display: grid; align-content: start; padding: 8px 9px 10px; }
  .card-name { font-size: 17px; }
  .card-copy .muted { font-size: 12px; }
  .sell-copy { max-width: 76%; }
  .sell-copy p { font-size: 13px; line-height: 1.35; }
}
.card { position: relative; }
.favorite { position: absolute; top: 8px; left: 8px; width: 44px; padding: 0; background: #fffdf4f5; border-radius: 50%; font-size: 25px; box-shadow: 0 2px 9px #0002; color: #174c3a; }
.favorite[aria-pressed=true] { color: #9d243c; }
.market-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.market-tools select { width: auto; max-width: 65%; background: #fffcf5; }
.market-tools button[aria-pressed=true] { background: var(--forest); color: var(--lime); }
.empty-market { grid-column: 1/-1; background: linear-gradient(270deg,#fbf4e7ec,#fbf4e7a0),url('assets/gallery.webp') center/cover; border: 1px solid #ddd0b8; padding: clamp(24px,5vw,65px); border-radius: 18px; min-height: 240px; }
.empty-market h3 { margin: 0; font-size: clamp(27px,4vw,44px); }
.empty-market p { line-height: 1.6; max-width: 32em; }
.manage-row { border-block-start: 1px solid #ccc5b5; padding-top: 8px; margin-top: 18px; }
.actions { flex-wrap: wrap; }
.sold-status { color: #244e36; background: #e1ebd6; padding: 10px; border-radius: 8px; }
.notice { text-align: center; padding-inline: 16px; color: #274f39; }
.notice:empty { display:none; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; right: 8px; width: auto; height: auto; clip-path: none; background: white; color: #082c24; z-index: 30; padding: 15px; }
.high-contrast { --muted:#172c21; --paper:#fff; }
.high-contrast .card-button, .high-contrast .empty-market { border: 2px solid #082c24; background-color: white; }
.high-contrast button, .high-contrast select { border: 2px solid currentColor; }
.large-text .card-name { font-size: 25px; }
.large-text .muted, .large-text p, .large-text button, .large-text label { font-size: 19px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 650px) {
  .header-actions { flex-wrap: wrap; }
  .large-text .header-inner { gap: 6px; }
  .large-text .header-actions button { font-size: 15px; }
}
[hidden] { display: none !important; }

:root {
  color-scheme: dark;
  --forest: #38312e;
  --dark: #fcf4e8;
  --muted: #d4c5b7;
  --paper: #20221f;
  --bronze: #f0cb9d;
  --line: #8a6c56;
}
body { background: radial-gradient(ellipse 72% 28rem at 32% 6rem,#48503b80,transparent 100%),linear-gradient(180deg,#33392e 0,#292e26 22rem,#20221f 44rem); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.site-header, main, footer { background: transparent; }
.header-inner { grid-template-columns: auto minmax(180px,570px); padding-block: 14px; }
.brand { color: var(--dark); }
.brand span { display: inline-grid; place-items: center; width: 1.16em; aspect-ratio: 1; color: var(--bronze); border: 1px solid var(--bronze); border-radius: 7px; font-size: .73em; vertical-align: .1em; }
.search { color: var(--dark); background:#302728; border: 1px solid var(--line); border-radius: 11px; }
.search input { color: inherit; }
.search input::placeholder { color: #c7bdad; }
.featured-categories { max-width: 1300px; margin: auto; padding: 0 clamp(14px,4vw,52px) 12px; display: grid; gap: 9px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.photo-category { display: grid; align-content: end; gap: 5px; align-items: center; overflow: hidden; border-radius: 12px; padding: 0 0 7px; border: 1px solid #a58469; background: #3b302e; font-size: clamp(12px,2vw,19px); box-shadow: 0 7px 16px #0004; }
.photo-category img { display: block; width: 100%; aspect-ratio: 1.75; object-fit: cover; object-position: center 49%; }
.photo-category[aria-pressed=true] { outline: 2px solid var(--bronze); outline-offset: 2px; }
button { background: #453732; color: var(--dark); }
.accent, .primary, .sell-copy button { color: #211911; background: linear-gradient(145deg,#f2d5af,#bd8954); border-color: #e3bc8d; }
.category-bar button { background: #352b2b; border-color: var(--line); color: var(--dark); }
.category-bar [aria-pressed=true] { color: var(--bronze); border-color: var(--bronze); }
.market-tools select, #content input, #content select, #content textarea { background:#302829; border-color: var(--line); color: var(--dark); }
.market-tools select { margin-inline-start: auto; }
.card-button, dialog { background: #382d2d; border: 1px solid var(--line); color: var(--dark); }
.card-price { color: var(--bronze); }
.empty-market, .sell-callout {
  color: var(--dark);
  border: 1px solid var(--line);
  background: linear-gradient(125deg,#302527,#49342f);
  box-shadow: 0 14px 36px #150e1440;
}
.listing-promo {
  background: linear-gradient(270deg,#322629 34%,#322629ee 46%,#32262922 65%,transparent 81%),
    #322629 url('assets/sell.webp') left center / auto 100% no-repeat;
}
.empty-market.listing-promo { min-height: 290px; }
.sell-callout.listing-promo { min-height: 185px; }
.empty-market h3, .sell-copy h2 { max-width: 52%; }
.empty-market p, .sell-copy p { color: var(--muted); }
.card-visual, .head button { background: #4a3834; }
.placeholder, .favorite { color: #5f3a2b; }
dialog::backdrop { background: #1c1218b8; }
.sell-callout::before { display:none; }
.empty-market p { max-width: 16em; }
.product,.chat { background: #2b2425; }
.msg { background: #403331; }
.msg.mine,.sold-status { color: #fcf4e8; background: #624838; }
.notice { color: var(--bronze); }
footer button { color: var(--bronze); }
.bottom-nav { z-index: 2; position: fixed; bottom: 0; inset-inline: 0; display: flex; justify-content: center; gap: clamp(4px,3vw,28px); padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: #251e21f5; border-top: 1px solid var(--line); box-shadow: 0 -5px 20px #0005; }
.bottom-nav button:not(.accent) { background: transparent; padding-inline: 8px; }
.bottom-nav button[aria-pressed=true] { color: var(--bronze); }
.bottom-nav #browse { font-size: inherit; padding-inline: 8px; }
:focus-visible { outline-color: #f9d295 !important; }
.high-contrast { --dark: white; --muted: white; --line: white; --bronze: #ffe0ae; }
.high-contrast .card-button,.high-contrast .empty-market { background: #151515; border-color: white; }
@media(max-width:650px) {
  .header-inner { grid-template-columns: minmax(0,1fr); padding-block: 12px; gap: 12px; }
  .brand { font-size: 31px; }
  .photo-category img { aspect-ratio: 1.07; }
  .photo-category { line-height: 1.3; padding-bottom: 4px; }
  .large-text .photo-category { font-size:13px; }
  .bottom-nav button, .large-text .bottom-nav button { font-size: 14px; }
  .empty-market { padding: 20px; min-height: 185px; }
  .listing-promo {
    --promo-photo: clamp(190px, 63vw, 300px);
    background: linear-gradient(0deg,#322629 0%,#322629 calc(100% - var(--promo-photo) - 18px),#32262900 calc(100% - var(--promo-photo) + 22px)),
      #322629 url('assets/sell-mobile.webp') center top / auto var(--promo-photo) no-repeat;
  }
  .empty-market.listing-promo, .sell-callout.listing-promo { padding-top: var(--promo-photo); }
  .high-contrast .empty-market.listing-promo, .high-contrast .sell-callout.listing-promo { padding-top: 20px; }
  .sell-copy, .empty-market h3, .sell-copy h2 { max-width: none; }
}

.high-contrast .listing-promo { background: #151515; padding-top: 20px; }

.selling-options {
  margin-block: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding-inline: 12px;
}
.selling-options summary {
  min-height: 44px;
  padding-block: 11px;
  cursor: pointer;
  color: var(--bronze);
  font-weight: 700;
}
.management h2 { margin-block-start: 0; }
@media (max-width: 650px) {
  .sell-callout.listing-promo {
    --promo-photo: clamp(130px, 42vw, 210px);
  }
}

.header-inner {
  grid-template-columns: auto minmax(150px, 570px) auto;
  padding-block: 15px;
  border-block-end: 1px solid #9d85624d;
  margin-block-end: 12px;
  background: radial-gradient(ellipse at 90% 0%, #b491581a, transparent 55%);
}
.brand { display: inline-flex; align-items: center; gap: .37em; }
.brand span {
  color: #241b14;
  background: linear-gradient(145deg, #f1d5ac, #ab794c);
  border-color: #e3c49a;
  border-radius: .28em;
  width: 1.45em;
  box-shadow: 0 3px 9px #0005, inset 0 1px 0 #fff5;
}
.header-account {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 1px solid #a78b68;
  border-radius: 30px;
  background: #242520c9;
  color: #fcf4e8;
  white-space: nowrap;
}
.header-inner .search {
  background: #232421;
  border-color: #8b765d;
  border-radius: 14px;
  box-shadow: inset 0 1px 2px #0004;
}
.account-entry .actions { margin-block-end: 0; }
@media (max-width: 650px) {
  .header-inner, .large-text .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
    padding-block: 12px;
  }
  .brand { font-size: clamp(24px, 7vw, 31px); }
  .header-inner .search { grid-row: 2; grid-column: 1 / -1; }
  .bottom-nav { background: #221e20; }
}

html { scroll-padding-block: 24px 94px; }
.head { gap:8px; }
.head h2 { min-width:0; }
.head button { flex:none; min-inline-size:44px; min-block-size:44px; }
.bottom-nav { gap: clamp(4px,2vw,26px); }
.bottom-nav button { min-height:44px; position:relative; }
#inbox-badge { display:inline-grid; place-items:center; min-width:1.45em; min-height:1.45em; padding-inline:3px; background:#f5cf8c; color:#21190f; border-radius:20px; font-weight:800; font-size:.77em; }
#inbox-badge[hidden] { display:none; }
.message-view { display:grid; gap:12px; }
.message-view > button { justify-self:start; }
.message-compose { display:grid; gap:8px; }
.message-compose > button { justify-self:end; }
.message-compose > p:empty { display:none; }
.inbox-section { display:grid; gap:7px; }
.inbox-section h3 { margin:6px 0; font-size:1.05rem; }
.inbox-row,.inbox-notice { display:grid; gap:5px; border:1px solid var(--line); color:var(--dark); text-align:start; padding:10px 13px; border-radius:13px; background:#2b2525; min-height:44px; }
.inbox-notice p { margin:0; }
.inbox-notice button { justify-self:start; }
.inbox-preview { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--muted); }
.message-history { margin:0; padding:0 2px; display:flex; flex-direction:column; gap:8px; max-block-size:min(42dvh,420px); overflow:auto; list-style:none; }
.message-history:empty { display:none; }
.message-bubble { align-self:flex-start; max-width:91%; border:1px solid var(--line); border-radius:14px 14px 4px 14px; padding:8px 11px; background:#2a2425; }
.message-bubble.mine { align-self:flex-end; border-radius:14px 14px 14px 4px; background:#46382e; }
.message-bubble small,.inbox-row small,.inbox-notice small { color:var(--muted); }
.message-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:4px 0 0; }
.inbox-row strong,.inbox-notice strong { overflow-wrap:anywhere; }
.high-contrast .inbox-row,.high-contrast .inbox-notice,.high-contrast .message-bubble { color:white; background:#161616; border-color:white; }
@media(max-width:480px){
  .bottom-nav { display:grid; grid-template-columns:auto auto minmax(80px,1fr) auto auto; gap:3px; padding-inline:6px; }
  .bottom-nav button:not(.accent),.bottom-nav #browse { min-inline-size:44px; padding-inline:4px; font-size:.8rem; }
  .bottom-nav .accent { padding-inline:5px; white-space:normal; }
  .large-text .bottom-nav button { white-space:normal; }
}

.seller-tools{padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:#2b2525}
.seller-assistant summary{cursor:pointer;min-height:44px;align-content:center;color:var(--bronze);font-weight:750}
.seller-assistant .actions{margin-top:8px;flex-wrap:wrap}
.seller-assistant .actions button{min-height:44px}
.seller-call{display:inline-flex;gap:6px;align-items:center;min-height:44px;color:var(--bronze);text-decoration:underline}

.seller-contact-actions{align-items:center;gap:10px;flex-wrap:wrap}
.seller-tools > p:empty{display:none}
.seller-question{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.seller-question input{min-height:44px}
.seller-question button,.seller-assistant > button,.seller-contact-actions > button{min-height:44px}
.seller-assistant > button{margin-top:8px}
@media(max-width:400px){.seller-question{grid-template-columns:1fr}.seller-question button{justify-self:start}}

.seller-inventory,.inventory-group{display:grid;gap:9px;min-width:0}
.inventory-group + .inventory-group{margin-top:8px}
.inventory-group h4,.inventory-heading h5{margin:0;font-size:1rem;overflow-wrap:anywhere}
.inventory-item{padding:12px;border:1px solid var(--line);border-radius:12px;background:#2b2525}
.inventory-item p{margin:6px 0 9px}
.inventory-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:5px 10px}
.inventory-state{padding:3px 8px;border:1px solid var(--line);border-radius:6px;color:var(--bronze);font-size:.83em}
.inventory-state[data-state="sold"]{color:var(--muted)}
.inventory-item button{min-height:44px}

.brand-icon { width: clamp(34px, 8vw, 48px); height: auto; border-radius: 20%; flex: none; }

.brand-wordmark { width: clamp(92px, 27vw, 150px); height: auto; min-width: 0; border-radius: 4px; }

.brand { touch-action: manipulation; }

#unread-banner, #dialog-unread-banner {
  padding: 10px 14px;
  border: 1px solid #d5ac68;
  border-radius: 12px;
  background: #372c1e;
  color: #ffe1a9;
  font-weight: 700;
}
#unread-banner {
  position: fixed;
  z-index: 20;
  inset-inline: 0;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  box-shadow: 0 6px 24px #0008;
}
#dialog-unread-banner {
  margin-inline-start: auto;
  font-size: .8rem;
}
#unread-banner[hidden], #dialog-unread-banner[hidden],
#panel.inbox-dialog #dialog-unread-banner { display: none; }

/* Keep the conversation composer visible while the transcript scrolls. */
#panel.chat-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(680px, calc(100% - 24px));
  height: min(710px, calc(var(--chat-height, 100dvh) - 24px));
  overflow: hidden;
  background: #241f20;
}
.chat-dialog #content {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.chat-safety-actions{display:flex;justify-content:flex-end;padding:2px 12px;flex:none;border-bottom:1px solid var(--line);}
.chat-safety-actions button{min-height:36px;font-size:12px;padding:4px 9px;}
.thread-report-form{display:grid;gap:12px;}
.thread-report-form p{line-height:1.6;}
.chat-listing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #2d2626;
  border-bottom: 1px solid var(--line);
}
.chat-back { flex: none; min-width: 44px; padding-inline: 9px; font-size: 22px; }
.chat-listing img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat-listing-copy { display: grid; gap: 3px; min-width: 0; }
.chat-listing-copy bdi { color: #efd29a; }
.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
}
.chat-scroll > p:empty { display: none; }
.chat-empty { text-align: center; color: var(--muted); }
.chat-screen .message-history { max-block-size: none; overflow: visible; }
.chat-screen .message-bubble { background: #352d2e; min-width: 0; }
.chat-screen .message-bubble.mine { background: #513d2d; border-color: #aa8255; }
.chat-screen .message-compose {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 9px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #2d2626;
}
.chat-screen .message-compose label { margin: 0 !important; min-width: 0; }
.chat-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#content .chat-screen textarea {
  min-height: 48px;
  max-height: 100px;
  resize: none;
}
.chat-screen .message-compose button { min-width: 64px; min-height: 48px; }
.chat-screen .message-compose p { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; }
.chat-screen > .muted { padding-inline: 14px; }
.chat-screen .seller-tools { margin-bottom: 10px; }
.chat-screen .seller-assistant > summary { color: #efd29a; }
.high-contrast .chat-screen .message-bubble { background: #161616; }
.high-contrast .chat-screen .message-bubble.mine { border-width: 2px; }
@media (max-width: 650px) {
  #panel.chat-dialog[open] {
    position: fixed;
    inset: var(--chat-top, 0px) 0 auto;
    margin: 0;
    width: 100%;
    max-width: none;
    height: var(--chat-height, 100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .chat-dialog .head { padding-top: max(10px, env(safe-area-inset-top)); }
}

/* Compact browsing and clearer message previews. */
.featured-categories { max-width: 1200px; padding-bottom: 9px; }
.photo-category img { aspect-ratio: 2.4; }
.photo-category { font-size: clamp(12px,1.4vw,17px); border-color: #8b7158; }
#market { padding-top: 18px; }
.market-heading { margin-bottom: 10px; }
.market-heading h1 { font-size: clamp(26px,3vw,38px); }
.brand-icon,.brand-wordmark { mix-blend-mode: screen; }
.card-price { font-size: clamp(22px,2.5vw,29px); font-weight: 800; color: #f4d09b; }
.card-contact { display: block; margin: 0 12px 12px; width: calc(100% - 24px); }
.card { overflow: hidden; }
.inbox-row { grid-template-columns: 52px minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; }
.inbox-thumbnail { display:grid; place-items:center; width:52px; height:52px; border-radius:11px; background:#493a30; color:#f0c990; overflow:hidden; font-size:24px; }
.inbox-thumbnail img { width:100%; height:100%; object-fit:cover; }
.inbox-copy { display:grid; gap:5px; min-width:0; }
.inbox-preview { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#dfd3c4; }
.inbox-row.is-unread { border-color:#d7ad74; background:#3a2e28; }
.thread-unread { display:grid; place-items:center; min-width:26px; height:26px; padding-inline:6px; border-radius:20px; color:#21180f; background:#f3ce94; }
.assistant-bubble { border-inline-start:3px solid #c89e65; }
.listing-actions { margin-top:12px; }
@media(max-width:650px) {
  .photo-category img { aspect-ratio:1.35; }
  .featured-categories { gap:7px; }
  .photo-category { padding-bottom:5px; font-size:12px; }
  .market-heading h1 { font-size:27px; }
  #market { padding-top:14px; }
  .chat-dialog .head { flex-wrap:wrap; gap:6px; }
  #dialog-unread-banner { max-width:100%; }
}
.card { display:flex; flex-direction:column; }
.card-button { height:auto; flex:1; }
.card-contact { flex:none; }

.install-card { display:flex; align-items:center; gap:12px; margin:10px clamp(14px,3vw,38px); padding:12px 14px; border:1px solid #997748; border-radius:14px; background:linear-gradient(110deg,#2c2521,#3b3026); }
.install-card[hidden] { display:none; }
.install-card > div { display:grid; gap:4px; flex:1; min-width:0; }
.install-card strong { color:#f3d4a5; font-size:15px; }
.install-card span { font-size:13px; color:#ded2c0; }
.install-card button { flex:none; font-size:13px; }
.notification-settings { display:grid; gap:10px; }
#message-toast { position:fixed; inset:18px 12px auto; margin-inline:auto; width:max-content; max-width:calc(100% - 24px); border:1px solid #e2b576; background:#342820; color:#ffe2b5; border-radius:13px; padding:13px 18px; box-shadow:0 8px 32px #0008; }
#message-toast[hidden] { display:none; }
.chat-dialog .head { position:static; min-height:48px; padding:7px 12px; gap:8px; }
.chat-dialog .head h2 { font-size:16px; line-height:1.25; }
.chat-dialog #close { min-width:38px; min-height:38px; padding:5px 10px; }
.chat-listing { padding:6px 10px; min-height:46px; }
.chat-back { min-height:36px; min-width:36px; font-size:18px; padding:5px; }
.chat-listing img { width:36px; height:36px; }
.message-bubble { padding:9px 12px; }
.chat-screen .message-bubble small { font-size:11px; line-height:1.35; }
.chat-screen .message-bubble p { margin:5px 0 0; font-size:15px; line-height:1.4; }
.chat-screen .message-compose { padding:7px 9px max(7px,env(safe-area-inset-bottom)); gap:7px; }
#content .chat-screen textarea { min-height:42px; height:42px; max-height:84px; padding:9px 11px; font-size:16px; font-weight:400; border-radius:16px; }
#content .chat-screen textarea:focus-visible { outline-width:1px; outline-offset:1px; }
.chat-screen .message-compose button { min-height:42px; min-width:55px; }
.chat-screen .message-compose p { font-size:12px; line-height:1.2; }
.chat-screen .message-compose p:empty { display:none; }
.thread-bot-toggle { font-size:12px; min-height:36px; margin-bottom:8px; }
@media(max-width:650px) {
  .chat-dialog .head { padding-top:7px; flex-wrap:nowrap; }
  .chat-dialog .head h2 { font-size:16px; flex:1; }
  .chat-scroll { padding:9px 10px; }
  .chat-screen .message-history { gap:8px; }
  .install-card { flex-wrap:wrap; gap:8px; padding:10px; }
  .install-card > div { flex-basis:calc(100% - 44px); }
  #install-dismiss { order:1; min-width:34px; min-height:34px; padding:4px; }
  #install-help { order:2; width:100%; }
}

.install-guides { display:grid; gap:12px; }
.install-guides section { padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#282222; }
.install-guides h3 { margin:0 0 8px; font-size:17px; color:#f3d4a5; }
.install-guides ol { margin:0; padding-inline-start:22px; }
.install-guides li { padding-block:4px; font-size:14px; line-height:1.55; }

.guest-transfer { display:grid; gap:14px; }
.guest-transfer p { margin:0; }
.transfer-code { padding:12px; border:1px solid #c69c62; border-radius:12px; }
.transfer-code[hidden] { display:none; }
.transfer-code input { font-family:monospace; text-align:center; letter-spacing:1px; font-size:18px; width:100%; }
.transfer-claim { padding-top:12px; border-top:1px solid var(--line); display:grid; gap:10px; }

/* V46: board controls, readable information and a compact keyboard-safe composer. */
.market-tools { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.market-tools select { width:auto; max-width:100%; flex:1; }
.board-status { color:var(--muted); line-height:1.5; }
.board-status:empty { display:none; }
.board-pagination { display:flex; justify-content:center; padding:22px 0 4px; }
.site-information h3 { margin-block:22px 8px; font-size:1.12rem; }
.site-information p { line-height:1.75 !important; }
.device-push-status { padding:12px; border:1px solid var(--line); border-radius:10px; background:#312825; }
.chat-screen .message-compose { flex-shrink:0; }
#content .chat-screen textarea { overflow-y:auto; line-height:1.4; }
.chat-screen .message-compose button { min-width:64px; min-height:44px; }
.chat-dialog .head { padding-top:max(7px,env(safe-area-inset-top)); }
.chat-listing-copy { min-width:0; }
.chat-listing-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:650px) {
 .chat-screen .message-compose { padding-bottom:max(9px,env(safe-area-inset-bottom)); }
 #panel.chat-dialog[open] { overscroll-behavior:none; }
 .site-information .actions { flex-wrap:wrap; }
}

/* V48: clear recovery and unread navigation without moving the composer. */
.network-status,.draft-note { padding:12px; border:1px solid var(--line); border-radius:10px; color:#f5ddb6; background:#312825; line-height:1.5; }
.draft-note:empty { display:none; }
.network-status { margin:14px; }
.new-messages-jump { align-self:center; flex-shrink:0; margin:5px 0; padding:6px 16px; min-height:36px; background:#efd097; color:#251b12; box-shadow:0 2px 12px #0004; }

/* V50: readable days, growing composer and in-place conversation recovery. */
.chat-screen .message-history .chat-day{align-self:center;list-style:none;text-align:center;padding:5px 14px;margin:8px 0;border:1px solid #cfb18333;border-radius:20px;background:#342d2b;color:#ebd5b5;font-size:12px;line-height:1.4;}
.thread-retry{align-self:flex-start;min-height:44px;margin:4px 0 12px;}
#content .chat-screen textarea{resize:none;box-sizing:border-box;transition:none;}

/* V51: seller decisions and recovery in the account screen. */
.inventory-help{padding:10px 12px;background:#ffffff06;border-inline-start:3px solid #d4b17d;border-radius:7px;color:#e8d3ba;line-height:1.55;font-size:14px;}
.inventory-feedback:empty{display:none}.inventory-feedback{color:#f3d5ab;line-height:1.5;}
.sold-confirmation{padding:12px;margin-top:10px;border:1px solid #d4b17d;border-radius:10px;background:#372c27;}
.sold-confirmation[hidden]{display:none}.sold-confirmation button{margin-inline-end:8px;margin-block:3px;}

/* V55: calmer graphite surfaces, clear product dates and fixed product actions. */
:root{--paper:#1c1c1d;--forest:#252322;--dark:#f6f0e7;--muted:#c3b9ad;--line:#b99a6a42;color-scheme:dark;background:#1c1c1d;}
body{background:radial-gradient(ellipse at 85% 0,#4a3e2a44,transparent 55%),linear-gradient(150deg,#252525,#19191a);}
main,.site-header{background:transparent;}
.site-header{border-bottom:1px solid var(--line);}
.card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#302c29,#242323);box-shadow:0 8px 24px #0002;}
.card-button{border:0;border-radius:17px 17px 0 0;background:transparent;box-shadow:none;}
.card-visual{background:#242424;overflow:hidden;}
.card-copy{padding:14px;gap:7px;}
.card-name{font-size:clamp(18px,1.7vw,23px);line-height:1.35;}
.card-copy .muted{font-size:14px;}
.listing-date{display:block;font-size:12px;color:#c7bbab;font-weight:400;line-height:1.5;}
.card-contact{margin:5px 12px 12px;border-radius:11px;}
.image-unavailable,.gallery-empty{display:grid;place-items:center;min-height:145px;padding:24px;color:#bfb4a6;background:linear-gradient(145deg,#34302b,#232323);font-size:14px;}
.gallery-empty{border:1px dashed var(--line);border-radius:14px;}
.active-filters{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#ffffff04;}
.active-filters[hidden]{display:none;}.active-filters span{overflow-wrap:anywhere;min-width:0;}.active-filters button{flex-shrink:0;font-size:13px;}
.search #clear-search{padding:0;width:36px;min-height:36px;flex:none;border:0;border-radius:50%;background:#ffffff0a;}
.search #clear-search[hidden]{display:none;}
.market-tools{justify-content:space-between;}.market-tools select{flex:0 1 auto;width:auto;min-width:200px;}
#panel.detail-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr);height:min(820px,calc(100dvh - 32px));overflow:hidden;}
.detail-dialog #content{padding:0;overflow:hidden;min-height:0;}
.detail-screen{display:flex;flex-direction:column;min-height:0;height:100%;}
.detail-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;}
.detail-scroll .listing-gallery{margin-bottom:14px;}
.detail-price{font-size:30px;color:#f4d09b;margin:12px 0 8px;}
.detail-location{margin:0 0 8px;color:#e4d9cb;}.listing-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75!important;margin-block:18px;}
.detail-footer{flex:none;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#282523;box-shadow:0 -6px 22px #0002;}
.detail-footer:empty{display:none;}.detail-footer .detail-action{margin:0;min-height:48px;}
.detail-footer .sold-status{margin:0;text-align:center;}
.chat-screen .message-compose{box-shadow:0 -5px 20px #0002;}.chat-screen .message-compose textarea{background:#211f1f!important;}.chat-listing{background:#292625;}
.chat-scroll{background:radial-gradient(circle at top,#bd9a6120,transparent 60%),#211f20;}
#panel.chat-dialog .head{box-shadow:0 3px 12px #0002;}
@media(max-width:650px){
 .market-tools select{min-width:0;flex:1;font-size:13px;}.market-tools button{font-size:13px;padding-inline:10px;}
 .card-copy{padding:10px 12px;}.card-name{font-size:19px;}.card-contact{min-height:44px;}
 #panel.detail-dialog[open]{width:100%;max-width:100%;height:100dvh;max-height:100dvh;inset:0;margin:0;border-radius:0;border:0;}
 .detail-dialog .head{padding-top:max(10px,env(safe-area-inset-top));}.detail-scroll{padding:12px;}.detail-footer{padding-inline:12px;}
 .detail-price{font-size:28px;}.listing-date{font-size:12px;}
}
@media(prefers-reduced-motion:no-preference){.card{transition:transform .18s,box-shadow .18s;}.card:hover{box-shadow:0 12px 30px #0004;}}
.high-contrast .listing-date{color:#fff;}.high-contrast .card,.high-contrast .detail-footer,.high-contrast .chat-scroll{background:#111;border-color:#fff;}
