:root {
  /* Warm, colourful palette: cream background, coral + marigold accents,
     one strong colour for each kind of post. */
  --bg: #fff6ec;
  --bg-2: #ffe9d6;
  --surface: #ffffff;
  --ink: #2b1810;
  --muted: #7d5e4e;
  --line: #f3d9c4;
  --accent: #f0532e;
  --accent-2: #ff9f1c;
  --accent-ink: #ffffff;
  --grad: linear-gradient(135deg, #ff6a3d 0%, #f0532e 45%, #e63e6d 100%);
  --grad-warm: linear-gradient(135deg, #ffd166 0%, #ff9f1c 50%, #f0532e 100%);
  --found: #1b6fe0;
  --found-bg: #e2efff;
  --tried: #8a35dd;
  --tried-bg: #f2e5ff;
  --seller: #0b9a63;
  --seller-bg: #dcf8ea;
  --save: #e63e6d;
  --click: #ff8a00;
  --danger: #c81e1e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(120, 50, 20, .07), 0 6px 18px rgba(240, 83, 46, .08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: radial-gradient(1200px 600px at 100% -10%, var(--bg-2), transparent 60%), radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--tried-bg) 70%, transparent), transparent 60%), var(--bg); background-attachment: fixed; color: var(--ink); line-height: 1.5; font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: .2rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fineprint { font-size: .8rem; color: var(--muted); margin: .25rem 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; gap: .75rem; align-items: center; padding: .6rem 1rem; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.02em; color: var(--accent); }
.topsearch { flex: 1; display: flex; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.topsearch input { flex: 1; min-width: 0; border: 0; padding: .5rem .9rem; background: transparent; color: var(--ink); font: inherit; }
.topsearch button { border: 0; background: transparent; padding: 0 .8rem; color: var(--muted); cursor: pointer; }
.topnav { display: none; gap: .3rem; }
.topnav a { text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.topnav a.active { background: var(--surface); box-shadow: var(--shadow); }
.topnav a.cta { background: var(--accent); color: var(--accent-ink); }

/* bottom nav (mobile) */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; text-decoration: none; font-size: .72rem; color: var(--muted); font-weight: 600; }
.bottomnav a.active { color: var(--ink); }
.bottomnav .icon { width: 24px; height: 24px; }
.bottomnav a.share-btn .icon { background: var(--accent); color: var(--accent-ink); border-radius: 50%; padding: 9px; width: 50px; height: 50px; margin-top: -22px; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 45%, transparent); border: 3px solid var(--surface); stroke-width: 2.6; }
.bottomnav a.share-btn { color: var(--accent); }
.topnav a.cta { display: inline-flex; align-items: center; gap: .3rem; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .topnav { display: flex; }
  .bottomnav { display: none; }
}

main { max-width: 1120px; margin: 0 auto; padding: 1rem; }
.narrow { max-width: 640px; margin: 0 auto; }
.footer { max-width: 1120px; margin: 2rem auto 1rem; padding: 0 1rem; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }

.flash { max-width: 640px; margin: .75rem auto 0; padding: .7rem 1rem; border-radius: 10px; background: var(--seller-bg); color: var(--seller); font-weight: 600; }
.flash-error { background: #fde8e8; color: var(--danger); }
.flash-info { background: var(--found-bg); color: var(--found); }
.errors { background: #fde8e8; color: #7f1d1d; border-radius: 10px; padding: .5rem 1rem; margin-bottom: 1rem; }
.notice { background: #fff4d6; color: #6b4e00; padding: .5rem .75rem; border-radius: 8px; font-size: .85rem; margin: 0 .9rem .5rem; }

/* buttons & chips */
.btn, .buy { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 999px; padding: .6rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--ink); color: var(--bg); }
.btn.big, .buy.big { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn.small, .buy.small { padding: .4rem .8rem; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.buy { background: var(--accent); color: var(--accent-ink); }
.buy.disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.dest { font-size: .78rem; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.chip.collection { padding: .5rem .9rem; font-size: .9rem; }
.savebtn { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.savebtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.savebtn.on .icon { fill: currentColor; }
.savebtn .count { color: inherit; opacity: .7; font-weight: 500; }
form.inline { display: inline; margin: 0; }
.scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.chips { margin: .25rem 0 1rem; }
.tabs { display: flex; gap: .25rem; margin: 0 0 .8rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .8rem; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-color: var(--ink); }

/* badges */
.kind { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; background: var(--line); white-space: nowrap; }
.kind-found { background: var(--found-bg); color: var(--found); }
.kind-tried { background: var(--tried-bg); color: var(--tried); }
.kind-mine { background: var(--seller); color: #fff; }
.shopbadge { display: inline-block; font-size: .68rem; font-weight: 800; padding: .05rem .4rem; border-radius: 4px; background: var(--seller-bg); color: var(--seller); vertical-align: middle; }
.sample { display: inline-block; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; border: 1px dashed var(--muted); color: var(--muted); }
.eyebrow { text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin: 0; }
.eyebrow a { text-decoration: none; }

/* avatar */
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: .8rem; color: #fff; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: .65rem; }
.avatar.lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar.xl { width: 80px; height: 80px; font-size: 1.6rem; }
.hue-0 { background: #c2410c; } .hue-1 { background: #0f766e; } .hue-2 { background: #7c3aed; } .hue-3 { background: #be185d; }
.hue-4 { background: #1d4ed8; } .hue-5 { background: #a16207; } .hue-6 { background: #047857; } .hue-7 { background: #9333ea; }
.hue-8 { background: #b91c1c; } .hue-9 { background: #0369a1; } .hue-10 { background: #4d7c0f; } .hue-11 { background: #6d28d9; }

/* discover */
.hero h1 { font-size: 1.9rem; }
.hero.small h1 { font-size: 1.4rem; }
.lede { color: var(--muted); margin: 0 0 .75rem; max-width: 46ch; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.filters summary { padding: .7rem 1rem; font-weight: 700; cursor: pointer; }
.filter-grid { display: grid; gap: .75rem; padding: 0 1rem 1rem; grid-template-columns: 1fr 1fr; }
.filter-grid label, .price-range { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; font-weight: 600; }
.price-range { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; border: 0; padding: 0; margin: 0; gap: .5rem; }
.price-range legend { width: 100%; padding: 0; margin-bottom: .25rem; }
.price-range input { width: 6rem; }
.filter-actions, .filter-grid .fineprint { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; }
@media (min-width: 700px) { .filter-grid { grid-template-columns: repeat(3, 1fr); } .price-range { grid-column: auto / span 2; } }
.shops-row h2 { margin-top: .25rem; }
.shopcard { display: flex; gap: .6rem; align-items: center; padding: .6rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-width: 220px; font-size: .9rem; }
.shoplist { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.catgrid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.catcard { display: flex; flex-direction: column; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }

/* discover layout: one scrolling column, suggestions on the side on wide screens */
.discover { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }
@media (min-width: 1040px) { .discover { max-width: 980px; grid-template-columns: minmax(0, 620px) 300px; justify-content: center; } }
.discover-side { display: none; }
@media (min-width: 1040px) {
  .discover-side { display: block; position: sticky; top: 76px; align-self: start; }
  .discover-side h2 { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
}
.feedtabs { position: sticky; top: 60px; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; margin: -1rem -1rem .75rem; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.feedtabs a { text-align: center; padding: .75rem .5rem; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.feedtabs a.active { color: var(--ink); border-color: var(--accent); }
@media (min-width: 640px) { .feedtabs { margin: -1rem 0 .75rem; } }
.composer { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; margin-bottom: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); }
.composer-prompt { flex: 1; color: var(--muted); background: var(--bg); border-radius: 999px; padding: .5rem .9rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .btn { background: var(--accent); color: var(--accent-ink); }
.suggest { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .7rem; text-align: left; }
.suggest li { display: flex; align-items: center; gap: .6rem; }
.empty .suggest { max-width: 420px; margin: 1rem auto; }

/* feed + cards */
.feed { display: grid; gap: 1.1rem; grid-template-columns: 1fr; align-items: start; }
.narrow .feed, .columns .feed { grid-template-columns: 1fr; }
@media (max-width: 639px) {
  .discover .feed { gap: .6rem; margin: 0 -1rem; }
  .discover .feed .card { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
}
.feed-more { display: flex; justify-content: center; padding: 1.25rem 0 .5rem; min-height: 4rem; }
.feed-more.loading a { opacity: .6; pointer-events: none; }
.feed-end { color: var(--muted); font-weight: 600; margin: 0; }
.card-visual { position: relative; }
.overlay-kind { position: absolute; left: .7rem; bottom: .7rem; pointer-events: none; }
.overlay-kind .kind { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.overlay-kind .kind-found { background: #fff; color: #1d4ed8; }
.overlay-kind .kind-tried { background: #fff; color: #7c3aed; }
.actionbar { display: flex; align-items: center; gap: .35rem; padding: .5rem .6rem 0; }
.actionbar .spacer { flex: 1; }
.act { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .55rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--ink); }
.act:hover { background: var(--bg); }
.act .icon { width: 1.35em; height: 1.35em; }
.actionbar .savebtn { border: 0; background: transparent; padding: .4rem .55rem; font-size: .88rem; }
.actionbar .savebtn .icon { width: 1.35em; height: 1.35em; }
.actionbar .savebtn.on { background: transparent; color: var(--accent); }
.actionbar .savebtn:hover { background: var(--bg); }
.followbtn { font: inherit; font-weight: 700; font-size: .85rem; border-radius: 999px; padding: .35rem .9rem; cursor: pointer; background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--accent); white-space: nowrap; }
.followbtn.on { background: transparent; color: var(--ink); border-color: var(--line); }
.followbtn.small { padding: .25rem .75rem; font-size: .8rem; }
.followbtn.big { padding: .6rem 1.4rem; font-size: 1rem; }
.pop { animation: pop .28s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } }
.take-author { font-weight: 800; text-decoration: none; margin-right: .15rem; }
.card-comments { padding: 0 .9rem; }
.viewall { display: block; color: var(--muted); text-decoration: none; font-size: .88rem; margin: .3rem 0 .1rem; }
.card-comments .mini-comment { margin: .15rem 0; color: var(--ink); }
.mini-comment.just-added { animation: fadein .4s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.quick-comment { display: flex; align-items: center; gap: .5rem; margin: .5rem .9rem .8rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.quick-comment input { border: 0; padding: .35rem 0; background: transparent; border-radius: 0; }
.quick-comment input:focus-visible { outline: none; }
.quick-comment .linkbtn { text-decoration: none; color: var(--accent); font-weight: 800; }
.card > .card-comments:last-child { padding-bottom: .8rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-seller { border: 2px solid var(--seller); }
.card-seller .card-head { background: var(--seller-bg); }
.card-hidden { opacity: .7; border-style: dashed; }
.card-head { display: flex; align-items: center; gap: .5rem; padding: .65rem .8rem; }
.who { display: flex; align-items: center; gap: .55rem; text-decoration: none; flex: 1; min-width: 0; }
.who-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; font-size: .92rem; }
.who-text .muted { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media { background: var(--line); aspect-ratio: 1 / 1; overflow: hidden; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media.hero { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.media-link { display: block; }
.textcard { display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 1.5rem 1.25rem; min-height: 200px; text-decoration: none; background: linear-gradient(135deg, var(--found-bg), var(--tried-bg)); }
.textcard.hero { min-height: 280px; border-radius: var(--radius); }
.textcard-name { font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.textcard-quote { font-size: 1.05rem; font-style: italic; color: var(--ink); opacity: .85; }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .7rem .9rem 0; }
.product-name { font-weight: 800; text-decoration: none; font-size: 1.02rem; }
.price { font-weight: 800; white-space: nowrap; }
.price.muted { font-weight: 500; font-size: .85rem; }
.take { padding: 0 .9rem; margin: .35rem 0; white-space: pre-line; overflow-wrap: anywhere; }
.card .fineprint { padding: 0 .9rem; }
.seller-note { color: var(--seller); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; padding: .55rem .9rem .3rem; }
.actions.secondary { padding-bottom: .8rem; }
.product-info .actions { padding: .5rem 0 0; }
.product-info .actions.secondary { padding-bottom: .5rem; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: .2rem .45rem; color: var(--muted); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: 100%; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: .5rem .8rem; min-width: 190px; }
.menu-body form { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.menu-body .linkbtn { text-decoration: none; color: var(--ink); }

/* product page */
.product-hero { display: grid; gap: 1rem; }
@media (min-width: 800px) { .product-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.product-info h1 { font-size: 1.7rem; }
.product-info .price { font-size: 1.3rem; }
.summary { font-weight: 700; margin: .75rem 0 .25rem; }
.columns { display: grid; gap: 1rem; margin-top: 1rem; }
.columns > section > .card { margin-bottom: .6rem; }
@media (min-width: 900px) { .columns { grid-template-columns: 1fr 1fr; } }
.mini-comment { font-size: .88rem; margin: -.2rem .4rem .8rem; color: var(--muted); overflow-wrap: anywhere; }
.mini-comment a { font-weight: 700; color: var(--ink); text-decoration: none; }

/* saved & tiles */
.grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.tile img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.tile-text { min-height: 0; aspect-ratio: 1; font-weight: 800; padding: 1rem; display: flex; align-items: center; }
.tile-body { padding: .6rem .7rem .8rem; font-size: .9rem; }
.tile-body .actions { padding: .4rem 0; }

/* forms */
.stack { display: flex; flex-direction: column; gap: .9rem; }
.stack label, .stack fieldset > legend { font-weight: 700; font-size: .92rem; }
.stack label { display: flex; flex-direction: column; gap: .3rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .75rem; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.readonly { background: var(--bg); color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin: 0; }
.check { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 500 !important; }
.ships { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.ships legend { width: 100%; }
.row { display: flex; gap: .75rem; align-items: flex-end; }
.row.wrap { flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.kinds { display: grid; gap: .5rem; }
.kindopt { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.kindopt span { display: flex; flex-direction: column; }
.kindopt small { font-weight: 500; color: var(--muted); }
.kindopt:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.kindopt-mine:has(input:checked) { border-color: var(--seller); background: var(--seller-bg); }
.kindopt input { margin-top: .3rem; }
.existing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.existing a { text-decoration: none; }
.step { margin-top: -.3rem; }
.preview img, .preview video { max-height: 240px; border-radius: 10px; }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
blockquote { margin: .5rem 0 1rem; padding: .6rem .9rem; border-left: 4px solid var(--line); background: var(--surface); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }

/* comments */
.comment { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.comment .who { display: inline-flex; flex: none; }
.comment p { margin: .3rem 0; }
.comment-actions { display: flex; gap: .9rem; font-size: .82rem; }
.comment-form { margin-top: 1rem; }

/* profile */
.profile-head { display: flex; gap: 1rem; align-items: flex-start; padding: .5rem 0 1rem; border-bottom: 1px solid var(--line); }
.profile-head h1 { margin-top: 0; }
.profile-head p { margin: .2rem 0 .5rem; }

/* moderation */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .8rem; }
.report p { margin: .2rem 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; display: flex; flex-direction: column; }
.stats strong { font-size: 1.6rem; }
.stats small { color: var(--muted); }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); border-radius: var(--radius); }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
code { font-size: .85em; overflow-wrap: anywhere; }
@media (max-width: 799px) {
  .media.hero, .textcard.hero { aspect-ratio: 4 / 3; max-height: 45vh; min-height: 0; width: 100%; }
}

.who-name { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.who-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.borrowed { position: absolute; right: .7rem; bottom: .7rem; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.media-link { position: relative; }


/* ======================================================================
   Round 3: purchase links, who's speaking, saves & clicks, colour
   ====================================================================== */

/* brand + header */
.brand { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.35rem; }
.topbar { border-bottom: 0; box-shadow: 0 2px 0 0 transparent; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #ffd166, #ff9f1c, #f0532e, #e63e6d, #8a35dd, #1b6fe0, #0b9a63); }
.topsearch { border: 1.5px solid var(--line); box-shadow: inset 0 1px 2px rgba(0,0,0,.03); }
.topsearch:focus-within { border-color: var(--accent); }
.topsearch button { color: var(--accent); }
.topnav a.active { background: var(--surface); color: var(--accent); }
.topnav a.cta, .composer .btn, .bottomnav a.share-btn .icon { background: var(--grad); }
.bottomnav a.active { color: var(--accent); }
.feedtabs a.active { color: var(--accent); border-image: var(--grad) 1; }

/* the purchase link: big, bright, always with the destination */
.buybar { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; padding: .7rem .9rem .2rem; }
.buybar .buy { background: var(--grad); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); padding: .65rem 1.2rem; font-size: 1rem; transition: transform .12s ease, box-shadow .12s ease; }
.buybar .buy:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.buybar .buy:active { transform: translateY(1px); }
.buybar .buy.disabled { background: var(--line); color: var(--muted); box-shadow: none; }
.buybar .dest { display: inline-flex; gap: .25rem; align-items: baseline; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.buybar .dest strong { color: var(--ink); font-weight: 700; }
.card .buybar .buy { flex: 1 1 auto; max-width: 260px; }
.buybar.big { padding: .8rem 0 .3rem; }
.buybar.big .buy { font-size: 1.12rem; padding: .9rem 1.6rem; flex: 1 1 auto; max-width: 340px; }
.buybar.small { padding: .45rem 0 .2rem; }
.buybar.small .buy { padding: .45rem .9rem; font-size: .88rem; }
.buybar.small .dest { font-size: .75rem; }
.product-info .buybar { padding-left: 0; }

/* sticky purchase bar on phones, on the product page */
.stickybuy { display: none; }
@media (max-width: 859px) {
  .stickybuy { display: block; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 19; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(120, 50, 20, .08); }
  .stickybuy .buybar { padding: .55rem 1rem; justify-content: space-between; }
  .stickybuy .buybar .buy { flex: 0 1 auto; }
  .product { padding-bottom: 4.5rem; }
}

/* who's speaking: colour stripe + badge on every card */
.card.post { border-top: 4px solid var(--line); }
.card.post:has(.card-head .kind-found) { border-top-color: var(--found); }
.card.post:has(.card-head .kind-tried) { border-top-color: var(--tried); }
.card.post.card-seller { border: 2px solid var(--seller); border-top-width: 4px; }
.card-head .kind { flex: none; }
.kind { font-size: .7rem; letter-spacing: .05em; }
.kind-found { background: var(--found-bg); color: var(--found); }
.kind-tried { background: var(--tried-bg); color: var(--tried); }
.kind-mine { background: var(--seller); color: #fff; }
.card-seller .card-head { background: linear-gradient(90deg, var(--seller-bg), transparent); }
.speaker { font-weight: 700; }
.speaker-found { color: var(--found); }
.speaker-tried { color: var(--tried); }
.speaker-mine { color: var(--seller); }
.columns h2 { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.col-seller, .col-shoppers { background: color-mix(in srgb, var(--surface) 55%, transparent); border-radius: calc(var(--radius) + 4px); padding: .2rem .7rem .7rem; }
.col-seller { background: color-mix(in srgb, var(--seller-bg) 55%, transparent); }
.col-shoppers { background: color-mix(in srgb, var(--tried-bg) 50%, transparent); }

/* new posts since you saved */
.newbadge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .5rem; border-radius: 999px; background: var(--grad-warm); color: #fff; flex: none; }
.newbadge.on-img { position: absolute; top: .5rem; left: .5rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tile-img { position: relative; display: block; }
.savednote { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; background: color-mix(in srgb, var(--save) 12%, var(--surface)); color: var(--ink); border-radius: 12px; padding: .55rem .8rem; font-size: .9rem; margin: .6rem 0; }
.savednote .icon { color: var(--save); fill: var(--save); }

/* save button gets its own colour */
.actionbar .savebtn.on { color: var(--save); }
.savebtn.on { background: var(--save); border-color: var(--save); color: #fff; }
.actionbar .savebtn.on .icon { fill: var(--save); }
.followbtn { background: var(--grad); border-color: transparent; }
.followbtn.on { background: transparent; border-color: var(--line); }
.chip.takes { background: var(--tried-bg); color: var(--tried); border-color: transparent; }
.chip.takes .icon { width: 1em; height: 1em; }

/* seller numbers */
.ownerstats { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; margin: .5rem .9rem .2rem; padding: .45rem .7rem; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); font-size: .85rem; }
.ownerstats-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--muted); }
.ownerstats strong { font-size: 1rem; }
.ownerstats span:nth-child(2) strong { color: var(--save); }
.ownerstats span:nth-child(3) strong { color: var(--click); }
.mystats { margin: 1rem 0; padding: .3rem 1rem 1rem; background: var(--surface); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mystats h3 { font-size: .95rem; margin: 1.1rem 0 .4rem; }
.mystats .stats { grid-template-columns: repeat(2, 1fr); }
.stats div { border: 0; box-shadow: var(--shadow); }
.stats .stat-saves { background: linear-gradient(135deg, color-mix(in srgb, var(--save) 16%, var(--surface)), var(--surface)); }
.stats .stat-clicks { background: linear-gradient(135deg, color-mix(in srgb, var(--click) 18%, var(--surface)), var(--surface)); }
.stat-saves strong { color: var(--save); }
.stat-clicks strong { color: var(--click); }
.stats span { font-weight: 800; }
.howcounted { margin-top: .9rem; font-size: .88rem; }
.howcounted summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.howcounted p { margin: .4rem 0; color: var(--muted); }

/* browse bar: category, centred */
.browse { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: .75rem .8rem .3rem; margin-bottom: 1rem; border: 1px solid var(--line); }
.browse-row { display: flex; justify-content: center; gap: .5rem; align-items: end; }
.browse-row label { flex: 0 1 18rem; text-align: center; }
.browse-row label { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 0; }
.browse-row select { padding: .5rem .6rem; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.browse-go { background: var(--grad); color: #fff; padding: .55rem 1rem; }
.browse-more summary { text-align: center; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--accent); padding: .55rem 0 .4rem; }
.browse-more .filter-grid { padding: 0 0 .6rem; }
.results-note { margin: -.4rem 0 .8rem; }
.newshop { color: var(--seller); font-weight: 800; }

/* collection chips: each its own colour */
.chip { border: 0; box-shadow: 0 1px 2px rgba(120, 50, 20, .08); }
.chip.collection { font-weight: 700; }
.tint-0 { background: #ffe1d6; color: #9a2a10; }
.tint-1 { background: #d9f6e6; color: #0a6b45; }
.tint-2 { background: #efe2ff; color: #6420a8; }
.tint-3 { background: #fff0c2; color: #8a5300; }
.tint-4 { background: #dcecff; color: #134f9e; }
.tint-5 { background: #ffdbe7; color: #a3164a; }


/* share form helpers */
.tips { margin: 1rem 0 .5rem; padding: .8rem 1rem .8rem 2rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); font-size: .9rem; }
.tips li { margin: .25rem 0; }
.linkpreview { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .9rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); }
.linkpreview .buybar { padding: 0; }
.kindopt-found:has(input:checked) { border-color: var(--found); background: var(--found-bg); }
.kindopt-tried:has(input:checked) { border-color: var(--tried); background: var(--tried-bg); }

/* surfaces get a touch warmer */
.card, .tile, .composer, .shopcard, .catcard, .existing, .report { border-color: var(--line); }
.shopcard, .catcard { box-shadow: var(--shadow); }
.catcard:nth-child(6n+1) { background: #fff0e8; } .catcard:nth-child(6n+2) { background: #ecfbf3; } .catcard:nth-child(6n+3) { background: #f5edff; }
.catcard:nth-child(6n+4) { background: #fff7dc; } .catcard:nth-child(6n+5) { background: #eaf3ff; } .catcard:nth-child(6n+6) { background: #ffeaf1; }

.price { color: var(--accent); }
.textcard { background: linear-gradient(135deg, #ffe1d6, #efe2ff 60%, #dcecff); }

.flash { background: var(--seller-bg); }
.price.muted { color: var(--muted); }
.btn.big:not(.ghost):not(.danger) { background: var(--grad); color: #fff; }


/* ======================================================================
   Round 4: bright and airy. White everywhere, soft watercolour washes,
   Pinterest-style pin grids. Always light, even if the computer is set
   to dark mode.
   ====================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #fff4ef;
  --surface: #ffffff;
  --ink: #2f2a33;
  --muted: #847b8b;
  --line: #f1eaf2;
  --accent: #e8506e;
  --accent-2: #f39a6b;
  --grad: linear-gradient(120deg, #ec5f7f 0%, #f0806a 100%);
  --grad-warm: linear-gradient(120deg, #f7a36b, #ec5f7f);
  --found: #3a86d4; --found-bg: #e9f3fd;
  --tried: #9567d4; --tried-bg: #f4eefc;
  --seller: #2c9f75; --seller-bg: #e6f7ef;
  --save: #e8506e; --click: #ee8a3c;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(60, 40, 70, .05), 0 8px 24px rgba(120, 90, 140, .08);
  --wash-peach: #ffd9c7; --wash-rose: #ffd3df; --wash-lilac: #e7dcfb; --wash-sky: #d4ebfb; --wash-mint: #d5f2e6; --wash-butter: #fff0bf;
}
html { background: #fff; }
body {
  background:
    radial-gradient(40vw 30vw at 92% 4%, color-mix(in srgb, var(--wash-rose) 55%, transparent), transparent 70%),
    radial-gradient(38vw 28vw at 4% 22%, color-mix(in srgb, var(--wash-sky) 50%, transparent), transparent 70%),
    radial-gradient(36vw 30vw at 96% 62%, color-mix(in srgb, var(--wash-lilac) 45%, transparent), transparent 70%),
    radial-gradient(40vw 30vw at 0% 92%, color-mix(in srgb, var(--wash-mint) 45%, transparent), transparent 70%),
    #ffffff;
  background-attachment: fixed;
}
.topbar { background: rgba(255, 255, 255, .86); }
.topbar::after { height: 2px; opacity: .8; background: linear-gradient(90deg, var(--wash-butter), var(--wash-peach), var(--wash-rose), var(--wash-lilac), var(--wash-sky), var(--wash-mint)); height: 4px; }
.brand { background: linear-gradient(110deg, #ec5f7f, #f39a6b 45%, #9567d4); -webkit-background-clip: text; background-clip: text; font-weight: 900; letter-spacing: -.03em; }
.feedtabs { background: rgba(255, 255, 255, .9); }
.bottomnav { background: rgba(255, 255, 255, .96); border-top-color: var(--line); }
.topsearch { background: #faf7fb; border-color: transparent; }
.topsearch:focus-within { background: #fff; border-color: var(--wash-rose); }

/* cards: white, soft, rounded */
.card, .tile, .composer, .browse, .mystats, .shopcard, .existing, .tips { border: 1px solid var(--line); box-shadow: var(--shadow); }
.card.post { border-top: 1px solid var(--line); }
.card.post::before { content: ""; display: block; height: 5px; background: var(--line); }
.card.post:has(.card-head .kind-found)::before { background: linear-gradient(90deg, var(--wash-sky), #bcdcf7); }
.card.post:has(.card-head .kind-tried)::before { background: linear-gradient(90deg, var(--wash-lilac), #d6c3f5); }
.card.post.card-seller { border: 1px solid var(--line); }
.card.post.card-seller::before { background: linear-gradient(90deg, var(--wash-mint), #b5e6d0); }
.card-seller .card-head { background: transparent; }
.kind-found { background: var(--found-bg); color: var(--found); }
.kind-tried { background: var(--tried-bg); color: var(--tried); }
.kind-mine { background: var(--seller-bg); color: var(--seller); }
.col-seller { background: color-mix(in srgb, var(--wash-mint) 30%, transparent); }
.col-shoppers { background: color-mix(in srgb, var(--wash-lilac) 30%, transparent); }
.media { background: #f6f1f7; }
.composer-prompt { background: #faf7fb; }
.price { color: var(--ink); }
.product-info .price { color: var(--accent); }
.buybar .buy { box-shadow: 0 6px 16px rgba(232, 80, 110, .22); }
.btn { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.savebtn { background: #fff; }
.ownerstats { background: #fbf8fc; }
.stats div { background: #fff; }
.stats .stat-saves { background: linear-gradient(135deg, var(--wash-rose), #fff 75%); }
.stats .stat-clicks { background: linear-gradient(135deg, var(--wash-peach), #fff 75%); }
.savednote { background: color-mix(in srgb, var(--wash-rose) 55%, #fff); }
.linkpreview { background: color-mix(in srgb, var(--wash-peach) 35%, #fff); border-color: var(--wash-peach); }
.textcard { background: linear-gradient(135deg, var(--wash-peach), var(--wash-lilac) 55%, var(--wash-sky)); }
input, select, textarea { background: #fff; border-color: #ece3ee; }
.errors { background: #fff0f2; }
.flash { background: var(--seller-bg); }

/* watercolour chips */
.chip { background: #fff; box-shadow: none; border: 1px solid var(--line); }
.tint-0 { background: var(--wash-rose); color: #9c2342; border-color: transparent; }
.tint-1 { background: var(--wash-mint); color: #1d7253; border-color: transparent; }
.tint-2 { background: var(--wash-lilac); color: #5f3a99; border-color: transparent; }
.tint-3 { background: var(--wash-butter); color: #7d5a00; border-color: transparent; }
.tint-4 { background: var(--wash-sky); color: #1f5d96; border-color: transparent; }
.tint-5 { background: var(--wash-peach); color: #9a4520; border-color: transparent; }
.catcard:nth-child(6n+1) { background: var(--wash-rose); } .catcard:nth-child(6n+2) { background: var(--wash-mint); } .catcard:nth-child(6n+3) { background: var(--wash-lilac); }
.catcard:nth-child(6n+4) { background: var(--wash-butter); } .catcard:nth-child(6n+5) { background: var(--wash-sky); } .catcard:nth-child(6n+6) { background: var(--wash-peach); }
.catcard { border: 0; }

/* Pinterest-style pin grid (Obsessions, shop products) */
.pins { columns: 2 160px; column-gap: .8rem; }
@media (min-width: 760px) { .pins { columns: 4 180px; } }
.pin { break-inside: avoid; margin: 0 0 .8rem; display: flex; border-radius: var(--radius); }
.pin img { border-radius: var(--radius) var(--radius) 0 0; }
.pin:nth-child(3n+2) img { aspect-ratio: 4 / 5; }
.pin:nth-child(5n+3) img { aspect-ratio: 3 / 4; }
.obsessions { max-width: 1000px; margin: 0 auto; }
.script-title { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; background: linear-gradient(110deg, #ec5f7f, #f39a6b 50%, #9567d4); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .2rem; }
.favshops .shopcard { background: #fff; }

/* profile: banner, photo, links */
.banner { position: relative; height: 170px; border-radius: var(--radius); overflow: hidden; margin: 0 0 -48px; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner.small { height: 110px; margin-bottom: -40px; }
@media (min-width: 700px) { .banner { height: 240px; } }
.wash-0 { background: radial-gradient(60% 90% at 15% 30%, var(--wash-rose), transparent 70%), radial-gradient(50% 80% at 80% 20%, var(--wash-butter), transparent 70%), radial-gradient(60% 90% at 60% 100%, var(--wash-lilac), transparent 70%), #fff7f5; }
.wash-1 { background: radial-gradient(60% 90% at 20% 80%, var(--wash-mint), transparent 70%), radial-gradient(50% 80% at 75% 25%, var(--wash-sky), transparent 70%), radial-gradient(40% 70% at 45% 10%, var(--wash-butter), transparent 70%), #f6fbff; }
.wash-2 { background: radial-gradient(60% 90% at 25% 20%, var(--wash-lilac), transparent 70%), radial-gradient(55% 85% at 80% 75%, var(--wash-rose), transparent 70%), radial-gradient(40% 70% at 55% 40%, var(--wash-sky), transparent 70%), #fbf8ff; }
.wash-3 { background: radial-gradient(60% 90% at 80% 30%, var(--wash-peach), transparent 70%), radial-gradient(55% 85% at 15% 70%, var(--wash-mint), transparent 70%), radial-gradient(40% 70% at 45% 85%, var(--wash-butter), transparent 70%), #fffaf4; }
.banner-edit { position: absolute; right: .7rem; top: .7rem; background: rgba(255,255,255,.9); border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.profile-head { flex-wrap: wrap; padding: 0 .5rem 1rem; border-bottom: 1px solid var(--line); }
.avatar-wrap { position: relative; z-index: 1; padding-left: .8rem; }
.avatar-wrap .avatar { border: 4px solid #fff; box-shadow: var(--shadow); }
.profile-head > div:last-child { flex: 1 1 260px; padding-top: 52px; }
.avatar.photo { object-fit: cover; background: #f6f1f7; padding: 0; }
.avatar.xl { width: 96px; height: 96px; }
.profile-links { list-style: none; padding: 0; margin: .4rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.profile-links a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 700; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(60,40,70,.04); }
.profile-links li:nth-child(6n+1) a { background: var(--wash-rose); } .profile-links li:nth-child(6n+2) a { background: var(--wash-sky); } .profile-links li:nth-child(6n+3) a { background: var(--wash-mint); }
.profile-links li:nth-child(6n+4) a { background: var(--wash-lilac); } .profile-links li:nth-child(6n+5) a { background: var(--wash-butter); } .profile-links li:nth-child(6n+6) a { background: var(--wash-peach); }
.profile-links a { border-color: transparent; }
.images { display: flex; flex-direction: column; gap: .6rem; }
.images .avatar-wrap { padding-left: .6rem; }
.linkrows { display: flex; flex-direction: column; gap: .45rem; }
.linkrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .4rem; }
.browse-go, .composer .btn { background: var(--grad); color: #fff; }
.profile-head > div:last-child { padding-top: .4rem; }
@media (min-width: 640px) { .profile-head { flex-wrap: nowrap; } .profile-head > div:last-child { padding-top: 56px; } }
.pin .buybar { flex-direction: column; align-items: stretch; gap: .25rem; }
.pin .buybar .buy { max-width: none; justify-content: center; }
.pin .buybar .dest { display: block; font-size: .72rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin .buybar .dest-label { display: none; }
.pin .savebtn { width: 100%; justify-content: center; margin-top: .3rem; }
.image-note { margin-top: -.3rem; color: var(--seller); font-weight: 700; } .image-note.image-error { color: var(--danger); }
.obsessed-row { padding: .3rem .9rem 0; }
.obsessed { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 700; color: #b8324f; background: linear-gradient(120deg, var(--wash-rose), var(--wash-peach)); padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.obsessed strong { font-weight: 900; }
.obsessed.zero { background: #f7f3f8; color: var(--muted); }
.obsessed.big { font-size: .95rem; padding: .3rem .8rem; vertical-align: middle; margin-left: .4rem; }
/* the Obsessed button: one tap adds the product to your Obsessions */
.obsessbtn { gap: .35rem; }
.obsessbtn .fire { filter: grayscale(1); opacity: .55; font-size: 1.05em; transition: filter .15s ease, opacity .15s ease; }
.obsessbtn .count { font-weight: 900; opacity: 1; background: #f4eef5; color: var(--muted); border-radius: 999px; padding: .02rem .45rem; font-size: .8em; }
.obsessbtn:hover .fire { filter: none; opacity: 1; }
.obsessbtn.on, .actionbar .obsessbtn.on { background: linear-gradient(120deg, var(--wash-rose), var(--wash-peach)); color: #b8324f; border-color: transparent; }
.obsessbtn.on .fire { filter: none; opacity: 1; }
.obsessbtn.on .count { background: #fff; color: #b8324f; }
.actionbar .obsessbtn { border-radius: 999px; }
.pin .obsessbtn { border: 1px solid var(--line); }

/* Round 8: Own it, Save to Obsessions, I tried this */
:root { --own: #b7791f; --own-bg: #fff4d6; }
.kind-own { background: var(--own-bg); color: var(--own); }
.speaker-own { color: var(--own); }
.card.post:has(.card-head .kind-own)::before { background: linear-gradient(90deg, var(--wash-butter), #ffe08a); }
.kindopt-own:has(input:checked) { border-color: var(--own); background: var(--own-bg); }
.kindopt .kind { font-size: .78rem; align-self: flex-start; margin-bottom: .2rem; }
.kindopt small { font-size: .9rem; color: var(--ink); }
.kinds { grid-template-columns: 1fr; }
@media (min-width: 560px) { .kinds { grid-template-columns: 1fr 1fr; } .kinds legend { grid-column: 1 / -1; } }
.kindprompt { display: block; font-weight: 600; font-size: .88rem; color: var(--tried); background: var(--tried-bg); border-radius: 10px; padding: .45rem .7rem; }
.kindprompt[hidden] { display: none; }
.tried-btn { background: var(--tried-bg); color: var(--tried); border: 1.5px solid color-mix(in srgb, var(--tried) 30%, transparent); }
.tried-btn .kind { background: #fff; }
.actions.secondary { flex-wrap: wrap; }
.obs-h { display: flex; gap: .5rem; align-items: baseline; margin-top: 1.4rem; }
.obs-h .muted { font-size: .9rem; font-weight: 600; }
.actionbar { flex-wrap: wrap; row-gap: .2rem; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50;
  background: #2f2a33; color: #fff; font-weight: 800; padding: .65rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 860px) { .toast { bottom: 2rem; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Round 10: social discovery feed */
.kindfilter { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .1rem .1rem .6rem; margin-bottom: .2rem; }
.kindfilter::-webkit-scrollbar { display: none; }
.kf { flex: 0 0 auto; padding: .45rem .95rem; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.kf.on { color: #fff; border-color: transparent; background: var(--grad); box-shadow: var(--shadow); }
.kf-found.on { background: var(--found); }
.kf-tried.on { background: var(--tried); }
.kf-own.on { background: var(--own); }
.kf-mine.on { background: var(--seller); }
.card.post .actionbar { padding-top: .55rem; }
.card.post .actionbar .savebtn { font-weight: 800; }
.take { font-size: 1.02rem; line-height: 1.45; }
.take.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
.take-more { display: inline-block; padding: 0 .9rem; font-size: .9rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.card.post .product-row { padding-top: .55rem; }
.card.post .product-name { font-size: .95rem; }
.card.post .speaker { font-size: .78rem; opacity: .85; }
.textcard.kind-found { background: linear-gradient(135deg, var(--found-bg), #fff); }
.textcard.kind-tried { background: linear-gradient(135deg, var(--tried-bg), #fff); }
.textcard.kind-own { background: linear-gradient(135deg, #fff3c4, #fff); }
.textcard.kind-mine { background: linear-gradient(135deg, #ffe1d6, #fff); }
.listed-price { font-size: .9rem; margin: .4rem 0; }
.listed-price .price { font-weight: 700; }
@media (max-width: 559px) {
  .card.post .actionbar .savebtn { padding: .55rem .8rem; background: var(--bg); border-radius: 999px; }
  .card.post .actionbar .savebtn.on { background: color-mix(in srgb, var(--accent) 12%, #fff); }
}
.card.post .textcard { min-height: 240px; padding: 2rem 1.5rem; }
.card.post .textcard-quote { font-size: 1.35rem; font-weight: 700; font-style: normal; line-height: 1.35; opacity: 1; }
.card.post .actionbar .savebtn { margin-left: .1rem; }
@media (max-width: 559px) {
  .chips.scroll { margin-bottom: .5rem; }
  .browse { padding: .55rem .7rem .15rem; }
}
/* On phones the big + Post button is always in the bottom bar, so the feed starts sooner. */
@media (max-width: 559px) { .discover-main > .composer { display: none; } }
.listed-price .price { color: var(--ink); font-size: inherit; font-weight: 700; }
/* Keep the product page inside the screen on phones. */
.columns, .columns > section { min-width: 0; }
.columns > section > .card, .card-head { min-width: 0; }
.card-head .who { min-width: 0; flex: 1 1 auto; }
.card-head .who-text { min-width: 0; overflow: hidden; }
.columns h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
/* Phones: author gets its own line, label and follow sit just below it. */
@media (max-width: 559px) {
  .card-head { flex-wrap: wrap; row-gap: .35rem; }
  .card-head .who { flex: 1 1 100%; }
  .card-head .who + .kind { margin-left: calc(40px + .5rem); }
  .card-head .followbtn, .card-head form { margin-left: auto; }
}

/* Open on your phone */
.phone { text-align: center; }
.phone-steps { text-align: left; max-width: 26rem; margin: 0 auto 1rem; }
.qr { width: min(280px, 80vw); margin: 0 auto; background: #fff; padding: .5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.qr svg { display: block; width: 100%; height: auto; }
.phone-addr strong { font-size: 1.3rem; word-break: break-all; }

/* Public test: slim strip under the top bar */
.teststrip { text-align: center; font-size: .8rem; padding: .35rem 1rem; background: #fff4cc; color: #6b4e00; }
.teststrip a { color: inherit; font-weight: 700; }
.feedback textarea { min-height: 9rem; }
.temp-pass { font-size: 1.2rem; font-family: ui-monospace, monospace; background: #fff4cc; padding: .4rem .7rem; border-radius: 8px; display: inline-block; }
.req { color: var(--accent); font-weight: 800; }
.photo-hint { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; }
/* Cancel / remove link / delete */
.form-actions { display: flex; gap: .6rem; align-items: center; }
.form-actions .btn { flex: 1; text-align: center; justify-content: center; }
.remove-link { margin-top: .6rem; color: var(--accent); }
.menu-body .danger-text { color: #c0362c; font-weight: 700; }
.menu-body a.linkbtn { display: block; margin-bottom: .5rem; }
.image-address { margin-top: -.3rem; } .image-address summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: .9rem; }

/* What should the post show? Photo or clip / Text card / Picture from link */
.media-choice { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; background: var(--surface); }
.media-choice legend { font-weight: 800; padding: 0 .3rem; }
.media-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .8rem; }
.media-tabs .tab { position: relative; }
.media-tabs .tab input { position: absolute; opacity: 0; pointer-events: none; }
.media-tabs .tab span { display: block; text-align: center; padding: .6rem .3rem; border-radius: 12px; border: 1px solid var(--line); font-weight: 800; font-size: .88rem; cursor: pointer; background: var(--bg); }
.media-tabs .tab input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.media-tabs .tab input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.media-panel { display: none; }
.media-choice:has(input[name=media_choice][value=photo]:checked) .panel-photo,
.media-choice:has(input[name=media_choice][value=text]:checked) .panel-text,
.media-choice:has(input[name=media_choice][value=link]:checked) .panel-link { display: block; }
.panel-text { display: none; }
.tc-preview { max-width: 360px; margin: 0 auto .7rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; background: var(--bg); }
.tc-preview img { display: block; width: 100%; height: 100%; }
.tc-row { margin: .55rem 0; }
.tc-label { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .25rem; }
.pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: .88rem; cursor: pointer; }
.pill input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; color: var(--accent); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pill-card_style.pill-peach span { background: #ffe1d6; } .pill-card_style.pill-lilac span { background: #ece2ff; }
.pill-card_style.pill-sky span { background: #dcefff; } .pill-card_style.pill-mint span { background: #d9f4e7; }
.pill-card_style.pill-butter span { background: #fff1bf; } .pill-card_style.pill-night span { background: #2f2547; color: #fff; }
.pill-card_font.pill-serif span { font-family: Georgia, serif; } .pill-card_font.pill-hand span { font-family: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive; }
.pill-card_font.pill-bold span { font-family: 'Arial Black', Impact, sans-serif; }
.media-tabs .tab { display: flex; } .media-tabs .tab span { flex: 1; display: flex; align-items: center; justify-content: center; }

/* ---------- direct messages ---------- */
.dmlink { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.dmlink .icon { width: 22px; height: 22px; }
.dmlink.active { color: var(--accent); border-color: var(--accent); }
.dmbadge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e63e6d; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.msgbtn .icon { width: 1em; height: 1em; }
.profile-head .menu { align-self: center; }
.dm-inbox-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.dm-inbox-head .linkbtn { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); }
.dm-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dm-row { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.dm-row:last-child { border-bottom: 0; }
.dm-row:hover { background: #fffaf5; }
.dm-row .avatar { width: 48px; height: 48px; font-size: 1rem; }
.dm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-row-top { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.dm-row-last { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.dm-row.unread .dm-row-last { color: var(--ink); font-weight: 700; }
.dm-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; font-size: .78rem; }
.dm-row .dot { width: 10px; height: 10px; border-radius: 50%; background: #e63e6d; }
.dm-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: .05rem .45rem; }
.dm-chat { display: flex; flex-direction: column; min-height: calc(100vh - 160px); }
.dm-chat-head { display: flex; align-items: center; gap: .5rem; padding: .25rem 0 .75rem; border-bottom: 1px solid var(--line); position: sticky; top: 60px; background: color-mix(in srgb, var(--bg) 94%, transparent); z-index: 4; }
.dm-chat-head .who-text { display: flex; flex-direction: column; line-height: 1.2; }
.dm-chat-head .menu-body form { margin-bottom: .5rem; }
.dm-back { text-decoration: none; font-size: 1.4rem; padding: 0 .4rem; color: var(--muted); }
.dm-messages { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1rem 0; }
.dm-msg { display: flex; flex-direction: column; max-width: 80%; }
.dm-msg.mine { align-self: flex-end; align-items: flex-end; }
.dm-msg.theirs { align-self: flex-start; align-items: flex-start; }
.dm-bubble { padding: .55rem .85rem; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); }
.dm-msg.mine .dm-bubble { background: linear-gradient(135deg, #ec5f7f, #9567d4); color: #fff; border: 0; border-bottom-right-radius: 6px; }
.dm-msg.theirs .dm-bubble { border-bottom-left-radius: 6px; }
.dm-msg.removed .dm-bubble { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.dm-meta { display: flex; gap: .5rem; font-size: .7rem; color: var(--muted); padding: .1rem .4rem 0; }
.dm-report { color: var(--muted); padding: .45rem .5rem; margin: -.45rem -.5rem; }
.dm-empty { margin: auto 0; }
.dm-note { font-size: .82rem; color: var(--muted); text-align: center; margin: .5rem 0 0; }
.dm-request { background: #fff4d6; border-radius: var(--radius); padding: .75rem .9rem; margin-bottom: .75rem; }
.dm-request p { margin: 0 0 .6rem; }
.dm-cant { text-align: center; color: var(--muted); padding: .75rem; border-top: 1px solid var(--line); }
.dm-compose { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); display: flex; gap: .5rem; align-items: flex-end; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.dm-compose textarea { flex: 1; border: 0; resize: none; font: inherit; padding: .45rem .6rem; background: transparent; color: var(--ink); max-height: 9rem; min-height: 2.2rem; outline: none; }
.dm-compose .btn { padding: .5rem .9rem; }
@media (min-width: 860px) { .dm-compose { bottom: 1rem; } }
.dm-context { font-size: .85rem; color: var(--muted); margin: .25rem 0; }
.blocklist li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.blocklist li a { flex: 1; text-decoration: none; }
.danger-text { color: #c0362c; }
.blocklist, .dm-context { list-style: none; padding: 0; }
.dm-chat-head { background: #fff; margin: 0 -1rem; padding-left: .5rem; padding-right: .5rem; box-shadow: 0 1px 0 var(--line); }
.dm-chat .menu-body .linkbtn, .profile-head .menu-body .linkbtn { display: flex; align-items: center; gap: .4rem; text-align: left; white-space: nowrap; }
.profile-head .menu-body { left: 0; right: auto; }
.dm-chat { min-height: 0; }
.dm-empty { margin: 2rem 0; }
.profile-head .menu { margin-left: auto; }
.profile-head .menu-body { left: auto; right: 0; }

/* ---------- comments: top comment + "More" box ---------- */
.more-comments { margin: .2rem 0 .4rem; }
.more-comments > summary { list-style: none; cursor: pointer; display: inline-block; color: var(--muted); font-weight: 700; font-size: .88rem; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.more-comments > summary::-webkit-details-marker { display: none; }
.more-comments[open] > summary { color: var(--ink); }
.comment-scroll { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; margin-top: .45rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: #fffaf6; }
.comment-scroll .mini-comment { margin: .3rem 0; }
.comment-scroll-all { display: block; font-size: .8rem; color: var(--muted); margin: .4rem 0 .2rem; }
.more-comments.big > summary { font-size: .95rem; padding: .35rem .9rem; margin: .4rem 0; }
.more-comments.big .comment-scroll { max-height: 360px; background: var(--surface); }

/* ---------- Share ---------- */
.sharemenu > summary { list-style: none; cursor: pointer; }
.sharemenu > summary::-webkit-details-marker { display: none; }
.actionbar .sharemenu > summary.act { color: var(--ink); padding: .4rem .55rem; }
.actionbar .sharemenu .menu-body { left: 0; right: auto; top: calc(100% + 4px); min-width: 220px; z-index: 6; }
.sharemenu .menu-body .linkbtn { display: block; width: 100%; text-align: left; padding: .45rem 0; margin: 0; font-size: .95rem; text-decoration: none; color: var(--ink); background: none; border: 0; font-weight: 600; cursor: pointer; }
.sendpost .dm-post { max-width: 340px; margin: .5rem 0 1rem; }
.sendpost-to { display: flex; gap: .5rem; }
.sendpost-to input { flex: 1; min-width: 0; }
.sendlist { list-style: none; padding: 0; margin: 0; }
.sendlist li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sendlist-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dm-post { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .4rem; max-width: 280px; margin-bottom: .2rem; }
.dm-post img, .dm-post video { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.dm-post-text { width: 64px; height: 64px; flex: none; border-radius: 10px; background: var(--bg-2); font-size: .62rem; padding: .3rem; overflow: hidden; }
.dm-post-body { display: flex; flex-direction: column; min-width: 0; font-size: .88rem; line-height: 1.25; }
.dm-post-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-post.gone { color: var(--muted); font-style: italic; padding: .6rem .8rem; }
.actionbar .sharemenu .menu-body { left: auto; right: -4rem; }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.danger-zone a { color: #c0362c; font-weight: 700; }
.deleteacct ul { padding-left: 1.2rem; }

/* House rules and privacy page, Backups, suspended accounts */
.rules h2 { margin-top: 1.6rem; }
.rules ul { padding-left: 1.2rem; line-height: 1.55; }
.rules li { margin: .4rem 0; }
.rules .lede { max-width: none; }
.check.agree { align-items: flex-start; line-height: 1.4; }
.check.agree input { margin-top: .2rem; }
.check.agree a { text-decoration: underline; }
.backup-list li, .account-list li, .suspended-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-list li form.inline, .suspended-list li form.inline { display: inline-block; margin-left: .35rem; }
.backups code { overflow-wrap: anywhere; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; flex: none; }
.backup-list, .account-list, .suspended-list { list-style: none; padding: 0; }

/* ---------- Sign out (top right) and the Notifications bell ---------- */
.signout { margin: 0; flex: none; }
.signoutbtn { display: inline-flex; align-items: center; gap: .3rem; height: 42px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; white-space: nowrap; flex: none; }
.signoutbtn .icon { width: 18px; height: 18px; }
.signoutbtn:hover { border-color: var(--accent); color: var(--accent); }
.signoutbtn.signin { background: var(--grad, var(--accent)); color: #fff; border-color: transparent; }
@media (max-width: 420px) {
  .topbar { gap: .45rem; padding-left: .7rem; padding-right: .7rem; }
  .signoutbtn { padding: 0 .6rem; font-size: .8rem; }
  .signoutbtn .icon { display: none; }
  /* Signed in on a phone: Sign out shrinks to its icon so the search box
     has room to show "Find obsessions" in full. */
  .signout .signoutbtn { width: 42px; padding: 0; justify-content: center; }
  .signout .signoutbtn .icon { display: block; }
  .topsearch input { padding-left: .75rem; padding-right: .2rem; }
  .topsearch input::placeholder { font-size: .9rem; }
  .topsearch button { padding: 0 .6rem 0 .3rem; }
  .signout .signoutbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.topnav a { position: relative; }
.navbadge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: .3rem; border-radius: 999px; background: #e63e6d; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1; vertical-align: 1px; }
.bottomnav .iconwrap { position: relative; display: inline-grid; }
.bottomnav .iconwrap .navbadge { position: absolute; top: -6px; right: -12px; margin: 0; border: 2px solid #fff; }
.bottomnav a.alerts span:last-child { font-size: .66rem; letter-spacing: -.01em; }

.notifications h1 { margin-bottom: .2rem; }
.notif-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: .75rem; }
.notif-row { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: #fffaf5; }
.notif-row.unread { background: #fff4f7; }
.notif-pic { position: relative; flex: none; }
.notif-pic .avatar { width: 44px; height: 44px; font-size: .95rem; }
.notif-emoji { position: absolute; right: -4px; bottom: -4px; font-size: .95rem; background: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.notif-text { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.notif-row .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e63e6d; }

/* ---------- Profile posts: compact picture grid ---------- */
.postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 14px; overflow: hidden; }
@media (min-width: 700px) { .postgrid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
.pg-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #faf3ee; text-decoration: none; color: var(--ink); }
.pg-tile img, .pg-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pg-tile:hover img, .pg-tile:hover video { transform: scale(1.04); }
.pg-text { display: grid; place-items: center; width: 100%; height: 100%; padding: .5rem; text-align: center; font-size: .78rem; font-weight: 600; line-height: 1.25; overflow: hidden; background: linear-gradient(135deg, #fde2e4, #e2ecff); }
.pg-kind { position: absolute; left: 5px; bottom: 5px; padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800; background: rgba(255,255,255,.9); color: var(--ink); }
.pg-play { position: absolute; top: 6px; right: 7px; color: #fff; font-size: .8rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pg-hidden { position: absolute; top: 5px; left: 5px; padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800; background: #222; color: #fff; }
.pg-tile.card-hidden img { opacity: .5; }

/* ---------- Obsessions: new-save number and "your posts were obsessed" ---------- */
.navbadge[hidden] { display: none; }
.newbadge.justsaved { background: #e63e6d; color: #fff; }
.obs-mine { display: flex; align-items: center; gap: .8rem; margin: .8rem 0 1.2rem; padding: .85rem 1rem; border-radius: 16px; text-decoration: none; color: var(--ink); background: linear-gradient(120deg, #fff1e8, #ffe8f0); border: 1px solid #ffd9c7; }
.obs-mine-n { flex: none; font-size: 1.5rem; font-weight: 900; }
.obsessed-total strong { font-weight: 800; }
.pg-fire { position: absolute; right: 5px; bottom: 5px; padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800; background: rgba(255,255,255,.9); color: var(--ink); }

/* Obsessions icon: flame with a heart (2026-11-14).
   Outline + dark heart = "Save to Obsessions"; solid orange + white heart = "In Obsessions". */
:root { --obsess: #ec5530; }
.flame { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; overflow: visible; }
.flame .flame-body { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.flame .flame-heart { fill: currentColor; }
.flame.solid .flame-body,
.bottomnav a.active .flame .flame-body { fill: var(--obsess); stroke: var(--obsess); }
.flame.solid .flame-heart,
.bottomnav a.active .flame .flame-heart { fill: #fff; }
/* the Save to Obsessions button */
.obsessbtn .fire { filter: none; opacity: 1; font-size: 1.1em; display: inline-flex; color: var(--ink); }
@media (hover: hover) { .obsessbtn:not(.on):hover .fire { color: var(--obsess); } }
.topnav a .flame { margin-right: .3em; }
.obsessbtn.on, .actionbar .obsessbtn.on, .pin .obsessbtn.on, .card.post .actionbar .obsessbtn.on { background: var(--obsess); border-color: var(--obsess); color: #fff; }
.obsessbtn.on .fire { color: #fff; }
.obsessbtn.on .flame .flame-body { fill: #fff; stroke: #fff; }
.obsessbtn.on .flame .flame-heart { fill: var(--obsess); }
.obsessbtn.on .count { background: rgba(255,255,255,.25); color: #fff; }
@media (hover: hover) { .obsessbtn.on:hover { background: color-mix(in srgb, var(--obsess) 88%, #000); } }
/* small counts, headings, toast, notifications */
.obsessed .flame, .obsessed-total .flame, .pg-fire .flame, .obs-mine-n .flame, .collection .flame { margin-right: .2em; }
.pg-fire { display: inline-flex; align-items: center; }
.pg-fire .flame { width: 1.1em; height: 1.1em; }
.obs-h .flame { align-self: center; }
.savednote .flame { width: 1.25em; height: 1.25em; }
.toast .flame { margin-right: .4em; }
.toast .flame .flame-body { fill: var(--obsess); stroke: var(--obsess); }
.toast .flame .flame-heart { fill: #fff; }
.notif-emoji .flame { width: 1em; height: 1em; vertical-align: -.15em; }

/* ---------- accounts: confirm email, reset links, practice-mode email ---------- */
.verifystrip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0; text-align: center; font-size: .85rem; padding: .4rem 1rem; background: var(--found-bg); color: var(--found); }
.verifystrip .linkbtn { color: inherit; font-weight: 800; text-decoration: underline; }
.practice-mail { margin: 1rem 0; padding: .9rem 1rem; border: 2px dashed var(--accent-2); border-radius: var(--radius); background: #fffaf0; }
.practice-mail .eyebrow { color: #a35a00; font-weight: 800; margin: 0 0 .3rem; }
.practice-mail p { margin: .3rem 0; }
.ok-notice { background: var(--seller-bg); color: #0a6b45; margin: 0 0 1rem; font-size: .95rem; }
.account-box { margin-top: 2rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.account-box h2 { margin-top: 0; }
.kind.kind-ok { background: var(--seller-bg); color: var(--seller); }
.subtabs { border-bottom: 0; margin-top: -.4rem; }
.subtabs a { font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; border: 0; }
.subtabs a.active { background: var(--ink); color: #fff; }
.breakall { word-break: break-all; }
.outbox li { list-style: none; }

/* ---------- legal pages ---------- */
.draftnote { margin: .8rem 0 1.2rem; padding: .8rem 1rem; border-radius: 12px; background: #fff4cc; color: #6b4e00; border-left: 5px solid var(--accent-2); font-size: .92rem; }
.legal h2 { margin-top: 1.6rem; }

/* ---------- first-time welcome: pick 3 obsessions ---------- */
.welcome { max-width: 760px; margin: 0 auto; padding: 1rem; }
.welcome .lede { font-size: 1.05rem; }
.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1rem 0; }
@media (min-width: 640px) { .interest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .interest-grid { grid-template-columns: repeat(4, 1fr); } }
.interest { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; aspect-ratio: 1 / 1; padding: .8rem .6rem; text-align: center; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); border: 3px solid transparent; transition: transform .12s ease, border-color .12s ease; }
.interest input { position: absolute; opacity: 0; pointer-events: none; }
.interest-art { display: grid; place-items: center; width: 58%; aspect-ratio: 1 / 1; border-radius: 50%; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 16px rgba(120, 50, 20, .08); transition: transform .15s ease; }
.interest-art .caticon { width: 70%; height: 70%; }
.interest:hover .interest-art { transform: translateY(-2px) rotate(-3deg); }
.interest-label { position: relative; z-index: 1; font-weight: 800; line-height: 1.2; font-size: 1.02rem; }
.interest-tick { position: absolute; z-index: 2; top: .5rem; right: .5rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: transparent; font-weight: 900; border: 2px solid rgba(0, 0, 0, .08); }
.interest:has(input:checked) { border-color: var(--accent); transform: scale(.97); }
.interest:has(input:checked) .interest-tick { background: var(--accent); color: #fff; border-color: #fff; }
.interest:has(input:focus-visible) { outline: 3px solid var(--found); outline-offset: 2px; }
.welcome-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; position: sticky; z-index: 3; bottom: calc(80px + env(safe-area-inset-bottom)); padding: .6rem .8rem; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .welcome-actions { bottom: 0; } }
.welcome-skip { margin-top: .5rem; display: block; }

/* ---------- Share on product pages and profiles ---------- */
.sharemenu > summary.btn { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); padding: .55rem .9rem; }
.actions .sharemenu .menu-body, .profile-head .sharemenu .menu-body { left: 0; right: auto; top: calc(100% + 4px); min-width: 220px; z-index: 6; }
.profile-head .sharemenu .menu-body .linkbtn { display: block; }

/* ---------- collections ---------- */
.listcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: .5rem 0 1rem; }
.listcard { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.listcard-cover { display: block; aspect-ratio: 4 / 3; background: var(--bg-2); }
.listcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.listcard-empty { display: grid; place-items: center; height: 100%; }
.listcard-empty .flame { width: 2.4rem; height: 2.4rem; opacity: .5; }
.listcard-body { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .7rem .7rem; font-size: .9rem; line-height: 1.3; }
.listcard-body .muted { font-size: .78rem; }
.newlist { display: flex; gap: .5rem; align-items: center; margin: .4rem 0 1rem; }
.newlist input { flex: 1; min-width: 0; }
.addlist { position: relative; margin: .6rem 0; }
.addlist > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.addlist > summary::-webkit-details-marker { display: none; }
.addlist-body { margin-top: .5rem; padding: .7rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.addlist-list { margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.listpick { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.listpick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.listpick-tick { font-weight: 900; }
.collection .eyebrow a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; font-weight: 700; }
.collection-actions { margin: .4rem 0 1rem; gap: .5rem; }
.list-edit { margin-top: 2rem; }
.list-edit summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.small-remove { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.tolist { display: block; font-size: .82rem; margin-top: .35rem; color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- verified shop badge ---------- */
.shopbadge.verified { display: inline-flex; align-items: center; gap: .2rem; background: #e3f0ff; color: #1557c0; }
.shopbadge .seal { width: .95em; height: .95em; flex: none; }

/* ---------- shop dashboard ---------- */
.dashboard { max-width: 760px; margin: 0 auto; padding: 1rem; }
.dash-stats div { gap: .1rem; }
.dash-stats .stat-saves strong { color: var(--save); }
.dash-stats .stat-clicks strong { color: var(--click); }
.trend { font-weight: 700; }
.trend.up { color: var(--seller); }
.trend.down { color: var(--danger); }
.daychart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: .5rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.daycol { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 1px; min-width: 2px; }
.bar { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.bar-saves { background: var(--save); }
.bar-clicks { background: var(--click); }
.h0 { height: 0; } .h1 { height: 10%; } .h2 { height: 20%; } .h3 { height: 30%; } .h4 { height: 40%; } .h5 { height: 50%; }
.h6 { height: 60%; } .h7 { height: 70%; } .h8 { height: 80%; } .h9 { height: 90%; } .h10 { height: 100%; }
.daycol .bar.h5, .daycol .bar.h6, .daycol .bar.h7, .daycol .bar.h8, .daycol .bar.h9, .daycol .bar.h10 { max-height: 100%; }
.daychart-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin: .25rem .3rem 0; }
.legend { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.key { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; }
.key-saves { background: var(--save); }
.key-clicks { background: var(--click); margin-left: .6rem; }
.clicksfrom li { padding: .2rem 0; }
.toplist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; counter-reset: top; }
.toprow { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; }
.toprow img, .topimg-empty { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--bg-2); }
.topname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.topname strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topname .muted { font-size: .8rem; }
.topnums { display: flex; gap: .8rem; font-weight: 800; }
.topnums span { display: inline-flex; align-items: center; gap: .2rem; }
.topnums .flame { width: 1em; height: 1em; }
.verify-status { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.verify-ask { margin: .5rem 0 1rem; }
.verify-ask > summary { list-style: none; cursor: pointer; display: inline-flex; }
.verify-ask > summary::-webkit-details-marker { display: none; }
.verify-ask form { margin-top: .6rem; }
.daycol { overflow: hidden; }

/* ---------- category icons (src/caticons.js): one set, used everywhere ---------- */
.caticon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.28em; }
.chip .caticon { width: 1.35em; height: 1.35em; margin-left: -.2rem; }
.catcard { align-items: flex-start; gap: .2rem; }
.catcard .caticon.big { width: 3.2rem; height: 3.2rem; margin-bottom: .35rem; padding: .35rem; border-radius: 16px; background: rgba(255, 255, 255, .72); box-sizing: content-box; }
.cattag { display: inline-flex; align-items: center; gap: .3rem; }
.eyebrow .cattag .caticon { width: 1.5em; height: 1.5em; }
h1 .h1icon { width: 1.3em; height: 1.3em; margin-right: .35rem; vertical-align: -0.25em; }
h2 .cattag { display: inline; white-space: nowrap; }
h2 .cattag .caticon { width: 1.2em; height: 1.2em; margin-right: .25rem; vertical-align: -0.22em; }
.catpick { display: flex; align-items: center; gap: .45rem; }
.catpick select { flex: 1; min-width: 0; }
.catpick-icon { flex: none; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 12px; background: var(--wash-peach, #fff0e8); }
.catpick-icon > span { display: grid; place-items: center; }
.catpick-icon > [hidden] { display: none; }
.catpick-icon .caticon { width: 1.7rem; height: 1.7rem; }

/* ---------- Search suggestions (dropdown under "Find obsessions") ---------- */
.topsearch { position: relative; overflow: visible; }
.topsearch input::-webkit-search-cancel-button { cursor: pointer; }
.suggest { position: absolute; top: calc(100% + 8px); left: -2px; right: -2px; min-width: 340px; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgba(60, 30, 60, .16), 0 2px 6px rgba(60, 30, 60, .06); padding: .35rem; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.suggest[hidden] { display: none; }
.suggest-head { margin: .4rem .6rem .1rem !important; line-height: 1.2; padding: 0; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest-head[hidden] { display: none; }
.suggest-list { list-style: none; margin: 0; padding: 0; }
.suggest-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem; border-radius: 12px; cursor: pointer; color: var(--ink); min-height: 48px; -webkit-tap-highlight-color: transparent; }
.suggest-item.active, .suggest-item:hover { background: var(--bg-2, #fff4ef); }
.suggest-item.active { box-shadow: inset 3px 0 0 var(--accent); }
.suggest-art { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: #faf7fb; color: var(--muted); }
.suggest-art svg { width: 20px; height: 20px; }
.suggest-art .caticon { width: 30px; height: 30px; }
.suggest-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-art .avatar { width: 36px; height: 36px; font-size: .75rem; }
.suggest-shop .suggest-art { border-radius: 50%; }
.suggest-search .suggest-art { background: transparent; }
.suggest-item.active .suggest-art, .suggest-item:hover .suggest-art { color: var(--accent); }
.suggest-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.suggest-label { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-label b { font-weight: 800; }
.suggest-label .typed { font-weight: 500; }
.suggest-hint { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-category .suggest-hint, .suggest-shop .suggest-hint { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
@media (max-width: 640px) {
  /* Phones: the list spans the whole screen width under the top bar. */
  .suggest { position: fixed; top: 64px; left: 8px; right: 8px; min-width: 0; max-height: calc(100vh - 64px - 90px); max-height: calc(100dvh - 64px - 90px); }
  .suggest-item { min-height: 52px; }
}
/* Moderators: Searches page */
.search-log { list-style: none; padding: 0; margin: .5rem 0 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search-log li { display: flex; align-items: center; gap: .75rem; padding: .55rem .85rem; border-bottom: 1px solid var(--line); }
.search-log li:last-child { border-bottom: 0; }
.search-log .term { font-weight: 700; flex: 1; overflow-wrap: anywhere; }
/* The rounded box already lights up when focused; no second ring inside it. */
.topsearch input:focus, .topsearch input:focus-visible { outline: none; box-shadow: none; }
.topsearch .suggest { display: block; gap: 0; margin: 0; }
.topsearch .suggest[hidden] { display: none; }

/* Saved confirmation with next steps (app.js savedSheet) */
.savedsheet { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 51;
  width: min(92vw, 380px); background: #2f2a33; color: #fff; border-radius: 18px; padding: .8rem .9rem .9rem; box-shadow: 0 14px 36px rgba(0,0,0,.25); transition: opacity .2s ease, transform .2s ease; }
.savedsheet.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (min-width: 860px) { .savedsheet { bottom: 2rem; } }
@media (prefers-reduced-motion: reduce) { .savedsheet { transition: none; } }
.savedsheet-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .65rem; font-weight: 800; }
.savedsheet-title span { flex: 1; }
.savedsheet .flame { width: 1.3em; height: 1.3em; }
.savedsheet .flame .flame-body { fill: var(--obsess); stroke: var(--obsess); }
.savedsheet .flame .flame-heart { fill: #fff; }
.savedsheet-x { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .1rem .35rem; opacity: .8; }
.savedsheet-actions { display: flex; gap: .5rem; }
.savedsheet-actions .btn { flex: 1; background: #fff; color: #2f2a33; }
.savedsheet-actions .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }

/* Collections are public: say so on the button */
.newlist-note { margin: .35rem 0 0; }

/* New message (inbox) */
.dm-inbox-head { align-items: center; }
.dm-inbox-head .btn { gap: .35rem; }
.dm-inbox-safety { margin: -.3rem 0 .6rem; }
.dm-empty-inbox { text-align: center; }
.dm-new .dm-chat-head h1 { margin: 0; font-size: 1.3rem; }
.dm-find { display: flex; gap: .5rem; margin: .8rem 0; }
.dm-find input { flex: 1; min-width: 0; }
.dm-pick .sendlist-name .fineprint { display: block; margin: .1rem 0 0; }
.btn.disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* Sample shop links: clearly not a real store */
.buybar .buy.demo { background: var(--surface); color: var(--ink); border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: none; }
.buybar .buy.demo:hover { box-shadow: none; }
.sampletag { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--line); color: var(--ink); border-radius: 6px; padding: .05rem .4rem; margin-right: .25rem; }

/* Demo shop pages (src/demoshop.js): a stand-in for a sample seller's website */
.demoshop { max-width: 960px; margin: 0 auto; }
.demoshop-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: var(--tried-bg, #fff5e6); border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 16px; padding: .8rem 1rem; margin-bottom: 1rem; }
.demoshop-banner p { flex: 1 1 280px; margin: 0; }
.demoshop-site { background: #fffdf9; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; font-family: Georgia, 'Times New Roman', serif; color: #2b2622; }
.demoshop-site .btn, .demoshop-site .fineprint, .demoshop-site .muted { font-family: system-ui, sans-serif; }
.demoshop-head { display: flex; align-items: center; gap: .8rem; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1.1rem; }
.demoshop-head > div { flex: 1; min-width: 0; }
.demoshop-head p { margin: 0; }
.demoshop-name { font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.demoshop-product { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .demoshop-product { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.demoshop-img img { width: 100%; border-radius: 14px; aspect-ratio: 1; object-fit: cover; background: #f3eee7; }
.demoshop-img .textcard { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; padding: 1rem; text-align: center; }
.demoshop-info h1 { margin: 0 0 .3rem; font-size: 1.7rem; }
.demoshop-price { font-size: 1.3rem; margin: 0 0 .8rem; }
.demoshop-info .btn[disabled] { opacity: .55; cursor: not-allowed; width: 100%; }
.demoshop-h { margin: 1.6rem 0 .7rem; font-size: 1.2rem; }
.demoshop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.demoshop-tile { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: inherit; }
.demoshop-tile-img img, .demoshop-tile-img .textcard { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: grid; place-items: center; background: #f3eee7; }
.dm-inbox-safety .linkbtn { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); }
.buybar.demo .dest { display: block; }
.sampletag { white-space: nowrap; }
.newlist { flex-wrap: wrap; }
.newlist input { flex: 1 1 12rem; }
.demoshop-head { flex-wrap: wrap; }

/* Moderator tools on a post, and the delete confirmation page */
.mod-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .8rem 0; padding: .6rem .8rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.mod-tools .eyebrow { margin-right: .3rem; }
.mod-thumb { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; margin: .4rem 0; object-fit: cover; }
a.btn.danger { text-decoration: none; }
.avatar.team { background: #fde7e3; font-size: 1.2rem; }

/* "Picture from link": preview, loading and the friendly fallback */
.link-picture { margin-bottom: .6rem; }
.lp-ok img { display: block; max-width: 100%; max-height: 320px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: var(--shadow); }
.lp-ok p { margin: .5rem 0 0; font-weight: 700; color: #2f7d4f; }
.lp-ok .linkbtn { font-weight: 600; margin-left: .3rem; }
.lp-failed { padding: .7rem .8rem; border-radius: 12px; background: #fff6e8; border: 1px solid #f3d29b; margin-bottom: .6rem; }
.lp-failed p { margin: 0 0 .5rem; }
.lp-failed .row { gap: .5rem; }
.lp-loading { display: flex; align-items: center; gap: .5rem; color: var(--muted); margin: .3rem 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent, #e0565b); animation: lp-spin .8s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* Post photos show whole, never heavily cropped: the photo is fitted inside
   the square and a blurred copy of it fills the space around it. */
.media.fit { position: relative; background: #fbf7f3; }
.media.fit .media-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.2); transform: scale(1.3); opacity: .35; pointer-events: none; }
.media.fit .media-main { position: relative; width: 100%; height: 100%; object-fit: contain; }
