/* Facebuck — light, flat and minimal: rough-white page with a faint paper grain, warm off-white cards with hairline borders,
   one accent (matte blue), Inter throughout (no display face), pill buttons and tabs, monochrome line icons. */
:root {
  --bg: #f3f0e8; --card: #fbfaf6; --raised: #f3f0e8; --hover: #ece8de; --btn2: #ece8de; --btn2-hover: #e4dfd3;
  --text: #14171c; --text2: #6b6a64; --text3: #9a978e; --divider: #e4dfd3; --divider-soft: #ece8de; --border-strong: #d3cdbf;
  --blue: #2f5a9e; --blue-hover: #274c86; --blue-tint: #e7ecf5; --blue-text: #2f5a9e; --ring: 0 0 0 3px rgba(47, 90, 158, .18);
  --green: #1f7a46; --green-tint: #eef6f1; --red: #b93a3a; --red-tint: #fbf1f1; --amber: #8a6416; --amber-tint: #faf5e9;
  --shadow: 0 1px 2px rgba(20, 23, 28, .04);
  --shadow-hi: 0 12px 32px rgba(20, 23, 28, .08), 0 1px 2px rgba(20, 23, 28, .04);
  --shadow-bar: none;
  --r: 12px; --r-sm: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: var(--font);
  --top: 56px;
  /* Faint paper grain over --bg: SVG fractal noise, tiled (img-src allows data:). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.16'/%3E%3C/svg%3E");
  color-scheme: light;
}
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) var(--grain) repeat; background-size: 180px 180px; color: var(--text); font-family: var(--font); font-size: 14.5px; line-height: 1.45; letter-spacing: -.006em; font-variant-numeric: tabular-nums; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg, img.mark { flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text2); }
.up { color: var(--green); }
.down { color: var(--red); }
.blue { color: var(--blue-text); }
.num { font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- cards & buttons ---------- */
.card { background: var(--card); border: 1px solid var(--divider); border-radius: var(--r); box-shadow: none; }
.card-pad { padding: 16px; }
.card-title { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-h h2 { font-size: 14px; font-weight: 500; color: var(--text2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--divider); border-radius: 999px; background: var(--card); color: var(--text); font-weight: 500; font-size: 14px; letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--hover); border-color: var(--border-strong); }
.btn:active { background: var(--btn2-hover); }
.btn:focus-visible { outline: 0; box-shadow: var(--ring); border-color: var(--blue); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-tint { background: var(--card); color: var(--text); }
.btn-tint:hover { background: var(--hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--text); }
.btn-lg { min-height: 40px; padding: 0 18px; }
.btn-block { width: 100%; }
.link { color: var(--blue-text); font-weight: 500; }
.link:hover { text-decoration: underline; }
.handle { font-weight: 500; color: var(--text); }
.handle:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--card); border: 1px solid var(--divider); color: var(--text2); white-space: nowrap; }
.pill.claimed { color: var(--text); }
.pill.claimed svg { color: var(--blue); }
.pill.pos { background: var(--green-tint); border-color: transparent; color: var(--green); }
.pill.neg { background: var(--red-tint); border-color: transparent; color: var(--red); }

/* ---------- avatars & coin art ---------- */
.av { position: relative; flex: none; width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; display: grid; place-items: center; font-weight: 500; color: var(--text); background: var(--hover); font-size: calc(var(--s, 40px) * .36); letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(20, 23, 28, .06); }
.av.unclaimed { background: var(--hover); color: #b3afa5; }
.av.unclaimed svg { width: 56%; height: 56%; }
.av .badge { position: absolute; right: -2px; bottom: -2px; width: max(14px, calc(var(--s) * .32)); height: max(14px, calc(var(--s) * .32)); border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; border: 2px solid var(--card); }
.av .badge svg { width: 60%; height: 60%; }
.coin { flex: none; border-radius: var(--r-sm); overflow: hidden; display: block; box-shadow: inset 0 0 0 1px rgba(20, 23, 28, .06); }
.coin svg { display: block; width: 100%; height: 100%; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); background: rgba(251, 250, 246, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; gap: 8px; }
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 17px; letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.logo .mark { width: 30px; height: 30px; }
.logo .wordmark { display: inline; }
@media (min-width: 700px) and (max-width: 1239px) { .logo .wordmark { display: none; } }
.search { display: none; align-items: center; gap: 8px; height: 36px; width: 240px; padding: 0 14px; border-radius: 999px; background: var(--hover); border: 1px solid transparent; color: var(--text2); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.search:focus-within { background: var(--card); border-color: var(--blue); box-shadow: var(--ring); }
.search input { border: 0; background: transparent; outline: 0; width: 100%; font-size: 14px; color: var(--text); }
.search input::placeholder { color: var(--text2); }
.tb-tabs { display: none; height: var(--top); }
.tb-tabs a { position: relative; display: grid; place-items: center; width: 96px; height: 100%; color: var(--text2); transition: color .15s; }
.tb-tabs a::before { content: ""; position: absolute; inset: 8px 6px; border-radius: 999px; transition: background-color .15s; z-index: -1; }
.tb-tabs a { isolation: isolate; }
.tb-tabs a:hover { color: var(--text); }
.tb-tabs a:hover::before { background: var(--hover); }
.tb-tabs a[aria-current="page"] { color: var(--text); }
.tb-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; background: var(--blue); border-radius: 2px 2px 0 0; }
.tb-tabs a[aria-current="page"]:hover::before { background: transparent; }
.tb-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.circle-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--divider); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--text); transition: background-color .15s; }
.circle-btn:hover { background: var(--btn2-hover); }
.connect { display: none; }
@media (min-width: 700px) { .search { display: flex; } .connect { display: inline-flex; } }
@media (min-width: 1000px) { .tb-tabs { display: flex; } .topbar { display: grid; } }
/* mobile tab row under the header, like Facebook's mobile web */
.mtabs { position: sticky; top: var(--top); z-index: 49; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-bottom: 1px solid var(--divider); }
.mtabs a { display: grid; place-items: center; height: 48px; color: var(--text2); position: relative; }
.mtabs a[aria-current="page"] { color: var(--text); }
.mtabs a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; width: 28px; margin-left: -14px; bottom: 0; height: 2px; background: var(--blue); border-radius: 2px 2px 0 0; }

@media (min-width: 1000px) { .mtabs { display: none; } }

/* ---------- shared: list rows (shortcuts, contacts) ---------- */
.rows { display: grid; gap: 2px; }
.row-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--text); font-weight: 400; transition: background-color .15s; }
a.row-item:hover, button.row-item:hover { background: var(--hover); }
button.row-item { border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; }
.row-item .ico { width: 28px; height: 28px; display: grid; place-items: center; background: transparent; color: var(--text2); flex: none; }
.row-item .ico.blue { color: var(--text); }
.row-item[aria-current="true"] { background: var(--hover); font-weight: 500; }
.row-item[aria-current="true"] .ico { color: var(--text); }
.row-item .meta { margin-left: auto; font-size: 13px; color: var(--text2); white-space: nowrap; }
.row-item .two { min-width: 0; line-height: 1.25; }
.row-item .two small { display: block; font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr { height: 1px; background: var(--divider); margin: 10px 10px; }
.side-label { font-size: 12.5px; font-weight: 500; color: var(--text2); padding: 8px 10px 4px; }

/* ---------- shared: filter pills ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--divider); background: var(--card); color: var(--text2); font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.chip-btn:hover { background: var(--hover); color: var(--text); }
.chip-btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chip-btn .n { font-size: 12px; color: var(--text3); }
.chip-btn[aria-pressed="true"] .n { color: rgba(255, 255, 255, .6); }

/* ---------- shared: feed post ---------- */
.post { overflow: hidden; transition: box-shadow .2s; }
.post-h { display: flex; gap: 8px; align-items: center; padding: 12px 16px 0; }
.post-h .who { min-width: 0; flex: 1; line-height: 1.3; }
.post-h .title { font-weight: 500; letter-spacing: -.01em; }
.post-h .title .tk { font-weight: 600; }
.post-h .sub { font-size: 12.5px; color: var(--text2); }
.post-h .sub .pill { vertical-align: 1px; }
.post-h .sub a:hover { text-decoration: underline; }
.post-text { padding: 8px 16px 12px; color: var(--text); }
.post-media { display: block; aspect-ratio: 1.91 / 1; background: var(--raised); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.post-media svg { display: block; width: 100%; height: 100%; }
.post-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; font-size: 13.5px; color: var(--text2); }
.post-stats .rx { display: inline-flex; align-items: center; gap: 6px; }
.post-stats .dots { display: inline-flex; }
.post-stats .dots i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); background: var(--hover); font-style: normal; border: 2px solid var(--card); margin-left: -4px; }
.post-stats .dots i:first-child { margin-left: 0; }
.post-stats .dots i svg { width: 11px; height: 11px; }
.post-stats b { color: var(--text); font-weight: 500; }
.post-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 12px; padding: 6px 0; border-top: 1px solid var(--divider); }
.post-actions > * { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--text2); font-weight: 500; font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s; }
.post-actions > *:hover { background: var(--hover); color: var(--text); }
.post-actions .claim { color: var(--blue-text); }
.post-actions .claim:hover { color: var(--blue-text); }
.post-note { padding: 0 16px 12px; font-size: 12px; color: var(--text3); }

/* ---------- shared: token listing card ---------- */
.listing { display: grid; gap: 4px; padding: 8px; border-radius: var(--r); transition: background-color .15s, box-shadow .2s, transform .2s; cursor: pointer; position: relative; }
.listing:hover { background: var(--hover); }
.listing .coin { width: 100%; aspect-ratio: 1; margin-bottom: 6px; }
.listing .price { font-size: 18px; font-weight: 500; letter-spacing: -.03em; }
.listing .price small { font-size: 13px; font-weight: 500; color: var(--text2); margin-left: 2px; letter-spacing: 0; }
.listing .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing .s { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing .tag { position: absolute; top: 16px; left: 16px; }
.listing a.cover-link::after { content: ""; position: absolute; inset: 0; }

/* =========================================================
   A) FEED
   ========================================================= */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 8px 48px; max-width: 1400px; margin: 0 auto; }
.feed-left, .feed-right { display: none; }
.feed-center { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; max-width: 680px; margin: 0 auto; align-content: start; min-width: 0; }
.feed-center > * { min-width: 0; }
@media (min-width: 960px) { .feed-layout { grid-template-columns: minmax(0, 1fr) 320px; padding: 16px 16px 48px; } .feed-right { display: block; } }
@media (min-width: 1280px) { .feed-layout { grid-template-columns: 280px minmax(0, 1fr) 360px; max-width: none; padding: 16px 8px 48px; } .feed-left { display: block; } }
.feed-left, .feed-right { position: sticky; top: calc(var(--top) + 16px); align-self: start; max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; scrollbar-width: thin; }
.composer { padding: 12px 16px; }
.composer .top { display: flex; gap: 8px; align-items: center; }
.composer .fake-input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; background: var(--raised); display: flex; align-items: center; padding: 0 16px; color: var(--text2); cursor: text; border: 1px solid var(--divider); text-align: left; font-size: 14.5px; transition: background-color .15s, border-color .15s; }
.composer .fake-input { display: block; line-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .fake-input:hover { background: var(--hover); border-color: var(--border-strong); }
.composer form { flex: 1; display: flex; min-width: 0; }
.composer input.url { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 0; background: var(--raised); padding: 0 16px; font-size: 16px; outline: 0; }
.composer input.url:focus { box-shadow: 0 0 0 2px var(--blue); }
.composer .bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--divider); }
.composer .bottom a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: var(--r); color: var(--text2); font-weight: 600; font-size: 14px; transition: background-color .15s; }
.composer .bottom a:hover { background: var(--hover); }
.composer .bottom svg { width: 22px; height: 22px; }
.feed-tabs { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trend-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r); transition: background-color .15s; }
.trend-row:hover { background: var(--hover); }
.trend-row .coin { width: 36px; height: 36px; }
.trend-row .two { min-width: 0; flex: 1; line-height: 1.25; }
.trend-row .two small { display: block; font-size: 13px; color: var(--text2); }
.contact { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); transition: background-color .15s; }
.contact:hover { background: var(--hover); }
.contact .two { min-width: 0; flex: 1; line-height: 1.25; }
.contact .two small { display: block; font-size: 12.5px; color: var(--text2); }
.contact .claim-mini { opacity: 0; transition: opacity .15s; }
.contact:hover .claim-mini, .contact:focus-within .claim-mini { opacity: 1; }
@media (hover: none) { .contact .claim-mini { opacity: 1; } }
.sponsored { padding: 12px; display: grid; gap: 10px; }
.sponsored .coin { width: 100%; aspect-ratio: 1.91/1; }

/* =========================================================
   B) PROFILE
   ========================================================= */
.prof-head { background: var(--card); box-shadow: var(--shadow-bar); }
.prof-head-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.cover { position: relative; height: 200px; border-radius: 0 0 var(--r) var(--r); overflow: hidden; background: var(--blue); }
@media (min-width: 700px) { .cover { height: 350px; } }
.cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .edit { position: absolute; right: 16px; bottom: 16px; }
.prof-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid var(--divider); }
@media (min-width: 900px) { .prof-id { flex-direction: row; align-items: flex-end; text-align: left; padding: 0 16px 16px; } }
.prof-avatar { width: 168px; height: 168px; border-radius: 50%; margin-top: -84px; border: 4px solid var(--card); background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); position: relative; flex: none; }
@media (min-width: 900px) { .prof-avatar { margin-top: -44px; } }
.prof-avatar svg { width: 92px; height: 92px; }
.prof-avatar .badge { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--btn2); color: var(--text); display: grid; place-items: center; border: 2px solid var(--card); }
.prof-names { flex: 1; min-width: 0; padding-bottom: 8px; }
.prof-names h1 { font-size: 32px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.prof-names .verified { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-grid; place-items: center; }
.prof-names .stats { color: var(--text2); font-weight: 600; margin-top: 4px; }
.prof-names .faces { display: flex; justify-content: center; margin-top: 8px; }
@media (min-width: 900px) { .prof-names .faces { justify-content: flex-start; } }
.prof-names .faces .av { --s: 32px; border: 2px solid var(--card); margin-left: -8px; }
.prof-names .faces .av:first-child { margin-left: 0; }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-bottom: 8px; }
.prof-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.prof-tabs button { position: relative; height: 56px; padding: 0 16px; border: 0; background: transparent; color: var(--text2); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; border-radius: var(--r); }
.prof-tabs button::before { content: ""; position: absolute; inset: 6px 0; border-radius: var(--r); z-index: 0; transition: background-color .15s; }
.prof-tabs button:hover::before { background: var(--hover); }
.prof-tabs button span { position: relative; }
.prof-tabs button[aria-selected="true"] { color: var(--blue-text); }
.prof-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; }
.prof-tabs button[aria-selected="true"]:hover::before { background: transparent; }
.prof-body { max-width: 1100px; margin: 0 auto; padding: 16px 8px 48px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .prof-body { grid-template-columns: 360px minmax(0, 1fr); padding: 16px 16px 48px; } .prof-left { position: sticky; top: calc(var(--top) + 16px); align-self: start; } }
.prof-left, .prof-right { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.intro p.bio { text-align: center; padding: 4px 0 12px; border-bottom: 1px solid var(--divider); margin-bottom: 12px; }
.intro ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.intro li { display: flex; gap: 10px; align-items: center; }
.intro li svg { color: var(--text2); width: 20px; height: 20px; }
.intro li b { font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: var(--r); overflow: hidden; }
.photo-grid a { aspect-ratio: 1; display: block; position: relative; }
.photo-grid a span { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 5px; border-radius: 4px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.payout-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--divider-soft); }
.payout-row:first-child { border-top: 0; }
.payout-row .two { flex: 1; min-width: 0; line-height: 1.3; }
.payout-row .two small { display: block; font-size: 13px; color: var(--text2); }
.payout-row .amt { font-weight: 600; white-space: nowrap; }
.about dl { margin: 0; display: grid; gap: 0; }
.about dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider-soft); }
.about dl div:first-child { border-top: 0; }
.about dt { color: var(--text2); }
.about dd { margin: 0; font-weight: 600; text-align: right; }

/* =========================================================
   C) MARKETPLACE / EXPLORE
   ========================================================= */
.mkt-layout { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.mkt-side { display: none; }
@media (min-width: 900px) {
  .mkt-layout { grid-template-columns: 360px minmax(0, 1fr); }
  .mkt-side { display: block; position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; background: var(--card); box-shadow: var(--shadow-bar); padding: 16px 8px 24px; }
}
.mkt-side h1 { font-size: 24px; font-weight: 600; padding: 0 8px 12px; }
.mkt-side .search { display: flex; width: auto; margin: 0 8px 12px; }
.mkt-side .launch { margin: 0 8px 8px; width: calc(100% - 16px); }
.mkt-side .side-label { font-size: 17px; color: var(--text); }
.mkt-filters { display: grid; gap: 12px; padding: 4px 8px; }
.mkt-filters label { display: grid; gap: 6px; font-size: 13px; color: var(--text2); font-weight: 600; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.field { height: 40px; border-radius: var(--r-sm); border: 1px solid var(--divider); background: var(--card); padding: 0 10px; font-size: 15px; width: 100%; color: var(--text); }
.field:focus { outline: 0; border-color: var(--blue); box-shadow: var(--ring); }
.seg-radio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--raised); padding: 4px; border-radius: var(--r); }
.seg-radio button { height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; font-weight: 600; font-size: 13px; color: var(--text2); cursor: pointer; }
.seg-radio button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.mkt-main { padding: 16px 8px 48px; min-width: 0; }
@media (min-width: 900px) { .mkt-main { padding: 20px 24px 48px; } }
.mkt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 8px 12px; }
.mkt-head h2 { font-size: 20px; font-weight: 600; }
.mkt-head .loc { color: var(--blue-text); font-weight: 600; font-size: 15px; display: inline-flex; gap: 4px; align-items: center; }
.mkt-mobile { display: grid; gap: 12px; padding: 0 8px 12px; }
@media (min-width: 900px) { .mkt-mobile { display: none; } }
.mkt-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px 16px; }
@media (min-width: 640px) { .mkt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mkt-stats .card { padding: 12px 14px; }
.mkt-stats small { display: block; color: var(--text2); font-size: 13px; font-weight: 600; }
.mkt-stats .num { font-size: 20px; margin-top: 2px; display: block; }
.mkt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 640px) { .mkt-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; } }
.empty { padding: 48px 16px; text-align: center; color: var(--text2); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 16px; bottom: 16px; z-index: 90; background: var(--text); color: #fff; box-shadow: var(--shadow-hi); border-radius: 999px; padding: 10px 18px; font-weight: 500; font-size: 14px; max-width: calc(100% - 32px); animation: tin .2s ease; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.foot-note { max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; font-size: 12px; color: var(--text2); }

/* ---------- variants index ---------- */
.vi { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; }
.vi h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.vi .lead { color: var(--text2); margin: 8px 0 24px; font-size: 17px; max-width: 60ch; }
.vi-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.vi-card { overflow: hidden; transition: box-shadow .2s, transform .2s; display: grid; }
.vi-card:hover { border-color: var(--border-strong); }
.vi-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; display: block; background: var(--raised); border-bottom: 1px solid var(--divider-soft); }
.vi-card .b { padding: 14px 16px 16px; display: grid; gap: 4px; }
.vi-card .b strong { font-size: 17px; }
.vi-card .b span { color: var(--text2); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* =========================================================
   A) FEED — Facebook home specifics
   ========================================================= */
.logo .mark.round { border-radius: 50%; }
.tb-right .avatar-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: transparent; }
.tb-right .avatar-btn .av { --s: 36px !important; }
.badge-n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.circle-btn { position: relative; }
/* nav icons: monochrome line icons, no coloured circles */
.nav-ico { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text2); background: transparent; flex: none; transition: color .15s; }
.nav-ico svg { width: 20px; height: 20px; stroke-width: 1.5; }
.row-item:hover .nav-ico, .row-item[aria-current="true"] .nav-ico { color: var(--text); }
.c-blue, .c-green, .c-purple, .c-orange, .c-teal, .c-pink, .c-yellow, .c-gray { background: transparent; }
.feed-left .row-item { font-weight: 400; }
.feed-left .row-item > .av { --s: 28px !important; font-size: 11px; }
.feed-left .row-item .coin { width: 28px; height: 28px; border-radius: 8px; }
.left-foot { padding: 12px 10px; font-size: 12px; color: var(--text3); line-height: 1.6; }
.left-foot a:hover { text-decoration: underline; }
.composer .acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--divider); }
.composer .acts a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border-radius: 999px; color: var(--text2); font-weight: 500; font-size: 14px; transition: background-color .15s, color .15s; }
.composer .acts a:hover { background: var(--hover); color: var(--text); }
.composer .acts svg { width: 20px; height: 20px; stroke-width: 1.5; }
.composer .acts a { white-space: nowrap; }
@media (max-width: 400px) { .composer .acts a { gap: 6px; font-size: 13px; } .composer .acts svg { width: 18px; height: 18px; } }
.i-red, .i-green, .i-yellow { color: var(--text2); display: inline-grid; }

/* stories strip */
.stories { position: relative; }
.stories-track { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 0; }
.stories-track::-webkit-scrollbar { display: none; }
/* coin cards in the strip: art on top, caption on white below (no gradient scrim) */
.story { position: relative; flex: none; width: 112px; height: 200px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--divider); background: var(--card); display: block; transition: border-color .15s; }
.story:hover { border-color: var(--border-strong); }
.story svg.art, .story img.art { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: calc(100% - 54px); transition: transform .25s ease; border-bottom: 1px solid var(--divider-soft); }
.story:hover svg.art { transform: none; }
.story::after { content: none; }
.story .ring { position: absolute; top: 8px; left: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); display: grid; place-items: center; background: var(--card); }
.story .ring .av { --s: 26px !important; }
.story .cap { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 3; color: var(--text2); font-weight: 400; font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .cap b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.story.create { background: var(--card); }
.story.create::after { display: none; }
.story.create .top { position: absolute; inset: 0 0 54px 0; overflow: hidden; border-bottom: 1px solid var(--divider-soft); }
.story.create .top svg { width: 100%; height: 100%; }
.story.create .plus { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; border: 3px solid var(--card); }
.story.create .plus svg { width: 16px; height: 16px; stroke-width: 2; }
.story.create .lbl { position: absolute; left: 0; right: 0; bottom: 11px; text-align: center; font-weight: 500; font-size: 13px; color: var(--text); z-index: 3; }
.stories .next { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--divider); background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; color: var(--text); z-index: 4; }
.stories .next svg { width: 18px; height: 18px; stroke-width: 1.75; }
.stories .next:hover { background: var(--hover); }
@media (max-width: 700px) { .stories .next { display: none; } }

/* post header controls + multi-image grid */
.post-h .ctl { display: flex; gap: 2px; margin-left: auto; align-self: flex-start; }
.post-h .ctl button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--text3); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.post-h .ctl button svg { width: 18px; height: 18px; }
.post-h .ctl button:hover { background: var(--hover); color: var(--text); }
.post-h .sub .hlink { color: var(--text2); font-weight: 500; }
.post-h .sub .hlink:hover { text-decoration: underline; }
.post-grid { display: grid; gap: 1px; background: var(--divider); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.post-grid.g2 { grid-template-columns: 1fr 1fr; }
.post-grid.g3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.post-grid.g3 a:first-child { grid-row: span 2; }
.post-grid a { display: block; position: relative; overflow: hidden; }
.post-grid a svg { display: block; width: 100%; height: 100%; }
.post-grid.g2 a { aspect-ratio: 1; }
.post-grid.g3 a { aspect-ratio: 1; }
.post-grid.g3 a:first-child { aspect-ratio: auto; }
.post-grid .lab { position: absolute; left: 8px; bottom: 8px; background: var(--card); color: var(--text); border: 1px solid var(--divider); font-weight: 500; font-size: 12px; padding: 1px 8px; border-radius: 999px; }

/* right column (Featured / Claimed today / Is this you?) */
.feed-right .blk { padding: 4px 8px 12px; }
.feed-right .blk-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 4px; }
.feed-right .blk-h h2 { font-size: 12.5px; font-weight: 500; color: var(--text2); letter-spacing: 0; }
.feed-right .blk-h .tools { display: flex; gap: 2px; }
.feed-right .blk-h .tools button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--text2); display: grid; place-items: center; cursor: pointer; }
.feed-right .blk-h .tools button:hover { background: var(--hover); }
.featured { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); transition: background-color .15s; }
.featured:hover { background: var(--hover); }
.featured .coin { width: 88px; height: 88px; border-radius: var(--r-sm); }
.featured .two { min-width: 0; line-height: 1.35; }
.featured .two b { display: block; font-weight: 500; margin-bottom: 2px; }
.featured .two small { display: block; font-size: 12.5px; color: var(--text2); }
.claimed-today { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text2); }
.claimed-today a, .claimed-today b { color: var(--text); font-weight: 500; }
.claimed-today .gift { width: 28px; height: 28px; flex: none; display: grid; place-items: center; color: var(--text2); }
.claimed-today .gift svg { width: 20px; height: 20px; stroke-width: 1.5; }
.contact .av { --s: 32px; }
.contact .dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #2f9e5b; border: 2px solid var(--bg); }
.feed-right .hr { margin: 8px 10px; }
.feed-right .blk-h .tools button svg { width: 16px; height: 16px; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--text); transition: background-color .15s, border-color .15s; }
.fab:hover { background: var(--hover); border-color: var(--border-strong); }

