/* PopCart Community web app. Stage mode: white surfaces, cream hairlines, content first.
   No gradients, no blur, no soft shadows. Pressables keep a 3px ink edge and a hard 0-blur lift.
   Brand fonts load only with the brand pack (CommunitySans/CommunityMono); otherwise system fonts. */
:root {
  color-scheme: light;
  --yellow: #FFE500; --blue: #1B34FF; --ink: #14110F; --cream: #FFF6E3; --white: #FFFFFF;
  --kiwi: #6EDC5F; --ember: #FF4F1F; --sky: #7CC8FF; --gum: #FF8AD8;
  --ink700: #3A3430; --ink500: #6E665C; --ink300: #A39A8B; --cream200: #F3EAD6; --dis-fill: #E9DFC9; --dis-edge: #C9BEA8;
  --edge: 3px solid var(--ink); --hair: 1px solid var(--cream200);
  --sans: 'CommunitySans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'CommunityMono', ui-monospace, Menlo, Consolas, monospace;
  --wm: var(--blue);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
/* headings get focus from the router (for screen readers); they are not controls, so no ring */
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--yellow); padding: 10px 14px; border-radius: 999px; font-weight: 800; }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 26px; height: 26px; } .ic.b { stroke-width: 2.5; }
.x { font-weight: 900; font-stretch: 125%; line-height: .92; letter-spacing: -.03em; margin: 0; }
.xe { font-stretch: 112.5%; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.mono { font: 500 11px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mute { color: var(--ink500); }
.pad { padding: 0 16px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--cream); font: 500 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.tag.k { background: var(--ink); color: var(--yellow); } .tag.y { background: var(--yellow); } .tag.b { background: var(--blue); color: var(--yellow); }

/* names: plain text without the brand pack; the pack's wordmark with it */
.plainname { font-weight: 900; font-stretch: 112.5%; letter-spacing: -.02em; font-size: 22px; line-height: 1; color: var(--ink); }
.plainname-l { font-size: 40px; }
.lockup { display: inline-flex; flex-direction: column; align-items: flex-start; }
.lockup .wm { width: 92px; height: 23.3px; }
.lockup .xe { font-size: 21.9px; margin-top: -6px; }
.lockup-l .wm { width: 150px; height: 38px; } .lockup-l .xe { font-size: 35.6px; margin-top: -10px; }

/* ---------- shell ----------
   phone < 700: bottom tabs and the ✎ button.
   tablet 700-999: icon rail + one column (X / Threads on a tablet).
   small desktop 1000-1279: icon rail + column + right rail.
   desktop >= 1280: labelled nav + column + right rail. */
.shell { min-height: 100vh; }
.wnav, .wside { display: none; }
#main { min-width: 0; max-width: 640px; margin: 0 auto; padding-bottom: 104px; outline: none; }
body:not(.nofab) #main { padding-bottom: 160px; } /* the end of a feed clears the ✎ button */
@media (min-width: 700px) {
  .shell { display: grid; grid-template-columns: 88px minmax(0, 600px); justify-content: center; }
  .wnav { display: flex; flex-direction: column; align-items: center; position: sticky; top: 0; height: 100vh; padding: 12px 8px; border-right: var(--hair); overflow: auto; }
  #main { max-width: none; margin: 0; border-right: var(--hair); padding-bottom: 40px; min-height: 100vh; }
  .tabbar, .fab { display: none !important; }
  .wnav .nl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1000px) {
  .shell { grid-template-columns: 88px minmax(0, 600px) minmax(0, 340px); }
  .wside { display: block; position: sticky; top: 0; height: 100vh; overflow: auto; padding: 8px 18px 14px; }
}
@media (min-width: 1280px) {
  .shell { grid-template-columns: 260px minmax(0, 600px) minmax(0, 360px); }
  .wnav { align-items: stretch; padding: 16px 12px; }
  .wnav .nl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
.bare #main { max-width: 560px; margin: 0 auto; border: 0; padding-bottom: 40px; }
.bare .wnav, .bare .wside, .bare .tabbar, .bare .fab { display: none !important; }
@media (min-width: 700px) { .bare .shell { display: block; } }

.wnav .brandlink { padding: 6px 4px 14px; display: block; }
.wnav a.nv { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; width: 56px; min-height: 52px; padding: 0; border-radius: 999px; font: 600 17px/1 var(--sans); }
.wnav a.nv:hover { background: var(--cream); }
.wnav a.nv[aria-current="page"] { font-weight: 800; } .wnav a.nv[aria-current="page"] .ic { stroke-width: 2.6; }
.wnav a.nv[aria-current="page"]::before { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; bottom: 6px; border-radius: 999px; background: var(--yellow); z-index: -1; }
.wnav a.nv { isolation: isolate; }
.wnav .btn.postbtn { margin-top: 14px; width: 56px; min-height: 56px; padding: 0; }
.wnav a.nv .badge { position: absolute; top: 6px; right: 4px; }
/* compact rail: the wordmark alone, smaller */
.wnav .lockup .wm { width: 64px; height: 16.2px; } .wnav .lockup .xe { font-size: 15.2px; margin-top: -4px; }
.wnav .plainname { font-size: 15px; }
.wnav .who { justify-content: center; }
@media (min-width: 1280px) {
  .wnav .brandlink { padding: 6px 14px 16px; }
  .wnav a.nv { justify-content: flex-start; width: auto; padding: 0 14px; }
  .wnav a.nv[aria-current="page"]::before { display: none; }
  .wnav a.nv .badge { position: static; margin-left: auto; }
  .wnav .btn.postbtn { width: 100%; min-height: 50px; padding: 0 22px; }
  .wnav .btn.postbtn .ic { display: none; }
  .wnav .lockup .wm { width: 92px; height: 23.3px; } .wnav .lockup .xe { font-size: 21.9px; margin-top: -6px; }
  .wnav .plainname { font-size: 22px; }
  .wnav .who { justify-content: flex-start; }
}
@media (min-width: 700px) { .abar.homebar { display: none; } }
.wsearch { margin: 6px 0 14px; }
.wside .job.li { display: block; padding: 8px 0; border-bottom: 0; } .wside .job .d, .wside .job .skills, .wside .job .trust { display: none; }
.wside .job .ttl { font-size: 14.5px; } .wside .job .pay { font-size: 15px; margin: 4px 0 0; }
.pst.big .tx { font-size: 17px; }
.wnav .who { display: flex; gap: 10px; align-items: center; margin-top: auto; padding: 8px; border-radius: 999px; font-size: 14px; }
.wnav .who:hover { background: var(--cream); }
.wcard { border-radius: 18px; background: var(--cream); padding: 14px 16px; margin-bottom: 14px; }
.wcard h2 { margin: 0 0 8px; font: 800 18px/1.1 var(--sans); font-stretch: 112.5%; }
.wcard .li { padding: 8px 0; } .wcard .li:hover { background: transparent; }
.wcard .foot { font-size: 12px; margin: 6px 0 0; color: var(--ink500); }
.wfoot { font-size: 12.5px; color: var(--ink500); line-height: 1.8; }
.wfoot a { margin-right: 10px; text-decoration: underline; }

/* app bar */
.abar { position: sticky; top: 0; z-index: 6; background: var(--white); display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; min-height: 56px; }
.cream-page .abar { background: var(--cream); }
.abar h1, .abar .t { font: 800 18px/1.1 var(--sans); font-stretch: 112.5%; flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abar .mid { flex: 1; display: flex; justify-content: center; }
.ib { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.ib:hover { background: var(--cream); }
.ftabs { display: flex; gap: 2px; border-bottom: var(--hair); padding: 0 6px; overflow-x: auto; scrollbar-width: none; background: var(--white); }
.ftabs a, .ftabs button { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 46px; padding: 0 10px; font: 700 14.5px/1 var(--sans); color: var(--ink500); white-space: nowrap; }
.ftabs [aria-current="page"], .ftabs [aria-selected="true"] { color: var(--ink); }
.ftabs [aria-current="page"]::after, .ftabs [aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 4px; border-radius: 4px; background: var(--ink); }
.ftabs.even { justify-content: space-around; }
.stickyhd { position: sticky; top: 0; z-index: 5; background: var(--white); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: var(--hair); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 20; }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font: 600 11px/1 var(--sans); color: var(--ink500); position: relative; }
.tabbar a b { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; }
.tabbar a[aria-current="page"] { color: var(--ink); } .tabbar a[aria-current="page"] b { background: var(--yellow); } .tabbar a[aria-current="page"] .ic { stroke-width: 2.5; }
.tabbar .dot { position: absolute; top: 6px; left: calc(50% + 10px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ember); color: var(--ink); font: 700 10px/16px var(--sans); text-align: center; }
.fab { position: fixed; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 999px; background: var(--blue); color: var(--yellow); border: var(--edge); box-shadow: 0 5px 0 0 var(--ink); display: grid; place-items: center; z-index: 21; transition: transform 80ms, box-shadow 80ms; }
.fab:active { transform: translateY(5px); box-shadow: none; }
.nofab .fab { display: none; }

/* avatars + names */
.av { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; flex: none; display: grid; place-items: center; font: 800 16px/1 var(--sans); color: var(--ink); background: var(--cream200); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.s { width: 32px; height: 32px; font-size: 13px; } .av.xs { width: 24px; height: 24px; font-size: 10px; } .av.l { width: 84px; height: 84px; font-size: 32px; border: 4px solid var(--white); }
.av.sq { border-radius: 14px; }
.t-rider { background: var(--blue); color: var(--yellow); } .t-fresh { background: var(--kiwi); } .t-grill { background: var(--ember); }
.t-grocery { background: var(--sky); } .t-creator { background: var(--gum); } .t-tutor, .t-coder, .t-other { background: var(--cream200); }
.nm { font-weight: 700; display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.nm:hover { text-decoration: underline; }
.tick { width: 16px; height: 16px; border-radius: 999px; background: var(--blue); color: var(--yellow); display: inline-grid; place-items: center; flex: none; }
.tick .ic { width: 11px; height: 11px; stroke-width: 3.5; }
.trade { display: inline-flex; align-items: center; gap: 4px; color: var(--ink500); font-weight: 500; }
.trade i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }

/* post: X / Threads anatomy */
.pst { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 16px 6px; border-bottom: var(--hair); }
.pst .hd { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 15px; white-space: nowrap; }
.pst .hd .meta { color: var(--ink500); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pst .hd .more { margin: -10px -10px -10px auto; color: var(--ink500); }
.pst .tx { display: block; margin: 2px 0 0; font-size: 15px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.pst .ctx { font-size: 12.5px; color: var(--ink500); display: flex; gap: 6px; align-items: center; grid-column: 1 / -1; margin: 0 0 -6px 50px; }
.media { margin-top: 10px; border-radius: 16px; overflow: hidden; border: var(--hair); display: grid; gap: 2px; grid-template-columns: 1fr; background: var(--cream); }
.media.n2, .media.n3, .media.n4 { grid-template-columns: 1fr 1fr; }
.media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; aspect-ratio: auto; }
.media.n2 img, .media.n3 img, .media.n4 img { aspect-ratio: 1; }
.acts { display: flex; justify-content: space-between; max-width: 320px; color: var(--ink500); margin-left: -10px; }
.acts a, .acts button { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; }
.acts [aria-pressed="true"].sal { color: var(--ember); } .acts [aria-pressed="true"].sal .ic { fill: var(--ember); stroke: var(--ember); }
.acts [aria-pressed="true"].sv .ic { fill: var(--ink); }
.acts a:hover, .acts button:hover { color: var(--ink); background: var(--cream); }
.acts .static { cursor: default; } .acts .static:hover { background: none; color: var(--ink500); }
.rank { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 16px; font-size: 12.5px; color: var(--ink500); border-bottom: var(--hair); }
.rank button, .linkish { color: var(--blue); font-weight: 700; min-height: 36px; }
.linkish { text-decoration: underline; text-underline-offset: 2px; }
.end { text-align: center; padding: 26px 16px 34px; color: var(--ink500); font-size: 14px; }
.end b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.asof { font-size: 12px; color: var(--ink500); padding: 8px 16px; }
.more-row { display: flex; justify-content: center; padding: 16px; }

/* stories-like row of Spaces */
.srow { display: flex; gap: 12px; padding: 10px 16px 12px; overflow-x: auto; border-bottom: var(--hair); scrollbar-width: none; }
.srow a { display: grid; justify-items: center; gap: 5px; width: 66px; flex: none; font-size: 11.5px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.srow .ring { padding: 3px; border-radius: 20px; border: 2.5px solid var(--cream200); }
.srow .ring.unread { border-color: var(--ink); }
.srow .av { width: 50px; height: 50px; border-radius: 15px; }

/* sheets (dialog) */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 640px; max-height: 85vh; border: 0; border-radius: 26px 26px 0 0; padding: 8px 16px calc(22px + env(safe-area-inset-bottom)); background: var(--white); color: var(--ink); overflow: auto; }
dialog.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--cream200); margin: 0 auto 12px; }
dialog.sheet::backdrop { background: rgb(20 17 15 / .45); }
@media (min-width: 700px) { dialog.sheet { inset: 0; margin: auto; max-width: 480px; height: fit-content; border-radius: 26px; } }
.sheet h2 { font: 800 19px/1.2 var(--sans); margin: 0 0 6px; }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 4px; font-size: 15px; font-weight: 600; border-bottom: var(--hair); }
.menu > :last-child { border-bottom: 0; }
.menu .danger { color: #B42A00; }
.sig { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: var(--hair); font-size: 14px; }
.sig .ico, .ico-c { width: 28px; height: 28px; border-radius: 99px; background: var(--cream); display: grid; place-items: center; flex: none; }
.ico-c { width: 32px; height: 32px; }
.formula { font: 500 12px/1.6 var(--mono); background: var(--ink); color: var(--kiwi); border-radius: 14px; padding: 12px; margin: 12px 0; overflow-wrap: anywhere; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: var(--edge); border-radius: 999px; box-shadow: 0 5px 0 0 var(--ink); font: 800 15.5px/1 var(--sans); font-stretch: 112.5%; background: var(--blue); color: var(--yellow); white-space: nowrap; transition: transform 80ms, box-shadow 80ms; }
.btn:active { transform: translateY(5px); box-shadow: none; }
.btn.w { background: var(--white); color: var(--ink); } .btn.y { background: var(--yellow); color: var(--ink); } .btn.e { background: var(--ember); color: var(--ink); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; box-shadow: 0 3px 0 0 var(--ink); border-width: 2.5px; }
.btn.sm::after { content: ""; position: absolute; inset: -5px -2px; }
.btn.sm:active { transform: translateY(3px); }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--dis-fill); color: var(--ink500); border-color: var(--dis-edge); box-shadow: none; cursor: not-allowed; transform: none; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--cream200); font: 600 13px/1 var(--sans); white-space: nowrap; }
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; }

/* forms */
.ob { padding: 8px 20px 24px; }
.ob h1, .h1 { font: 900 30px/1 var(--sans); font-stretch: 125%; letter-spacing: -.03em; margin: 10px 0 8px; }
.sub { color: var(--ink500); margin: 0 0 18px; font-size: 15px; }
.lbl { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.field { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--ink500); border-radius: 14px; background: var(--white); font-size: 17px; }
.field input, .field select { border: 0; outline: 0; width: 100%; min-height: 48px; background: transparent; font-size: 17px; }
.field:focus-within { border: 2px solid var(--ink); outline: 3px solid var(--blue); outline-offset: 2px; }
textarea.area { width: 100%; min-height: 110px; padding: 12px 14px; border: 1.5px solid var(--ink500); border-radius: 14px; font-size: 16px; resize: vertical; background: var(--white); }
textarea.area:focus { border: 2px solid var(--ink); outline: 3px solid var(--blue); outline-offset: 2px; }
textarea.bare-area { width: 100%; min-height: 120px; border: 0; outline: 0; font-size: 18px; resize: vertical; padding: 4px 0; background: transparent; }
textarea.bare-area:focus-visible { outline: 3px solid var(--blue); border-radius: 8px; }
.hint { font-size: 13px; color: var(--ink500); margin: 8px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.err { color: #B42A00; font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.ok { color: #1F7A12; }
.progress { display: flex; gap: 4px; padding: 0 20px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--cream200); } .progress i.on { background: var(--ink); }
.pt { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: var(--hair); font-size: 14.5px; }
.pt .ico { width: 28px; height: 28px; border-radius: 99px; background: var(--cream); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.agree { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 14px; cursor: pointer; min-height: 44px; }
.agree input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.agree .box { width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 7px; flex: none; display: grid; place-items: center; }
.agree .box .ic { opacity: 0; } .agree input:checked + .box { background: var(--ink); color: var(--yellow); } .agree input:checked + .box .ic { opacity: 1; }
.agree input:focus-visible + .box { outline: 3px solid var(--blue); outline-offset: 2px; }
.lang { display: inline-flex; border-radius: 999px; background: var(--cream); padding: 3px; }
.lang button { min-height: 38px; padding: 0 12px; border-radius: 999px; font: 700 12px/1 var(--sans); } .lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.toggle { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: var(--hair); }
.toggle p { margin: 0; } .toggle .d { font-size: 13px; color: var(--ink500); margin-top: 2px; }
.tg { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--cream200); flex: none; }
.tg::before { content: ""; position: absolute; inset: -7px -2px; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--ink500); transition: left 120ms; }
.tg[aria-checked="true"] { background: var(--ink); } .tg[aria-checked="true"]::after { left: 23px; border-color: var(--ink); }
.passkey-art { width: 96px; height: 96px; margin: 24px auto 8px; border-radius: 999px; background: var(--cream); display: grid; place-items: center; }
.suggest { border: var(--hair); border-radius: 14px; margin-top: 6px; overflow: hidden; }
.suggest button { display: block; width: 100%; min-height: 44px; padding: 8px 14px; border-bottom: var(--hair); text-align: left; }
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover, .suggest button:focus-visible { background: var(--cream); }

/* lists */
.li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; min-height: 56px; }
a.li:hover, button.li:hover { background: var(--cream); }
.li .t1 { font-weight: 700; font-size: 15px; display: flex; gap: 5px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t2 { font-size: 13.5px; color: var(--ink500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t2.unread { color: var(--ink); font-weight: 600; }
.li .side { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--ink500); }
.li.top { align-items: flex-start; }
.li.line { border-bottom: var(--hair); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--yellow); font: 700 11px/20px var(--sans); text-align: center; }
.sect { padding: 14px 16px 6px; font-size: 13px; font-weight: 700; color: var(--ink500); margin: 0; }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin: 4px 16px 6px; border-radius: 999px; background: var(--cream); color: var(--ink500); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 44px; font-size: 15px; color: var(--ink); }
.search:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.cream-page { background: var(--cream); min-height: 100vh; }
.group { background: var(--white); border-radius: 16px; margin: 0 16px 14px; overflow: hidden; }
.group .li { border-bottom: var(--hair); } .group .li:last-child { border-bottom: 0; }
.group.k { background: var(--ink); color: var(--cream); } .group.k b { color: var(--yellow); }
.group.c { background: var(--cream); }
.cream-page .group.c { background: var(--white); }
.note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 16px; padding: 14px; background: var(--cream); border-radius: 16px; font-size: 14px; }
.note p { margin: 2px 0 0; color: var(--ink500); }
.note .btn { margin-top: 10px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
.note > div { min-width: 0; }
.note.k { background: var(--ink); color: var(--cream); } .note.k p { color: var(--ink300); } .note.k b { color: var(--yellow); }
.empty { padding: 40px 24px; text-align: center; color: var(--ink500); display: flex; flex-direction: column; align-items: center; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.loading { padding: 40px 16px; text-align: center; color: var(--ink500); }
.loading::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 999px; border: 3px solid var(--cream200); border-top-color: var(--ink); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* space */
.cover { height: 128px; position: relative; overflow: hidden; background: var(--cream); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ill { position: absolute; right: -20px; bottom: -30px; height: 120%; }
.cover .ib { position: absolute; left: 10px; top: 8px; background: var(--white); }
.sp-hd { padding: 12px 16px 0; }
.sp-hd h1 { font: 900 24px/1 var(--sans); font-stretch: 112.5%; letter-spacing: -.02em; margin: 0 0 6px; }
.faces { display: flex; } .faces .av { margin-left: -8px; border: 2px solid var(--white); } .faces .av:first-child { margin-left: 0; }
.rules { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; background: var(--cream); border-bottom: var(--hair); font-size: 14px; }
.chan { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; font-size: 15px; color: var(--ink700); width: 100%; }
.chan b { font: 800 17px/1 var(--sans); width: 16px; color: var(--ink300); }
.chan:hover { background: var(--cream); }
.msgrow { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 6px 16px; }
.msgrow .hd { font-size: 14.5px; display: flex; align-items: baseline; gap: 6px; } .msgrow .hd .meta { color: var(--ink500); font-size: 12px; }
.msgrow p { margin: 2px 0 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msgrow .locked { color: var(--ink500); font-style: italic; }
.lockline { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--ink500); padding: 10px 16px; text-align: center; }
.composer { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); border-top: var(--hair); background: var(--white); z-index: 4; }
.composer textarea { flex: 1; min-height: 44px; max-height: 160px; border-radius: 22px; background: var(--cream); border: 0; padding: 11px 16px; font-size: 15px; resize: none; }
.composer textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.composer .ib { color: var(--blue); }
.thread-page #main, .chat-page #main { padding-bottom: 0; }
.bub { max-width: 76%; padding: 9px 13px; border-radius: 20px; background: var(--cream); font-size: 15px; margin: 3px 16px; width: fit-content; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub.me { margin-left: auto; background: var(--blue); color: var(--white); }
.bub.locked { background: var(--white); border: 1.5px dashed var(--cream200); color: var(--ink500); font-style: italic; }
.bub time { display: block; font-size: 11px; opacity: .75; margin-top: 2px; }
.daysep { text-align: center; font-size: 12px; color: var(--ink500); margin: 10px 0 6px; }

/* work */
.job { padding: 14px 16px; border-bottom: var(--hair); display: block; width: 100%; }
.job:hover { background: var(--cream); }
.job .ttl { font: 700 16.5px/1.25 var(--sans); margin: 0 0 4px; }
.job .m { font-size: 13px; color: var(--ink500); }
.job .pay, .paybig { font: 900 18px/1 var(--sans); font-stretch: 112.5%; margin: 10px 0 6px; }
.job .pay small { font: 500 13px/1 var(--sans); color: var(--ink500); }
.job .d { font-size: 14px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.skills span { padding: 5px 10px; border-radius: 999px; background: var(--cream); font-size: 12.5px; font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink500); align-items: center; }
.trust b { color: var(--ink); font-weight: 600; } .trust .okk { color: var(--ink); display: inline-flex; gap: 4px; align-items: center; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; padding: 12px 16px; font-size: 14.5px; border-bottom: var(--hair); border-top: var(--hair); margin: 0; }
.kv dt { color: var(--ink500); } .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.gig-h { font: 900 26px/1.05 var(--sans); font-stretch: 112.5%; letter-spacing: -.02em; margin: 0 0 6px; }
.stick { position: sticky; bottom: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: var(--hair); background: var(--white); display: flex; gap: 10px; align-items: center; z-index: 4; }
.proof { display: block; width: 100%; border-radius: 18px; border: 1.5px solid var(--cream200); padding: 14px; background: var(--white); text-align: left; }
.proof .top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink500); }
.proof .s { font-size: 15px; font-weight: 700; margin-top: 6px; }
.proof .by { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: var(--hair); font-size: 12.5px; color: var(--ink500); }
.proof[aria-pressed="true"], .proof[aria-checked="true"] { border: 2px solid var(--ink); }
.proof + .proof { margin-top: 10px; }
.rate { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: var(--hair); font-size: 15px; font-weight: 600; }
.scale { display: flex; gap: 4px; }
.scale button { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); font: 700 14px/1 var(--sans); }
.scale button[aria-checked="true"] { background: var(--ink); color: var(--yellow); }
.bignum { font: 900 22px/1 var(--sans); }

/* profile */
.pcover { height: 120px; position: relative; overflow: hidden; background: var(--cream); }
.pcover img { width: 100%; height: 100%; object-fit: cover; }
.pcover .ill { position: absolute; right: -10px; top: -20px; height: 170px; }
.pcover .ib { position: absolute; right: 10px; top: 8px; background: var(--white); }
.phd { padding: 0 16px; margin-top: -42px; position: relative; }
.phd .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.phd h1 { font: 900 24px/1 var(--sans); font-stretch: 112.5%; letter-spacing: -.02em; margin: 10px 0 2px; display: flex; gap: 6px; align-items: center; }
.phd .tick { width: 20px; height: 20px; } .phd .tick .ic { width: 13px; height: 13px; }
.counts { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 12px; font-size: 14px; color: var(--ink500); } .counts b { color: var(--ink); }

/* welcome (loud mode is allowed here only).
   phone: name, picture, then words and buttons at the bottom, in thumb reach.
   >= 700: the whole page is yellow and the three parts appear. >= 960: words left, picture right. */
.welcome { background: var(--yellow); min-height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 26px; }
.welcome .hero { margin: auto 0 0; }
.welcome .big { font-size: clamp(40px, 11vw, 64px); }
.welcome .ill { display: block; width: 70%; max-width: 320px; margin: 24px auto 0; }
.welcome .lede { margin: 14px 0 22px; font-size: 16px; }
.welcome .cta { display: grid; gap: 12px; }
.welcome .hint { justify-content: center; text-align: center; }
.welcome .wm { --wm: var(--blue); }
.welcome .parts { display: none; }
.bare-welcome { background: var(--yellow); }
.bare-welcome #main { max-width: none; padding-bottom: 0; }
@media (min-width: 700px) {
  .welcome { max-width: 600px; margin: 0 auto; padding: 40px 32px 48px; }
  .welcome .hero { margin-top: 32px; }
  .welcome .parts { display: grid; gap: 16px; list-style: none; margin: 40px 0 0; padding: 0; }
  .welcome .parts a { display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center; height: 100%; padding: 18px; border: var(--edge); border-radius: 22px; background: var(--white); box-shadow: 0 6px 0 0 var(--ink); transition: transform 80ms, box-shadow 80ms; }
  .welcome .parts a:active { transform: translateY(6px); box-shadow: none; }
  .welcome .parts .pi { grid-row: span 2; width: 52px; height: 52px; border-radius: 999px; background: var(--blue); color: var(--yellow); display: grid; place-items: center; }
  .welcome .parts b { font: 900 21px/1 var(--sans); font-stretch: 112.5%; letter-spacing: -.02em; }
  .welcome .parts span:last-child { font-size: 14.5px; color: var(--ink700); }
}
@media (min-width: 960px) {
  .welcome { max-width: 1180px; min-height: 100vh; padding: 40px 56px 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "top top" "hero art" "parts parts"; grid-template-rows: auto 1fr auto; column-gap: 56px; }
  .welcome .wtop { grid-area: top; }
  .welcome .hero { grid-area: hero; align-self: center; margin: 0; max-width: 560px; }
  .welcome .wart { grid-area: art; align-self: center; }
  .welcome .ill { width: 100%; max-width: 480px; margin: 0 auto; }
  .welcome .big { font-size: clamp(56px, 5.6vw, 84px); }
  .welcome .lede { font-size: 19px; margin: 18px 0 28px; max-width: 30em; }
  .welcome .cta { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .welcome .hint { justify-content: flex-start; text-align: left; max-width: 520px; }
  .welcome .parts { grid-area: parts; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
  .welcome .parts a { grid-template-columns: 1fr; align-content: start; gap: 10px; padding: 22px; }
  .welcome .parts .pi { grid-row: auto; }
}

/* sign-in steps: the phone screen as is; on wider screens a white card on cream with the name above */
.authbrand { display: none; }
@media (min-width: 700px) {
  body.authpage { background: var(--cream); }
  .authpage #main { max-width: 480px; padding: 48px 0; }
  .authbrand { display: flex; justify-content: center; margin: 0 0 20px; }
  .authcard { background: var(--white); border-radius: 26px; border: var(--hair); overflow: hidden; padding-bottom: 12px; }
  .authcard .abar { background: var(--white); }
}

/* places: the zoom */
.scope { padding: 10px 16px 6px; border-bottom: var(--hair); background: var(--white); }
.placehd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.placebtn { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; flex: 1; min-width: 0; min-height: 44px; white-space: nowrap; overflow: hidden; }
/* the place's own name wins the space; its parent is cut first */
.placebtn b { flex: 0 0 auto; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.placebtn .mute { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.placehd .cnt { font-size: 12px; white-space: nowrap; }
.zoom { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8px; }
.zoom .track { position: absolute; left: 10%; right: 10%; top: 14px; height: 3px; background: var(--cream200); border-radius: 3px; }
.zoom .track i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width 200ms; width: 0; }
.zoom .track i.w1 { width: 25%; } .zoom .track i.w2 { width: 50%; } .zoom .track i.w3 { width: 75%; } .zoom .track i.w4 { width: 100%; }
.zoom button { display: grid; grid-template-rows: 30px auto; justify-items: center; align-items: center; gap: 2px; min-height: 52px; position: relative; font-size: 11.5px; font-weight: 600; color: var(--ink500); }
.zoom button b { display: block; width: var(--d); height: var(--d); border-radius: 999px; background: var(--white); border: 2px solid var(--ink300); transition: width 160ms, height 160ms; }
.zoom .d0 { --d: 8px; } .zoom .d1 { --d: 11px; } .zoom .d2 { --d: 14px; } .zoom .d3 { --d: 17px; } .zoom .d4 { --d: 20px; }
.zoom button.past b { background: var(--ink); border-color: var(--ink); }
.zoom button[aria-checked="true"] { color: var(--ink); font-weight: 800; }
.zoom button[aria-checked="true"] b { width: calc(var(--d) + 6px); height: calc(var(--d) + 6px); background: var(--yellow); border: 3px solid var(--ink); }
.coach { position: relative; margin-top: 10px; background: var(--ink); color: var(--cream); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; }
.coach b { display: block; color: var(--yellow); margin-bottom: 2px; }
.coach button { display: block; margin-top: 4px; min-height: 40px; color: var(--yellow); font-weight: 800; }
.reach { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs figure { position: relative; margin: 0; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: var(--hair); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 999px; background: var(--white); display: grid; place-items: center; border: 1.5px solid var(--ink); }
.composebox { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 4px 16px 12px; }
.section { padding: 10px 16px; border-top: var(--hair); }
.section > p:first-child { font-size: 13px; font-weight: 700; margin: 4px 0 8px; }

/* explore picks grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid3 a { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: var(--cream); display: block; }
.grid3 img { width: 100%; height: 100%; object-fit: cover; }
.grid3 .txt { position: absolute; inset: 0; padding: 10px; font-size: 13px; overflow: hidden; }
.grid3 .lab { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px; background: var(--white); font-size: 11px; font-weight: 700; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
#toast div { background: var(--ink); color: var(--cream); border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 600; pointer-events: auto; }
#toast div.bad { background: #8A1F00; color: var(--white); }
@media (min-width: 700px) { #toast { bottom: 24px; } }
