/* EverythingRelevant: a Pinterest-style feed. White page, photos do the colour, round everything.
   Deliberately unlike TaxUnderstood: no red, no monospace, no black rules. One accent: cobalt. */
:root {
  --bg: #FFFFFF; --ink: #111111; --ink-2: #4A4A4A; --ink-3: #6E6E6E; --soft: #EFEFEF; --soft-2: #E3E3E3; --line: #E9E9E9;
  --accent: #2B59FF; --accent-2: #1E44D6;
  --f: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 16px;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased }
a { color: inherit } a:hover { color: var(--ink) }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 }
button, input, select { font: inherit; color: inherit }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.hidden, [hidden] { display: none !important }
.mono { font-size: 13px; font-weight: 500; color: var(--ink-3) }
body.signed-in .anon-only, body:not(.signed-in) .auth-only { display: none !important }
body.modal { overflow: hidden }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px) }
.wordmark { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; padding: 0 6px }
.wordmark::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px }
.search { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 20px 0 46px; border: 0; border-radius: 24px; background: var(--soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20'><circle cx='9' cy='9' r='6' fill='none' stroke='%236E6E6E' stroke-width='2'/><path d='M14 14l4 4' stroke='%236E6E6E' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat 17px center; font-size: 16px; outline: none }
.search:focus { background-color: var(--soft-2) }
.top-nav { display: flex; align-items: center; gap: 4px }
.top-nav a { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px; border-radius: 24px; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap }
.top-nav a:hover { background: var(--soft) }
.top-nav a.on { background: var(--ink); color: #FFFFFF }
.top-nav a.pill { background: var(--soft) } .top-nav a.pill.dark { background: var(--accent); color: #FFFFFF } .top-nav a.pill.dark:hover { background: var(--accent-2) }
#saved-n:empty { display: none } #saved-n { font-size: 12px; font-weight: 700; background: var(--accent); color: #FFFFFF; border-radius: 10px; padding: 1px 7px }

/* ---------- pages ---------- */
main { min-height: 70vh }
.page { padding: 8px 0 48px }
.wrap { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px }
.wrap.page { padding-top: 32px; display: flex; flex-direction: column; gap: 14px }
.pg-h { font-size: clamp(28px, 4vw, 40px) }
.pg-h2 { font-size: 22px; padding-top: 28px }
.pg-p { margin: 0; color: var(--ink-2); max-width: 620px }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 24px; background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none }
.btn:hover { color: #FFFFFF; background: #333333 }
.btn.ghost { background: var(--soft); color: var(--ink) } .btn.ghost:hover { background: var(--soft-2); color: var(--ink) }
.btn.accent { background: var(--accent) } .btn.accent:hover { background: var(--accent-2) }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px }
.btn[disabled] { opacity: .55; cursor: wait }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-3); text-decoration: underline; cursor: pointer }
input[type=text], input[type=email], input:not([type]), select, .field input, .field select { min-height: 48px; padding: 0 18px; border: 0; border-radius: 24px; background: var(--soft); font-size: 16px; outline: none; max-width: 100% }
select { appearance: none; padding-right: 40px; background: var(--soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 5l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/></svg>") no-repeat right 16px center }
.ask { display: flex; flex-wrap: wrap; gap: 10px } .ask input { flex: 1 1 260px }
.start { display: flex; flex-direction: column; gap: 22px; max-width: 680px }
.field { display: flex; flex-direction: column; gap: 8px }
.field > label, .field > .col-h, .col-h { font-size: 14px; font-weight: 700; color: var(--ink) }
.field input, .field select { width: 100%; max-width: 480px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { position: relative } .chip input { position: absolute; opacity: 0; width: 1px; height: 1px }
.chip span, .chip-b, .chip-s { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink) }
.chip input:checked + span, .chip-b.on { background: var(--ink); color: #FFFFFF }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px }
.chip-s { cursor: default } .chip-s .x { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; color: var(--ink-3); min-width: 24px; min-height: 24px }
.fo-group { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px }
.add { display: flex; gap: 8px; max-width: 520px } .add input { flex: 1; min-width: 0 }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #FFFFFF; padding: 12px 20px; border-radius: 24px; font-size: 14px; font-weight: 600; z-index: 40; box-shadow: 0 8px 30px rgba(0,0,0,.2) }

/* the Today brief (kept as its own page) */
.td-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap }
.td-head .mono { display: block; margin-bottom: 6px }
.fd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.brief { display: flex; flex-direction: column; gap: 10px }
.bi { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--soft) }
.bi-n { font-weight: 800; font-size: 26px; line-height: 1; color: var(--accent); width: 26px; flex-shrink: 0 }
.bi-body { display: flex; flex-direction: column; gap: 5px; min-width: 0 }
.bi-tag { font-size: 12px; font-weight: 700; color: var(--accent) }
.bi-t { font-weight: 800; font-size: 19px; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere } .bi-t:hover { text-decoration: underline }
.bi-line { font-size: 15px; color: var(--ink-2) }
.bi-next { padding: 10px 12px; border-radius: 12px; background: #FFFFFF; font-size: 14px }
.bi-meta { font-size: 13px; color: var(--ink-3) }
.brief-done { padding: 6px 2px; font-size: 13px; font-weight: 600; color: var(--ink-3) }
.brief-empty { padding: 20px; border-radius: var(--r); background: var(--soft); color: var(--ink-2) }
.brief-err { padding: 20px; color: #B00020 }
.skel { height: 90px; border-radius: var(--r); background: var(--soft); animation: pulse 1.3s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .5 } }
@media (prefers-reduced-motion: reduce) { .skel, .skel-pin { animation: none } }
.fi { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line) }
.fi-t { font-weight: 700; font-size: 17px; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere } .fi-t:hover { text-decoration: underline }
.fi-line { font-size: 15px; color: var(--ink-2) } .fi-snip { font-size: 14px; color: var(--ink-3) }
#td-more .chips { margin: 8px 0 }

/* ---------- the feed ---------- */
.tailor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 16px 14px; padding: 10px; border-radius: 28px; background: var(--soft) }
.tailor-h { font-weight: 700; font-size: 15px; padding: 0 10px }
.tailor input, .tailor select { background-color: #FFFFFF; flex: 1 1 180px; min-width: 0 }
.pill-btn { min-height: 48px; padding: 0 22px; border: 0; border-radius: 24px; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--soft); white-space: nowrap }
.pill-btn.dark { background: var(--accent); color: #FFFFFF } .pill-btn.dark:hover { background: var(--accent-2) }
.fd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 6px 20px 10px }
.fd-head .mono { display: block; margin-bottom: 2px }
.fd-title { font-size: clamp(24px, 3vw, 32px) }
.views { display: flex; gap: 4px; padding: 4px; border-radius: 24px; background: var(--soft) }
.views button, .round { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 20px; background: transparent; color: var(--ink); cursor: pointer; padding: 0 }
.views button.on { background: var(--ink); color: #FFFFFF }
.round { background: var(--soft); width: 48px; height: 48px; border-radius: 24px }
.fd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.fd-chips::-webkit-scrollbar { display: none }
.fchip { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--soft); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap }
.fchip:hover { background: var(--soft-2) }
.fchip.on { background: var(--ink); color: #FFFFFF }
.fchip.hot { background: #E7EDFF; color: var(--accent-2) } .fchip.hot.on { background: var(--accent); color: #FFFFFF }
.fchip small { font-size: 12px; font-weight: 600; opacity: .6; margin-left: 4px }

.grid { columns: 236px; column-gap: 16px; padding: 0 16px }
.pin { break-inside: avoid; margin: 0 0 20px; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent }
.pin-media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--soft) }
.pin-img { display: block; width: 100%; height: auto; min-height: 150px; max-height: 480px; object-fit: cover }
.pin-big { display: none }
.pin-badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 6px 11px; border-radius: 14px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700 }
.pin-hover { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px; background: rgba(0,0,0,.38); opacity: 0; transition: opacity .15s }
.pin:hover .pin-hover, .pin:focus-visible .pin-hover { opacity: 1 }
.pin-tag { padding: 7px 12px; border-radius: 16px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 700; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.save-btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 15px; cursor: pointer }
.save-btn:hover { background: var(--accent-2) } .save-btn.on { background: var(--ink) }
.pin-cap { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px 0 }
.pin-t { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.pin-src { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); min-width: 0 }
.pin-src span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.av { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--soft-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800 }
.pin:hover .pin-t { text-decoration: underline }
/* text pins: no picture, so the headline is the pin */
.pin.text-pin .pin-img { display: none }
.pin.text-pin .pin-media { min-height: 190px; padding: 18px 18px 50px; display: flex; align-items: flex-end }
.pin.text-pin .pin-big { display: block; font-weight: 800; font-size: 20px; line-height: 1.18; letter-spacing: -0.01em }
.pin.text-pin .pin-t { display: none }
.t1 .pin-media, .sw.t1 { background: #F3E8D8 } .t2 .pin-media, .sw.t2 { background: #DCE8F7 } .t3 .pin-media, .sw.t3 { background: #E7E0F4 }
.t4 .pin-media, .sw.t4 { background: #DCEFE2 } .t5 .pin-media, .sw.t5 { background: #1E1E1E; color: #FFFFFF } .t6 .pin-media, .sw.t6 { background: #FCE3D6 }
.pin.text-pin.t2 .pin-media { min-height: 250px } .pin.text-pin.t3 .pin-media { min-height: 215px }
.pin.text-pin.t4 .pin-media { min-height: 290px } .pin.text-pin.t6 .pin-media { min-height: 235px }
.c1 { background: #F3E8D8 !important } .c2 { background: #DCE8F7 !important } .c3 { background: #E7E0F4 !important }
.c4 { background: #DCEFE2 !important } .c5 { background: #1E1E1E !important; color: #FFFFFF } .c6 { background: #FCE3D6 !important }
.collage .cell-t { display: flex; align-items: flex-end; padding: 10px; font-size: 13px; font-weight: 800; line-height: 1.2; overflow: hidden }
.pin-cta .pin-media { background: var(--accent); color: #FFFFFF; padding: 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px }
.pin-cta b { font-size: 22px; line-height: 1.15; font-weight: 800 }
.pin-cta .btn { background: #FFFFFF; color: var(--ink); align-self: flex-start } .pin-cta .btn:hover { color: var(--ink); background: #F0F0F0 }
.skel-pin { break-inside: avoid; margin: 0 0 20px; height: 240px; border-radius: var(--r); background: var(--soft); animation: pulse 1.3s ease-in-out infinite }
.skel-pin:nth-child(3n) { height: 320px } .skel-pin:nth-child(4n) { height: 180px }
.flist { max-width: 760px; margin: 0 auto; padding: 0 20px }
.empty { margin: 20px 16px; padding: 28px; border-radius: var(--r); background: var(--soft); color: var(--ink-2) }

/* explore: boards, like Pinterest boards */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 16px; padding: 4px 16px 10px }
.board { text-decoration: none; display: flex; flex-direction: column; gap: 8px; cursor: pointer; border: 0; background: none; padding: 0; text-align: left }
.collage { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 80px 80px; gap: 2px; border-radius: var(--r); overflow: hidden; background: var(--soft) }
.collage > * { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--soft-2) }
.collage > :first-child { grid-row: span 2 }
.board b { font-size: 17px; font-weight: 800; line-height: 1.2 }
.board span { font-size: 13px; color: var(--ink-3) }
.board:hover b { text-decoration: underline }
.ex-h { font-size: 20px; padding: 26px 20px 12px }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px }

/* close-up: one story, Pinterest's pin page */
.modal-bg { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.55); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto }
.story-card { position: relative; width: 100%; max-width: 1016px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 32px; overflow: hidden; background: #FFFFFF; box-shadow: 0 24px 80px rgba(0,0,0,.3) }
.story-card.text-pin { grid-template-columns: minmax(0, 1fr) }
.story-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 22px; background: #FFFFFF; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15) }
.story-x.light { position: fixed; top: 16px; right: 16px; background: rgba(255,255,255,.2); color: #FFFFFF; box-shadow: none }
.story-img { background: var(--soft); min-height: 100% }
.story-pic { display: block; width: 100%; height: 100%; max-height: 640px; object-fit: cover }
.story-card.text-pin .story-img { display: none }
.story-body { display: flex; flex-direction: column; gap: 16px; padding: 32px 32px 30px }
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 50px }
.story-tag { padding: 7px 12px; border-radius: 16px; background: var(--soft); font-size: 13px; font-weight: 700 } .story-tag.hot { background: var(--accent); color: #FFFFFF }
.story-t { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.12 }
.story-src { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2) } .story-src .av { width: 36px; height: 36px; font-size: 14px }
.story-why { background: #F0F4FF; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px }
.story-why b { font-size: 13px; color: var(--accent-2) }
.story-why p { margin: 0; font-size: 16px; line-height: 1.5 }
.story-snip { margin: 0; color: var(--ink-2) }
.story-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px }

/* swipe: one story per screen */
.swipe { position: fixed; inset: 0; z-index: 30; background: #000000 }
.swipe-body { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch }
.sw { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; color: #FFFFFF; display: flex; flex-direction: column; justify-content: flex-end; background: #1E1E1E }
.sw.t1, .sw.t2, .sw.t3, .sw.t4, .sw.t6 { color: var(--ink) }
.sw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.sw-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; background: linear-gradient(to top, rgba(0,0,0,.9) 30%, rgba(0,0,0,0)) }
.sw.text-pin .sw-shade, .sw.text-pin .sw-img { display: none }
.sw-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; padding: 0 22px 44px; max-width: 680px; width: 100%; margin: 0 auto }
.sw-t { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.05 }
.sw-why { margin: 0; font-size: 16px; line-height: 1.5; opacity: .92 }
.sw-meta { font-size: 13px; opacity: .75 }
.sw-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px }
.sw-acts .btn { background: #FFFFFF; color: var(--ink) } .sw-acts .btn.accent { background: var(--accent); color: #FFFFFF }

/* bottom tab bar (phones) and footer */
.tabbar { display: none }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 20px 32px; font-size: 13px; color: var(--ink-3) }
.foot .wordmark { font-size: 15px; padding: 0 }
.foot nav { display: flex; gap: 18px } .foot nav a { text-decoration: none }

@media (max-width: 760px) {
  .top { padding: 10px 12px; gap: 8px; flex-wrap: wrap }
  .top .search { order: 3; flex: 1 0 100% }
  .top-nav { margin-left: auto }
  .top .wordmark { font-size: 18px; padding: 0 2px }
  .top-nav a:not(.pill) { display: none }
  .top-nav a.pill { height: 44px; padding: 0 14px; font-size: 14px }
  .search { height: 44px; font-size: 15px; padding-left: 40px; background-position: 13px center }
  .grid { columns: 2; column-gap: 8px; padding: 0 8px }
  .pin { margin-bottom: 14px } .pin-media { border-radius: 14px }
  .pin-hover { display: none }
  .pin.text-pin .pin-big { font-size: 16px } .pin.text-pin .pin-media { padding: 14px 14px 46px }
  .tailor { margin: 4px 8px 12px; border-radius: 22px }
  .tailor-h { width: 100%; padding: 4px 8px 0 }
  .tailor .pill-btn { width: 100% }
  .fd-head { padding: 4px 12px 10px } .fd-chips { padding: 2px 8px 12px }
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; padding: 4px 8px }
  .collage { grid-template-rows: 64px 64px }
  .modal-bg { padding: 0; align-items: flex-end }
  .story-card { grid-template-columns: minmax(0, 1fr); border-radius: 28px 28px 0 0; max-height: 94vh; overflow-y: auto }
  .story-pic { max-height: 360px }
  .story-body { padding: 22px 20px 34px }
  body { padding-bottom: 76px }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line) }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--ink-3) }
  .tabbar a.on { color: var(--ink) }
  .foot { padding-bottom: 20px }
}

/* ---------- mosaic: a bento wall of mixed shapes ---------- */
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); grid-auto-rows: 104px; grid-auto-flow: dense; gap: 12px; padding: 0 16px }
.mo { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; cursor: pointer; background: #1E1E1E; color: #FFFFFF; isolation: isolate; -webkit-tap-highlight-color: transparent }
.s-hero { grid-column: span 2; grid-row: span 4 } .s-wide { grid-column: span 2; grid-row: span 2 } .s-wtext { grid-column: span 2; grid-row: span 2 }
.s-tall { grid-row: span 3 } .s-sq { grid-row: span 2 }
.mo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: -2 }
.mo:hover .mo-img { transform: scale(1.04) }
.mo-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,0) 72%) }
.mo-body { margin-top: auto; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; min-width: 0 }
.mo-tag { align-self: flex-start; padding: 5px 10px; border-radius: 12px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 11px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mo-tag.hot { background: var(--accent); color: #FFFFFF }
.mo-t { font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden }
.s-hero .mo-t { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; -webkit-line-clamp: 5 }
.s-wide .mo-t, .s-wtext .mo-t { font-size: 21px; line-height: 1.14; -webkit-line-clamp: 3 }
.s-sq .mo-t { -webkit-line-clamp: 3 }
.mo-why { font-size: 14px; line-height: 1.4; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.s-hero .mo-why { font-size: 16px; -webkit-line-clamp: 3; max-width: 52ch }
.mo-src { display: flex; align-items: center; gap: 7px; font-size: 12px; opacity: .85; min-width: 0 }
.mo-src span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mo .av { background: rgba(255,255,255,.25); color: #FFFFFF }
.mo-save { position: absolute; top: 12px; right: 12px; z-index: 3; opacity: 0; transition: opacity .15s }
.mo:hover .mo-save, .mo:focus-visible .mo-save { opacity: 1 }
.mo:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
/* text tiles */
.mo.text-pin .mo-img, .mo.text-pin .mo-shade { display: none }
.mo.text-pin .mo-t { font-size: 19px; line-height: 1.16 }
.mo.text-pin.s-wtext .mo-t { font-size: 24px }
.mo.text-pin.t1 { background: #F3E8D8 } .mo.text-pin.t2 { background: #DCE8F7 } .mo.text-pin.t3 { background: #E7E0F4 }
.mo.text-pin.t4 { background: #DCEFE2 } .mo.text-pin.t6 { background: #FCE3D6 } .mo.text-pin.t5 { background: #1E1E1E }
.mo.text-pin:not(.t5) { color: var(--ink) }
.mo.text-pin:not(.t5) .mo-tag:not(.hot) { background: rgba(0,0,0,.07) }
.mo.text-pin:not(.t5) .av { background: rgba(0,0,0,.08); color: var(--ink) }
.mo-cta { background: var(--accent); cursor: default }
.mo-cta .mo-body { gap: 14px } .mo-cta b { font-size: 19px; line-height: 1.18; font-weight: 800 }
.mo-cta .btn { background: #FFFFFF; color: var(--ink); align-self: flex-start; min-height: 40px }
.skel-mo { background: var(--soft); animation: pulse 1.3s ease-in-out infinite; cursor: default }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 84px; gap: 8px; padding: 0 8px }
  .mo { border-radius: 16px } .mo-body { padding: 11px 12px 12px; gap: 5px }
  .mo-t { font-size: 14px } .s-hero .mo-t { font-size: 22px } .s-wide .mo-t, .s-wtext .mo-t { font-size: 17px }
  .mo.text-pin .mo-t { font-size: 15px } .mo.text-pin.s-wtext .mo-t { font-size: 18px }
  .s-sq .mo-why, .s-tall .mo-why { display: none }
  .mo-save { display: none }
}
@media (prefers-reduced-motion: reduce) { .mo-img { transition: none } .skel-mo { animation: none } }

/* ---- v2 living mosaic: a tile for every kind of story ---- */
:root { --yellow: #FFE45C; --orange: #FF8A3D; --mint: #DDF3E6; --lilac: #E9E2FF; --dark: #161616; --red: #FF3B30 }
.fd-peers { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-2) }
.fd-peers:empty { display: none }
.fchip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: livepulse 1.6s ease-in-out infinite }
@keyframes livepulse { 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .fchip .dot { animation: none } }
.mo .mo-save { background: #FFFFFF; color: var(--ink) }
/* video */
.k-video { background: #1B1B1B }
.mo-play { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 28px; background: rgba(255,255,255,.94); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.3); transition: transform .2s }
.mo-play svg { margin-left: 3px }
.k-video:hover .mo-play { transform: translate(-50%, -50%) scale(1.08) }
.mo-tag.vid, .story-tag.vid { background: var(--red); color: #FFFFFF }
.play-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 24px; background: rgba(255,255,255,.94); color: var(--ink); display: flex; align-items: center; justify-content: center }
/* countdown */
.k-count { background: var(--accent); color: #FFFFFF }
.k-count .mo-body { height: 100%; justify-content: space-between }
.count-n { display: flex; align-items: baseline; gap: 6px; margin: auto 0 4px }
.count-n b { font-size: 72px; font-weight: 800; line-height: .85; letter-spacing: -0.05em }
.count-n span { font-size: 17px; font-weight: 800 }
.k-count .mo-t { font-size: 15px; -webkit-line-clamp: 3 }
.k-count .mo-tag { background: rgba(255,255,255,.2) }
.bar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden }
.bar span { display: block; height: 100%; background: #FFFFFF; border-radius: 3px }
.k-count .mo-src { opacity: .9; flex-wrap: wrap; white-space: normal }
.link-w { border: 0; background: none; padding: 0; color: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; font-size: 12px }
/* money */
.k-money { background: var(--yellow); color: var(--ink) }
.money-b { height: 100%; flex-direction: row !important; align-items: flex-end; justify-content: space-between; gap: 14px }
.money-b > div { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.money-k { font-size: 12px; font-weight: 800; color: rgba(0,0,0,.6) }
.money-n { font-size: clamp(40px, 4.4vw, 58px); font-weight: 800; line-height: .9; letter-spacing: -0.04em; word-break: break-word }
.k-money .mo-t { font-size: 15px; -webkit-line-clamp: 2 }
.money-go { flex: 0 0 auto; padding: 10px 14px; border-radius: 20px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 800; white-space: nowrap }
/* big number */
.k-num { background: var(--orange); color: var(--ink) }
.k-num:nth-child(3n) { background: var(--yellow) }
.k-num .mo-body { height: 100%; gap: 4px }
.num-n { font-size: 46px; font-weight: 800; line-height: .95; letter-spacing: -0.04em; margin-bottom: 2px; word-break: break-word }
.num-l { font-size: 13px; font-weight: 800; line-height: 1.25 }
.mo-t.sm { font-size: 13px !important; font-weight: 600; opacity: .8; -webkit-line-clamp: 2 !important; margin-top: auto }
.k-num .av, .k-money .av { background: rgba(0,0,0,.1); color: var(--ink) }
/* quote */
.k-quote { background: var(--dark) }
.k-quote .mo-body { height: 100%; gap: 10px }
.q-mark { font-size: 64px; font-weight: 800; line-height: .6; color: var(--accent); height: 30px }
.q-t { font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden }
/* near you */
.k-near { background: var(--mint); color: var(--ink) }
.streets { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1 }
.near-k { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 12px; background: #FFFFFF; font-size: 11px; font-weight: 800; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.near-card { background: rgba(255,255,255,.95); border-radius: 16px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px }
.near-l { font-size: 11px; font-weight: 800; color: #178A5E }
.k-near .mo-t { font-size: 15px }
.k-near .mo-save { left: auto }
/* story stack */
.k-stack { background: var(--lilac); color: var(--ink); cursor: default }
.k-stack .mo-body { height: 100%; gap: 8px; margin-top: 0 }
.stack-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px }
.stack-h b { font-size: 16px; font-weight: 800; line-height: 1.2 }
.stack-h span { font-size: 12px; font-weight: 700; color: #5A3FD6; white-space: nowrap }
.stack-i, .brief-i { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: rgba(255,255,255,.75); border-radius: 14px; padding: 10px; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.25; color: inherit; text-decoration: none }
.stack-i:hover, .brief-i:hover { background: #FFFFFF }
.stack-i span:first-child, .brief-i span:first-child { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #FFFFFF; font-size: 11px; display: flex; align-items: center; justify-content: center }
.stack-i span:last-child, .brief-i span:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
/* brief */
.s-brief { grid-row: span 4 }
.k-brief { background: var(--ink); color: #FFFFFF; cursor: default }
.k-brief .mo-body { height: 100%; gap: 8px; margin-top: 0 }
.brief-k { font-size: 12px; font-weight: 800; color: var(--yellow) }
.brief-t { font-size: 18px; font-weight: 800; line-height: 1.15; margin-bottom: 2px }
.brief-i { background: rgba(255,255,255,.1); color: #FFFFFF } .brief-i:hover { background: rgba(255,255,255,.18); color: #FFFFFF }
.brief-i span:first-child { background: var(--yellow); color: var(--ink) }
.listen { margin-top: auto; border: 0; border-radius: 20px; padding: 11px 14px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer }
/* "{town} today" row */
.town { margin: 28px 0 10px }
.town-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 16px 12px }
.town-h h2 { font-size: 22px } .town-h h2 span { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 6px }
.pill-btn { border: 0; border-radius: 18px; padding: 8px 14px; background: var(--soft); font-weight: 700; font-size: 14px; cursor: pointer }
.town-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 12px; overflow-x: auto; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none }
.town-row::-webkit-scrollbar { display: none }
.town-i { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer }
.town-pic { position: relative; height: 150px; border-radius: 18px; overflow: hidden; background: var(--soft); display: block }
.town-img { width: 100%; height: 100%; object-fit: cover; display: block }
.town-big { display: none }
.town-i.text-pin .town-pic { padding: 14px; display: flex; align-items: flex-end }
.town-i.text-pin .town-big { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-weight: 800; font-size: 16px; line-height: 1.18 }
.town-i.t1 .town-pic { background: #F3E8D8 } .town-i.t2 .town-pic { background: #DCE8F7 } .town-i.t3 .town-pic { background: #E7E0F4 }
.town-i.t4 .town-pic { background: #DCEFE2 } .town-i.t5 .town-pic { background: #1E1E1E; color: #FFFFFF } .town-i.t6 .town-pic { background: #FCE3D6 }
.town-t { font-weight: 800; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.town-i.text-pin .town-t { display: none }
.town-m { font-size: 12px; color: var(--ink-3) }
/* saved boards */
.saved-boards { padding-bottom: 18px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) }
.saved-boards .collage { grid-template-rows: 60px 60px }
.board.on b { color: var(--accent-2) }
.board.on .collage { outline: 3px solid var(--accent); outline-offset: 2px }
.board-sel { height: 44px; border-radius: 22px; border: 1px solid var(--line); background: #FFFFFF; padding: 0 14px; font-weight: 700 }
.board-sel:disabled { opacity: .45 }
.new-board { display: flex; gap: 8px } .new-board input { flex: 1 1 auto; height: 40px; border-radius: 20px; border: 1px solid var(--line); padding: 0 14px }
/* close-up extras */
.story-img.vid { background: #000000; display: flex; align-items: center }
.story-img.vid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block }
.story-fig { display: flex; align-items: baseline; gap: 10px; background: var(--yellow); border-radius: 20px; padding: 12px 16px }
.story-fig b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1 } .story-fig span { font-weight: 700; font-size: 14px }
.story-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: 14px }
.story-cal span { margin-right: 4px }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px }
.ask-open { width: 100%; text-align: left; border: 1px dashed #B9C7FF; border-radius: 20px; background: #F7F9FF; padding: 14px 16px; cursor: pointer; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; gap: 2px; color: var(--accent-2) }
.ask-open span { font-weight: 500; font-size: 13px; color: var(--ink-3) }
.ask-a { margin: 0; background: #F7F9FF; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px }
.ask-a b { font-size: 13px; color: var(--accent-2) } .ask-a p { margin: 0; white-space: pre-line }
.ask-a.loading { color: var(--ink-3) }
.ask-f { display: flex; gap: 8px } .ask-f input { flex: 1 1 auto; min-width: 0; height: 40px; border-radius: 20px; border: 1px solid var(--line); padding: 0 14px; background: #FFFFFF }
/* Watch: TikTok-style video swipe */
.sw-player { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-62%); z-index: 1; aspect-ratio: 16 / 9; max-height: 70vh; margin: 0 auto; max-width: 100% }
.sw-player iframe { width: 100%; height: 100%; border: 0; display: block }
.sw.playing .sw-img { opacity: 0 }
.swipe.watch .sw { background: #0D0D0D; color: #FFFFFF }
.swipe.watch .sw .sw-shade { height: 55% }
.watch-top { position: fixed; top: 18px; left: 18px; z-index: 5; display: flex; gap: 16px; align-items: center; font-weight: 800; font-size: 15px; color: rgba(255,255,255,.7) }
.watch-top .on { color: #FFFFFF; border-bottom: 3px solid #FFFFFF; padding-bottom: 3px }
.watch-load { height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-weight: 700 }
@media (min-width: 761px) { .sw-player { max-width: 960px } }
@media (max-width: 760px) {
  .k-count .count-n b { font-size: 56px }
  .num-n { font-size: 36px } .q-t { font-size: 17px }
  .money-b { flex-direction: column !important; align-items: flex-start }
  .money-n { font-size: 40px }
  .mo-play { width: 46px; height: 46px }
  .k-stack .stack-i:nth-of-type(3), .k-brief .brief-i:nth-of-type(3) { display: none }
  .town-row { grid-auto-columns: 62% }
}
/* YouTube thumbnails have black bars baked in: zoom past them */
.k-video .mo-img { transform: scale(1.34) } .k-video:hover .mo-img { transform: scale(1.4) }
.swipe.watch .sw-img { transform: scale(1.34) }
