/* Today tab: Now · Square across the top, Now's list and Square's board. */

/* ---------- Now · Square (the middle of each page's top bar) ---------- */
.td-segs { display: flex; justify-content: center; gap: clamp(18px, 6vw, 32px); }
.td-segs button { position: relative; min-height: 38px; border: 0; background: none; padding: 8px 2px 10px; font: inherit; font-size: 17px; color: #8a8a8a; font-weight: 500; cursor: pointer; }
.td-segs [aria-selected="true"] { color: #1f1f1f; font-weight: 700; }
.td-segs [aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 24px; height: 3px; margin-left: -12px; border-radius: 3px; background: #e8384f; }
.td-segs button:focus-visible { outline: 2px solid #e8384f; outline-offset: 2px; border-radius: 8px; }

/* Today uses Meet's page frame (.main-meet-page): no app top bar, a white page, its own top bar. */
html[data-main-tab="today"] .topbar { display: none; }
html:not(.is-desktop-board)[data-main-tab="today"] #menuButton:not(.is-back),
html:not(.is-desktop-board)[data-main-tab="today"] #profileButton:not(.is-chat-more) { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.is-desktop-board)[data-main-tab="today"] .main:has(.main-today-page) .conversation { background: #fff; }
html:not(.is-desktop-board)[data-main-tab="today"] .main-today-page { flex: 0 0 auto; padding: 0 0 calc(var(--main-bottom-shell-offset, 80px) + 100px); background: #fff; color: #181a1f; }
html[data-profile-theme="dark"]:not(.is-desktop-board)[data-main-tab="today"] .main:has(.main-today-page) .conversation,
html[data-profile-theme="dark"]:not(.is-desktop-board)[data-main-tab="today"] .main-today-page { background: #121418; color: #f2f3f5; }
@media (min-width: 700px) {
  html.is-desktop-board[data-main-tab="today"] .main-today-page { max-width: 680px; margin: 0 auto; }
}

/* ---------- Square ---------- */
.sq-top .sq-filter { position: relative; }
.sq-dot { position: absolute; top: 10px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #fff; }
.sq-fbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; background: #fff; border-bottom: 1px solid #ebeae4; font-size: 13px; color: #4a4945; }
.sq-fbar button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #18181a; text-decoration: underline; white-space: nowrap; cursor: pointer; }
.sq-list { padding: 10px 12px 0; }
.main-meet-page:has(.sq-list) { background: #fff; }
.conversation.is-pull-active .main-meet-page .sq-list,
.conversation.is-refreshing .main-meet-page .sq-list { transform: translateY(var(--pull-offset, 0px)); }
.conversation:not(.is-pull-active) .main-meet-page .sq-list { transition: transform .22s ease; }
.sq-loading { margin: 40px 0; text-align: center; color: #86857f; }
.sq-empty { margin: 6px 0; padding: 34px 20px; border-radius: 20px; box-shadow: 0 0 0 1px #ebeae4; text-align: center; }
.sq-empty strong { display: block; font-size: 17px; margin-bottom: 8px; }
.sq-empty p { margin: 0; color: #86857f; line-height: 1.5; }
.sq-btn { margin-top: 14px; padding: 9px 16px; border: 0; border-radius: 16px; background: #18181a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sq-newline { display: flex; align-items: center; gap: 8px; margin: 6px 2px 10px; color: #ef6459; font-size: 12px; font-weight: 700; }
.sq-newline::before, .sq-newline::after { content: ""; flex: 1; height: 1px; background: #f4c0ba; }

/* A card: the picture (or the kind's emoji), the face under it, the time and distance; then the
   kind in red with Message, and the first 3 lines. */
.sq-card { position: relative; display: flex; gap: 12px; margin-bottom: 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #ebeae4; cursor: pointer; }
.sq-card.is-mine { box-shadow: 0 0 0 1.5px #18181a; }
.sq-lc { position: relative; flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; }
.sq-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; }
.sq-ptile { position: relative; overflow: hidden; background: #eeede8; }
.sq-ptile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-pe { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; box-shadow: 0 0 0 1.5px #fff; }
.sq-face { width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; background: #ddd; }
.sq-initials { display: grid; place-items: center; background: #6a8f8a; color: #fff; font-size: 11px; font-weight: 700; }
.sq-meta { margin-top: 4px; font-size: 10.5px; line-height: 1.3; color: #86857f; text-align: center; white-space: nowrap; }
.sq-bd { flex: 1; min-width: 0; }
.sq-r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sq-need { min-width: 0; color: #c8372d; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-price { color: #18181a; font-weight: 800; }
.sq-msg { flex: 0 0 auto; padding: 6px 12px; border: 0; border-radius: 14px; background: #18181a; color: #fff; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.sq-msg.done { background: #e1f5ee; color: #0f6e56; }
.sq-yours { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #86857f; }
.sq-ln { margin-top: 4px; padding-right: 18px; font-size: 14px; line-height: 20px; color: #2c2b28; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.sq-num { color: #18181a; font-weight: 800; }
.sq-more { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 24px; display: grid; place-items: center; border: 0; background: none; color: #a3a29c; cursor: pointer; }

/* Your own post at the top: private for 5 minutes (Edit, Post now), then live (Solved). */
.sq-mine { margin-bottom: 12px; padding: 14px; border-radius: 18px; background: #18181a; color: #fff; }
.sq-mine-k { margin: 0; font-size: 12.5px; font-weight: 700; color: #f3c9a0; }
.sq-mine-t { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: #ecebe6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sq-mine-b { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sq-mine-b button { padding: 7px 12px; border: 0; border-radius: 14px; background: #fff; color: #18181a; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sq-mine-b button.ghost { background: rgb(255 255 255 / .14); color: #fff; }

/* Buttons and sheets */
.sq-big { display: block; width: 100%; padding: 14px 10px; border: 0; border-radius: 26px; background: #18181a; color: #fff; font: inherit; font-size: 16px; font-weight: 700; text-align: center; cursor: pointer; }
.sq-big.light { background: #fff; color: #18181a; box-shadow: 0 0 0 1px #e3e2dc; }
.sq-big[disabled] { opacity: .6; }
.sq-lbl { margin: 16px 0 8px; font-size: 11.5px; font-weight: 700; color: #86857f; letter-spacing: .5px; text-transform: uppercase; }
.sq-lbl:first-child { margin-top: 2px; }
.sq-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.sq-opts button { padding: 8px 12px; border: 1px solid #e3e2dc; border-radius: 15px; background: #fff; color: #18181a; font: inherit; font-size: 13.5px; cursor: pointer; }
.sq-opts button.on { background: #18181a; color: #fff; border-color: #18181a; }
.sq-ktiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sq-ktile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #ebeae4; color: #18181a; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sq-ktile span { font-size: 24px; }
.sq-ktile.on { box-shadow: 0 0 0 2px #18181a; }
.sq-ktile.own { color: #555; }
.sq-own { display: flex; gap: 8px; margin: 0 0 10px; }
.sq-own input { flex: 1; min-width: 0; padding: 10px 11px; border: 1px solid #e3e2dc; border-radius: 12px; font: inherit; font-size: 16px; }
.sq-own button { padding: 0 16px; border: 0; border-radius: 12px; background: #18181a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sq-plist { margin-bottom: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #ebeae4; overflow: hidden; }
.sq-plist button { display: flex; justify-content: space-between; width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid #ebeae4; background: none; font: inherit; font-size: 15px; color: #18181a; text-align: left; cursor: pointer; }
.sq-plist button:last-child { border-bottom: 0; }
.sq-plist button.on { font-weight: 700; }
.sq-fbtns { display: flex; gap: 8px; margin-top: 18px; }
.sq-unhide { padding: 9px 13px; border: 1px solid #e3e2dc; border-radius: 14px; background: #fff; font: inherit; font-size: 13.5px; cursor: pointer; }
.sq-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #86857f; }
.sq-warn { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: #fdf0dc; color: #7a4a10; font-size: 13px; }
.sq-err { margin: 10px 0 0; color: #b3361f; font-size: 13px; }

/* Detail page */
.sq-dbody { padding: 0 16px 40px; background: #fff; }
.sq-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; scrollbar-width: none; }
.sq-gal::-webkit-scrollbar { display: none; }
.sq-gal img { flex: 0 0 100%; width: 100%; height: 300px; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.sq-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.sq-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d4d3cd; }
.sq-dots i.on { background: #18181a; }
.sq-dhead { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.sq-dav { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sq-dhead strong { display: block; font-size: 16px; }
.sq-dhead small { display: block; font-size: 12.5px; color: #86857f; }
.sq-dneed { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.sq-dneed .sq-tile { width: 40px; height: 40px; font-size: 21px; border-radius: 12px; }
.sq-dneed h2 { margin: 0; color: #c8372d; font-size: 20px; font-weight: 800; }
.sq-dline { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: #2c2b28; white-space: pre-line; overflow-wrap: anywhere; }
.sq-dfacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sq-dfacts span { padding: 6px 11px; border-radius: 14px; background: #f2f1ec; font-size: 13px; }
.sq-posted { margin: 14px 0 16px; font-size: 12px; color: #86857f; }
.sq-dhide { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
.sq-dhide button { border: 0; background: none; padding: 6px; font: inherit; font-size: 13.5px; color: #55544f; cursor: pointer; }
.sq-dhide button.danger { color: #b3361f; }

/* Posting page (like New meetup) */
.sq-compose .mt-layer-body { background: #f4f5f7; }
.sq-cbody { padding: 16px 16px 120px; }
.sq-cphotos { display: flex; gap: 8px; }
.sq-cph { position: relative; flex: 0 0 auto; width: 96px; height: 148px; border: 0; border-radius: 14px; overflow: hidden; background: #eae9e3; }
.sq-cph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-cph.busy img { opacity: .55; }
.sq-cph.add { display: grid; place-items: center; font-size: 30px; color: #555; cursor: pointer; }
.sq-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 12px; display: grid; place-items: center; cursor: pointer; }
.sq-cta { display: block; width: 100%; min-height: 96px; margin-top: 18px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 17px; line-height: 24px; color: #18181a; resize: none; overflow: hidden; outline: none; box-sizing: border-box; white-space: pre-wrap; overflow-wrap: anywhere; }
.sq-cta::placeholder { color: #a8a7a1; }
.sq-lines { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: #86857f; }
.sq-cchip { margin-top: 20px; padding: 8px 14px; border: 0; border-radius: 16px; background: #eceae4; color: #3a3935; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sq-cchip.on { background: #fff; box-shadow: 0 0 0 1.5px #18181a; color: #18181a; }
.sq-crows { margin-top: 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #ebeae4; overflow: hidden; }
.sq-crow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid #ebeae4; background: none; font: inherit; color: #18181a; box-sizing: border-box; cursor: pointer; }
.sq-crow:last-child { border-bottom: 0; }
.sq-crow.static { cursor: default; }
.sq-ci { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #f2f1ec; display: grid; place-items: center; color: #333; }
.sq-cl { flex: 1; text-align: left; font-size: 15px; font-weight: 600; }
.sq-cv { max-width: 55%; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-cv.muted { color: #86857f; }
.sq-chev { color: #b4b3ad; font-size: 18px; }
.sq-cin { width: 50%; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; text-align: right; color: #18181a; }
.sq-cfoot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, #f4f5f7 30%); }

/* Dark theme */
html[data-profile-theme="dark"] .td-segs button { color: #8e939c; }
html[data-profile-theme="dark"] .td-segs [aria-selected="true"] { color: #f2f3f5; }
html[data-profile-theme="dark"] .main-meet-page:has(.sq-list) { background: #121418; }
html[data-profile-theme="dark"] .sq-card, html[data-profile-theme="dark"] .sq-empty { background: #1b1e24; box-shadow: 0 0 0 1px #2a2e36; }
html[data-profile-theme="dark"] .sq-ln, html[data-profile-theme="dark"] .sq-num, html[data-profile-theme="dark"] .sq-price { color: #e8e9ec; }
html[data-profile-theme="dark"] .sq-fbar { background: #121418; border-color: #2a2e36; color: #c9ccd2; }

/* ---------- Now: what you're up for, and everyone free near you ---------- */
.td-segs button.has-dot::before { content: ""; position: absolute; top: 9px; right: -8px; width: 7px; height: 7px; border-radius: 50%; background: #22a565; }
.nw-ask { padding: 4px 2px 14px; }
.nw-ask h2 { margin: 2px 0 10px; font-size: 17px; font-weight: 800; color: #18181a; }
.nw-ask p { margin: 10px 0 0; font-size: 12.5px; color: #86857f; }
.nw-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.nw-chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; border-radius: 18px; background: #f2f1ec; color: #2c2b28; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nw-chip span { font-size: 16px; }
.nw-chip.own { background: #fff; box-shadow: 0 0 0 1px #dedcd5; }
.nw-sect { display: flex; align-items: center; gap: 6px; margin: 6px 2px 8px; font-size: 13px; font-weight: 700; color: #6b6a65; }
.nw-sect span { padding: 1px 7px; border-radius: 9px; background: #e1f5ee; color: #0f6e56; font-size: 12px; }
.nw-row { position: relative; display: flex; align-items: flex-start; gap: 11px; margin-bottom: 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #ebeae4; }
.nw-row.same { box-shadow: 0 0 0 1.5px #22a565; }
.nw-face { position: relative; flex: 0 0 auto; }
.nw-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 14px; }
.nw-face i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22a565; box-shadow: 0 0 0 2px #fff; }
.nw-bd { flex: 1; min-width: 0; padding-bottom: 4px; }
.nw-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.nw-t b { color: #c8372d; font-size: 15px; font-weight: 800; }
.nw-t span { font-size: 12px; color: #86857f; }
.nw-l { margin: 3px 0 0; font-size: 14px; color: #2c2b28; overflow-wrap: anywhere; }
.nw-m { margin: 4px 0 0; font-size: 12px; color: #86857f; }
.nw-same { color: #0f6e56; }
.nw-in { flex: 0 0 auto; align-self: center; padding: 7px 13px; border: 0; border-radius: 14px; background: #18181a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nw-in.done { background: #e1f5ee; color: #0f6e56; }
.nw-more { position: absolute; right: 6px; bottom: 4px; width: 28px; height: 22px; display: grid; place-items: center; border: 0; background: none; color: #a3a29c; cursor: pointer; }
.nw-mine { margin-bottom: 14px; padding: 14px; border-radius: 20px; background: #18181a; color: #fff; }
.nw-k { margin: 0; font-size: 12px; color: #b9b8b2; }
.nw-mt { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.nw-mt span { font-size: 13px; font-weight: 500; color: #d6d5cf; }
.nw-ml { margin: 4px 0 0; font-size: 14px; color: #ecebe6; }
.nw-ms { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #7ee0b0; }
.nw-mb { display: flex; gap: 8px; margin-top: 12px; }
.nw-mb button { padding: 7px 12px; border: 0; border-radius: 14px; background: #fff; color: #18181a; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.nw-mb button.ghost { background: transparent; color: #fff; box-shadow: 0 0 0 1px #55544f; }
.nw-tiles { grid-template-columns: repeat(4, 1fr); }
.nw-tiles .sq-ktile { font-size: 12px; }
.nw-own { margin-top: 10px; }
.nw-where { margin: 14px 0 0; font-size: 13px; color: #4a4945; }
html[data-profile-theme="dark"] .nw-row { background: #1b1e24; box-shadow: 0 0 0 1px #2a2e36; }
html[data-profile-theme="dark"] .nw-ask h2, html[data-profile-theme="dark"] .nw-l { color: #e8e9ec; }
html[data-profile-theme="dark"] .nw-chip { background: #23262d; color: #e8e9ec; }
