/* Locker — premium, photo-first, black. One sans (Inter), white for actions,
   grey for everything secondary. Colour is used for state only (late, live). */

:root {
  --bg: #000;
  --s1: #0c0c0c;
  --s2: #141414;
  --s3: #1c1c1c;
  --s4: #262626;
  --line: #1f1f1f;
  --line2: #2e2e2e;
  --ink: #f3f3f3;
  --ink2: #9a9a9a;
  --ink3: #6a6a6a;
  --live: #ff3b30;
  --ok: #34c759;
  --warn: #ffb020;
  --like: #ff3040;
  --col: min(100vw, 430px);
  --tab: 52px;
  --bar: calc(82px + var(--safe-b));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body { color: var(--ink); font: 400 14px/1.35 Inter, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
img { display: block; max-width: 100%; }
.ti { line-height: 1; }
.mu { color: var(--ink2); }
.mu3 { color: var(--ink3); }
.b { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

.app { width: var(--col); margin: 0 auto; min-height: 100dvh; position: relative; padding-bottom: calc(var(--bar) + 8px); }
@media (min-width: 560px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } body { background: #050505; } }

/* ---------- bars */
.top { position: sticky; top: 0; z-index: 30; height: 50px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: rgba(0,0,0,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top .title { font-weight: 700; font-size: 20px; letter-spacing: -.3px; display: flex; align-items: center; gap: 4px; }
.top .title .ti { font-size: 14px; color: var(--ink2); }
.top .sp { flex: 1; }
.top .ic { font-size: 24px; position: relative; }
.top .dot { position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--like); border: 1.5px solid #000; }
.top .back { font-size: 24px; margin-left: -4px; }
.top .h { font-weight: 600; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabbar { position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); width: calc(var(--col) - 24px); height: 62px; border-radius: 31px; padding: 0 6px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(18,18,18,.82); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 34px rgba(0,0,0,.6); z-index: 40; transition: transform .35s var(--ease), opacity .25s; }
.tabbar.hide { transform: translate(-50%, 120px); opacity: 0; pointer-events: none; }
.tabbar .ind { position: absolute; top: 7px; bottom: 7px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 24px; background: #fff; transition: transform .5s cubic-bezier(.3, 1.35, .5, 1); pointer-events: none; }
.tabbar button { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 25px; color: #8e8e8e; transition: color .25s, transform .15s var(--ease); }
.tabbar button .ti { -webkit-text-stroke: .5px currentColor; }
.tabbar button:active { transform: scale(.86); }
.tabbar button.on { color: #000; }
.tabbar button.bump > * { animation: bump .45s var(--ease); }
.tabbar .postb { width: 40px; height: 32px; border-radius: 11px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.tabbar button.on .postb { background: #000; color: #fff; }
.tabbar .me { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255,255,255,.3); }
.tabbar button.on .me { box-shadow: 0 0 0 2px #000; }
.tabbar .me img { width: 100%; height: 100%; object-fit: cover; }
.tabbar .bdg { position: absolute; top: 11px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #4c9bff; color: #000; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #121212; }

/* ---------- avatars & photos */
.av { border-radius: 50%; overflow: hidden; background: var(--s3); flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.ph { background: var(--s2); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- stories */
.stories { display: flex; gap: 12px; padding: 6px 12px 12px; overflow-x: auto; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 68px; text-align: center; font-size: 11.5px; }
.story .ring { width: 66px; height: 66px; border-radius: 50%; padding: 2.5px; margin: 0 auto 4px; background: var(--s4); position: relative; }
.story .ring.live { background: var(--ink); }
.story .ring.seen { background: var(--s4); }
.story .ring .av { width: 100%; height: 100%; border: 2.5px solid #000; }
.story .plus { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #000; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid #000; }
.story .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- feed post */
.post { border-top: 1px solid var(--line); padding-bottom: 14px; }
.post .hd { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.post .hd .av { width: 32px; height: 32px; }
.post .hd .who { flex: 1; font-weight: 600; font-size: 13.5px; }
.post .hd .who span { font-weight: 400; color: var(--ink2); margin-left: 4px; }
.post .hd .ti { font-size: 20px; }
.carousel { position: relative; aspect-ratio: 4 / 5; background: var(--s2); overflow: hidden; }
.carousel .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.carousel .count { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); border-radius: 99px; padding: 3px 9px; font-size: 12px; font-weight: 500; }
.carousel .badge { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); border-radius: 6px; padding: 5px 9px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.carousel .badge .ti { font-size: 14px; }
.carousel .badge.live { color: #fff; }
.carousel .badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.dots { display: flex; gap: 4px; justify-content: center; position: absolute; left: 0; right: 0; bottom: -14px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--s4); }
.dots i.on { background: #4c9bff; }
.heart-pop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; font-size: 96px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.heart-pop.go { opacity: .95; transform: scale(1); }
.post .act { display: flex; align-items: center; gap: 16px; padding: 10px 12px 0; position: relative; }
.post .act > .ti { font-size: 25px; }
.post .act .liked { color: var(--like); }
.post .act .price { margin-left: auto; font-weight: 700; font-size: 17px; }
.post .act .price small { font-weight: 400; font-size: 12px; color: var(--ink2); }
.post .cap { padding: 9px 12px 0; font-size: 13.5px; }
.post .cap b { font-weight: 600; margin-right: 5px; }
.post .cap span { color: #cfcfcf; }

.btn { background: var(--ink); color: #000; border-radius: 8px; padding: 8px 15px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line2); }
.btn.full { display: flex; width: 100%; justify-content: center; padding: 13px 0; font-size: 15px; border-radius: 10px; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn:active { transform: scale(.98); }
.btn.done { background: var(--s3); color: var(--ink); }

/* ---------- listing page (dense) */
.lp-photos { aspect-ratio: 1; }
.lp-head { padding: 14px 14px 12px; }
.lp-head .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lp-head h1 { font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.lp-head .pr { font-size: 19px; font-weight: 700; white-space: nowrap; }
.lp-head .pr small { font-size: 12px; font-weight: 400; color: var(--ink2); }
.lp-head .stat { color: var(--ink2); font-size: 12.5px; margin-top: 3px; }
.lp-head .ctas { display: flex; gap: 8px; margin-top: 12px; }
.lp-head .ctas .btn:first-child { flex: 1; display: flex; justify-content: center; padding: 11px 0; font-size: 14.5px; }
.lp-head .ctas .btn.ghost { padding: 11px 16px; }
.sec { padding: 14px; border-top: 1px solid var(--line); }
.sec h3 { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink2); font-weight: 600; margin-bottom: 9px; display: flex; justify-content: space-between; }
.sec h3 a { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.facts div { background: var(--s1); padding: 9px 11px; font-size: 13px; }
.facts div span { display: block; color: var(--ink2); font-size: 11.5px; margin-bottom: 1px; }
.rate { display: flex; gap: 16px; align-items: center; }
.rate .big { text-align: center; min-width: 64px; }
.rate .big b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.rate .big span { font-size: 11.5px; color: var(--ink2); }
.rate .rows { flex: 1; }
.rate .r { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink2); margin-bottom: 4px; }
.bar { height: 5px; border-radius: 3px; background: var(--s3); overflow: hidden; flex: 1; }
.bar span { display: block; height: 100%; background: #dcdcdc; border-radius: 3px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; margin-top: 12px; }
.cats div { font-size: 12px; color: var(--ink2); }
.cats div .top2 { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cats div .top2 b { color: var(--ink); font-weight: 600; }
.seller { display: flex; align-items: center; gap: 10px; }
.seller .av { width: 42px; height: 42px; }
.seller .nm { flex: 1; }
.seller .nm b { font-weight: 600; display: block; }
.seller .nm span { color: var(--ink2); font-size: 12px; }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.minis .ph { aspect-ratio: 1; border-radius: 6px; }
.minis .more { display: flex; align-items: center; justify-content: center; color: var(--ink2); font-weight: 600; }
.rev { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.rev:last-child { border-bottom: 0; }
.rev .av { width: 28px; height: 28px; }
.rev .tx { flex: 1; font-size: 13px; }
.rev .tx .st { color: var(--ink2); font-size: 11.5px; margin-left: 4px; }
.rev .tx p { color: #d6d6d6; margin-top: 2px; }
.sim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sim > * { min-width: 0; }
.sim .ph { aspect-ratio: 1; border-radius: 8px; }
.sim > * p { font-size: 12px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim > * > span { font-size: 12px; font-weight: 600; }

/* ---------- search grid */
.searchbar { margin: 4px 12px 10px; background: var(--s3); border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.searchbar .ti { color: var(--ink2); font-size: 17px; }
.searchbar input { flex: 1; font-size: 14.5px; }
.chips { display: flex; gap: 6px; padding: 0 12px 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 11px; font-size: 13px; color: #cfcfcf; white-space: nowrap; }
.chip.on { background: var(--ink); color: #000; border-color: var(--ink); font-weight: 600; }
.chip small { color: var(--ink3); margin-left: 3px; }
.chip.on small { color: #555; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; padding: 0 12px 16px; }
.cell .ph { aspect-ratio: 1; border-radius: 8px; }
.cell .ph .tag { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.7); border-radius: 5px; padding: 2px 6px; font-size: 11px; font-weight: 600; }
.cell .t { font-weight: 500; font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .p { display: flex; justify-content: space-between; font-size: 13px; }
.cell .p b { font-weight: 700; }
.cell .p span { color: var(--ink2); font-size: 12px; }
.cell .m { color: var(--ink2); font-size: 12px; }

/* ---------- shops & board */
.board { margin: 0 12px 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.board h3 { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink2); font-weight: 600; margin-bottom: 10px; }
.lb { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.lb .n { width: 18px; font-weight: 700; color: var(--ink2); }
.lb .av { width: 34px; height: 34px; }
.lb .nm { flex: 1; font-weight: 600; font-size: 13.5px; }
.lb .nm span { display: block; font-weight: 400; color: var(--ink2); font-size: 12px; }
.lb .v { font-weight: 700; font-size: 13px; }
.shopcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 16px; }
.shopcard { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; }
.shopcard .bn { height: 74px; }
.shopcard .bd { padding: 0 10px 10px; margin-top: -18px; position: relative; }
.shopcard .av { width: 38px; height: 38px; border: 2px solid var(--s1); }
.shopcard b { display: block; margin-top: 5px; font-size: 13.5px; }
.shopcard span { color: var(--ink2); font-size: 12px; }

/* ---------- profile */
.prof { padding: 6px 14px 0; }
.prof .row { display: flex; align-items: center; gap: 20px; }
.prof .row .av { width: 82px; height: 82px; }
.prof .stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.prof .stats b { display: block; font-size: 17px; font-weight: 700; }
.prof .stats span { font-size: 12.5px; color: #cfcfcf; }
.prof .nm { font-weight: 600; margin-top: 10px; }
.prof .bio { font-size: 13.5px; color: #d6d6d6; margin-top: 2px; }
.prof .meta { font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.prof .btns { display: flex; gap: 6px; margin-top: 12px; }
.prof .btns .btn { flex: 1; display: flex; justify-content: center; background: var(--s3); color: var(--ink); }
.prof .btns .btn.primary { background: var(--ink); color: #000; }
.ptabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 14px; }
.ptabs button { flex: 1; padding: 11px 0; font-size: 13px; font-weight: 600; color: var(--ink2); border-bottom: 1.5px solid transparent; }
.ptabs button.on { color: var(--ink); border-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pgrid .ph { aspect-ratio: 4 / 5; }
.pgrid .ph .pp { position: absolute; left: 6px; bottom: 6px; font-weight: 700; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.rowi { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rowi .av { width: 40px; height: 40px; }
.rowi .tx { flex: 1; min-width: 0; font-size: 13.5px; }
.rowi .tx b { font-weight: 600; }
.rowi .tx span { display: block; color: var(--ink2); font-size: 12.5px; }
.pill { font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 3px 9px; border: 1px solid var(--line2); color: var(--ink2); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(52,199,89,.35); }
.pill.due { color: var(--warn); border-color: rgba(255,176,32,.35); }
.pill.late { color: var(--live); border-color: rgba(255,59,48,.4); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.summary div { background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.summary b { display: block; font-size: 18px; font-weight: 700; }
.summary span { font-size: 11.5px; color: var(--ink2); }

/* ---------- chat */
.thread { padding: 12px 12px 90px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 76%; padding: 8px 12px; border-radius: 18px; font-size: 14px; }
.msg.them { background: var(--s3); align-self: flex-start; }
.msg.me { background: #3a5bff; align-self: flex-end; }
.dealcard { display: flex; gap: 10px; align-items: center; margin: 4px 12px 0; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.dealcard .ph { width: 48px; height: 48px; border-radius: 8px; flex: none; }
.dealcard .tx { flex: 1; font-size: 13px; }
.dealcard .tx span { display: block; color: var(--ink2); font-size: 12px; }
.composer { position: fixed; bottom: calc(8px + var(--safe-b)); left: 50%; transform: translateX(-50%); width: var(--col); padding: 8px 12px; background: #000; display: flex; gap: 8px; align-items: center; z-index: 35; }
.composer .in { flex: 1; background: var(--s3); border-radius: 22px; padding: 10px 14px; display: flex; }
.composer .in input { flex: 1; }
.composer .send { font-weight: 600; color: #4c9bff; }

/* ---------- composer (post) */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 14px 14px; }
.types button { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.types button .ti { font-size: 24px; }
.types button.on { border-color: var(--ink); background: var(--s2); }
.field { margin: 0 14px 10px; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.field label { display: block; font-size: 11.5px; color: var(--ink2); margin-bottom: 3px; }
.field input { width: 100%; font-size: 15px; }
.pickphotos { display: flex; gap: 6px; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; }
.pickphotos .ph { width: 76px; height: 76px; border-radius: 8px; flex: none; border: 2px solid transparent; }
.pickphotos .ph.on { border-color: var(--ink); }
.pickphotos .up { width: 76px; height: 76px; border-radius: 8px; flex: none; border: 1px dashed var(--line2); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--ink2); }

/* ---------- sheet */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 50%; bottom: 0; width: var(--col); transform: translate(-50%, 100%); transition: transform .32s var(--ease); background: #111; border-radius: 18px 18px 0 0; z-index: 61; max-height: 92dvh; overflow-y: auto; padding-bottom: calc(14px + var(--safe-b)); }
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--s4); margin: 8px auto 6px; }
.sheet .sh { display: flex; gap: 12px; align-items: center; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); }
.sheet .sh .ph { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.sheet .sh .tx { flex: 1; }
.sheet .sh .tx b { font-weight: 600; font-size: 15px; display: block; }
.sheet .sh .tx span { color: var(--ink2); font-size: 12.5px; }
.sheet .sh .x { font-size: 22px; color: var(--ink2); align-self: flex-start; }
.sheet .blk { padding: 14px 16px 0; }
.sheet .blk h4 { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink2); font-weight: 600; margin-bottom: 8px; }
.opts { display: grid; gap: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opt { border: 1px solid var(--line2); border-radius: 12px; padding: 11px 12px; text-align: left; background: var(--s1); }
.opt.on { border-color: var(--ink); background: var(--s2); }
.opt b { display: block; font-weight: 600; font-size: 14px; }
.opt span { color: var(--ink2); font-size: 12px; }
.opt .row { display: flex; justify-content: space-between; align-items: baseline; }
.inc { display: grid; gap: 7px; font-size: 13.5px; }
.inc div { display: flex; gap: 8px; align-items: center; }
.inc .ti { color: var(--ink2); font-size: 16px; }
.spots { display: flex; gap: 3px; margin-top: 2px; }
.spots i { flex: 1; height: 6px; border-radius: 2px; background: #dcdcdc; }
.spots i.free { background: var(--s4); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line2); border-radius: 10px; width: max-content; }
.stepper button { width: 42px; height: 40px; font-size: 18px; }
.stepper span { min-width: 36px; text-align: center; font-weight: 600; font-size: 15px; }
.toggle { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 4px 0; }
.sw { width: 44px; height: 26px; border-radius: 13px; background: var(--s4); position: relative; transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.sw.on { background: var(--ok); }
.sw.on::after { transform: translateX(18px); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; margin-top: 14px; border-top: 1px solid var(--line); }
.total b { font-size: 20px; font-weight: 700; }
.total span { color: var(--ink2); font-size: 12.5px; }
.fine { color: var(--ink3); font-size: 11.5px; text-align: center; padding: 8px 20px 0; }
.success { text-align: center; padding: 26px 20px 8px; }
.success .ck { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 32px; }
.success h2 { font-size: 20px; font-weight: 700; }
.success p { color: var(--ink2); font-size: 13.5px; margin-top: 4px; }
.success .facts { margin-top: 16px; text-align: left; }
.bidrow { display: flex; align-items: baseline; justify-content: space-between; }
.bidrow b { font-size: 26px; font-weight: 700; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- story viewer */
.storyv { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; justify-content: center; }
.storyv .frame { width: var(--col); height: 100%; position: relative; }
.storyv .frame > img { width: 100%; height: 100%; object-fit: cover; }
.storyv .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.85) 100%); }
.storyv .bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.storyv .bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); }
.storyv .bars i.on { background: #fff; }
.storyv .who { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; }
.storyv .who .av { width: 32px; height: 32px; }
.storyv .who span { color: rgba(255,255,255,.7); font-weight: 400; }
.storyv .who .x { margin-left: auto; font-size: 26px; }
.storyv .bottom { position: absolute; left: 16px; right: 16px; bottom: calc(26px + var(--safe-b)); }
.storyv .bottom .k { font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255,255,255,.75); font-weight: 600; }
.storyv .bottom h2 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-top: 2px; }
.storyv .bottom .cd { font-size: 44px; font-weight: 700; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.storyv .bottom .ctas { display: flex; gap: 8px; margin-top: 14px; }
.storyv .bottom .ctas .btn { flex: 1; display: flex; justify-content: center; padding: 12px 0; }
.storyv .tapl, .storyv .tapr { position: absolute; top: 70px; bottom: 170px; width: 40%; }
.storyv .tapl { left: 0; } .storyv .tapr { right: 0; }

/* ---------- QR join */
.qr { width: 200px; height: 200px; margin: 6px auto 10px; background: #fff; border-radius: 14px; padding: 12px; }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qrtime { text-align: center; font-size: 13px; color: var(--ink2); }
.qrtime b { color: var(--ink); }

/* ---------- quiet mode (decoy calculator): the iPhone calculator, as close as a web page gets */
.quiet { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; justify-content: center; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; }
.quiet .calc { width: var(--col); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 18px calc(34px + var(--safe-b)); }
.quiet .calc-top { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 20px; font-size: 24px; color: #ff9f0a; }
.quiet .prev { text-align: right; font-size: 26px; font-weight: 400; color: #8e8e93; min-height: 32px; padding: 0 10px; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.quiet .disp { text-align: right; font-size: 84px; line-height: 1.05; font-weight: 300; letter-spacing: -2px; padding: 0 8px 22px; font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; color: #fff; }
.quiet .keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quiet .keys button { aspect-ratio: 1; border-radius: 50%; background: #333336; color: #fff; font-size: 38px; font-weight: 400; display: flex; align-items: center; justify-content: center; transition: background-color .35s ease, color .35s ease; -webkit-user-select: none; user-select: none; }
.quiet .keys button .ti { font-size: 34px; -webkit-text-stroke: 1px currentColor; }
.quiet .keys button.fn, .quiet .keys button.fn2 { background: #5c5c5f; font-size: 30px; font-weight: 500; }
.quiet .keys button.fn .ti, .quiet .keys button.fn2 .ti { font-size: 30px; }
.quiet .keys button.op { background: #ff9f0a; }
.quiet .keys button.op .ti { font-size: 36px; -webkit-text-stroke: 1.6px currentColor; }
.quiet .keys button.op.sel { background: #fff; color: #ff9f0a; }
/* the press flash: instant on, slow fade off, the way the real one feels */
.quiet .keys button:active { transition: none; }
.quiet .keys button.num:active { background: #737373; }
.quiet .keys button.fn:active, .quiet .keys button.fn2:active { background: #8e8e93; }
.quiet .keys button.op:active { background: #fcc78d; }

/* ---------- misc */
.toast { position: fixed; left: 50%; bottom: calc(var(--bar) + 12px); transform: translate(-50%, 20px); background: #f3f3f3; color: #000; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; opacity: 0; transition: opacity .2s, transform .25s var(--ease); z-index: 95; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink2); }
.groups .rowi .chk { font-size: 20px; }
.sticky-cta { position: fixed; bottom: var(--bar); left: 50%; transform: translateX(-50%); width: var(--col); padding: 10px 14px; background: rgba(0,0,0,.94); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 8px; width: calc(var(--col) - 24px); z-index: 35; display: flex; gap: 10px; align-items: center; transition: transform .35s var(--ease), opacity .3s; }
.sticky-cta.away { transform: translate(-50%, 30px); opacity: 0; pointer-events: none; }
.sticky-cta .pr { font-weight: 700; font-size: 18px; }
.sticky-cta .pr small { font-size: 12px; font-weight: 400; color: var(--ink2); }
.sticky-cta .btn { flex: 1; display: flex; justify-content: center; padding: 12px 0; font-size: 15px; }
.pad-cta { height: 90px; }

/* ================================================================ motion
   Entrance animations are applied only on navigation (#view.a-*), never on a
   re-render, so liking a post does not replay the screen. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: .4; transform: translateX(32%); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: .4; transform: translateX(-16%); } to { opacity: 1; transform: none; } }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(.82); } 70% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(.7); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes bigHeart { 0% { opacity: 0; transform: scale(.2) rotate(-12deg); } 15% { opacity: 1; transform: scale(1.2) rotate(4deg); } 28% { transform: scale(.94) rotate(0); } 40% { transform: scale(1.04); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1) translateY(-30px); } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes grow { from { width: 0; } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes storyIn { from { opacity: 0; transform: scale(.88); border-radius: 40px; } to { opacity: 1; transform: none; border-radius: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ckPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ripple { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { 0% { transform: translateY(-35%); opacity: .2; } 100% { transform: none; opacity: 1; } }

#view.a-push { animation: slideIn .38s var(--ease); }
#view.a-pop { animation: slideBack .32s var(--ease); }
#view.a-tab { animation: tabIn .3s var(--ease); }
#view.a-push .lp-head, #view.a-push .sec { animation: fadeUp .5s var(--ease) both; }
#view.a-push .lp-head { animation-delay: .08s; }
#view.a-push .sec:nth-of-type(1) { animation-delay: .12s; } #view.a-push .sec:nth-of-type(2) { animation-delay: .16s; }
#view.a-push .sec:nth-of-type(3) { animation-delay: .2s; } #view.a-push .sec:nth-of-type(4) { animation-delay: .24s; }
#view.a-push .sec:nth-of-type(n+5) { animation-delay: .28s; }
#view.a-push .bar span, #view.a-tab .bar span { animation: grow 1s .25s var(--ease) both; }
#view.a-tab .cell, #view.a-grid .cell, #view.a-tab .lb, #view.a-tab .shopcard, #view.a-tab .rowi, #view.a-tab .pgrid .ph, #view.a-tab .types button, #view.a-tab .summary div { animation: fadeUp .45s var(--ease) both; }
#view .cell:nth-child(2), #view .lb:nth-child(3), #view .pgrid .ph:nth-child(2), #view .types button:nth-child(2), #view .rowi:nth-child(2), #view .summary div:nth-child(2) { animation-delay: .04s; }
#view .cell:nth-child(3), #view .lb:nth-child(4), #view .pgrid .ph:nth-child(3), #view .types button:nth-child(3), #view .rowi:nth-child(3), #view .summary div:nth-child(3) { animation-delay: .08s; }
#view .cell:nth-child(4), #view .lb:nth-child(5), #view .types button:nth-child(4), #view .rowi:nth-child(4) { animation-delay: .12s; }
#view .cell:nth-child(n+5), #view .lb:nth-child(n+6), #view .types button:nth-child(n+5), #view .rowi:nth-child(n+5) { animation-delay: .16s; }
#view.a-tab .story { animation: fadeUp .45s var(--ease) both; }
#view.a-tab .story:nth-child(2) { animation-delay: .03s; } #view.a-tab .story:nth-child(3) { animation-delay: .06s; } #view.a-tab .story:nth-child(4) { animation-delay: .09s; } #view.a-tab .story:nth-child(n+5) { animation-delay: .12s; }

.post.pre { opacity: 0; transform: translateY(24px); }
.post.rise { animation: fadeUp .6s var(--ease) both; }

.ph, .carousel, .av, .lp-photos { background: linear-gradient(100deg, #121212 30%, #1d1d1d 50%, #121212 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.ph:has(img.ld), .carousel:has(img.ld), .av:has(img.ld), .av:not(:has(img)), .ph.more { animation: none; background: var(--s2); }
img.fi { opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .8s var(--ease); }
img.fi.ld { opacity: 1; transform: none; }

.post .act > .ti, .top .ic { transition: transform .15s var(--ease); }
.post .act > .ti:active, .top .ic:active { transform: scale(.85); }
.ti.pop { animation: pop .45s var(--ease); }
.heart-pop { opacity: 1; transform: none; transition: none; }
.heart-pop i { opacity: 0; filter: drop-shadow(0 6px 24px rgba(0,0,0,.45)); }
.heart-pop.go i { animation: bigHeart 1s var(--ease) both; }

.story .ring.live::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid #fff; animation: ringPulse 2.2s ease-out infinite; pointer-events: none; }
.story { transition: transform .15s var(--ease); }
.story:active { transform: scale(.93); }

.btn, .chip, .opt, .cell, .shopcard, .types button, .sim > *, .minis .ph, .pgrid .ph, .lb, .rowi { transition: transform .14s var(--ease), background-color .25s, border-color .25s, color .25s, opacity .2s; }
.btn:active, .chip:active, .types button:active, .shopcard:active, .cell:active, .sim > *:active { transform: scale(.96); }
.opt:active { transform: scale(.97); }
.sw::after { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.stepper span { display: inline-block; }
.stepper span.tick { animation: tick .25s var(--ease); }

.scrim { transition: opacity .35s ease; }
.scrim.on { backdrop-filter: blur(3px); }
.sheet { transition: transform .5s cubic-bezier(.2, 1.15, .3, 1); }
#sheetbody.enter > * { animation: fadeUp .45s var(--ease) both; }
#sheetbody.enter > *:nth-child(2) { animation-delay: .05s; } #sheetbody.enter > *:nth-child(3) { animation-delay: .09s; }
#sheetbody.enter > *:nth-child(4) { animation-delay: .13s; } #sheetbody.enter > *:nth-child(5) { animation-delay: .17s; }
#sheetbody.enter > *:nth-child(n+6) { animation-delay: .21s; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; animation: spin .7s linear infinite; }
.success > * { animation: fadeUp .5s var(--ease) both; }
.success h2 { animation-delay: .25s; } .success p { animation-delay: .32s; } .success .facts { animation-delay: .4s; }
.success .ck { border: 0; position: relative; animation: ckPop .55s var(--ease) both; }
.success .ck svg { width: 64px; height: 64px; }
.success .ck circle { stroke: var(--ink); stroke-width: 2; fill: none; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .6s .05s var(--ease) forwards; }
.success .ck path { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .45s var(--ease) forwards; }
.success .ck::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; animation: ripple .9s .5s ease-out; }

.storyv { animation: fadeIn .2s ease; }
.storyv .frame { animation: storyIn .4s var(--ease); overflow: hidden; }
.storyv .frame > img { animation: kenburns 7s ease-out both; }
.storyv .bars i { position: relative; overflow: hidden; }
.storyv .bars i.now::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 6s linear both; }
.storyv .bottom > * { animation: fadeUp .5s var(--ease) both; }
.storyv .bottom > *:nth-child(2) { animation-delay: .06s; } .storyv .bottom > *:nth-child(3) { animation-delay: .12s; } .storyv .bottom > *:nth-child(4) { animation-delay: .18s; }

.toast { transition: opacity .25s, transform .45s cubic-bezier(.2, 1.3, .4, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .post.pre { opacity: 1; transform: none; }
}
.quiet .keys button[data-k="."] { font-size: 46px; font-weight: 600; padding-bottom: 14px; }

/* ================================================================ buttons
   One system, three weights, no outlines. Filled white = the main action on a
   screen; filled grey = everything secondary; pills throughout, sized so the
   main ones clear a 44px touch target. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #000; border: 0; font: 600 14.5px/1 Inter, -apple-system, sans-serif; letter-spacing: -.1px; white-space: nowrap; transition: transform .14s var(--ease), filter .2s, background-color .25s, color .25s; }
.btn:active { transform: scale(.96); filter: brightness(.88); }
.btn .ti { font-size: 18px; }
.btn.ghost { background: #262626; color: var(--ink); border: 0; }
.btn.ghost:active { filter: brightness(1.25); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.full { display: flex; width: 100%; height: 50px; padding: 0; font-size: 16px; border-radius: 999px; }
.btn.done { background: #262626; color: var(--ink2); }
.btn.done::before { content: ""; width: 14px; height: 14px; margin-right: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* feed: the buy button sits beside the price, same height as the icon row */
.post .act .btn { height: 36px; padding: 0 16px; font-size: 14px; }

/* product page: one big main action, one grey partner */
.lp-head .ctas { gap: 8px; }
.lp-head .ctas .btn:first-child { flex: 1; height: 50px; padding: 0; font-size: 16px; }
.lp-head .ctas .btn.ghost { height: 50px; padding: 0 20px; font-size: 15px; }
.sticky-cta .btn { height: 46px; padding: 0; font-size: 15.5px; }

/* profile row: grey by default, white only for Follow */
.prof .btns { gap: 8px; }
.prof .btns .btn { flex: 1; height: 38px; padding: 0 10px; background: #262626; color: var(--ink); font-size: 14px; }
.prof .btns .btn.primary { background: var(--ink); color: #000; }

/* story viewer: glass secondary over photos */
.storyv .bottom .ctas .btn { height: 50px; padding: 0; font-size: 15.5px; }
.storyv .bottom .ctas .btn.ghost { background: rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.storyv .bottom .ctas .btn.done { background: rgba(255,255,255,.18); color: #fff; }

/* shops board: small follow pills */
.lb .btn.sm { height: 30px; padding: 0 13px; }

/* ================================================================ bolder, fewer
   Prices and actions carry the weight; everything else steps back. */
.btn { font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.btn .ti { font-size: 19px; -webkit-text-stroke: .5px currentColor; }
.btn .bp { margin-left: 4px; padding-left: 10px; border-left: 1.5px solid rgba(0,0,0,.18); font-weight: 800; }
.btn.done .bp { border-color: rgba(255,255,255,.15); }
.btn.done::before { content: none; }
.btn.done { color: var(--ink); }
.btn.icon { width: 40px; padding: 0; flex: none; }
.btn.icon .ti { font-size: 21px; }

/* feed: heart · price · action */
.post .act { gap: 12px; padding-top: 12px; }
.post .act > .ti { font-size: 27px; }
.post .act .price { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.post .act .price small { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.post .act .btn { height: 40px; padding: 0 16px 0 14px; font-size: 15px; }
.post .cap b { font-weight: 700; }

/* product page */
.lp-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.lp-head .pr { font-size: 26px; font-weight: 900; letter-spacing: -.8px; }
.lp-head .pr small { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.lp-head .ctas .btn:first-child { font-size: 16px; }
.lp-head .ctas .btn.icon { width: 50px; height: 50px; padding: 0; }
.lp-head .ctas .btn.icon .ti { font-size: 23px; }
.sticky-cta .pr { font-size: 21px; font-weight: 900; letter-spacing: -.6px; }
.sticky-cta .btn { flex: 1; }

/* everywhere else a price appears */
.cell .t { font-weight: 600; }
.cell .p b { font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.pgrid .ph .pp, .sim > * > span { font-weight: 800; }
.pgrid .ph .pp { font-size: 13px; }
.total b { font-size: 24px; font-weight: 900; letter-spacing: -.6px; }
.bidrow b { font-weight: 900; }
.rate .big b { font-weight: 800; }
.summary b { font-weight: 800; font-size: 20px; }
.prof .stats b { font-weight: 800; font-size: 18px; }
.top .title { font-weight: 800; letter-spacing: -.5px; }

/* profile buttons */
.prof .btns .btn { font-weight: 700; }
.prof .btns .btn.icon { flex: none; width: 38px; padding: 0; }

/* ================================================================ kind picker
   A list, like Instagram's create sheet: easy to read top to bottom. */
.kinds-h { font-size: 24px; font-weight: 800; letter-spacing: -.6px; padding: 8px 16px 4px; }
.kh { font-size: 13px; font-weight: 600; color: var(--ink2); padding: 16px 16px 6px; }
.klist { margin: 0 12px; background: var(--s1); border-radius: 16px; overflow: hidden; }
.krow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left; transition: background-color .2s; }
.krow + .krow { border-top: 1px solid var(--line); }
.krow:active { background: var(--s3); }
.krow .ki { width: 40px; height: 40px; border-radius: 50%; background: var(--s3); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.krow .kt { flex: 1; min-width: 0; }
.krow .kt b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.krow .kt small { display: block; font-size: 13px; color: var(--ink2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow .kv { font-size: 18px; color: var(--ink3); }
.krow .kc { font-size: 24px; color: var(--ink); animation: pop .35s var(--ease); }
.krow.on .ki { background: var(--ink); color: #000; }
.klist.picked { display: flex; align-items: center; margin-bottom: 4px; }
.klist.picked .krow { flex: 1; }
.kchange { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0 16px; height: 64px; }
#view.a-tab .krow { animation: fadeUp .4s var(--ease) both; }


/* ================================================================ lockers (groups)
   Max contrast: white on black. The one accent is light blue, for unread and locks. */
:root { --blue: #4c9bff; }
.top .gname { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 900; letter-spacing: -.8px; }
.top .gname .ti-chevron-right { font-size: 18px; color: #fff; -webkit-text-stroke: 1px currentColor; }
.top .gico { width: 32px; height: 32px; border-radius: 10px; overflow: hidden; background: var(--s3); flex: none; }
.top .gico img { width: 100%; height: 100%; object-fit: cover; }
.rail { display: flex; gap: 12px; padding: 4px 14px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.rail::-webkit-scrollbar { display: none; }
.lk { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; }
.lk .sq { width: 56px; height: 56px; border-radius: 18px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--s3); color: #fff; transition: transform .15s var(--ease), box-shadow .25s; }
.lk .sq img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lk .nm { font-size: 11.5px; font-weight: 700; color: #8e8e8e; white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.lk.on .sq { box-shadow: 0 0 0 2.5px #000, 0 0 0 4.5px #fff; }
.lk.on .nm { color: #fff; font-weight: 900; }
.lk:not(.on):not(.add) .sq img { filter: grayscale(.35) brightness(.8); }
.lk:active .sq { transform: scale(.92); }
.lk .ud { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #000; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2.5px solid #000; }
.lk.add .sq { background: transparent; border: 2px dashed #444; color: #fff; }
.lk.add .sq .ti { -webkit-text-stroke: 1px currentColor; }
.story .lbl { font-weight: 600; }

/* locker page */
.lbanner { height: 150px; background: var(--s2); overflow: hidden; margin-top: -50px; }
.lbanner img { width: 100%; height: 100%; object-fit: cover; }
.lbanner.small { height: 90px; margin: 0; border-radius: 16px; }
.lhead { padding: 0 16px 14px; margin-top: -40px; position: relative; }
.lico { width: 84px; height: 84px; border-radius: 26px; overflow: hidden; border: 4px solid #000; background: var(--s3); }
.lico img { width: 100%; height: 100%; object-fit: cover; }
.lico.sm { width: 56px; height: 56px; border-radius: 18px; border-width: 3px; margin: -30px 0 0 12px; }
.lhead h1 { font-size: 30px; font-weight: 900; letter-spacing: -1px; margin-top: 10px; }
.lmeta { font-size: 13px; font-weight: 600; color: var(--ink2); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.lmeta .ti { color: var(--blue); font-size: 14px; }
.ldesc { font-size: 15px; line-height: 1.4; margin-top: 10px; }
.ltags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ltags span { font-size: 13px; font-weight: 700; background: var(--s3); border-radius: 99px; padding: 5px 11px; display: inline-flex; align-items: center; gap: 4px; }
.ltags.edit span button { color: var(--ink2); font-size: 13px; }
.ltags.edit input { font-size: 13px; padding: 5px 4px; width: 120px; }
.lbtns { display: flex; gap: 8px; margin-top: 14px; }
.lbtns .btn { flex: 1; height: 44px; }
.pin { display: flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 600; }
.pin .ti { color: var(--blue); font-size: 17px; }
.sec h3 a { color: var(--blue); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.lrules { list-style: none; counter-reset: r; display: grid; gap: 8px; }
.lrules li { counter-increment: r; display: flex; gap: 12px; align-items: center; font-size: 14.5px; font-weight: 600; }
.lrules li::before { content: counter(r); width: 26px; height: 26px; border-radius: 8px; background: var(--s3); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; flex: none; }
.lrules.edit li span { flex: 1; }
.lrules.edit li button { color: var(--ink2); font-size: 16px; }
.ltagc { display: flex; flex-wrap: wrap; gap: 6px; }
.tagc { font-size: 13px; font-weight: 700; border: 1px solid var(--line2); border-radius: 99px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 6px; }
.tagc .ti { font-size: 15px; }
.ladmins { display: flex; gap: 14px; }
.ladmins div { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.lfine { font-size: 12.5px; color: var(--ink2); margin-top: 10px; }
.lprev { padding: 6px 14px 4px; }
.lprev b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.5px; margin: 8px 0 0 2px; }
.krule span { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.krule span .ti { font-size: 18px; }
.krule { padding: 7px 0; }
.sw.on { background: #fff; }
.sw.on::after { background: #000; }

/* bolder all round */
.post .hd .who { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.post .hd .who span { font-weight: 600; }
.post .cap { font-size: 14px; }
.post .cap b { font-weight: 800; }
.top .title, .top .h { font-weight: 800; letter-spacing: -.4px; }
.sec h3, .board h3 { font-size: 12px; font-weight: 800; color: #b5b5b5; }
.lp-head .stat { font-weight: 500; }
.cell .t { font-weight: 700; }
.chip { font-weight: 600; }
.chip.on { font-weight: 800; }
.prof .nm { font-size: 16px; font-weight: 800; }
.empty b { color: var(--ink); font-size: 15px; font-weight: 800; }

/* ================================================================ brand
   The Locker mark: a rounded square with a keyhole. Monochrome, one shape. */
.top .brand { display: flex; align-items: center; gap: 8px; font-size: 25px; font-weight: 900; letter-spacing: -1.1px; color: #fff; }
.top .brand .logo-mark { width: 30px; height: 30px; color: #fff; }
/* the locker you're in shows a small info dot: tap it again for its page */
.lk.on .sq::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid #000;
  -webkit-mask: none; box-sizing: border-box; }
.lk.on .sq::before { content: "i"; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font: 900 11px/1 Inter, sans-serif; color: #000; z-index: 2; font-style: italic; }
/* tab icons: same box for every glyph so nothing sits off-centre */
.tabbar button > .ti { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; }
.tabbar button.on > .ti { -webkit-text-stroke: 1.1px currentColor; }

/* ================================================================ home (pitch-first) + discover
   No feed furniture: a locker card, who's open, drops, a photo grid, wanted. */
.hh { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 14px 10px; font-size: 18px; font-weight: 900; letter-spacing: -.5px; }
.hh span { font-size: 12.5px; font-weight: 600; color: var(--ink2); letter-spacing: 0; }
.lcard { margin: 12px 12px 0; background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.lc-name { display: flex; align-items: center; gap: 7px; font-size: 24px; font-weight: 900; letter-spacing: -.8px; width: 100%; text-align: left; }
.lc-name .ti-lock { font-size: 16px; color: var(--blue, #4c9bff); -webkit-text-stroke: .5px currentColor; }
.lc-name .lc-go { margin-left: auto; font-size: 18px; color: var(--ink2); }
.lc-meta { font-size: 13px; font-weight: 500; color: var(--ink2); margin-top: 3px; }
.lc-btns { display: flex; gap: 8px; margin-top: 12px; }
.lc-btns .btn { flex: 1; height: 42px; padding: 0 10px; font-size: 14px; }
.openrow { display: flex; gap: 14px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.openrow::-webkit-scrollbar { display: none; }
.openp { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.openp .oa { border-radius: 50%; padding: 2.5px; background: #4c9bff; position: relative; }
.openp .oa .av { border: 2.5px solid #000; }
.openp .oa::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: #4c9bff; border: 2.5px solid #000; }
.openp .oa.plain { background: none; padding: 0; }
.openp .oa.plain::after { display: none; }
.openp .on { font-size: 11.5px; font-weight: 700; white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.droprow { display: flex; gap: 8px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.droprow::-webkit-scrollbar { display: none; }
.dropc { flex: none; min-width: 150px; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.dropc .dk { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); }
.dropc b { font-size: 15px; font-weight: 800; }
.dropc .dt { font-size: 22px; font-weight: 900; letter-spacing: -.6px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.dropc .ds { font-size: 12px; color: var(--ink2); }
.chips.hc { padding-bottom: 12px; }
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; padding: 0 12px; }
.gcard { text-align: left; min-width: 0; transition: transform .14s var(--ease); }
.gcard:active { transform: scale(.97); }
.gcard .ph { aspect-ratio: 1; border-radius: 18px; }
.gpr { position: absolute; left: 8px; bottom: 8px; background: #fff; color: #000; border-radius: 99px; padding: 4px 10px; font-size: 13.5px; font-weight: 900; letter-spacing: -.2px; }
.gty { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.gend { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.7); border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gt { font-size: 14px; font-weight: 800; letter-spacing: -.2px; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs { font-size: 12px; color: var(--ink2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wantc { margin: 0 12px 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 10px; }
.wantc .wt { flex: 1; text-align: left; min-width: 0; }
.wantc .wt b { display: block; font-size: 15px; font-weight: 800; }
.wantc .wt span { font-size: 12.5px; color: var(--ink2); }
#view.a-tab .gcard, #view.a-grid .gcard { animation: fadeUp .45s var(--ease) both; }
#view .gcard:nth-child(2) { animation-delay: .04s; } #view .gcard:nth-child(3) { animation-delay: .08s; } #view .gcard:nth-child(n+4) { animation-delay: .12s; }

/* discover */
.searchbar button { color: var(--ink2); font-size: 16px; }
.seg2 { display: flex; margin: 0 12px 4px; background: var(--s1); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.seg2 button { flex: 1; height: 34px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--ink2); transition: background-color .25s, color .25s; }
.seg2 button.on { background: #fff; color: #000; font-weight: 800; }
.chip .ti { font-size: 14px; vertical-align: -2px; }
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.catt { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .14s var(--ease); }
.catt:active { transform: scale(.95); }
.catt .ti { font-size: 25px; -webkit-text-stroke: .6px currentColor; }
.catt b { font-size: 12.5px; font-weight: 800; }
.catt span { font-size: 11px; color: var(--ink2); font-weight: 600; }
.shelfrow { display: flex; gap: 8px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.shelfrow::-webkit-scrollbar { display: none; }
.scard2 { flex: none; width: 138px; text-align: left; }
.scard2 .ph { aspect-ratio: 1; border-radius: 16px; }
.scard2 .gpr { font-size: 12.5px; padding: 3px 9px; }
.dres { font-size: 13px; font-weight: 600; color: var(--ink2); padding: 0 14px 12px; }
#view.a-tab .catt { animation: fadeUp .4s var(--ease) both; }

/* ================================================================ v5: logo, compass, calmer motion, discover */
/* wordmark logo: lowercase, heavy, the o is a keyhole */
.top .brand { gap: 0; }
.wm { display: inline-flex; align-items: center; font-size: 27px; font-weight: 900; letter-spacing: -1.4px; color: #fff; line-height: 1; }
.wm .ko { width: .74em; height: .74em; margin: .06em .03em 0; color: #fff; flex: none; }

/* compass: a ring and a needle */
.tabbar .cmp { width: 25px; height: 25px; display: block; }

/* calmer motion: fewer things moving at once, nothing that waits on a stagger */
#view.a-tab { animation: calmIn .18s ease-out; }
#view.a-push { animation: calmPush .26s var(--ease); }
#view.a-pop { animation: calmIn .2s ease-out; }
@keyframes calmIn { from { opacity: .65; } to { opacity: 1; } }
@keyframes calmPush { from { opacity: .7; transform: translateX(10%); } to { opacity: 1; transform: none; } }
#view.a-tab *, #view.a-grid *, #view.a-push .lp-head, #view.a-push .sec, #view.a-push .bar span { animation: none !important; }
img.fi { transform: none !important; transition: opacity .25s ease; }
.tabbar .ind { transition: transform .32s cubic-bezier(.3, 1.15, .5, 1); }

/* discover: no title; search first, then sections that each answer a question */
.dtop { padding: 10px 0 2px; }
.dtop .searchbar { margin: 0 12px 10px; height: 44px; border-radius: 99px; padding: 0 16px; }
.dtop .seg2 { margin-bottom: 0; }
.trend { display: flex; gap: 14px; padding: 14px 16px 0; overflow-x: auto; scrollbar-width: none; }
.trend::-webkit-scrollbar { display: none; }
.trend button { flex: none; font-size: 14px; font-weight: 700; color: var(--ink2); }
.trend button::before { content: "↗ "; color: #4c9bff; font-weight: 900; }
.catrow { display: flex; gap: 16px; padding: 18px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.catrow::-webkit-scrollbar { display: none; }
.catc { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.catc span { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid #2e2e2e; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.catc span .ti { -webkit-text-stroke: .5px currentColor; }
.catc:active span { background: var(--s3); }
.hero { position: relative; display: block; width: calc(100% - 24px); margin: 16px 12px 0; aspect-ratio: 4 / 3.2; border-radius: 24px; overflow: hidden; text-align: left; background: var(--s2); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 30%, transparent 55%, rgba(0,0,0,.85) 100%); }
.hero .hk { position: absolute; top: 14px; left: 16px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hero .hb { position: absolute; left: 16px; bottom: 14px; right: 90px; }
.hero .hb b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.7px; line-height: 1.05; }
.hero .hb span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.hero .hp { left: auto; right: 14px; bottom: 16px; font-size: 16px; padding: 6px 13px; }
.rowlist { margin: 0 12px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.rl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; }
.rl + .rl { border-top: 1px solid var(--line); }
.rl .ph { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.rl .rt { flex: 1; min-width: 0; }
.rl .rt b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl .rt span { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.odot { width: 7px; height: 7px; border-radius: 50%; background: #4c9bff; flex: none; }
.rl .rp { font-size: 16px; font-weight: 900; letter-spacing: -.3px; }
.endc { flex: none; width: 230px; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 8px 8px 12px; }
.endc .ph { display: block; aspect-ratio: 16 / 9; border-radius: 14px; }
.endc .et { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.8px; font-variant-numeric: tabular-nums; margin: 8px 4px 0; }
.endc b { display: block; font-size: 14px; font-weight: 800; margin: 2px 4px 0; }
.endc > span:last-child { display: block; font-size: 12px; color: var(--ink2); margin: 1px 4px 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 12px; }
.bento .bt { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--s2); }
.bento .bt:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.bento .bt img { width: 100%; height: 100%; object-fit: cover; }
.bento .bt .gpr { font-size: 12.5px; padding: 3px 9px; }
.tallc { flex: none; width: 150px; text-align: left; }
.tallc .ph { display: block; aspect-ratio: 3 / 4; border-radius: 18px; }
.tallc b { display: block; font-size: 14px; font-weight: 800; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tallc > span:last-child { display: block; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lkb { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); border-radius: 99px; padding: 3px 9px 3px 3px; font-size: 11.5px; font-weight: 800; }
.lkb img { width: 18px; height: 18px; border-radius: 6px; object-fit: cover; }
.wm .ko { margin: .08em -.02em 0 .05em; }

/* ================================================================ v6: smooth + character
   Motion is done by the browser's View Transitions (compositor, 60fps), not by
   pages animating themselves after a re-render. */
::view-transition-group(*) { animation-duration: .34s; animation-timing-function: cubic-bezier(.22, .9, .25, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: cubic-bezier(.22, .9, .25, 1); }
/* the floating bar and the top bar stay put while the page under them moves */
.tabbar { view-transition-name: tabbar; }
::view-transition-group(tabbar) { animation: none; }
::view-transition-old(tabbar) { display: none; }
::view-transition-new(tabbar) { animation: none; }

/* tab change: a quick, soft cross-fade with a hint of depth */
html[data-vt="tab"]::view-transition-old(root) { animation: vtFadeOut .18s ease-in both; }
html[data-vt="tab"]::view-transition-new(root) { animation: vtFadeUp .28s cubic-bezier(.22, .9, .25, 1) both; }
/* open a page: it slides in over the last one; back reverses it */
html[data-vt="push"]::view-transition-old(root) { animation: vtPushOut .34s cubic-bezier(.22, .9, .25, 1) both; }
html[data-vt="push"]::view-transition-new(root) { animation: vtPushIn .34s cubic-bezier(.22, .9, .25, 1) both; }
html[data-vt="pop"]::view-transition-old(root) { animation: vtPopOut .3s cubic-bezier(.22, .9, .25, 1) both; }
html[data-vt="pop"]::view-transition-new(root) { animation: vtPopIn .3s cubic-bezier(.22, .9, .25, 1) both; }
/* switch lockers: the old one swings shut like a locker door, the new one swings open */
html[data-vt="door"]::view-transition-group(root) { perspective: 900px; }
html[data-vt="door"]::view-transition-old(root) { transform-origin: left center; animation: doorClose .36s cubic-bezier(.5, 0, .75, 0) both; }
html[data-vt="door"]::view-transition-new(root) { transform-origin: right center; animation: doorOpen .46s .12s cubic-bezier(.2, .9, .3, 1.05) both; }
/* filters: just a soft cross-fade */
html[data-vt="soft"]::view-transition-old(root) { animation: vtFadeOut .16s ease-in both; }
html[data-vt="soft"]::view-transition-new(root) { animation: vtFadeIn .22s ease-out both; }
/* the tapped photo morphs into the product page and back */
::view-transition-group(morph) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .85, .2, 1); z-index: 5; }
::view-transition-old(morph), ::view-transition-new(morph) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }

@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtFadeIn { from { opacity: 0; } }
@keyframes vtFadeUp { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes vtPushOut { to { opacity: .4; transform: translateX(-18%) scale(.98); } }
@keyframes vtPushIn { from { transform: translateX(100%); } }
@keyframes vtPopOut { to { transform: translateX(100%); } }
@keyframes vtPopIn { from { opacity: .4; transform: translateX(-18%) scale(.98); } }
@keyframes doorClose { to { transform: rotateY(-70deg); opacity: 0; } }
@keyframes doorOpen { from { transform: rotateY(55deg); opacity: 0; } }

/* the old self-animating entrances are retired */
#view.a-tab, #view.a-push, #view.a-pop, #view.a-grid { animation: none; }

/* presses feel physical: quick down, springy up */
.btn, .gcard, .scard2, .tallc, .endc, .bt, .hero, .rl, .catc, .lk, .openp, .dropc, .krow, .chip, .seg2 button, .tabbar button { transition: transform .32s cubic-bezier(.3, 1.6, .5, 1), background-color .2s, color .2s, opacity .2s; }
.btn:active, .gcard:active, .scard2:active, .tallc:active, .endc:active, .bt:active, .hero:active, .catc:active, .lk:active, .openp:active, .dropc:active, .chip:active { transform: scale(.95); transition-duration: .08s; }
.hero:active { transform: scale(.98); }

/* character: a display face with some attitude for the loud bits */
:root { --disp: "Bricolage Grotesque", Inter, sans-serif; }
.wm, .hh, .lc-name, .lhead h1, .hero .hb b, .dropc .dt, .endc .et, .lp-head h1, .lp-head .pr, .gpr, .rl .rp, .post .act .price, .sticky-cta .pr, .total b, .kinds-h, .success h2, .prof .stats b, .top .title, .top .h { font-family: var(--disp); }
.wm { font-size: 29px; font-weight: 800; letter-spacing: -1.6px; }
.hh { font-weight: 800; font-size: 19px; letter-spacing: -.6px; }
.lc-name { font-weight: 800; letter-spacing: -1px; }
.hero .hb b { font-weight: 800; font-size: 26px; letter-spacing: -1px; }
.gpr { font-weight: 800; }

/* launch: the keyhole turns, then the word lands */
.intro { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity .4s ease; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-wm .wm { font-size: 54px; letter-spacing: -3px; animation: introWord .7s cubic-bezier(.2, .9, .3, 1.1) both; }
.intro-wm .ko { animation: introKey .7s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes introWord { from { opacity: 0; transform: translateY(14px); letter-spacing: 4px; } }
@keyframes introKey { 0% { transform: rotate(-90deg) scale(.4); } 70% { transform: rotate(10deg) scale(1.08); } 100% { transform: none; } }

/* real QR, join, edit shop */
.qr canvas { image-rendering: pixelated; }
.qrfail { color: #000; font-weight: 700; text-align: center; padding-top: 70px; }
.qrlink { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; background: var(--s2); border-radius: 14px; padding: 8px 8px 8px 12px; }
.qrlink span { flex: 1; min-width: 0; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.scanbox { position: relative; margin: 14px 16px 0; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.scanbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanframe { position: absolute; inset: 20%; border: 2.5px solid #fff; border-radius: 22px; pointer-events: none; }
.scanbox .btn { position: relative; z-index: 2; }
.shopedit-av { display: flex; justify-content: center; padding: 10px 0 14px; }

/* upload-only pickers */
.upgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 14px 12px; }
.upimg { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--s2); }
.upimg img { width: 100%; height: 100%; object-fit: cover; }
.upimg button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.upimg .cover { position: absolute; left: 6px; bottom: 6px; background: #fff; color: #000; border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.upadd { aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed #3a3a3a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.upadd .ti { font-size: 26px; color: #fff; }
.upadd:only-child { grid-column: span 3; aspect-ratio: auto; height: 130px; }
.upl { position: relative; cursor: pointer; display: block; }
.upbadge { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.upcam { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 15px; border: 3px solid #000; }
.lico.sm.upl { overflow: visible; }
.lico.sm.upl img { border-radius: 15px; }
.shopedit-av { width: 96px; margin: 14px auto 8px; }

/* discover: categories made of real listings, top sellers; messages tab badge */
.trend { align-items: center; gap: 8px; padding-top: 14px; }
.trend .tlab { flex: none; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); margin-right: 2px; }
.trend button { background: var(--s1); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #fff; }
.trend button::before { content: none; }
.catrow { gap: 8px; padding: 14px 12px 2px; }
.catk { flex: none; width: 128px; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 12px; }
.catk .stack { position: relative; display: block; height: 58px; margin-bottom: 10px; }
.catk .stack img { position: absolute; top: 0; left: calc(var(--i) * 26px); width: 54px; height: 54px; border-radius: 14px; object-fit: cover; border: 2.5px solid var(--s1); transform: rotate(calc((var(--i) - 1) * 6deg)); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.catk b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.catk > span:last-child { font-size: 12px; color: var(--ink2); font-weight: 600; }
.sellc { flex: none; width: 150px; position: relative; text-align: left; }
.sellc .sc-cov { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--s2); }
.sellc .sc-cov img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); }
.sellc .sc-rk { position: absolute; top: 6px; left: 10px; font-family: var(--disp); font-size: 30px; font-weight: 800; letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.sellc .sc-av { display: block; margin: -24px 0 6px 10px; position: relative; width: 50px; }
.sellc .sc-av .av { border: 3px solid #000; }
.sellc b { display: block; font-size: 14px; font-weight: 800; }
.sellc > span:last-child { display: block; font-size: 12px; color: var(--ink2); }
.tabbar .mbdg { position: absolute; top: 11px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #4c9bff; color: #000; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #121212; }

/* own listings, sold, confirm */
.ctas.own .btn:first-child { flex: 1; }
.ctas.own .btn.ghost:not(.icon) { flex: 1; height: 50px; }
.ctas.own .btn.icon { width: 50px; height: 50px; }
.pgrid .ph.sold img { filter: grayscale(1) brightness(.5); }
.pgrid .ph.sold .pp { background: #fff; color: #000; border-radius: 99px; padding: 2px 8px; text-shadow: none; }
.confirm { padding: 10px 18px 6px; text-align: center; display: grid; gap: 10px; }
.confirm b { font-size: 19px; font-weight: 800; }
.confirm p { color: var(--ink2); font-size: 14px; margin-bottom: 6px; }
.btn.danger { background: #ff453a; color: #fff; }

/* ================================================================ welcome, add/create locker, members */
.onb { position: fixed; inset: 0; z-index: 150; background: #000; display: flex; justify-content: center; opacity: 0; transition: opacity .35s ease; }
.onb.on { opacity: 1; }
.onb-in { width: var(--col); padding: calc(28px + env(safe-area-inset-top, 0px)) 22px calc(30px + var(--safe-b)); display: flex; flex-direction: column; }
.onb-top .wm { font-size: 30px; }
.onb h1 { font-family: var(--disp); font-size: 38px; line-height: 1.02; font-weight: 800; letter-spacing: -1.6px; margin: 34px 0 10px; }
.onb p { color: var(--ink2); font-size: 15px; line-height: 1.45; margin-bottom: 22px; }
.onb-rows { display: grid; gap: 20px; margin: 18px 0 auto; }
.onb-rows div { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; }
.onb-rows span { grid-row: span 2; width: 46px; height: 46px; border-radius: 15px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.onb-rows span .ti { -webkit-text-stroke: .6px currentColor; }
.onb-rows b { font-size: 16.5px; font-weight: 800; }
.onb-rows small { font-size: 13.5px; color: var(--ink2); line-height: 1.35; }
.onb-in > .btn.full { margin-top: 28px; }
.onb-opts { display: grid; gap: 10px; margin-bottom: auto; }
.onb-skip { margin-top: 18px; color: var(--ink2); font-weight: 700; font-size: 14.5px; padding: 10px; }
.bigopt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.bigopt .bo-ic { width: 46px; height: 46px; border-radius: 15px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.bigopt span:nth-child(2) { flex: 1; min-width: 0; }
.bigopt b { display: block; font-size: 16px; font-weight: 800; }
.bigopt small { display: block; font-size: 13px; color: var(--ink2); margin-top: 1px; }
.bigopt > .ti { color: var(--ink2); font-size: 18px; }
.bigopt:active { transform: scale(.98); }
.st2 { font-family: var(--disp); font-size: 22px; font-weight: 800; letter-spacing: -.6px; padding: 6px 18px 12px; }
.lmem { font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.tagc { background: none; color: #fff; }
.tagc.on { background: #fff; color: #000; border-color: #fff; }

/* ================================================================ deals in chat */
.thread { padding-bottom: 150px; }
.sysmsg { align-self: center; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 4px 0; }
.dealmsg { align-self: stretch; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 10px; margin: 6px 0; }
.dealmsg.off { opacity: .55; }
.dm-top { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.dm-top .ph { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.dm-top b { display: block; font-size: 14.5px; font-weight: 800; }
.dm-top small { display: block; font-size: 12.5px; color: var(--ink2); }
.dsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 8px; }
.dsteps span { font-size: 10.5px; font-weight: 700; color: var(--ink3); text-align: center; padding-top: 7px; border-top: 3px solid #2a2a2a; }
.dsteps span.on { color: #fff; border-color: #4c9bff; }
.dact { display: flex; align-items: center; gap: 10px; }
.dwait { font-size: 12.5px; color: var(--ink2); }
.dstars { color: #fff; letter-spacing: 1px; }
.quick { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(66px + var(--safe-b)); width: var(--col); display: flex; gap: 6px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; z-index: 34; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; background: var(--s2); border: 1px solid var(--line2); border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.quick button:active { transform: scale(.95); }
.starpick { display: flex; justify-content: center; gap: 8px; }
.starpick button { font-size: 38px; color: #3a3a3a; line-height: 1; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), color .15s; }
.starpick button.on { color: #fff; }
.starpick button:active { transform: scale(1.25); }

/* installed as an app: clear the status bar */
@media (display-mode: standalone) { .top { padding-top: env(safe-area-inset-top, 0px); height: calc(50px + env(safe-area-inset-top, 0px)); } .dtop { padding-top: calc(10px + env(safe-area-inset-top, 0px)); } }

/* ================================================================ character: stickers, stamps, voice */
/* A sticker: die-cut white, black type, tilted, with the paper's own shadow. */
.stk { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #000; font-family: var(--disp); font-weight: 800; font-size: 12.5px; letter-spacing: -.2px; line-height: 1; padding: 5px 9px 6px; border-radius: 9px; transform: rotate(var(--r, -4deg)); box-shadow: 0 0 0 2.5px #000, 0 6px 14px rgba(0,0,0,.45); white-space: nowrap; pointer-events: none; }
.stk .ti { font-size: 13px; -webkit-text-stroke: .4px currentColor; }
.stk.hot { background: #000; color: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.45); }
.stk.live { background: #000; color: #fff; box-shadow: 0 0 0 2px #4c9bff, 0 6px 14px rgba(0,0,0,.45); }
.stk.br { top: auto; left: auto; right: 8px; bottom: 8px; }
.stk.big { top: auto; left: auto; right: 14px; bottom: 14px; font-size: 17px; padding: 7px 13px 8px; border-radius: 12px; box-shadow: 0 0 0 3px #000, 0 10px 24px rgba(0,0,0,.5); }
.stk.hot.big, .stk.live.big { box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0,0,0,.5); }
.stk.live.big { box-shadow: 0 0 0 3px #4c9bff, 0 10px 24px rgba(0,0,0,.5); }
.lvd { width: 7px; height: 7px; border-radius: 50%; background: #4c9bff; display: inline-block; flex: none; animation: lvd 1.6s ease-in-out infinite; }
@keyframes lvd { 0%, 100% { box-shadow: 0 0 0 0 rgba(76,155,255,.6); } 50% { box-shadow: 0 0 0 5px rgba(76,155,255,0); } }
.gcard:active .stk, .cell:active .stk { transform: rotate(calc(var(--r) * 1.6)) scale(1.06); }
.gcard .stk, .cell .stk { transition: transform .32s cubic-bezier(.3, 1.6, .5, 1); }

/* Earned stickers on a shop: a little wall, tap one to see how it's earned. */
.stkwall { display: flex; gap: 9px; margin: 6px -14px 0; padding: 8px 14px 8px 16px; overflow-x: auto; scrollbar-width: none; }
.stkwall::-webkit-scrollbar { display: none; }
.stkwall .stk { flex: none; }
.stk.earn { position: static; pointer-events: auto; font-size: 13px; padding: 6px 10px 7px; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #2a2a2a, 0 6px 14px rgba(0,0,0,.4); transition: transform .32s cubic-bezier(.3, 1.6, .5, 1); }
.stk.earn:nth-child(3n+2) { background: #000; color: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.4); }
.stk.earn:active { transform: rotate(0deg) scale(1.12); transition-duration: .1s; }

/* A stamp: inked outline, slammed on at an angle. */
.stamp { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(var(--r, -12deg)); font-family: var(--disp); font-weight: 800; font-size: 44px; letter-spacing: 3px; line-height: 1; color: #fff; padding: 8px 16px 10px 19px; border: 4px solid #fff; border-radius: 12px; outline: 1.5px solid rgba(255,255,255,.6); outline-offset: 3px; background: rgba(0,0,0,.28); text-shadow: 0 2px 12px rgba(0,0,0,.4); pointer-events: none; }
.stamp.sm { font-size: 20px; letter-spacing: 2px; padding: 4px 8px 5px 10px; border-width: 2.5px; border-radius: 8px; outline-width: 1px; outline-offset: 2px; }
.stamp.deal { left: auto; top: 12px; right: 12px; transform: rotate(var(--r, 10deg)); font-size: 17px; letter-spacing: 2px; padding: 4px 7px 5px 9px; border-width: 2.5px; border-radius: 7px; color: #4c9bff; border-color: #4c9bff; outline-color: rgba(76,155,255,.5); outline-width: 1px; outline-offset: 2px; background: none; text-shadow: none; }
.stamp.slam { animation: slam .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes slam { 0% { opacity: 0; transform: rotate(calc(var(--r) - 18deg)) scale(2.4); } 60% { opacity: 1; transform: rotate(var(--r)) scale(.92); } 100% { opacity: 1; transform: rotate(var(--r)) scale(1); } }
.dealmsg { position: relative; }
.pgrid .ph.sold .stamp { background: rgba(0,0,0,.2); }
.lp-photos.carousel { position: relative; }

/* The locker card is a locker door: four louvres in the corner. */
.lcard { position: relative; }
.vents { position: absolute; top: 18px; right: 44px; display: grid; gap: 3px; pointer-events: none; }
.vents i { display: block; width: 26px; height: 3px; border-radius: 2px; background: #2c2c2c; box-shadow: inset 0 1px 0 #000; }

/* The clock's mood, live. */
.hh .mood { display: inline-flex; align-items: center; gap: 8px; font-size: inherit; font-weight: inherit; color: var(--ink); letter-spacing: inherit; }
.hh .mood .lvd { width: 8px; height: 8px; }

/* Empty, drawn. */
.empty.art { display: flex; flex-direction: column; align-items: center; padding: 34px 24px 40px; }
.empty.art .doodle { width: 112px; height: 112px; color: #4a4a4a; margin-bottom: 10px; }
.empty.art .doodle .door { stroke: #fff; transform-box: fill-box; transform-origin: 0% 50%; animation: doorSwing 3.2s ease-in-out infinite; }
.empty.art b { font-family: var(--disp); color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.6px; }
.empty.art span { color: var(--ink2); font-size: 14px; margin-top: 4px; max-width: 260px; line-height: 1.4; }
@keyframes doorSwing { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-3deg) scaleX(.86); } }

/* Tap the wordmark and the keyhole turns, like a key. */
button.brand { display: inline-flex; align-items: center; }
.wm.turn .ko { animation: keyTurn .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes keyTurn { 0% { transform: rotate(0); } 45% { transform: rotate(90deg); } 70% { transform: rotate(80deg); } 100% { transform: rotate(0); } }

/* ================================================================ v2: board, money, offers, ask */
/* tab bar: the $ */
.tabbar .dollar { width: 25px; height: 25px; }
.top .ic { position: relative; }
.hbdg { position: absolute; top: 2px; right: -4px; min-width: 17px; height: 17px; border-radius: 9px; background: #4c9bff; color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #000; }

/* Home: where you stand, first */
.mehero { display: block; width: calc(100% - 24px); margin: 6px 12px 0; text-align: left; background: linear-gradient(160deg, #161616, #0b0b0b); border: 1px solid var(--line2); border-radius: 24px; padding: 14px 16px 12px; position: relative; overflow: hidden; }
.mehero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(76,155,255,.16), transparent 70%); pointer-events: none; }
.mh-row { display: flex; align-items: flex-end; gap: 22px; }
.mh-cell { display: flex; flex-direction: column; gap: 2px; }
.mh-k { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .6px; }
.mh-k .ti { font-size: 14px; color: #4c9bff; }
.mh-big { font-family: var(--disp); font-size: 40px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; display: inline-flex; align-items: flex-start; gap: 4px; }
.mv { font-style: normal; font-family: Inter, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0; margin-top: 4px; }
.mv.up { color: #4c9bff; } .mv.dn { color: var(--ink2); }
.spark { flex: 1; height: 38px; margin-bottom: 4px; overflow: visible; }
.spark polyline { fill: none; stroke: #4c9bff; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: #4c9bff; }
.mh-next { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.mh-next b { color: #fff; font-weight: 800; }
.mh-next .ti { font-size: 17px; }
.mehero.none .mh-big { font-size: 28px; margin-top: 4px; }
.mehero:active { transform: scale(.98); }
.hsearch { display: flex; align-items: center; gap: 9px; width: calc(100% - 24px); margin: 10px 12px 2px; height: 44px; padding: 0 16px; border-radius: 99px; background: var(--s1); border: 1px solid var(--line); color: var(--ink2); font-size: 15px; font-weight: 500; }
.hsearch span { flex: 1; text-align: left; }
.hs-ai { color: #4c9bff; font-size: 18px; }

/* Leaderboard */
.bhead { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px 10px; }
.bk { font-family: var(--disp); font-size: 30px; font-weight: 800; letter-spacing: -1.2px; }
.bres { font-size: 12.5px; color: var(--ink2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.bseg { margin: 0 12px 6px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 26px 14px 0; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; min-width: 0; }
.pd .av { box-shadow: 0 0 0 2.5px #000, 0 0 0 4px #333; }
.pd.p1 .av { box-shadow: 0 0 0 3px #000, 0 0 0 5px #fff; }
.pd.me .av { box-shadow: 0 0 0 3px #000, 0 0 0 5px #4c9bff; }
.pd-crown { position: absolute; top: -24px; font-size: 24px; color: #fff; -webkit-text-stroke: .6px currentColor; }
.pd-nm { font-size: 13px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-v { font-family: var(--disp); font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.pd-step { width: 100%; margin-top: 4px; background: var(--s1); border: 1px solid var(--line2); border-bottom: 0; border-radius: 14px 14px 0 0; display: flex; align-items: flex-start; justify-content: center; font-family: var(--disp); font-weight: 800; font-size: 26px; color: var(--ink3); padding-top: 8px; }
.pd.p1 .pd-step { height: 86px; background: #fff; color: #000; border-color: #fff; font-size: 34px; }
.pd.p2 .pd-step { height: 62px; } .pd.p3 .pd-step { height: 46px; }
.blist { border-top: 1px solid var(--line2); }
.brow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.brow.me { background: rgba(76,155,255,.08); box-shadow: inset 3px 0 0 #4c9bff; }
.br-rk { width: 20px; font-family: var(--disp); font-weight: 800; font-size: 17px; text-align: center; }
.br-mv { width: 24px; font-size: 10.5px; font-weight: 800; color: var(--ink3); }
.br-mv.up { color: #4c9bff; }
.br-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.br-nm b { font-size: 14.5px; font-weight: 800; }
.br-nm b small { font-size: 11px; color: var(--ink2); font-weight: 600; }
.br-nm > small { font-size: 12px; color: var(--ink2); }
.br-v { font-family: var(--disp); font-size: 17px; font-weight: 800; }
.bfine { font-size: 12.5px; color: var(--ink2); text-align: center; padding: 16px 24px 30px; line-height: 1.5; }

/* Offers */
.offb { flex: none; padding: 0 14px; }
.offmsg { align-self: stretch; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 10px; margin: 6px 0; position: relative; }
.offmsg.turn { border-color: #4c9bff; box-shadow: 0 0 0 1px rgba(76,155,255,.25), 0 8px 30px rgba(76,155,255,.08); }
.offmsg.declined, .offmsg.cancelled { opacity: .5; }
.om-k { display: block; font-size: 11.5px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #4c9bff !important; }
.offmsg.accepted .om-k { color: #fff !important; }
.om-amt { display: flex; align-items: baseline; gap: 8px; padding: 10px 4px 4px; }
.om-amt b { font-family: var(--disp); font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.om-amt b small { font-size: 15px; color: var(--ink2); letter-spacing: 0; margin-left: 1px; }
.om-amt s { color: var(--ink3); font-size: 15px; font-weight: 700; }
.om-lad { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 2px 4px 6px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.om-lad .ti { font-size: 12px; color: var(--ink3); }
.om-lad .me { color: #fff; }
.offmsg .dact { flex-wrap: wrap; margin-top: 4px; }
.ofbig { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px 6px; }
.ofst { width: 52px; height: 52px; border-radius: 50%; background: var(--s3); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.ofst:active { transform: scale(.9); background: #fff; color: #000; }
.ofamt { min-width: 130px; text-align: center; }
.ofamt b { font-family: var(--disp); font-size: 64px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.ofamt small { font-size: 18px; color: var(--ink2); font-weight: 700; }
.ofvibe { text-align: center; font-size: 13.5px; font-weight: 700; color: #4c9bff; padding: 6px 0 4px; }
.ofchips { display: flex; justify-content: center; gap: 8px; padding: 10px 16px 0; }
.ofchips .chip small { color: var(--ink2); font-weight: 600; margin-left: 2px; }
.ofchips .chip.on small { color: inherit; opacity: .7; }
.ofnote { width: 100%; height: 44px; background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 14.5px; color: #fff; }

/* The $ tab */
.mhero { margin: 4px 12px 0; padding: 14px 16px 14px; background: linear-gradient(170deg, #141414, #0a0a0a); border: 1px solid var(--line2); border-radius: 24px; }
.seg3 { display: flex; gap: 4px; background: #000; border: 1px solid var(--line); border-radius: 99px; padding: 3px; width: max-content; }
.seg3 button { padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.seg3 button.on { background: #fff; color: #000; }
.mbig { font-family: var(--disp); font-size: 58px; font-weight: 800; letter-spacing: -2.6px; line-height: 1; margin-top: 16px; }
.mdelta { font-size: 13px; font-weight: 600; color: var(--ink2); margin-top: 6px; }
.mdelta .up { color: #4c9bff; font-weight: 800; } .mdelta .dn { color: #fff; font-weight: 800; }
.mbars { display: flex; gap: 6px; height: 130px; margin-top: 16px; }
.mcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mct { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.mct i { display: block; width: 100%; border-radius: 7px 7px 3px 3px; background: #2a2a2a; }
.mcol.now .mct i { background: #4c9bff; }
.mcv { height: 13px; font-size: 10px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.mcol.now .mcv { color: #fff; }
.mcl { font-size: 10.5px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.goal { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.gk { color: var(--ink2); } .gv { color: #fff; }
.gbar { height: 8px; border-radius: 4px; background: #222; overflow: hidden; }
.gbar i { display: block; height: 100%; border-radius: 4px; background: #fff; }
.cash2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 12px 0; }
.cash2 > * { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; text-align: left; }
.cash2 span { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); }
.cash2 b { font-family: var(--disp); font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.mtabs { margin-top: 12px; position: sticky; top: 50px; background: rgba(0,0,0,.94); backdrop-filter: blur(14px); z-index: 20; }
.mtabs button { position: relative; font-size: 13.5px; font-weight: 700; }
.odot2 { position: absolute; top: 9px; margin-left: 3px; width: 7px; height: 7px; border-radius: 50%; background: #4c9bff; }
.mstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; }
.mstats div { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; min-width: 0; }
.mstats b { display: block; font-family: var(--disp); font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.mstats b.sm { font-family: Inter, sans-serif; font-size: 12.5px; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-transform: none; min-height: 22px; }
.mstats span { font-size: 11px; font-weight: 600; color: var(--ink2); }
.rowi.wide { width: 100%; text-align: left; }
.pill.blue { color: #4c9bff; border-color: rgba(76,155,255,.45); }
.plus { font-family: var(--disp); font-weight: 800; font-size: 16px; }
.mfine { font-size: 13px; color: var(--ink2); padding: 6px 14px 4px; }
.mbtns { display: flex; gap: 8px; padding: 12px 14px 4px; }
.mbtns .btn { flex: 1; }
.crk { width: 16px; font-family: var(--disp); font-weight: 800; color: var(--ink3); text-align: center; }
.prodr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 6px; text-align: left; }
.prodr .ph { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.prodr .pt { flex: 1; min-width: 0; } .prodr .pt b { display: block; font-size: 15px; font-weight: 800; } .prodr .pt span { font-size: 12.5px; color: var(--ink2); }
.prodr .pn { text-align: right; } .prodr .pn b { display: block; font-family: var(--disp); font-size: 20px; font-weight: 800; } .prodr .pn span { font-size: 12px; color: var(--ink2); }
.prods { display: flex; gap: 16px; padding: 0 14px 12px 80px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.prods .ti { font-size: 14px; margin-right: 3px; }

/* Profile extras */
.rankln { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: var(--ink2); }
.rankln b { color: #fff; font-weight: 800; }
.rankln .ti-trophy { color: #4c9bff; font-size: 15px; }
.setl { display: grid; gap: 4px; padding-bottom: 6px; }
.setl .toggle { padding: 8px 0; }
.setl .toggle b { font-size: 14.5px; font-weight: 700; }
.setr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-size: 14.5px; font-weight: 700; }
.setr > .ti:first-child { font-size: 20px; color: var(--ink2); width: 22px; }
.setr > span { flex: 1; } .setr > span small { display: block; font-size: 12px; color: var(--ink2); font-weight: 500; }
.setr > b { font-size: 13px; color: var(--ink2); font-weight: 600; }
.setr > .ti:last-child { color: var(--ink3); }
.lsq { width: 36px !important; height: 36px; border-radius: 10px; overflow: hidden; flex: none !important; }
.lsq img { width: 100%; height: 100%; object-fit: cover; }

/* Discover: search row with Ask + refine */
.drow { display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; }
.drow .searchbar { flex: 1; margin: 0 !important; }
.askb { color: #4c9bff; font-size: 19px; display: flex; }
.refb { width: 44px; height: 44px; border-radius: 50%; background: var(--s3); display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; flex: none; }
.refb.on { background: #fff; color: #000; }
.refb span { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #4c9bff; color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #000; }
.chips.wrap { flex-wrap: wrap; padding: 0; }
.sheet h4 { font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.askrow { display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 0 12px 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(76,155,255,.4); background: rgba(76,155,255,.07); text-align: left; font-size: 14px; color: var(--ink2); }
.askrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .askrow b { color: #fff; }
.askrow .ti { color: #4c9bff; font-size: 18px; }

/* Ask Locker */
.sheet.tall { height: 86dvh; display: flex; flex-direction: column; overflow: hidden; }
.sheet.tall #sheetbody { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.askh { display: flex; align-items: center; gap: 12px; padding: 4px 16px 12px; border-bottom: 1px solid var(--line); }
.askh > div { flex: 1; } .askh b { display: block; font-family: var(--disp); font-size: 19px; font-weight: 800; } .askh small { font-size: 12.5px; color: var(--ink2); }
.askh .x { font-size: 22px; color: var(--ink2); }
.askav { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.askav .ko { width: 22px; height: 22px; color: #000; }
.askav .ko circle:first-child { fill: #000; } .askav .ko circle + circle, .askav .ko path { fill: #fff; }
.askt { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.askm { max-width: 84%; padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; }
.askm.bot { align-self: flex-start; background: var(--s2); border-bottom-left-radius: 6px; }
.askm.me { align-self: flex-end; background: #fff; color: #000; font-weight: 600; border-bottom-right-radius: 6px; }
.askcards { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; flex: none; }
.askc { flex: none; width: 118px; text-align: left; }
.askc .ph { width: 118px; height: 118px; border-radius: 14px; display: block; }
.askc b { display: block; font-family: var(--disp); font-size: 15px; font-weight: 800; margin-top: 5px; }
.askc span { display: block; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askall { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #4c9bff; padding: 4px 2px; }
.asksug { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 14px; flex: none; }
.asksug button { flex: none; border: 1px solid var(--line2); border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: #ddd; }
.askin { display: flex; gap: 8px; padding: 6px 12px 4px; flex: none; }
.askin input { flex: 1; height: 46px; border-radius: 99px; background: var(--s2); border: 1px solid var(--line2); padding: 0 18px; font: inherit; font-size: 15px; color: #fff; }
.askin button { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #000; font-size: 20px; display: flex; align-items: center; justify-content: center; }

/* ================================================================ flat pass: no outlines, no glow
   Black, white, greys. Surfaces are told apart by fill, never by a line.
   Blue is left only on badges, unread dots and the live dot. */
.btn.ghost, .btn.ghost.sm { border: 0; background: #1c1c1c; }
.chip, .tagc, .trend button, .quick button, .asksug button { border: 0; background: #1a1a1a; color: #e6e6e6; }
.chip.on, .tagc.on { background: #fff; color: #000; }
.pill, .pill.ok, .pill.due, .pill.late, .pill.blue { border: 0; background: #1c1c1c; }
.pill.blue { color: #fff; }
.board, .shopcard, .summary div, .dealcard, .types button, .field, .opt, .lcard, .dropc, .wantc, .seg2, .catt, .rowlist, .endc, .catk, .bigopt, .dealmsg, .offmsg, .pd-step, .stepper, .ofnote, .askin input, .seg3, .cash2 > *, .mstats div, .rankln, .askrow, .hsearch { border: 0 !important; }
.rowi, .brow, .prods, .blist, .setr, .sheet .sh, .askh, .mh-next { border-color: transparent !important; }
.offmsg.turn { box-shadow: none; }
.om-k { color: var(--ink2) !important; }
.offmsg.turn .om-k, .offmsg.accepted .om-k { color: #fff !important; }
.ofvibe { color: var(--ink2); }
.brow.me { background: #121212; box-shadow: none; }
.mv.up, .br-mv.up, .mdelta .up { color: #fff; }
.askb, .askrow .ti, .hs-ai, .rankln .ti-trophy, .mh-k .ti { color: var(--ink2); }
.askrow { background: #121212; }
.askall { color: #fff; }
.pd.me .av { box-shadow: 0 0 0 3px #000, 0 0 0 5px #fff; }
.refb.on { background: #fff; color: #000; }

/* Home: search first, then one quiet line of money (sellers only) */
.hsearch { margin: 6px 12px 0; background: #161616; }
.hearn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 16px 6px; text-align: left; }
.e-l { display: flex; align-items: baseline; gap: 8px; }
.e-l b { font-family: var(--disp); font-size: 30px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.e-l small, .e-r small { font-size: 13px; color: var(--ink2); font-weight: 500; }
.e-r { display: flex; align-items: baseline; gap: 6px; padding: 6px 0 6px 12px; }
.e-r b { font-family: var(--disp); font-size: 20px; font-weight: 800; }
.e-r .ti { font-size: 16px; color: var(--ink3); align-self: center; }

/* $ tab: a number, a quiet chart, three figures */
.mrange { display: flex; gap: 18px; padding: 8px 16px 0; }
.mrange button { font-size: 14px; font-weight: 700; color: var(--ink3); padding: 4px 0; }
.mrange button.on { color: #fff; }
.mbig { padding: 0 16px; margin-top: 14px; font-size: 64px; }
.mdelta { padding: 0 16px; margin-top: 4px; }
.mdelta b { color: #fff; font-weight: 800; }
.mbars { height: 96px; margin: 22px 16px 0; gap: 8px; }
.mct i { border-radius: 4px; background: #222; }
.mcol.now .mct i { background: #fff; }
.mcl { font-size: 10.5px; color: var(--ink3); }
.mcol.now .mcl { color: #fff; }
.mfig { display: flex; gap: 28px; padding: 22px 16px 4px; }
.mfig > * { display: flex; flex-direction: column; text-align: left; }
.mfig small { font-size: 12px; color: var(--ink2); font-weight: 600; }
.mfig b { font-family: var(--disp); font-size: 22px; font-weight: 800; letter-spacing: -.6px; margin-top: 2px; }
.mtabs { margin-top: 18px; border-bottom: 1px solid #161616; }
.mstats { gap: 0; padding: 16px 16px 6px; }
.mstats div { background: none; padding: 0 8px 0 0; border-radius: 0; }
.mstats b { font-size: 20px; }
.prods { padding-bottom: 14px; }
.hearn { padding-bottom: 12px; }
.rail { border-bottom: 0 !important; }

/* ================================================================ pro money tools (flat) */
.msg { white-space: pre-line; }
.msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.lp-head .pr .was { font-size: .55em; color: var(--ink3); margin-right: 6px; font-weight: 700; }
.stk.sale { background: #fff; color: #000; }
.macts { display: flex; gap: 8px; padding: 16px 16px 0; }
.macts .btn { flex: 1; height: 46px; }
.mhow { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 16px 0; font-size: 12.5px; color: var(--ink2); }
.mhow b { color: #fff; font-weight: 800; }
.minus { font-family: var(--disp); font-weight: 800; font-size: 16px; color: var(--ink2); }
.costic { width: 40px; height: 40px; border-radius: 12px; background: #161616; display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--ink2); flex: none; }
.mtabs { overflow-x: auto; scrollbar-width: none; }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs button { flex: none; padding: 11px 12px; }
.prod { padding: 4px 0 14px; }
.prod + .prod { margin-top: 4px; }
.pgrid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px 16px 0 82px; }
.pgrid4 b { display: block; font-family: var(--disp); font-size: 16px; font-weight: 800; }
.pgrid4 span { font-size: 11px; color: var(--ink2); font-weight: 600; }
.pacts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0 82px; }
.pmeta { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.stockc { display: inline-flex; align-items: center; gap: 2px; background: #161616; border-radius: 99px; padding: 2px; }
.stockc button { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.stockc button:active { background: #2a2a2a; }
.stockc b { font-size: 13px; font-weight: 800; padding: 0 6px; }
.stockc.low b { color: #fff; }
.stockc.low { background: #fff; color: #000; }
.stockc.low button:active { background: #ddd; }
.lgitems { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.lgi { flex: none; width: 108px; text-align: left; padding: 6px; border-radius: 16px; background: #161616; }
.lgi.on { background: #fff; color: #000; }
.lgi .ph { width: 96px; height: 76px; border-radius: 11px; display: block; }
.lgi .lgo { display: flex; align-items: center; justify-content: center; font-size: 22px; background: #222; animation: none; }
.lgi.on .lgo { background: #eee; }
.lgi b { display: block; font-size: 12.5px; font-weight: 800; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgi span:last-child { font-size: 11.5px; color: var(--ink2); }
.lgi.on span:last-child { color: #555; }
.lgrow { display: flex; gap: 22px; }
.stepper { background: #161616; border: 0; }
.stepper button { width: 40px; height: 40px; font-size: 18px; }
.stepper span { min-width: 54px; text-align: center; font-weight: 800; }
.rcpt { margin: 4px 16px 0; background: #fff; color: #000; border-radius: 18px; padding: 18px 18px 14px; }
.rc-top { display: flex; align-items: center; justify-content: space-between; }
.rc-top .wm { color: #000; font-size: 22px; }
.rc-top .wm .ko { color: #000; } .rc-top .wm .ko circle + circle, .rc-top .wm .ko path { fill: #fff; }
.rc-top span { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #777; }
.rc-amt { font-family: var(--disp); font-size: 48px; font-weight: 800; letter-spacing: -2px; margin: 14px 0 10px; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed #ccc; font-size: 13.5px; }
.rc-row span { color: #777; } .rc-row b { font-weight: 700; text-align: right; }
.rc-fine { font-size: 11.5px; color: #888; margin-top: 10px; text-align: center; }
.payf { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.payf b { width: 86px; font-size: 14.5px; font-weight: 700; }
.payf input { flex: 1; height: 42px; border-radius: 12px; background: #161616; border: 0; padding: 0 12px; font: inherit; font-size: 14.5px; color: #fff; }

/* tap a bar: that day, compared */
.mcol { background: none; padding: 0; }
.mcol .mct i, .mcol.now .mct i { background: #222; transition: background .2s; }
.mcol.sel .mct i { background: #fff; }
.mcol .mcl, .mcol.now .mcl { color: var(--ink3); }
.mcol.sel .mcl { color: #fff; }
.mcol .mcv { color: #fff; font-size: 11px; font-weight: 800; }
.mcol:active .mct i { background: #3a3a3a; }
.mcol.sel:active .mct i { background: #ddd; }
.mnav { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0; }
.mnav span { font-size: 13px; font-weight: 700; color: var(--ink2); min-width: 92px; text-align: center; }
.mnav button { width: 32px; height: 32px; border-radius: 50%; background: #141414; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mnav button[disabled] { opacity: .25; }
.mbig { margin-top: 8px; }
.mday { margin: 14px 12px 0; background: #111; border-radius: 20px; padding: 14px 14px 10px; }
.md-h { display: flex; align-items: baseline; justify-content: space-between; }
.md-h b { font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.md-h span { font-size: 13px; color: var(--ink2); font-weight: 600; }
.md-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.md-cmp > div { background: #181818; border-radius: 14px; padding: 10px 12px; }
.md-cmp small { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.md-cmp b { font-family: var(--disp); font-size: 20px; font-weight: 800; margin-right: 6px; }
.md-cmp em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.md-top { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.md-top span { font-size: 12.5px; background: #181818; border-radius: 99px; padding: 5px 10px; color: var(--ink2); font-weight: 600; }
.md-top b { color: #fff; }
.md-list { margin-top: 8px; }
.md-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; text-align: left; font-size: 13.5px; font-weight: 600; }
.md-row .md-how { flex: 1; color: var(--ink3); font-size: 12px; }
.md-row b { font-family: var(--disp); font-weight: 800; }
.md-more, .md-none { font-size: 12.5px; color: var(--ink3); padding: 6px 0 2px; }

/* ---------- fun: a little 13 here and there */
.sc { position: relative; display: inline-block; }
.scribble { position: absolute; left: -2%; right: -4%; bottom: -9px; width: 106%; height: 12px; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.scribble path + path { stroke-width: 1.8; opacity: .55; }
.sc.draw .scribble path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: scrib .55s .15s cubic-bezier(.4, 0, .2, 1) forwards; }
.sc.draw .scribble path + path { animation-delay: .4s; }
@keyframes scrib { to { stroke-dashoffset: 0; } }
.mbig .scribble { bottom: -12px; height: 16px; }
.cnt { display: inline-block; font-variant-numeric: tabular-nums; }
.cnt.bump { animation: cntBump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cntBump { 0% { transform: scale(1); } 35% { transform: scale(1.14) rotate(-3deg); } 100% { transform: none; } }

.hfun { display: flex; align-items: center; gap: 12px; padding: 4px 16px 10px; flex-wrap: wrap; }
.hearn + .hfun { margin-top: 2px; }
.stk.run, .stk.best { position: static; font-size: 12.5px; }
.stk.run .ti { font-size: 14px; }
.nudge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink2); padding: 4px 0; }
.nudge b { color: #fff; font-weight: 800; }
.nudge .ti { font-size: 15px; color: #fff; }
.nudge:active { transform: scale(.96); }
.stk.best { margin-left: 8px; font-size: 11.5px; padding: 4px 8px 5px; vertical-align: 2px; }
.stk.best .ti { font-size: 12px; }
.mcol .mcv .ti { font-size: 13px; color: #fff; }

.gpr { rotate: var(--pr, 0deg); }
.gcard:active .gpr { rotate: 0deg; transition: rotate .1s; }

.cpop { position: fixed; inset: 0; pointer-events: none; z-index: 96; overflow: hidden; }
.cpop .amt { position: absolute; left: 50%; top: 44%; background: #fff; color: #000; font-family: var(--disp); font-weight: 800; font-size: 46px; letter-spacing: -2px; line-height: 1; padding: 10px 18px 12px; border-radius: 18px; box-shadow: 0 0 0 4px #000, 0 18px 40px rgba(0,0,0,.6); animation: cpAmt 1.35s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes cpAmt {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(.4) rotate(-14deg); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(-5deg); }
  34% { transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
  72% { opacity: 1; transform: translate(-50%, -62%) scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-50%, -110%) scale(.85) rotate(-6deg); }
}
.cpop i { position: absolute; left: 50%; top: 44%; width: 7px; height: 13px; border-radius: 2px; background: #fff; opacity: 0; animation: cpBit 1s cubic-bezier(.12, .7, .3, 1) forwards; }
.cpop i.o { width: 9px; height: 9px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 2px #fff; }
.cpop i.d { width: auto; height: auto; background: none; color: #fff; font-style: normal; }
.cpop i.d b { font-family: var(--disp); font-weight: 800; font-size: 20px; }
@keyframes cpBit {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 60px)) scale(1) rotate(var(--rot)); }
}
@media (prefers-reduced-motion: reduce) { .cpop .amt { animation-duration: .01ms; animation-iteration-count: 1; opacity: 0; } .sc.draw .scribble path { animation: none; stroke-dashoffset: 0; } .cnt.bump { animation: none; } }
.hearn:has(+ .hfun) { padding-bottom: 8px; }
.mbig:has(.sc) + .mdelta { margin-top: 16px; }
.hfun + .rail { margin-top: 4px; }

/* ---------- HQ: the $ tab as a business. Mono for the terminal bits, nothing coloured */
:root { --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.hq-top { padding-top: 10px; }
.hq-co { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.hq-co b { display: block; font-family: var(--disp); font-size: 18px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.hq-co small { display: block; font: 500 10.5px/1.3 var(--mono); color: var(--ink2); letter-spacing: .3px; text-transform: uppercase; }
.tape { overflow: hidden; margin-top: 10px; padding: 9px 0; background: #0c0c0c; }
.tape-in { display: flex; width: max-content; animation: tape 32s linear infinite; }
.tape span { font: 500 11.5px var(--mono); color: var(--ink2); white-space: nowrap; padding-right: 26px; }
.tape b { color: #fff; font-weight: 700; margin-right: 6px; }
.tape em, .psym em { font-style: normal; color: #fff; margin-left: 6px; font-weight: 700; }
.tape em.dn, .psym em.dn, .psym em.flat { color: var(--ink3); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-in { animation: none; } .tape { overflow-x: auto; } }
.hq-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.hq-open { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 99px; background: #151515; color: #fff; font-weight: 700; font-size: 12.5px; }
.hq-open.off { color: var(--ink2); }
.hq-open .ti { font-size: 15px; }
.hq-rank { display: inline-flex; align-items: center; gap: 2px; font: 700 12px var(--mono); color: #fff; }
.hq-rank .ti { font-size: 14px; color: var(--ink3); }
.hq-lab { display: flex; align-items: center; gap: 8px; padding: 18px 16px 0; font: 500 11px var(--mono); letter-spacing: .6px; text-transform: uppercase; color: var(--ink2); }
.hq-lab button { width: 26px; height: 26px; border-radius: 50%; background: #151515; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.hq-lab button[disabled] { opacity: .25; }
.mdelta.hq { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.mdelta.hq b { font-weight: 700; }
.hq-chart { position: relative; height: 148px; margin: 22px 8px 0; }
.hq-chart svg { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.hq-line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hq-base { fill: none; stroke: #4a4a4a; stroke-width: 1.4; stroke-dasharray: 1.5 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hq-vl { position: absolute; top: 0; height: 120px; border-left: 1px solid #262626; pointer-events: none; }
.hq-pt { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000; transform: translate(-50%, -50%); pointer-events: none; }
.hq-crown { position: absolute; font-size: 14px; color: #fff; transform: translateX(-50%); pointer-events: none; }
.hq-val { position: absolute; font-family: var(--disp); font-weight: 800; font-size: 14px; color: #000; background: #fff; padding: 3px 8px 4px; border-radius: 8px; transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
.hq-hit { position: absolute; left: 0; right: 0; top: 0; height: 120px; display: flex; }
.hq-hit button { flex: 1; }
.hq-x { position: absolute; left: 0; right: 0; top: 128px; display: flex; pointer-events: none; }
.hq-x span { flex: 1; text-align: center; font: 500 10px var(--mono); color: var(--ink3); text-transform: uppercase; }
.hq-x span.on { color: #fff; font-weight: 700; }
.hq-rng { display: flex; align-items: center; gap: 4px; padding: 6px 12px 0; }
.hq-rng button { height: 30px; padding: 0 13px; border-radius: 99px; font: 700 11.5px var(--mono); color: var(--ink2); }
.hq-rng button.on { background: #fff; color: #000; }
.hq-key { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); color: var(--ink3); padding-right: 4px; }
.hq-key i { width: 16px; border-top: 1.5px dotted #5a5a5a; }
.hq-goal { display: block; width: calc(100% - 32px); margin: 20px 16px 0; text-align: left; }
.hq-goal .gl { display: flex; justify-content: space-between; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .6px; color: var(--ink2); }
.hq-goal .gl b { color: #fff; font-weight: 700; }
.hq-goal .gb { display: block; height: 6px; border-radius: 3px; background: #1c1c1c; margin-top: 8px; overflow: hidden; }
.hq-goal .gb i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.hq-acts { display: flex; justify-content: space-around; padding: 22px 6px 0; }
.hq-acts button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink2); min-width: 0; }
.hq-acts .qi { width: 52px; height: 52px; border-radius: 50%; background: #161616; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; transition: transform .15s var(--ease); }
.hq-acts .qi.main { background: #fff; color: #000; }
.hq-acts button:active .qi { transform: scale(.9); }
.hq-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 22px 12px 4px; }
.hq-kpi button { background: #0f0f0f; border-radius: 16px; padding: 12px 13px 13px; text-align: left; min-width: 0; }
.hq-kpi button:active { transform: scale(.97); }
.hq-kpi small { display: flex; align-items: center; gap: 4px; font: 500 10.5px var(--mono); letter-spacing: .7px; text-transform: uppercase; color: var(--ink3); }
.hq-kpi small .ti { font-size: 12px; }
.hq-kpi b { display: block; font: 800 25px/1.1 var(--disp); letter-spacing: -.8px; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-kpi em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink2); margin-top: 2px; }
.psym { display: block; font: 700 10.5px var(--mono); letter-spacing: .6px; color: var(--ink3); margin-bottom: 1px; }
.psym em { margin-left: 4px; }
.mfine b { color: #fff; }

/* ---------- stock colours, money tab only: green up, red down, like every stock app */
:root { --gain: #00c805; --loss: #ff5000; }
.tape em, .psym em, .mdelta.hq b.up, .md-cmp em.up { color: var(--gain); }
.tape em.dn, .psym em.dn, .mdelta.hq b.dn, .md-cmp em.dn { color: var(--loss); }
.psym em.flat { color: var(--ink3); }
.hq-line { stroke: var(--gain); }
.hq-line.dn { stroke: var(--loss); }
.hq-pt { background: var(--gain); }
.hq-line.dn ~ .hq-pt, .hq-chart:has(.hq-line.dn) .hq-pt { background: var(--loss); }

/* ---------- podium: no rings, no floating crown. #1 gets the app's own sticker */
.pd .av, .pd.p1 .av, .pd.me .av { box-shadow: none; }
.pd.p1 .av { margin-top: 6px; }
.stk.pd-tag { top: -4px; left: calc(50% + 12px); font-size: 13px; padding: 5px 9px 6px; z-index: 3; }
.stk.pd-tag .ti { font-size: 14px; }
.pd:active .stk.pd-tag { transform: rotate(calc(var(--r) * 1.6)) scale(1.06); }
.stk.pd-tag { transition: transform .32s cubic-bezier(.3, 1.6, .5, 1); }

/* ---------- quality of life */
.toast.act { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; }
.toast.act button { background: #000; color: #fff; border-radius: 8px; padding: 6px 11px; font-weight: 800; font-size: 13px; }
.toast.act button:active { transform: scale(.94); }

.rushs .rush-h { display: flex; align-items: baseline; gap: 10px; padding: 4px 4px 0; }
.rush-k { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--mono); letter-spacing: .7px; text-transform: uppercase; color: var(--ink2); }
.rush-k .ti { font-size: 14px; color: #fff; }
.rush-t { font-family: var(--disp); font-size: 40px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; margin-left: auto; }
.rush-n { font-size: 13px; font-weight: 600; color: var(--ink2); }
.rush-how { display: flex; gap: 6px; padding: 14px 0 0; }
.rush-how button { height: 32px; padding: 0 13px; border-radius: 99px; background: #161616; color: var(--ink2); font-weight: 700; font-size: 12.5px; }
.rush-how button.on { background: #fff; color: #000; }
.rush-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0 0; }
.rtile { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #111; text-align: left; transition: transform .12s var(--ease); }
.rtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.rtile > span { position: absolute; z-index: 1; }
.rt-top { top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; }
.rt-n { background: #fff; color: #000; font-family: var(--disp); font-weight: 800; font-size: 15px; padding: 3px 9px 4px; border-radius: 9px; }
.rt-st { margin-left: auto; font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .5px; color: #fff; background: rgba(0,0,0,.55); padding: 4px 7px; border-radius: 7px; }
.rt-bot { left: 12px; right: 12px; bottom: 11px; display: flex; flex-direction: column; }
.rt-bot b { font-family: var(--disp); font-size: 26px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.rt-bot span { font-size: 12.5px; font-weight: 600; color: #ddd; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtile:active { transform: scale(.94); }
.rtile.hit { animation: rtHit .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rtHit { 0% { transform: scale(.92); } 100% { transform: none; } }
.rt-plus { left: 50%; top: 42%; z-index: 2; font-family: var(--disp); font-weight: 800; font-size: 30px; color: #fff; transform: translate(-50%, -50%); animation: rtPlus .8s ease-out forwards; pointer-events: none; }
@keyframes rtPlus { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.7); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -130%) scale(1); } }
.rtile.out { opacity: .4; }
.rush-ft { display: flex; gap: 8px; padding: 16px 0 4px; }
.rush-ft .btn { flex: 1; height: 48px; }
.rush-ft .btn[disabled] { opacity: .35; }

.inst { display: flex; align-items: center; gap: 12px; margin: 4px 12px 12px; padding: 12px 10px 12px 12px; background: #0f0f0f; border-radius: 18px; }
.inst-ic { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; flex: none; }
.inst-ic .ko { width: 22px; height: 22px; color: #000; }
.inst-ic .ko circle:not(:first-child), .inst-ic .ko path { fill: #fff; }
.inst-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inst-tx b { font-size: 14px; font-weight: 800; }
.inst-tx small { font-size: 12.5px; color: var(--ink2); font-weight: 500; margin-top: 1px; }
.inst-tx small .ti { font-size: 14px; color: #fff; vertical-align: -2px; }
.inst-x { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink3); font-size: 16px; flex: none; }
.rushs .rush-h { padding: 4px 18px 0; }
.rushs .rush-how, .rushs .rush-grid { padding-left: 14px; padding-right: 14px; }
.rushs .rush-ft { padding: 16px 14px calc(10px + var(--safe-b)); }
.mbig + .mdelta { margin-top: 6px; }

/* ---------- more quality of life */
.amtin { display: inline-flex; align-items: baseline; justify-content: center; min-width: 54px; font-weight: 800; font-size: 15px; }
.amtin input { width: 4.2ch; field-sizing: content; min-width: 2ch; max-width: 7ch; background: none; border: 0; outline: 0; color: inherit; font: inherit; text-align: left; padding: 0; }
.amtin.big { font-family: var(--disp); font-size: 64px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.amtin.big input { width: 3ch; max-width: 5ch; letter-spacing: -3px; }
.amtin input:focus { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.crow { padding: 8px 10px 8px 14px; }
.crow-m { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; text-align: left; }
.crow .btn { flex: none; gap: 4px; }
.recentq .rclr { background: none !important; padding: 6px 4px !important; color: var(--ink3) !important; }
.bkc { display: flex; align-items: center; gap: 12px; margin: 22px 12px 0; padding: 12px 8px 12px 12px; background: #0f0f0f; border-radius: 18px; }
.bkc-ic { width: 40px; height: 40px; border-radius: 11px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.bkc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bkc-tx b { font-size: 14px; font-weight: 800; }
.bkc-tx small { font-size: 12px; color: var(--ink2); font-weight: 500; margin-top: 1px; }
label.setr { cursor: pointer; }
.crow .tx .pill { display: inline-block; vertical-align: 1px; margin-left: 4px; }

/* ---------- Post: Sell / Buy / Trade */
.intents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 12px 0; }
.intent { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 12px 14px; background: var(--s1); border-radius: 18px; text-align: left; min-width: 0; }
.intent .in-ic { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 10px; }
.intent b { font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.intent small { font-size: 12px; color: var(--ink2); font-weight: 500; line-height: 1.25; }
.intent:active { transform: scale(.96); }
.intent.off { opacity: .35; }
.kback { display: inline-flex; align-items: center; gap: 2px; margin: 4px 0 2px 10px; padding: 6px 8px; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.kback .ti { font-size: 16px; }

.bsub { padding: 0 16px 4px; font: 500 11px var(--mono); letter-spacing: .7px; text-transform: uppercase; color: var(--ink2); }

/* ---------- sign in (real backend) */
.auth { min-height: 100dvh; display: flex; flex-direction: column; gap: 12px; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 40px; }
.auth-wm .wm { font-size: 34px; }
.auth h1 { font-family: var(--disp); font-size: 38px; font-weight: 800; letter-spacing: -1.6px; line-height: 1.02; margin-top: 28px; }
.auth p { color: var(--ink2); font-size: 15px; margin-bottom: 8px; }
.auth input, .auth select { width: 100%; height: 52px; border-radius: 14px; background: var(--s2); color: #fff; border: 0; padding: 0 16px; font: 500 16px Inter, sans-serif; outline: 0; }
.auth .au-code { font: 700 26px var(--mono); letter-spacing: 8px; text-align: center; }
.auth .btn.full { height: 52px; font-size: 16px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink2); font-size: 14px; }
.auth-row select { width: 120px; }
.auth-fine { font-size: 12.5px !important; color: var(--ink3) !important; text-align: center; margin-top: 6px; }
.auth-link { color: var(--ink2); font-weight: 600; font-size: 14px; padding: 10px; }
.auth-or { text-align: center; color: var(--ink3); font-size: 13px; margin: 8px 0; }

.savec .inst-ic { background: #fff; color: #000; font-size: 20px; }
.pwrow { display: flex; gap: 8px; align-items: center; }
.pwrow input { flex: 1; }
.pwrow button { width: 44px; height: 44px; border-radius: 12px; background: var(--s2); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
