/* CayeChing! - one stylesheet for the whole site (the dashboard adds admin.css). */

@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url(fonts/baloo-2-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url(fonts/baloo-2-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url(fonts/baloo-2-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
  /* From the logo */
  --ink: #00394a;          /* cart */
  --ink-2: #3d5f6b;
  --ink-3: #56737d;
  --sea: #00788a;          /* buttons, links (5.2:1 on white) */
  --sea-deep: #005b69;
  --lagoon: #01cedb;
  --lagoon-tint: #e2f8fa;
  --palm: #17803b;         /* "Buy" and success */
  --palm-deep: #016236;
  --palm-tint: #e3f4e8;
  --mango: #fead01;        /* Sell button, sunburst */
  --mango-tint: #fff4d6;
  --tag: #d92f25;          /* the price tag (4.8:1 with white) */
  --tag-bright: #fe4234;
  --bg: #f3f9fa;
  --card: #ffffff;
  --line: #d6e5e9;
  --line-2: #e8f1f3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 57, 74, .06), 0 6px 20px rgba(0, 57, 74, .08);
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img.word { height: 40px; width: auto; }
.brand img.mark { height: 40px; width: auto; display: none; }
.top-search { flex: 1; display: flex; align-items: center; max-width: 560px; position: relative; }
.top-search input {
  width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 16px 0 44px; background: var(--bg);
}
.top-search input:focus { border-color: var(--sea); background: #fff; outline: none; }
.top-search .ic { position: absolute; left: 14px; color: var(--ink-3); }
.place-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  white-space: nowrap; max-width: 220px;
}
.place-chip span { overflow: hidden; text-overflow: ellipsis; }
.place-chip .ic { width: 18px; height: 18px; color: var(--tag); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--lagoon-tint); }
.badge-dot {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--tag); color: #fff; font: 700 11px/18px var(--body); text-align: center;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--lagoon-tint); color: var(--sea-deep); display: inline-grid; place-items: center;
  font: 700 15px/1 var(--display);
}
.avatar.lg { width: 84px; height: 84px; font-size: 34px; }
.avatar.md { width: 48px; height: 48px; font-size: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  background: var(--sea); color: #fff; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--sea-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .ic { width: 20px; height: 20px; }
.btn.buy { background: var(--palm); }
.btn.buy:hover { background: var(--palm-deep); }
.btn.sell { background: var(--mango); color: var(--ink); }
.btn.sell:hover { background: #f09f00; }
.btn.line { background: #fff; color: var(--sea-deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--sea); background: #fff; }
.btn.ghost { background: transparent; color: var(--sea-deep); padding: 0 12px; }
.btn.ghost:hover { background: var(--lagoon-tint); }
.btn.danger { background: #fff; color: #b42318; box-shadow: inset 0 0 0 1.5px #f1c7c3; }
.btn.danger:hover { background: #fdf0ef; }
.btn.wa { background: #1fa855; color: #fff; }
.btn.wa:hover { background: #178a45; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.big { min-height: 54px; font-size: 1.08rem; }

/* ---------- forms ---------- */
label.f { display: block; margin: 0 0 14px; }
label.f > span, .f-label { display: block; font-weight: 700; margin-bottom: 6px; }
label.f small, .hint { display: block; color: var(--ink-3); font-size: .85rem; margin-top: 4px; }
.in, select.in, textarea.in {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff;
}
textarea.in { min-height: 110px; resize: vertical; line-height: 1.45; }
.in:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px var(--lagoon-tint); }
.money-in { position: relative; }
.money-in::before { content: "BZ$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; }
.money-in .in { padding-left: 52px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { background: #fdf0ef; color: #8e1c13; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.ok-box { background: var(--palm-tint); color: var(--palm-deep); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0 0 14px; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: #c7d6da; position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--palm); }
.switch input:checked::after { left: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .92rem; user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.on { border-color: var(--sea); background: var(--lagoon-tint); color: var(--sea-deep); font-weight: 700; }
.chip:has(input:focus-visible) { outline: 3px solid var(--lagoon); }

/* ---------- the price tag (the one loud thing) ---------- */
.tag {
  --h: 30px;
  position: relative; display: inline-flex; align-items: center; height: var(--h);
  padding: 0 11px 0 18px; background: var(--tag); color: #fff;
  font: 800 1.02rem/1 var(--display); letter-spacing: .01em;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  border-radius: 0 6px 6px 0;
}
.tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; }
.tag.free { background: var(--palm); }
.tag.big { --h: 42px; font-size: 1.5rem; padding: 0 16px 0 24px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.tag.big::before { left: 11px; width: 7px; height: 7px; margin-top: -3.5px; }
.tag s { opacity: .75; font-weight: 600; margin-left: 6px; font-size: .8em; }

/* ---------- listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1180px) { .grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; display: block; color: inherit; text-decoration: none; min-width: 0; }
.card .ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .ph img { transform: scale(1.03); }
.card .tag { position: absolute; left: 0; bottom: 12px; border-radius: 0 6px 6px 0; }
.card .fav {
  position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.card .fav.on { color: var(--tag); }
.card .fav .ic { width: 20px; height: 20px; }
.card .flags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font: 700 .76rem/1.3 var(--body); background: #fff; color: var(--ink);
}
.pill .ic { width: 14px; height: 14px; }
.pill.boost { background: var(--mango); color: var(--ink); }
.pill.feat { background: var(--ink); color: #fff; }
.pill.res { background: var(--ink); color: #fff; }
.pill.sold { background: #fff; color: var(--tag); }
.pill.svc { background: #e4f5e8; color: #02883f; }
.pill.sample { background: rgba(255,255,255,.85); color: var(--ink-2); font-weight: 400; }
.card.is-sold .ph img, .card.is-reserved .ph img { filter: saturate(.4) brightness(.92); }
.card .t { margin: 10px 0 2px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .m { font-size: .86rem; color: var(--ink-3); line-height: 1.35; }
.card .where { display: flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--ink-2); margin-top: 3px; }
.card .where .ic { width: 15px; height: 15px; color: var(--tag); }
.card .dl { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--palm-deep); margin-top: 3px; font-weight: 700; }
.card .dl .ic { width: 15px; height: 15px; }
.verified-ic { color: var(--sea); width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- home ---------- */
.hero { position: relative; background: var(--lagoon-tint); overflow: hidden; }
.hero-in { position: relative; z-index: 1; padding: 28px 16px 70px; max-width: 1240px; margin: 0 auto; }
.hero h1 { max-width: 19ch; color: var(--ink); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.hero-search { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 720px; margin-top: 18px; }
.hero-search .q { position: relative; }
.hero-search .q .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.hero-search input.in { min-height: 56px; padding-left: 48px; font-size: 1.05rem; border-radius: 14px; border-color: #fff; box-shadow: var(--shadow); }
.hero-search .row { display: flex; gap: 10px; }
.hero-search .row .btn { flex: 1; min-height: 52px; }
@media (min-width: 720px) {
  .hero-in { padding: 56px 16px 120px; }
  .hero-search { grid-template-columns: 1fr auto auto; align-items: stretch; }
  .hero-search .row { display: contents; }
}
.hero-mark { position: absolute; right: -40px; top: 18px; width: 300px; opacity: .95; z-index: 0; display: none; }
@media (min-width: 980px) { .hero-mark { display: block; right: 4%; width: 330px; top: 30px; } }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; z-index: 0; }
@media (min-width: 720px) { .waves { height: 80px; } }

.section { padding: 26px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; white-space: nowrap; }

.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 88px; gap: 10px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); text-align: center; font-size: .82rem; line-height: 1.2; scroll-snap-align: start; }
.cat .tile { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; transition: transform .15s; }
.cat:hover .tile { transform: translateY(-2px); }
.cat .cat-ic { width: 52px; height: 52px; }
@media (prefers-reduced-motion: reduce) { .cat:hover .tile { transform: none; } }
@media (min-width: 1100px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(10, 1fr); overflow: visible; margin: 0; padding: 4px 0 12px; } }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.step b.n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mango); font: 800 1.1rem/1 var(--display); margin-bottom: 10px; }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); }

.featured-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 16px 18px; margin: 10px 0; }
.featured-band h2 { color: #fff; display: flex; align-items: center; gap: 8px; font-size: clamp(1.15rem, 3.6vw, 1.45rem); }
.featured-band .section-head a { color: var(--lagoon); }
.featured-band .card { color: #fff; }
.featured-band .card .m, .featured-band .card .where { color: #b9d3da; }
.featured-band .card .dl { color: #8ee0a6; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .hscroll { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .hscroll { grid-auto-columns: 22%; } }

/* ---------- browse ---------- */
.browse { display: grid; gap: 20px; padding: 18px 0 30px; }
@media (min-width: 960px) { .browse { grid-template-columns: 260px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
@media (min-width: 960px) { .filters { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; } }
.filters h3, .ff h3 { font-size: 1rem; margin: 18px 0 8px; }
.filters h3:first-child, .ff h3:first-child { margin-top: 0; }
.results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar h1 { font-size: 1.5rem; margin: 0; margin-right: auto; }
.results-bar select { min-height: 40px; width: auto; }
.filter-toggle { display: inline-flex; }
@media (min-width: 960px) { .filter-toggle { display: none; } }
@media (max-width: 959px) { .filters.panel { display: none; } }
.empty { text-align: center; padding: 50px 16px; color: var(--ink-2); }
.empty .ic { width: 46px; height: 46px; color: var(--lagoon); margin: 0 auto 10px; }
.more-row { display: flex; justify-content: center; padding: 26px 0; }

/* ---------- item page ---------- */
.item { display: grid; gap: 22px; padding: 18px 0 40px; }
@media (min-width: 900px) { .item { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; } }
.gallery { position: relative; }
.gal-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; background: var(--line-2); scrollbar-width: none; aspect-ratio: 4 / 5; }
.gal-main::-webkit-scrollbar { display: none; }
.gal-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
@media (max-width: 899px) { .gallery { margin: -18px -16px 0; } .gal-main { border-radius: 0; aspect-ratio: 1 / 1; } }
.gal-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); }
.gal-dots i.on { background: #fff; }
.gal-thumbs { display: none; gap: 8px; margin-top: 10px; }
@media (min-width: 900px) { .gal-thumbs { display: flex; } .gal-dots { display: none; } }
.gal-thumbs button { width: 72px; height: 88px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.gal-thumbs button.on { border-color: var(--sea); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: none; place-items: center; cursor: pointer; }
@media (min-width: 900px) { .gal-nav { display: grid; } }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.item-info h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 14px 0 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.fact .ic { width: 17px; height: 17px; color: var(--sea); }
.status-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; margin: 12px 0; }
.status-banner.sold { background: #fdf0ef; color: #8e1c13; }
.status-banner .ic { flex: none; margin-top: 1px; }
.actions { display: grid; gap: 10px; margin: 16px 0; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.box h3 { font-size: 1.02rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.box h3 .ic { color: var(--sea); }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.dl-list { list-style: none; padding: 0; margin: 0; }
.dl-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.dl-list li:last-child { border: 0; }
.dl-list li.mine { font-weight: 700; color: var(--palm-deep); }
.seller-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.seller-card .nm { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.stars { color: var(--mango); display: inline-flex; vertical-align: -3px; }
.stars .ic { width: 16px; height: 16px; }
.safety-note { font-size: .88rem; color: var(--ink-2); background: var(--mango-tint); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; }
.safety-note .ic { color: #a26d00; flex: none; }
.mobile-bar { display: none; }
@media (max-width: 899px) {
  body.has-mobile-bar { padding-bottom: 86px; }
  body.has-mobile-bar .tabbar { display: none; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-bar .btn { flex: 1; min-height: 50px; }
  .mobile-bar .icon-btn { border: 1.5px solid var(--line); width: 50px; height: 50px; }
  .item-info .actions.desk { display: none; }
}

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line); height: calc(var(--tabbar) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); text-decoration: none; font-size: .72rem; position: relative; }
  .tabbar a.on { color: var(--sea-deep); font-weight: 700; }
  .tabbar a .ic { width: 24px; height: 24px; }
  .tabbar a.sellbtn .ic { width: 28px; height: 28px; }
  .tabbar a.sellbtn span.c { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--mango); color: var(--ink); margin-top: -18px; box-shadow: 0 4px 12px rgba(254,173,1,.45); }
  .tabbar .badge-dot { top: 6px; right: calc(50% - 22px); }
  .top-actions .desk-only, .place-chip.desk-only { display: none; }
  .brand img.word { display: none; }
  .brand img.mark { display: block; }
}
@media (min-width: 900px) { .mob-only { display: none !important; } }

/* ---------- sheets (dialogs) ---------- */
dialog.sheet {
  border: 0; padding: 0; max-width: 520px; width: calc(100% - 24px); border-radius: 20px; color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 40, 50, .3); max-height: calc(100vh - 40px);
}
dialog.sheet::backdrop { background: rgba(0, 40, 52, .45); }
@media (max-width: 640px) {
  dialog.sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92vh; }
  dialog.sheet[open] { animation: up .22s ease-out; }
}
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } .card .ph img { transition: none; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px 20px; position: sticky; top: 0; background: #fff; z-index: 1; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; flex: 1; }
.sheet-body { padding: 6px 20px 20px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
.sheet-foot .btn { flex: 1; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; margin-bottom: 10px; }
.radio-card input { margin-top: 4px; accent-color: var(--sea); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--sea); background: var(--lagoon-tint); }
.radio-card.disabled { opacity: .55; cursor: default; }
.radio-card b { display: block; }
.town-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.town-list h4 { margin: 0; padding: 8px 14px; background: var(--bg); font-size: .82rem; color: var(--ink-3); position: sticky; top: 0; }
.town-list button { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.town-list button:hover, .town-list button.on { background: var(--lagoon-tint); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- sell ---------- */
.sellpage { max-width: 760px; margin: 0 auto; padding: 22px 16px 60px; }
.sellpage .box { padding: 18px; }
.sellpage .box > h2 { font-size: 1.2rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo-grid .ph { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph .tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.photo-grid .ph .tools button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; padding: 0; }
.photo-grid .ph .tools .ic { width: 16px; height: 16px; }
.photo-grid .ph .cover { position: absolute; top: 6px; left: 6px; }
.photo-grid .ph.busy::after { content: "Uploading..."; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.75); font-size: .85rem; font-weight: 700; }
.add-photo { aspect-ratio: 4/5; border-radius: 12px; border: 2px dashed #9cc4cc; background: var(--lagoon-tint); color: var(--sea-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .9rem; text-align: center; padding: 6px; }
.add-photo .ic { width: 30px; height: 30px; }
.zone { display: grid; grid-template-columns: 1fr 1fr 110px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 560px) { .zone { grid-template-columns: 1fr 1fr; } .zone .money-in { grid-column: 1; } }
.publish-bar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 10px; }
@media (max-width: 899px) { .publish-bar { bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); } }

/* ---------- inbox ---------- */
.inbox { display: grid; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
@media (min-width: 900px) { .inbox { grid-template-columns: 360px 1fr; max-width: 1240px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; } }
@media (max-width: 899px) { .inbox { height: calc(100dvh - 64px - var(--tabbar)); } body.in-thread .inbox { height: 100dvh; } body.in-thread .top, body.in-thread .tabbar { display: none; } body.in-thread { padding-bottom: 0; } }
.conv-list { overflow: auto; background: #fff; border-right: 1px solid var(--line); }
.conv-list h1 { font-size: 1.5rem; padding: 16px 16px 6px; margin: 0; }
.conv-tabs { display: flex; gap: 6px; padding: 6px 16px 10px; }
.conv { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-2); align-items: center; }
.conv:hover, .conv.on { background: var(--lagoon-tint); }
.conv img.lp { width: 54px; height: 66px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line-2); }
.conv .c-main { min-width: 0; flex: 1; }
.conv .c-top { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; color: var(--ink-3); }
.conv .c-name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .c-title { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.conv .c-last { font-size: .88rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .c-last { color: var(--ink); font-weight: 700; }
.conv .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tag); flex: none; }
.deal-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); margin-left: 4px; }
.deal-pill.go { background: var(--palm-tint); color: var(--palm-deep); }
.deal-pill.wait { background: var(--mango-tint); color: #7a5200; }
.thread { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.thread-empty { display: grid; place-items: center; text-align: center; color: var(--ink-3); padding: 30px; }
.th-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.th-head .who { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 10px; }
.th-head .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.th-item img { width: 44px; height: 54px; border-radius: 8px; object-fit: cover; }
.th-item .tt { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal { margin: 10px 12px 4px; background: #fff; border-radius: 16px; border: 1.5px solid var(--line); padding: 14px; }
.deal.attn { border-color: var(--mango); box-shadow: 0 0 0 3px var(--mango-tint); }
.deal.done { border-color: #a6dbb7; background: var(--palm-tint); }
.deal .d-title { font: 700 1.06rem/1.25 var(--display); margin-bottom: 4px; }
.deal .d-text { color: var(--ink-2); margin-bottom: 10px; font-size: .95rem; }
.deal .d-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.deal .d-btns .btn { flex: 1 1 auto; }
.track { display: flex; gap: 6px; margin-bottom: 12px; }
.track span { flex: 1; font-size: .72rem; color: var(--ink-3); border-top: 4px solid var(--line); padding-top: 4px; }
.track span.on { border-color: var(--palm); color: var(--palm-deep); font-weight: 700; }
.msgs { flex: 1; overflow: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.msg.mine { align-self: flex-end; background: var(--sea); color: #fff; border-color: var(--sea); border-bottom-right-radius: 4px; }
.msg:not(.mine) { border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; text-align: right; }
.evt { align-self: center; max-width: 92%; display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); background: var(--mango-tint); border-radius: 12px; padding: 8px 12px; margin: 6px 0; }
.evt .ic { width: 16px; height: 16px; color: #a26d00; flex: none; margin-top: 2px; }
.day-sep { align-self: center; font-size: .75rem; color: var(--ink-3); margin: 8px 0 2px; }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; }
.composer .btn { width: 46px; padding: 0; border-radius: 50%; }

/* ---------- profile & account ---------- */
.prof-head { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0 10px; flex-wrap: wrap; }
.prof-head .ic { width: 17px; height: 17px; vertical-align: -3px; }
.prof-head h1 { margin: 0 0 2px; font-size: 1.7rem; display: flex; align-items: center; gap: 6px; }
.prof-stats { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; line-height: 1.6; color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.prof-stats b { color: var(--ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin: 14px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 14px; cursor: pointer; font-weight: 700; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1.5px; text-decoration: none; white-space: nowrap; }
.tabs .on { color: var(--ink); border-color: var(--sea); }
.review { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review p { margin: 4px 0 0; }
.mylist { display: grid; gap: 10px; }
.myrow { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; align-items: start; }
.myrow img { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--line-2); }
.myrow .r-title { font-weight: 700; color: inherit; text-decoration: none; }
.myrow .r-meta { font-size: .86rem; color: var(--ink-3); margin: 2px 0 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.myrow .r-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.strike-box { border-color: #f1c7c3; background: #fdf6f5; }
.account-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- auth pages ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: 30px 16px 60px; }
.auth .box { padding: 22px; }
.auth h1 { font-size: 1.8rem; }
.auth .mark { width: 96px; margin: 0 auto 10px; }

/* ---------- info pages ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 26px 16px 60px; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.tips { display: grid; gap: 12px; padding: 0; list-style: none; }
.tips li { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tips .ic { color: var(--sea); flex: none; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c9dde2; margin-top: 40px; padding: 30px 0 30px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-in { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot h4 { color: #fff; font: 700 1rem var(--display); margin: 0 0 10px; }
.foot .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 14px; font-size: .85rem; }
.foot .word { height: 46px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.announce { background: var(--mango); color: var(--ink); text-align: center; padding: 8px 16px; font-weight: 700; font-size: .92rem; }
.sample-note { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 6px 16px; }
.skeleton { background: linear-gradient(90deg, var(--line-2), #f6fbfc, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

@media (max-width: 899px) {
  .deal { padding: 10px 12px; margin: 8px 8px 2px; }
  .deal .d-title { font-size: 1rem; }
  .deal .d-text { font-size: .88rem; margin-bottom: 8px; }
  .deal .track { margin-bottom: 8px; }
  .deal .d-btns .btn { min-height: 38px; }
}
@media (min-width: 900px) { .item .gallery { position: sticky; top: 80px; align-self: start; } }
.prof-head { position: relative; }
.prof-head > .menu { position: absolute; right: 0; top: 18px; }

/* account menu (laptop) */
.acct { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.acct-who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.acct-who b { display: block; }
.acct-who span { font-size: .82rem; color: var(--ink-3); overflow-wrap: anywhere; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--lagoon-tint); }
.acct-menu .ic { width: 19px; height: 19px; color: var(--sea); }
.acct-menu .signout { border-top: 1px solid var(--line-2); margin-top: 4px; border-radius: 0 0 10px 10px; color: #b42318; }
.acct-menu .signout .ic { color: #b42318; }

/* Sell form: item or service */
.kind-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 16px; background: #e8f1f4; border-radius: 999px; }
.kind-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.kind-switch button .ic { width: 18px; height: 18px; }
.kind-switch button.on { background: #fff; box-shadow: 0 1px 4px rgba(0, 57, 74, .14); }

/* Appeals: screenshots and the case timeline */
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--sea-deep, #008da6); text-decoration: underline; cursor: pointer; text-align: left; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #e8f1f4; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.busy img { opacity: .45; }
.shot button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 57, 74, .8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.shot button .ic { width: 16px; height: 16px; }
.shot-add { aspect-ratio: 3/4; border: 2px dashed #b9cfd6; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; }
.case-feed { display: flex; flex-direction: column; gap: 10px; }
.case-entry { padding: 12px 14px; border-radius: 14px; background: #f3f9fa; border: 1px solid #e1edf0; }
.case-entry.team { background: #fff8e6; border-color: #ffe2a3; }
.case-entry .who { font-weight: 800; margin-bottom: 4px; }
.case-pics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.case-pics img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid #d5e3e8; background: #e8f1f4; }
.strike-box .dl-list li { align-items: center; gap: 10px; }

/* Storefront page */
.shop-hero { background: #fff; border-bottom: 1px solid var(--line); }
.shop-banner { height: 180px; background: linear-gradient(120deg, #00788a, #01cedb 60%, #fead01); background-size: cover; background-position: center; }
@media (min-width: 760px) { .shop-banner { height: 260px; } }
.shop-head { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding-bottom: 16px; }
.shop-logo { width: 96px; height: 96px; border-radius: 22px; background: #fff; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 57, 74, .16); margin-top: -48px; overflow: hidden; display: grid; place-items: center; flex: none; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-logo span { font: 800 2rem var(--display); color: var(--ink); }
.shop-title { flex: 1 1 260px; min-width: 0; }
.shop-title h1 { margin: 6px 0 2px; }
.shop-tagline { margin: 0 0 6px; color: var(--ink-3); }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-info { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .shop-info { grid-template-columns: 2fr 1fr; } }
.shop-info .box { margin: 0; }
.shop-info h3 .ic { width: 18px; height: 18px; vertical-align: -3px; }
.shop-sections { margin-bottom: 14px; }
.shop-link-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; margin: 0 0 14px; max-width: 560px; }
.shop-link-box > .ic:first-child { width: 28px; height: 28px; color: var(--sea-deep, #008da6); }
.shop-link-box > span { flex: 1; }

/* Account: Storefront tab */
.plan-box { border: 2px solid var(--lagoon, #01cedb); }
.plan-list { margin: 8px 0 14px; padding-left: 20px; display: grid; gap: 4px; }
.plan-price { font: 800 1.6rem var(--display); }
.img-pick { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.img-pick .prev { width: 120px; height: 60px; border-radius: 10px; background: #e8f1f4 center/cover no-repeat; border: 1px solid var(--line); flex: none; }
.img-pick .prev.logo { width: 60px; height: 60px; border-radius: 14px; }
.sec-row { display: flex; gap: 8px; margin-bottom: 8px; }
.sec-row .in { flex: 1; }
.pin-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.pin-list label { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.stat-grid div { background: var(--bg, #f3f9fa); border-radius: 12px; padding: 10px 12px; }
.stat-grid b { display: block; font: 800 1.4rem var(--display); }
.stat-grid span { font-size: .85rem; color: var(--ink-3); }
.count-dot { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--tag); color: #fff; font-size: .75rem; line-height: 18px; text-align: center; margin-left: 4px; }
.status-banner a { color: inherit; text-decoration: underline; font-weight: 700; }
.cat .cat-ic, .icon-pick .cat-ic, .cat-row .cat-ic { object-fit: contain; }
