/* =========================================================
   Crewland · feed, messages, member profiles, about
   ========================================================= */
.app-links { display: inline-flex; gap: 18px; }
.app-links a[aria-current="page"] { color: var(--red); }
@media (max-width: 640px) { .app-links { gap: 12px; } .app-links a { font-size: 11px; } }

.av {
  flex: none; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--card) center / cover no-repeat;
  border: 1px solid var(--line-2);
  font-family: var(--font-head); color: var(--text); font-size: 16px; font-weight: 700; }
.who { display: inline-flex; flex-direction: column; line-height: 1.2; }
.who b { font-weight: 700; }
.who span { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 600; }
.who:hover b { color: var(--red); }

.banner {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 26px;
  border-radius: 20px; border: 1.5px dashed var(--line-2);
  color: var(--text-soft); font-size: 15px;
}
.banner b { color: var(--text); }

/* ---------- feed ---------- */
.feed-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.feed-side { position: sticky; top: 24px; display: grid; gap: 18px; }
.side-card { padding: 22px; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; }
.side-card h3 { font-size: 22px; margin-bottom: 10px; }
.side-card p { color: var(--text-soft); font-size: 14px; }
.side-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--text-soft); }

.composer { padding: 20px; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; margin-bottom: 26px; }
.composer__row { display: flex; gap: 14px; }
.composer textarea {
  flex: 1; min-height: 84px; resize: vertical; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 400 17px/1.5 var(--font-body);
}
.composer textarea::placeholder { color: var(--text-faint); }
.composer__preview:empty { display: none; }
.composer__preview { margin: 12px 0 0 54px; position: relative; }
.composer__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.composer__bar .spacer { flex: 1; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-soft);
  font: 600 13px var(--font-body);
  transition: background .2s, color .2s;
}
.tool-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 11%, transparent); }
.tool-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.remove-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; }

.post { padding: 22px; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; margin-bottom: 16px; animation: swap-in .28s var(--ease-out, ease) both; }
.post__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post__head .time { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 600; }
.post__head .craft { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--red); font-weight: 600; }
.post__body { white-space: pre-wrap; word-wrap: break-word; font-size: 16px; }
.post__body a, .msg-bubble a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.post__attach { margin-top: 14px; }
.post__actions { display: flex; gap: 8px; margin-top: 14px; }
.post__actions .tool-btn.is-on { color: var(--red); }
.post__comments { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.comment { display: flex; gap: 10px; font-size: 14px; }
.comment__bubble { background: color-mix(in srgb, var(--text) 5%, transparent); border-radius: 14px; padding: 9px 13px; flex: 1; }
.comment__bubble .who { flex-direction: row; gap: 8px; align-items: baseline; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--font-body); }
.comment-form input:focus { outline: none; border-color: var(--red); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-faint); border: 1.5px dashed var(--line-2); border-radius: 24px; }
.empty-state h3 { font-size: 30px; color: var(--text); margin-bottom: 6px; }

/* embeds + media */
.embed { border-radius: 16px; overflow: hidden; background: #000; }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--video iframe { height: auto; aspect-ratio: 16 / 9; }
.embed--tall { max-width: 340px; }
.media { border-radius: 16px; overflow: hidden; display: block; }
.media--img img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.media--video video { display: block; width: 100%; max-height: 520px; background: #000; }
.media--audio {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--red) 22%, var(--card)), var(--card));
  border: 1px solid var(--line-2);
}
.media--audio audio { flex: 1; min-width: 0; height: 40px; }
.media__wave {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E") center / 60% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.link-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--text) 4%, transparent);
  transition: border-color .2s, transform .2s;
}
.link-card:hover { border-color: var(--red); transform: translateY(-1px); }
.link-card__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 18px; }
.link-card b { display: block; }
.link-card small { display: block; font-size: 12px; color: var(--text-faint); word-break: break-all; }

/* ---------- messages ---------- */
.dm { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 68px - 80px); min-height: 520px; border: 1px solid var(--line-2); border-radius: 26px; overflow: hidden; background: var(--card); }
.dm__list { border-right: 1px solid var(--line-2); display: flex; flex-direction: column; min-height: 0; }
.dm__list-head { padding: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.dm__list-head h2 { font-size: 30px; }
.dm__search { position: relative; }
.dm__search input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--font-body); }
.dm__search input:focus { outline: none; border-color: var(--red); }
.dm__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.dm__results:empty { display: none; }
.dm__results button, .dm__conv {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px;
  background: transparent; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit;
  transition: background .15s;
}
.dm__results button:hover, .dm__conv:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.dm__convs { overflow-y: auto; flex: 1; }
.dm__conv[aria-current="true"] { background: color-mix(in srgb, var(--red) 14%, transparent); }
.dm__conv .meta { flex: 1; min-width: 0; }
.dm__conv .meta b { display: block; }
.dm__conv .meta small { display: block; color: var(--text-faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm__conv .time { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); font-weight: 600; }
.dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }

.dm__thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dm__thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dm__back { display: none; }
.dm__msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.msg-row { display: flex; }
.msg-row.mine { justify-content: flex-end; }
.msg-bubble {
  max-width: min(72%, 520px); padding: 10px 14px; border-radius: 18px 18px 18px 6px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  white-space: pre-wrap; word-wrap: break-word; animation: swap-in .3s var(--ease-out, ease) both;
}
.msg-row.mine .msg-bubble { background: var(--red); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg-row.mine .msg-bubble a { color: #fff; }
.msg-bubble .post__attach { margin-top: 8px; min-width: 240px; }
.msg-time { font-family: var(--font-mono); font-size: 10px; opacity: .65; margin-top: 4px; font-weight: 600; }
.dm__compose { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.dm__compose-row { display: flex; gap: 8px; align-items: flex-end; }
.dm__compose textarea { flex: 1; min-height: 46px; max-height: 160px; resize: none; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 15px/1.4 var(--font-body); }
.dm__compose textarea:focus { outline: none; border-color: var(--red); }
.dm__empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--text-faint); }
.dm__empty h3 { font-size: 32px; color: var(--text); margin-bottom: 6px; }
.attach-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); font-size: 13px; }
.attach-chip button { border: 0; background: none; color: var(--text-soft); cursor: pointer; font-size: 15px; }

/* ---------- member profile view ---------- */
.mprofile { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.mprofile .pcard { transform: none; }
.mprofile__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.connected { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.connected a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.connected a:hover { border-color: var(--red); color: var(--red); }

/* ---------- about page ---------- */
.about-hero { padding: 150px 0 60px; }
.about-hero h1 { font-size: clamp(56px, 8vw, 116px); line-height: .9; max-width: 900px; }
.about-hero h1 em { display: block; font-size: .8em; }
.about-hero p { max-width: 640px; color: var(--text-soft); font-size: 19px; margin-top: 26px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap { padding: 28px; background: var(--card); border: 1px solid var(--line-2); border-radius: 26px; transition: transform .35s var(--ease-out, ease), border-color .35s; }
.cap:hover { transform: translateY(-4px); border-color: var(--red); }
.cap__icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); margin-bottom: 20px; }
.cap__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.cap p { color: var(--text-soft); font-size: 15px; }
.cap .soon { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-faint); font-weight: 600; }
.cap .live { color: #2ee6a8; border-color: rgba(46,230,168,.4); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.platforms span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; }
.timeline { display: grid; gap: 0; max-width: 760px; margin: 0 auto; border-left: 2px solid var(--line-2); padding-left: 30px; }
.timeline > div { position: relative; padding: 0 0 34px; }
.timeline > div::before { content: ""; position: absolute; left: -38px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red); }
.timeline > div.done::before { background: var(--red); }
.timeline h3 { font-size: 28px; line-height: 1.05; }
.timeline p { color: var(--text-soft); margin-top: 6px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 18px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); margin-top: 10px; }

/* glass versions */
:root[data-style="glass"] :is(.composer, .post, .side-card, .dm, .dm__results, .cap, .faq details, .platforms span, .empty-state) {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-color: var(--glass-line); box-shadow: var(--glass-shadow);
}

@media (max-width: 980px) {
  .feed-layout, .mprofile { grid-template-columns: 1fr; }
  .feed-side { position: static; order: -1; }
  .caps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .dm { grid-template-columns: 1fr; height: calc(100vh - 68px - 40px); border-radius: 20px; }
  .dm.has-thread .dm__list { display: none; }
  .dm:not(.has-thread) .dm__thread { display: none; }
  .dm__back { display: inline-flex; }
  .caps { grid-template-columns: 1fr; }
  .composer__preview { margin-left: 0; }
  .msg-bubble { max-width: 85%; }
}

/* admin: launch switch + 5 stats */
.launch { margin-bottom: 26px; }
.stats:has(#s-posts) { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .stats:has(#s-posts) { grid-template-columns: repeat(2, 1fr); } }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 140px 0 40px; }
.legal h1 { font-size: clamp(48px, 7vw, 88px); line-height: .92; margin-bottom: 14px; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 30px; font-weight: 600; }
.legal .tldr { padding: 20px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); margin-bottom: 34px; }
.legal .tldr ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-soft); }
.legal h2 { font-size: 30px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--text); }
:root[data-style="glass"] .legal .tldr { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }

/* ---------- My work ---------- */
.share-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; margin-bottom: 22px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 22px;
}
.share-strip__text { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.share-strip__link { display: flex; gap: 8px; flex: 1 1 360px; }
.share-strip__link input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 600 14px var(--font-mono); }

.switch { position: relative; display: inline-flex; cursor: pointer; flex: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 50px; height: 30px; border-radius: 999px; background: color-mix(in srgb, var(--text) 14%, transparent); transition: background .25s; position: relative; }
.switch__dot { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .3s var(--ease-out, ease); }
.switch input:checked + .switch__track { background: var(--red); }
.switch input:checked + .switch__track .switch__dot { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--red); outline-offset: 3px; }
.switch input:disabled + .switch__track { opacity: .4; cursor: not-allowed; }
.switch--sm .switch__track { width: 40px; height: 24px; }
.switch--sm .switch__dot { width: 18px; height: 18px; }
.switch--sm input:checked + .switch__track .switch__dot { transform: translateX(16px); }

.add-work { display: grid; gap: 16px; padding: 24px; margin-bottom: 26px; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; animation: swap-in .28s var(--ease-out, ease) both; }
.source-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1.5px var(--line-2); width: max-content; max-width: 100%; }
.source-tabs button { border: 0; border-radius: 10px; padding: 9px 16px; background: transparent; color: var(--text-soft); font: 700 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.source-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; border-radius: 20px; border: 2px dashed var(--line-2); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, transparent); }
.dropzone__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 20px; margin-bottom: 4px; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.works .empty-state { grid-column: 1 / -1; }
.work { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; animation: swap-in .28s var(--ease-out, ease) both; transition: transform .35s var(--ease-out, ease), border-color .3s; }
.work:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 50%, var(--line-2)); }
.work__media .media, .work__media .embed, .work__media .link-card { border-radius: 0; }
.work__media .media--img img { max-height: 300px; }
.work__body { padding: 18px 20px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.work__body h3 { font-size: 26px; line-height: 1.05; }
.work__role { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--red); font-weight: 600; }
.work__desc { color: var(--text-soft); font-size: 14px; white-space: pre-wrap; }
.work__desc a { color: var(--red); }
.work__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.work__state { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 520; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transition: opacity .3s, transform .35s var(--ease-out, ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- public share page ---------- */
.share-page { max-width: 820px; margin: 0 auto; padding: 120px 0 60px; }
.share-owner { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.share-owner .who b { font-size: 18px; }
.share-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: .95; margin-bottom: 10px; }
.share-hero .work__role { margin-bottom: 18px; }
.share-hero .post__attach { margin: 24px 0; }
.share-hero .post__attach .media, .share-hero .post__attach .embed { border-radius: 20px; }
.share-desc { color: var(--text-soft); font-size: 17px; white-space: pre-wrap; }
.share-cta { margin-top: 50px; padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--line-2); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.share-cta h3 { font-size: 30px; line-height: 1; }
.share-cta p { color: var(--text-soft); margin-top: 6px; }
.share-pf { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.share-pf .works { grid-template-columns: 1fr; }

:root[data-style="glass"] :is(.share-strip, .add-work, .work, .share-cta) {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-color: var(--glass-line); box-shadow: var(--glass-shadow);
}
@media (max-width: 860px) { .share-pf { grid-template-columns: 1fr; } .works { grid-template-columns: 1fr; } }
.work__bar--dl { border-top: 0; margin-top: 0; padding-top: 2px; }

/* =========================================================
   Feed v2: Showcase grid, Collab Board, post pop-up, composer
   ========================================================= */
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.feed-head h1 { font-size: clamp(44px, 6vw, 76px); line-height: .95; }
.feed-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1.5px var(--line-2); margin-bottom: 20px; }
.feed-tabs button { border: 0; border-radius: 12px; padding: 11px 18px; background: transparent; color: var(--text-soft); font: 700 13px var(--font-body); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.feed-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.feed-tabs .count { opacity: .6; margin-left: 4px; }

/* showcase grid */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pgrid .empty-state { grid-column: 1 / -1; }
.ptile {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; padding: 0; border: 0; cursor: pointer;
  border-radius: 14px; background: var(--card); color: var(--text); text-align: left;
  animation: swap-in .28s var(--ease-out, ease) both;
}
.ptile img, .ptile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out, ease); }
.ptile:hover img, .ptile:hover video { transform: scale(1.05); }
.ptile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.tile-badge { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; }
.tile-art { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; background: linear-gradient(150deg, color-mix(in srgb, var(--red) 30%, var(--card)), var(--card)); }
.tile-art b { font-family: var(--font-head); font-size: 22px; line-height: 1; font-weight: 700; }
.tile-art span { font-size: 13px; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-art__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff !important; font-size: 20px !important; margin-bottom: auto; }
.tile-art--audio { background: linear-gradient(150deg, var(--red), var(--red-deep)); color: #fff; }
.tile-art--audio span { color: rgba(255,255,255,.85); }
.tile-art--text { justify-content: center; background: var(--card); }
.tile-art--text span { font-size: 15px; color: var(--text); -webkit-line-clamp: 6; }
.ptile__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; opacity: 0; transition: opacity .25s; }
.ptile:hover .ptile__hover, .ptile:focus-visible .ptile__hover { opacity: 1; }

/* collab board */
.collab-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.fchip { border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-soft); font: 600 13px var(--font-body); transition: background .2s, color .2s; }
.fchip[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: none; }
.collab-filters select { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 600 13px var(--font-body); }
.collabs { display: grid; gap: 14px; }
.collab { padding: 22px; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; animation: swap-in .28s var(--ease-out, ease) both; transition: border-color .3s, transform .3s var(--ease-out, ease); }
.collab:hover { border-color: color-mix(in srgb, var(--red) 45%, var(--line-2)); }
.collab.is-closed { opacity: .6; }
.collab__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.collab__top .time { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 600; }
.collab__type { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.collab__type--available { background: rgba(46, 230, 168, .14); color: #19b886; }
.collab__type--inquiry { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-soft); }
.collab__closed { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-faint); font-weight: 600; }
.collab__title { font-family: var(--font-head); font-size: 28px; line-height: 1.02; margin: 12px 0 10px; font-weight: 700; }
.collab__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--text); color: var(--bg); }
.chip--ghost { background: transparent; color: var(--text-soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.collab__body { color: var(--text-soft); white-space: pre-wrap; font-size: 15px; }
.collab__body a { color: var(--red); }
.collab__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.collab__foot .spacer { flex: 1; }

/* pop-up */
.pmodal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px 14px; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; animation: entry-in .25s ease both; }
.pmodal__card { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow-y: auto; margin: 0; animation: swap-in .28s var(--ease-out, ease) both; }
.pmodal__card.post { padding: 26px; }
.pmodal__x { position: sticky; top: 0; float: right; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: color-mix(in srgb, var(--text) 10%, var(--card)); color: var(--text); font-size: 20px; line-height: 1; margin: -6px -6px 0 10px; }
.composer2 { padding: 26px; background: var(--card); border: 1px solid var(--line-2); border-radius: 26px; display: grid; gap: 4px; }
.seg--kind { margin-bottom: 16px; width: max-content; max-width: 100%; }
.seg--kind button { min-width: 0; }
.chips--radio input { position: absolute; opacity: 0; }
.composer2__media { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
:root[data-style="glass"] :is(.ptile, .collab, .composer2, .pmodal__card.post) { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }

/* profile v2 */
.prof-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 28px; margin-bottom: 26px; background: var(--card); border: 1px solid var(--line-2); border-radius: 28px; position: relative; overflow: hidden; }
.prof-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(120deg, var(--red), var(--red-deep)); opacity: .9; }
.prof-head > * { position: relative; }
.prof-avatar { width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--card); background: var(--bg-2) center / cover no-repeat; display: grid; place-items: center; font-family: var(--font-head); font-size: 52px; margin-top: 20px; font-weight: 700; }
.prof-info { padding-top: 70px; display: grid; gap: 6px; }
.prof-info h1 { font-size: clamp(36px, 5vw, 56px); line-height: .95; }
.prof-handle { font-family: var(--font-mono); font-size: 14px; color: var(--red); font-weight: 600; }
.prof-bio { color: var(--text-soft); max-width: 620px; white-space: pre-wrap; }
.prof-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.prof-stats b { font-family: var(--font-head); font-size: 26px; display: block; line-height: 1; font-weight: 700; }
.prof-stats span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.prof-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
:root[data-style="glass"] .prof-head { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }

@media (max-width: 760px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .ptile { border-radius: 10px; }
  .prof-head { grid-template-columns: 1fr; gap: 0; padding: 20px; }
  .prof-avatar { width: 104px; height: 104px; font-size: 42px; margin-top: 10px; }
  .prof-info { padding-top: 14px; }
  .collab__title { font-size: 24px; }
  .pmodal__card.post, .composer2 { padding: 20px; }
}
.prof-head { align-items: start; } .prof-avatar { margin-top: 26px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }

/* =========================================================
   App shell: top icons, side rail, notifications
   ========================================================= */
.app-nav { position: sticky !important; top: 0; z-index: 60; background: var(--nav-bg, rgba(11,10,9,.9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.app-nav .nav__inner { gap: 10px; }
.app-nav .logo { margin-right: auto; }
.top-icons { display: inline-flex; align-items: center; gap: 4px; position: relative; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: var(--text-soft);
  transition: background .18s, color .18s;
}
.icon-btn:hover, .icon-btn[aria-current="page"] { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.icon-btn .ico, .rail .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: var(--on-accent); font: 700 10px/18px var(--font-body); text-align: center; }
.icon-btn.ring .ico { animation: ring .6s ease; }
@keyframes ring { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.me-chip { margin-left: 6px; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s; }
.me-chip:hover { box-shadow: 0 0 0 2px var(--red); }
.rail-toggle { margin-right: 4px; }

.rail {
  position: fixed; top: 68px; bottom: 0; left: 0; z-index: 55;
  width: 256px; padding: 18px 14px 24px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .28s var(--ease-out, ease);
  scrollbar-width: thin;
}
.rail-open .rail { transform: none; box-shadow: 20px 0 50px -20px rgba(0,0,0,.6); }
.rail-scrim { position: fixed; inset: 68px 0 0 0; z-index: 54; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.rail-open .rail-scrim { opacity: 1; pointer-events: auto; }
.rail__group { display: grid; gap: 2px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.rail__group a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
  color: var(--text-soft); font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s;
}
.rail__group a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.rail__group a[aria-current="page"] { background: rgb(var(--red-rgb) / .14); color: var(--text); }
.rail__group a[aria-current="page"] .ico { color: var(--red); }
.rail__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); padding: 4px 12px 6px; font-weight: 600; }
.rail__cat { font-size: 14px !important; padding: 7px 12px !important; }
.rail__cat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.rail__cat[aria-current="page"] .dot { background: var(--red); }
.rail__empty { font-size: 13px; color: var(--text-faint); padding: 2px 12px; }
.rail__empty a { color: var(--red); padding: 0; display: inline; }
.rail .pill { flex: none; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text-soft); font-weight: 600; }
.rail .pill--open { background: rgb(var(--red-rgb) / .18); color: var(--red); }
.rail .pill--with { background: rgba(46,230,168,.14); color: #19b886; }
.rail__group a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail__crew { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px; }
.rail__crew a { padding: 0 !important; border-radius: 50% !important; }
.rail__foot { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 12px; font-size: 12px; color: var(--text-faint); }
.rail__foot a:hover { color: var(--text); }

@media (min-width: 1100px) {
  .has-rail .rail { transform: none; box-shadow: none; }
  .has-rail .rail-toggle { display: none; }
  .has-rail .rail-scrim { display: none; }
  .has-rail main[data-rail] { margin-left: 256px; }
}

.bell-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80;
  width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  animation: swap-in .22s var(--ease-out, ease) both;
}
.bell-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bell-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-soft); transition: background .15s; }
.bell-item:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.bell-item b { color: var(--text); }
.bell-item small { display: block; font-size: 12px; color: var(--text-faint); }
.bell-item.is-new { background: rgb(var(--red-rgb) / .07); }
:root[data-style="glass"] :is(.rail, .bell-panel) { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }

@media (max-width: 640px) {
  .top-icons .icon-btn[href="messages.html"] { display: none; }
  .app-nav .vibe-btn { display: none; }
  .icon-btn { width: 36px; height: 36px; }
}

/* profile: follows + reach */
.prof-head::before { background: linear-gradient(120deg, var(--prof-a, var(--red)), var(--prof-b, var(--red-deep))) !important; }
.stat-btn { border: 0; background: transparent; color: inherit; padding: 0; text-align: left; cursor: pointer; border-radius: 8px; }
.stat-btn:hover b { color: var(--red); }
.reach { font-size: 14px; color: var(--text-soft); margin-top: 4px; }
.reach b { font-family: var(--font-head); font-size: 20px; color: var(--text); font-weight: 700; }
.follow-flags:empty { display: none; }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 14px; transition: background .15s; }
.person-row:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.person-row .who { flex: 1; }
.people-list { max-width: 460px; }

/* credits */
.credit-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.credit-add input { padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 15px var(--font-body); width: 100%; }
.credit-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.credit-chips:empty { display: none; }
.credit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); font-size: 13px; font-weight: 600; }
.credit-chip .av { font-size: 11px; }
.credit-chip button { border: 0; background: none; color: var(--text-soft); cursor: pointer; font-size: 16px; line-height: 1; }
.work__with { font-size: 13px; color: var(--text-soft); }
.work__with a { color: var(--red); font-weight: 600; }
.work__with span { color: var(--text-faint); }
@media (max-width: 640px) { .credit-add { grid-template-columns: 1fr; } }

/* =========================================================
   Settings
   ========================================================= */
.settings { display: grid; grid-template-columns: 230px 1fr; gap: 34px; align-items: start; max-width: 1020px; }
.settings__nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.settings__nav a { padding: 10px 14px; border-radius: 12px; color: var(--text-soft); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.settings__nav a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.settings__nav a[aria-current="page"] { background: rgb(var(--red-rgb) / .14); color: var(--text); }
.set-sec h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; margin-bottom: 20px; animation: swap-in .3s var(--ease-out, ease) both; }
.set-sec { display: grid; gap: 14px; }
.set-card { padding: 20px 22px; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; animation: swap-in .3s var(--ease-out, ease) both; }
.set-card.stack { display: grid; gap: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; }
.set-row + .set-row { border-top: 1px solid var(--line); padding-top: 14px; }
.set-row--col { flex-direction: column; align-items: flex-start; }
.set-row b { font-size: 16px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.set-card.danger { border-color: rgba(255, 90, 90, .35); display: grid; gap: 12px; }
.btn--danger { background: linear-gradient(180deg, #ff5a5a, #d92b2b) !important; color: #fff !important; }
.preview-strip { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 18px 22px; border-radius: 22px; border: 1.5px dashed var(--line-2); }
.conn-head, .conn-row { display: grid; grid-template-columns: 140px 1fr 130px; gap: 10px; align-items: center; }
.conn-head { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--text-faint); padding-bottom: 8px; font-weight: 600; }
.conn-row { padding: 6px 0; }
.conn-row input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--font-body); }
.conn-row input:focus { outline: none; border-color: var(--red); }
:root[data-style="glass"] .set-card { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }
@media (max-width: 820px) {
  .settings { grid-template-columns: 1fr; gap: 18px; }
  .settings__nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .settings__nav a { white-space: nowrap; font-size: 14px; padding: 9px 12px; background: color-mix(in srgb, var(--text) 5%, transparent); }
  .conn-head { display: none; }
  .conn-row { grid-template-columns: 1fr 110px; }
  .conn-row label { grid-column: 1 / -1; }
  .set-row { flex-wrap: wrap; }
}

/* member chose "animations off" in settings */
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
:root[data-motion="reduce"] .js .reveal { opacity: 1 !important; translate: none !important; filter: none !important; }

/* credit status */
.credit-status { display: inline-block; width: max-content; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.credit-status--pending { background: rgb(var(--red-rgb) / .14); color: var(--red); }
.credit-status--confirmed { background: rgba(46,230,168,.14); color: #19b886; }
.credit-status--declined { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-faint); }
.credit-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; vertical-align: 1px; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text-faint); }
.credit-dot--confirmed { background: #19b886; color: #fff; }

/* search */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-bar { display: grid; grid-template-columns: 1fr 180px 160px; gap: 8px; }
.search-bar input, .search-bar select { padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--text); font: 400 16px var(--font-body); min-width: 0; }
.search-bar input:focus, .search-bar select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(var(--red-rgb) / .2); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.person-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; transition: border-color .2s, transform .2s var(--ease-out, ease); animation: swap-in .28s var(--ease-out, ease) both; }
.person-card:hover { border-color: var(--red); transform: translateY(-2px); }
.person-card .av { grid-row: span 2; }
.person-card__meta { display: flex; flex-wrap: wrap; gap: 4px; }
.person-card__bio { grid-column: 1 / -1; font-size: 13px; color: var(--text-soft); }
:root[data-style="glass"] .person-card { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }
@media (max-width: 640px) { .search-bar { grid-template-columns: 1fr 1fr; } .search-bar #q { grid-column: 1 / -1; } }

/* 320px fixes from the inspection */
html { overflow-x: clip; }
.chips label { position: relative; }
.chips input { left: 0; top: 0; }
.collabs { grid-template-columns: minmax(0, 1fr); }
.collab, .post, .work, .composer2 { min-width: 0; overflow-wrap: anywhere; }
.collab__top { min-width: 0; }

/* forms */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--text-soft); font: 600 12px var(--font-body); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; padding: 8px; border-radius: 8px; }
.pw-toggle:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* homepage: honest labels, credits steps, perks */
.tiles-wrap { position: relative; }
.example-tag, .concept-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 600; }
.example-tag { margin-bottom: 10px; text-align: right; }
.concept-tag { position: absolute; top: -26px; left: 0; }
.credit-steps { list-style: none; counter-reset: cs; padding: 0; margin: 0; display: grid; gap: 14px; }
.credit-steps li { counter-increment: cs; position: relative; padding-left: 52px; display: grid; gap: 2px; }
.credit-steps li::before { content: counter(cs); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--red-rgb) / .16); color: var(--red); font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.credit-steps b { font-size: 17px; }
.credit-steps span { color: var(--text-soft); font-size: 15px; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; max-width: 440px; }
.perks li { position: relative; padding-left: 24px; color: var(--text-soft); font-size: 15px; }
.perks li::before { content: "✦"; position: absolute; left: 0; color: var(--red); }
.perks b { color: var(--text); }

/* beta tester guide */
.beta__intro { font-size: 18px; margin-bottom: 22px; }
.beta__start { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.beta__meter { width: 100%; margin: 12px 0 6px; height: 10px; }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.checklist li { margin: 0 !important; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background .2s; }
.checklist label:hover { border-color: var(--red); }
.checklist input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--red); cursor: pointer; }
.checklist input:checked + span { opacity: .55; text-decoration: line-through; text-decoration-color: var(--red); }
.checklist span { color: var(--text-soft); }
.checklist a { color: var(--red); text-decoration: none; font-weight: 600; white-space: nowrap; }
.beta__thanks { margin-top: 40px; font-family: var(--font-head); font-size: 28px; color: var(--text) !important; font-weight: 700; }
:root[data-style="glass"] .checklist label { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }

/* =========================================================
   Mobile tab bar, profile chip, new post button
   ========================================================= */
.tabbar { display: none; }
@media (max-width: 820px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--text-faint); font-size: 10px; font-weight: 600; }
  .tabbar a .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--text); }
  .tabbar a[aria-current="page"] .ico { stroke: var(--red); }
  .tabbar .badge { top: 0; right: calc(50% - 22px); }
  .tabbar__me .av { width: 26px !important; height: 26px !important; font-size: 11px; }
  .tabbar__me[aria-current="page"] .av { box-shadow: 0 0 0 2px var(--red); }
  .tabbar__post {
    justify-self: center; width: 52px; height: 40px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--on-accent);
    display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgb(var(--red-rgb) / .8);
  }
  .tabbar__post .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .tabbar__post:active { transform: scale(.94); }
  body.has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.has-tabbar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* the tab bar replaces these on phones */
  .top-icons .icon-btn[href="search.html"], .top-icons .me-chip { display: none; }
  .feed-head #new-post { display: none; }
  .dm { height: calc(100dvh - 68px - 70px - env(safe-area-inset-bottom)) !important; border-radius: 0 !important; margin: 0 -16px; border-left: 0 !important; border-right: 0 !important; }
  main.app-main:has(.dm) { padding: 0 !important; }
}

/* desktop: profile chip shows your name so it's easy to spot */
.me-chip { align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.me-chip__name { font-size: 13px; font-weight: 700; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.me-chip:hover { box-shadow: 0 0 0 2px var(--red); }

/* new post button: compact pill with an icon */
.feed-head #new-post { padding: 12px 20px 12px 16px; border-radius: 999px; font-size: 13px; gap: 6px; }
.feed-head #new-post::before { content: "+"; font-size: 20px; line-height: 0; font-weight: 500; margin-top: -2px; }

/* =========================================================
   Notifications panel v2 (desktop dropdown, phone bottom sheet)
   ========================================================= */
.bell-panel {
  position: fixed; top: 64px; right: max(16px, calc((100vw - 1280px) / 2 + 16px)); z-index: 90;
  width: 400px; max-height: min(640px, calc(100dvh - 84px)); overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
  transform-origin: top right; animation: bp-in .26s cubic-bezier(.2,.9,.25,1.1) both;
}
.bell-panel.is-leaving { animation: bp-out .18s ease forwards; }
@keyframes bp-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes bp-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
.bp-scrim { position: fixed; inset: 0; z-index: 89; }
.bp__grab { display: none; }
.bp__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.bp__head b { font-family: var(--font-display); font-size: 26px; letter-spacing: -.01em; line-height: 1; font-weight: 700; }
.bp__head .linkish { font-size: 13px; color: var(--text-faint); }
.bp__head .linkish:hover { color: var(--red); }
.bp__tabs { display: flex; gap: 6px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.bp__tab {
  position: relative; border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-soft); font: 600 13px var(--font-body);
  transition: background .18s, color .18s;
}
.bp__tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.bp__tab i { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.bp__body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; flex: 1; }
.bp__group { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); padding: 12px 12px 4px; font-weight: 600; }
.bp-item { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; color: var(--text-soft); transition: background .15s; }
.bp-item:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.bp-item.is-new { background: rgb(var(--red-rgb) / .07); }
.bp-item b { color: var(--text); font-weight: 700; }
.bp-item__av { position: relative; flex: none; }
.bp-item__type { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--bg-2); }
.bp-item__type svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bp-item__txt { flex: 1; min-width: 0; }
.bp-item__txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-faint); }
.bp-item__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgb(var(--red-rgb) / .18); }
.bp-upd { display: flex; gap: 14px; padding: 14px 12px; border-radius: 16px; align-items: flex-start; transition: background .15s; }
.bp-upd:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.bp-upd.is-new { background: rgb(var(--red-rgb) / .07); }
.bp-upd__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.bp-upd b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.bp-upd span span, .bp-upd > span:last-child > span { display: block; font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.bp-upd small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-faint); }
.bp__empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 24px; color: var(--text-faint); font-size: 14px; }
.bp__empty b { color: var(--text); font-size: 16px; }
.bp__empty-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgb(var(--red-rgb) / .12); color: var(--red); margin-bottom: 6px; }
.bp__empty-ico .ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bp__skel { height: 58px; margin: 6px 4px; border-radius: 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 0 40%, color-mix(in srgb, var(--text) 10%, transparent) 50%, color-mix(in srgb, var(--text) 5%, transparent) 60%) 0 0 / 300% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -150% 0; } }
:root[data-style="glass"] .bell-panel { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--glass-line); }
:root[data-theme="light"] .bell-panel { background: #fff; box-shadow: 0 30px 70px -24px rgba(0,0,0,.25); }
@media (max-width: 820px) {
  .bp-scrim { background: rgba(0,0,0,.5); animation: fade-in .2s both; }
  .bp-scrim.is-leaving { animation: fade-out .2s forwards; }
  .bell-panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82dvh;
    border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom);
    animation: sheet-in .32s cubic-bezier(.2,.9,.25,1) both;
  }
  .bell-panel.is-leaving { animation: sheet-out .2s ease forwards; }
  .bp__grab { display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 10px auto 0; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* update pop-up (Crews coming soon, app coming soon…) */
.upd-pop {
  position: fixed; z-index: 95; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 24px));
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); animation: pop-up .45s cubic-bezier(.2,.9,.25,1.15) both;
}
.upd-pop.is-leaving { animation: pop-down .25s ease forwards; }
@keyframes pop-up { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes pop-down { to { opacity: 0; transform: translateY(20px); } }
.upd-pop__icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: rgb(var(--red-rgb) / .14); }
.upd-pop__txt small { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 600; }
.upd-pop__txt b { display: block; font-size: 16px; margin: 2px 0; }
.upd-pop__txt span { display: block; font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.upd-pop__act { grid-column: 2; display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.upd-pop__act .linkish { color: var(--text-faint); font-size: 13px; }
:root[data-theme="light"] .upd-pop { background: #fff; }
@media (max-width: 820px) { .upd-pop { left: 12px; right: 12px; width: auto; bottom: calc(82px + env(safe-area-inset-bottom)); } }

/* =========================================================
   Crews teaser page
   ========================================================= */
.crews { padding-top: 120px; padding-bottom: 80px; }
.crews__hero { max-width: 760px; }
.crews__hero h1 { font-family: var(--font-display); font-size: clamp(52px, 9vw, 110px); line-height: .9; margin: 10px 0 18px; font-weight: 700; }
.crews__hero h1 em { font-family: var(--font-serif); text-transform: none; color: var(--red); font-weight: 400; font-style: normal; }
.crews__lead { font-size: 19px; color: var(--text-soft); max-width: 600px; line-height: 1.55; }
.crews__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.crews__form { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 620px; }
.crews__form input { flex: 1 1 260px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
.crews__joined { padding: 12px 18px; border-radius: 999px; background: rgba(46,230,168,.14); color: #19b886; font-weight: 700; }
.crews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 64px 0; }
.crews__grid article { padding: 24px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.crews__grid article:hover { transform: translateY(-4px); border-color: rgb(var(--red-rgb) / .5); }
.crews__grid span { font-size: 30px; }
.crews__grid h3 { font-family: var(--font-display); font-size: 24px; margin: 12px 0 6px; font-weight: 700; }
.crews__grid p { color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.crews__apps { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 28px; background: linear-gradient(135deg, rgb(var(--red-rgb) / .16), transparent 60%), var(--bg-2); border: 1px solid var(--line); scroll-margin-top: 90px; }
.crews__apps h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); line-height: .95; margin: 8px 0 14px; font-weight: 700; }
.crews__apps h2 em { font-family: var(--font-serif); text-transform: none; color: var(--red); font-style: normal; }
.crews__apps p { color: var(--text-soft); line-height: 1.55; }
.crews__steps { margin: 16px 0 20px; padding-left: 18px; display: grid; gap: 8px; color: var(--text-soft); }
.crews__phone { justify-self: center; width: 200px; aspect-ratio: 9 / 19; border-radius: 36px; border: 8px solid #222; background: radial-gradient(circle at 50% 30%, rgb(var(--red-rgb) / .35), #0b0a09 70%); display: grid; place-items: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.crews__phone div { display: grid; justify-items: center; gap: 10px; color: #f1e9dc; font-size: 13px; }
.crews__phone img { border-radius: 18px; box-shadow: 0 10px 30px -8px rgb(var(--red-rgb) / .8); }
@media (max-width: 760px) { .crews { padding-top: 96px; } .crews__apps { grid-template-columns: 1fr; padding: 24px; } .crews__phone { width: 150px; } }

/* =========================================================
   Messages v4: Telegram / Instagram style
   ========================================================= */
.dm { grid-template-columns: 340px 1fr; height: calc(100dvh - 68px - 56px); background: var(--bg-2); }
.dm.has-info { grid-template-columns: 340px 1fr 320px; }
.dm__list-head { padding: 18px 16px 12px; border-bottom: 0; gap: 12px; }
.dm__list-head h2 { font-family: var(--font-display); font-size: 32px; line-height: 1; font-weight: 700; }
.dm__search-ico { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--text-faint); stroke-width: 2; pointer-events: none; }
.dm__search input { padding: 11px 14px 11px 40px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--text) 7%, transparent); }
.dm__search input:focus { box-shadow: 0 0 0 2px var(--red); }
.dm__tabs { display: flex; gap: 6px; }
.dm__tabs button { flex: 1; border: 0; padding: 9px 0; border-radius: 999px; background: transparent; color: var(--text-faint); font: 700 13px var(--font-body); cursor: pointer; transition: background .18s, color .18s; }
.dm__tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.dm__online-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #19b886; color: #fff; font-size: 10px; margin-left: 4px; }
.dm__label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); padding: 12px 18px 6px; font-weight: 600; }
.dm__online-strip { padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.dm__online-strip > div { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.dm__online-strip button { flex: none; display: grid; justify-items: center; gap: 4px; width: 64px; padding: 4px 0; border: 0; background: none; color: var(--text-soft); font: 500 11px var(--font-body); cursor: pointer; }
.dm__online-strip button span:last-child { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm__convs { padding: 4px 8px 12px; }
.dm__conv { border-radius: 16px; padding: 10px 10px; gap: 12px; border-bottom: 0 !important; }
.dm__conv[aria-current="true"] { background: rgb(var(--red-rgb) / .14); }
.dm__conv .meta b { font-size: 15px; }
.dm__conv.is-unread .meta b { color: var(--text); }
.dm__conv.is-unread .meta small { color: var(--text); font-weight: 600; }
.dm__conv .side { display: grid; justify-items: end; gap: 6px; align-self: start; padding-top: 4px; }
.dm__conv .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: var(--on-accent); font: 700 11px/20px var(--font-body); text-align: center; }
.dm__conv .mutual { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgb(var(--red-rgb) / .16); color: var(--red); vertical-align: 2px; margin-left: 4px; font-weight: 600; }
.dm__none { display: grid; gap: 4px; padding: 30px 18px; text-align: center; color: var(--text-faint); font-size: 14px; }
.dm__none b { color: var(--text); }
.dm__none a { color: var(--red); }
.dm__privacy { display: flex; gap: 12px; align-items: flex-start; margin: 16px 10px 4px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--text) 5%, transparent); cursor: pointer; }
.dm__privacy input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.dm__privacy b { display: block; font-size: 14px; }
.dm__privacy small { display: block; font-size: 12px; color: var(--text-faint); line-height: 1.4; margin-top: 2px; }

/* online dots */
.av-wrap { position: relative; display: inline-flex; flex: none; }
.on-dot { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 10px; min-height: 10px; border-radius: 50%; background: #2ee6a8; box-shadow: 0 0 0 2.5px var(--bg-2); transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.av-wrap.is-online .on-dot { transform: scale(1); }
.online-txt { color: #19b886; font-weight: 700; }

/* thread */
.dm__thread { position: relative; background:
  radial-gradient(circle at 20% 10%, rgb(var(--red-rgb) / .05), transparent 40%),
  var(--bg); }
.dm__thread-head { position: relative; gap: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 2; }
.dm__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.dm__who b { display: block; font-size: 16px; }
.dm__who small { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm__thread-head .tool-btn svg, .dm__info .tool-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm__find { position: absolute; inset: 0; display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--bg-2); }
.dm__find input { flex: 1; padding: 10px 16px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); font: inherit; }
.dm__msgs { padding: 16px 16px 8px; gap: 2px; scroll-behavior: auto; overscroll-behavior: contain; }
.dm__day { display: flex; justify-content: center; margin: 14px 0 10px; position: sticky; top: 0; z-index: 1; pointer-events: none; }
.dm__day span { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 85%, transparent); backdrop-filter: blur(8px); color: var(--text-soft); border: 1px solid var(--line); }
.msg-row { position: relative; align-items: flex-end; gap: 8px; }
.msg-row.first { margin-top: 8px; }
.msg-av { width: 30px; flex: none; }
.msg-col { position: relative; display: flex; flex-direction: column; max-width: min(72%, 520px); }
.msg-row.mine .msg-col { align-items: flex-end; }
.msg-bubble { position: relative; max-width: 100%; padding: 8px 12px 6px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.4; }
.msg-row:not(.mine).first .msg-bubble { border-top-left-radius: 20px; }
.msg-row:not(.mine):not(.last) .msg-bubble { border-bottom-left-radius: 6px; }
.msg-row:not(.mine):not(.first) .msg-bubble { border-top-left-radius: 6px; }
.msg-row.mine .msg-bubble { background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--on-accent); border: 0; border-radius: 20px; }
.msg-row.mine:not(.last) .msg-bubble { border-bottom-right-radius: 6px; }
.msg-row.mine:not(.first) .msg-bubble { border-top-right-radius: 6px; }
.msg-row.mine .msg-bubble a { color: inherit; }
.msg-text { display: inline; white-space: pre-wrap; word-break: break-word; }
.msg-meta { float: right; display: inline-flex; gap: 3px; align-items: center; margin: 6px 0 -2px 10px; font-size: 11px; opacity: .7; white-space: nowrap; font-variant-numeric: tabular-nums; }
.msg-bubble .post__attach { margin-top: 6px; min-width: min(240px, 60vw); clear: both; }
.tick { font-size: 11px; letter-spacing: -3px; margin-right: 3px; font-weight: 700; }
.tick.is-read { color: #7cf0ff; }
.msg-row.mine .tick.is-read { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,.7); }
.dm__conv .tick { color: var(--text-faint); margin-right: 6px; }
.dm__conv .tick.is-read { color: var(--red); }
.msg-seen { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.msg-gone { font-style: italic; opacity: .7; font-size: 14px; }
.msg-bubble.is-gone { background: transparent !important; border: 1px dashed var(--line-2) !important; color: var(--text-faint) !important; }
.msg-quote { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; margin: 2px 0 6px; padding: 6px 10px; border-radius: 10px; border-left: 3px solid var(--red); background: color-mix(in srgb, var(--text) 8%, transparent); color: inherit; font: inherit; }
.msg-row.mine .msg-quote { border-left-color: #fff; background: rgba(0,0,0,.18); }
.msg-quote b { display: block; font-size: 12px; }
.msg-quote span { display: block; font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.msg-post { display: flex; gap: 10px; align-items: center; margin: 2px 0 6px; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--text) 8%, transparent); color: inherit; min-width: min(240px, 60vw); }
.msg-row.mine .msg-post { background: rgba(0,0,0,.2); }
.msg-post img, .msg-post__ico { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: rgb(var(--red-rgb) / .2); font-size: 20px; }
.msg-post small { display: block; font-size: 11px; opacity: .75; }
.msg-post b { display: block; font-size: 14px; line-height: 1.3; }
.msg-file { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 8%, transparent); color: inherit !important; text-decoration: none !important; }
.msg-reacts { display: inline-flex; gap: 2px; margin-top: -6px; padding: 2px 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; font-size: 14px; position: relative; z-index: 1; color: var(--text); }
.msg-row:not(.mine) .msg-reacts { align-self: flex-start; margin-left: 8px; }
.msg-row.mine .msg-reacts { margin-right: 8px; }
.msg-reacts span.mine { filter: drop-shadow(0 0 4px rgb(var(--red-rgb) / .8)); }
.msg-reacts i { font-style: normal; font-size: 11px; margin-left: 1px; color: var(--text-soft); }
.msg-tools { display: flex; gap: 2px; align-self: center; opacity: 0; transition: opacity .15s; }
.msg-row.mine .msg-tools { order: -1; }
.msg-row:hover .msg-tools { opacity: 1; }
.msg-tools button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--text-faint); cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.msg-tools button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.msg-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msg-row.flash .msg-bubble { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgb(var(--red-rgb) / .45); } }
.msg-row.dim { opacity: .25; }
.msg-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 10; display: grid; gap: 6px; animation: bp-in .2s cubic-bezier(.2,.9,.25,1.2) both; transform-origin: bottom left; }
.msg-menu.mine { left: auto; right: 0; transform-origin: bottom right; }
.msg-menu__emoji { display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.msg-menu__emoji button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; transition: transform .15s; }
.msg-menu__emoji button:hover { transform: scale(1.25); }
.msg-menu__list { display: grid; min-width: 180px; padding: 6px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.msg-menu__list button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; color: var(--text); font: 500 14px var(--font-body); cursor: pointer; }
.msg-menu__list button:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.msg-menu__list .danger { color: #ff5a5a; }
.dm__typing { display: flex; gap: 4px; padding: 10px 14px; margin: 0 16px 6px 54px; width: max-content; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.dm__typing[hidden] { display: none; }
.dm__typing span, .dm__loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: blink 1.2s infinite; }
.dm__typing span:nth-child(2), .dm__loading span:nth-child(2) { animation-delay: .15s; }
.dm__typing span:nth-child(3), .dm__loading span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.dm__loading { display: flex; gap: 5px; justify-content: center; padding: 40px; }
.dm__hello { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px; }
.dm__hello b { font-size: 20px; margin-top: 6px; }
.dm__hello > span { color: var(--text-faint); font-size: 14px; margin-bottom: 8px; }
.dm__empty-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: rgb(var(--red-rgb) / .12); margin-bottom: 12px; }
.dm__empty-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linejoin: round; }

/* composer */
.dm__compose { border-top: 0; padding: 8px 12px 12px; background: transparent; }
.dm__compose-row { align-items: flex-end; gap: 6px; padding: 5px; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line-2); }
.dm__compose textarea { border: 0; background: transparent; min-height: 40px; padding: 10px 6px; border-radius: 0; }
.dm__compose textarea:focus { border: 0; }
.dm__compose-row:focus-within { border-color: rgb(var(--red-rgb) / .6); }
.dm__compose .tool-btn { border-radius: 50%; width: 40px; height: 40px; }
.dm__send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text-faint); transition: background .2s, color .2s, transform .15s; }
.dm__compose.has-text .dm__send { background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--on-accent); }
.dm__send:active { transform: scale(.9); }
.dm__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reply-bar { display: flex; gap: 10px; align-items: center; margin: 0 6px 6px; padding: 8px 12px; border-radius: 14px; border-left: 3px solid var(--red); background: var(--bg-2); }
.reply-bar span { flex: 1; min-width: 0; }
.reply-bar b { display: block; font-size: 12px; color: var(--red); }
.reply-bar small { display: block; font-size: 13px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar button { border: 0; background: none; color: var(--text-faint); font-size: 22px; cursor: pointer; }

/* chat info panel */
.dm__info { border-left: 1px solid var(--line-2); overflow-y: auto; background: var(--bg-2); animation: info-in .25s cubic-bezier(.2,.9,.25,1) both; }
@keyframes info-in { from { opacity: 0; transform: translateX(20px); } }
.dm__info-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dm__info-who { display: grid; justify-items: center; text-align: center; padding: 22px 16px 16px; }
.dm__info-who h3 { font-size: 20px; margin-top: 10px; font-family: var(--font-body); font-weight: 700; }
.dm__info-who p { font-size: 13px; color: var(--text-faint); }
.dm__info-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin-top: 16px; }
.dm__info-acts > * { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: var(--text-soft); font: 600 12px var(--font-body); cursor: pointer; padding: 0; }
.dm__info-acts span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 8%, transparent); transition: background .15s; }
.dm__info-acts > *:hover span { background: color-mix(in srgb, var(--text) 14%, transparent); }
.dm__info-acts svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm__info-acts .danger { color: #ff5a5a; }
.dm__info-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; }
.dm__info-tabs button { flex: 1; border: 0; background: none; padding: 12px 0; color: var(--text-faint); font: 700 13px var(--font-body); cursor: pointer; border-bottom: 2px solid transparent; }
.dm__info-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.dm__info-tabs i { font-style: normal; font-weight: 500; opacity: .6; }
.dm__info-body { padding: 8px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.info-grid a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg); }
.info-grid img, .info-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.info-row:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.info-row > span:last-child { min-width: 0; }
.info-row b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-row small { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-row__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 8%, transparent); flex: none; }
.dm__info-empty { padding: 30px 16px; text-align: center; font-size: 13px; color: var(--text-faint); }

@media (max-width: 1180px) {
  .dm.has-info { grid-template-columns: 300px 1fr; }
  .dm__info { position: absolute; inset: 0 0 0 auto; width: min(340px, 100%); z-index: 5; box-shadow: -20px 0 50px -20px rgba(0,0,0,.5); }
  .dm { position: relative; }
}
@media (max-width: 820px) {
  .dm, .dm.has-info { grid-template-columns: 1fr; }
  .dm__info { width: 100%; }
  .msg-col { max-width: 80%; }
  .msg-tools { display: none; }
  body.in-thread .tabbar { display: none; }
  body.in-thread { padding-bottom: 0 !important; }
  body.in-thread .app-nav { display: none; }
  body.in-thread .dm { height: 100dvh !important; }
  body.in-thread .dm__thread-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  body.in-thread .dm__compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .dm.has-thread .dm__thread { animation: slide-in .28s cubic-bezier(.2,.9,.25,1) both; }
  @keyframes slide-in { from { transform: translateX(30px); opacity: .4; } }
}
:root[data-theme="light"] .dm { background: #fff; }
:root[data-theme="light"] .dm__thread { background: #f6f3ee; }
:root[data-theme="light"] .msg-bubble:not(.msg-row.mine .msg-bubble) { background: #fff; }

/* threaded comments */
.post__ccount { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 6px 0 2px; font-weight: 600; }
.cthread { display: grid; gap: 8px; }
.cthread__replies { display: grid; gap: 8px; margin-left: 44px; padding-left: 12px; border-left: 2px solid var(--line); }
.cthread__replies.is-folded > .comment:not(:last-of-type) { display: none; }
.cthread__replies.is-folded > .comment:first-child { display: flex; }
.cthread__more { justify-self: start; border: 0; background: none; color: var(--text-faint); font: 600 13px var(--font-body); cursor: pointer; padding: 2px 0; }
.cthread__more:hover { color: var(--text); }
.comment__main { flex: 1; min-width: 0; }
.comment__bubble { border-radius: 4px 18px 18px 18px; }
.comment--reply .comment__bubble { font-size: 13.5px; }
.comment__op { margin-left: 6px; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgb(var(--red-rgb) / .16); color: var(--red); vertical-align: 2px; font-weight: 600; }
.comment__text { margin-top: 2px; word-break: break-word; }
.comment__to { color: var(--red); font-weight: 600; }
.comment__acts { display: flex; gap: 14px; align-items: center; padding: 4px 6px 0; font-size: 12px; color: var(--text-faint); }
.comment__acts button, .comment__acts a { border: 0; background: none; padding: 0; color: var(--text-faint); font: 700 12px var(--font-body); cursor: pointer; }
.comment__acts button:hover, .comment__acts a:hover { color: var(--text); }
.comment__acts a { color: var(--red); }
.comment-form { display: grid; gap: 6px; position: sticky; bottom: -1px; padding: 10px 0 2px; background: inherit; }
.comment-form__row { display: flex; gap: 8px; align-items: center; }
.comment-form__row input { flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--font-body); }
.comment-form__row input:focus { outline: none; border-color: var(--red); }
.comment-form__reply { font-size: 12px; color: var(--text-soft); padding: 0 6px; }
.comment-form__reply button { border: 0; background: none; color: var(--text-faint); font-size: 16px; cursor: pointer; margin-left: 4px; }

/* =========================================================
   Profile v4: real banner, overlapping avatar, cleaner stats
   ========================================================= */
.prof-head--v2 { display: block; padding: 0; overflow: hidden; }
.prof-head--v2::before { display: none; }
.prof-banner { position: relative; height: 220px; background: linear-gradient(120deg, var(--prof-a, var(--red)), var(--prof-b, var(--red-deep))) center / cover no-repeat; }
.prof-banner[data-style="sunset"] { background: linear-gradient(120deg, #ff7a18, #ff2d55 45%, #6a00f4); }
.prof-banner[data-style="night"] { background: radial-gradient(circle at 80% 20%, #3b2a8a, transparent 50%), radial-gradient(circle at 10% 90%, #8a1f3b, transparent 45%), #0b0a14; }
.prof-banner[data-style="ocean"] { background: linear-gradient(135deg, #00c6ff, #0072ff 50%, #031d44); }
.prof-banner[data-style="grain"] { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"), linear-gradient(120deg, var(--prof-a, var(--red)), #1a1715); }
.prof-banner[data-style="mono"] { background: repeating-linear-gradient(-45deg, #1d1b19 0 14px, #252220 14px 28px); }
.prof-banner[data-style="image"] { background-color: var(--bg-2); background-size: cover; background-position: center; }
.prof-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); pointer-events: none; }
.prof-banner__edit { position: absolute; right: 14px; top: 14px; z-index: 1; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font: 700 12px var(--font-body); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.prof-banner__edit:hover { background: rgba(0,0,0,.65); }
.prof-head--v2 .prof-avatar { position: relative; z-index: 1; width: 140px; height: 140px; margin: -76px 0 0 28px; border: 5px solid var(--card); font-size: 56px; }
.prof-head--v2 .prof-info { padding: 12px 28px 28px; gap: 8px; }
.prof-head--v2 .prof-actions { position: absolute; top: 232px; right: 28px; margin: 0; }
.prof-head--v2 .prof-stats { gap: 0; margin-top: 10px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; width: max-content; max-width: 100%; }
.prof-head--v2 .prof-stats > * { padding: 12px 20px; border-right: 1px solid var(--line); }
.prof-head--v2 .prof-stats > *:last-child { border-right: 0; }
.prof-head--v2 .prof-stats b { font-size: 24px; }
.prof-head--v2 .prof-stats .stat-btn { border-radius: 0; }
.prof-head--v2 .prof-stats .stat-btn:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.banner-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.banner-pick .prof-banner { height: 74px; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .15s; }
.banner-pick .prof-banner:hover { transform: translateY(-2px); }
.banner-pick [aria-pressed="true"] { outline-color: var(--red); }
.banner-pick .prof-banner span { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: #fff; font: 700 12px var(--font-body); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.banner-pick__up { height: 74px; border-radius: 14px; border: 2px dashed var(--line-2); display: grid; place-items: center; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--text-soft); grid-column: span 2; outline: 3px solid transparent; outline-offset: 2px; }
.banner-pick__up:hover { border-color: var(--red); color: var(--text); }
@media (max-width: 760px) {
  .prof-banner { height: 140px; }
  .prof-head--v2 .prof-avatar { width: 104px; height: 104px; margin: -54px 0 0 18px; font-size: 42px; }
  .prof-head--v2 .prof-info { padding: 10px 18px 20px; }
  .prof-head--v2 .prof-actions { position: static; margin-top: 10px; }
  .prof-head--v2 .prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .prof-head--v2 .prof-stats > * { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
  .prof-head--v2 .prof-stats > *:nth-child(3n) { border-right: 0; }
  .prof-head--v2 .prof-stats > *:nth-child(n+4) { border-bottom: 0; }
  .prof-head--v2 .prof-stats .stat-btn { text-align: center; }
  .prof-head--v2 .prof-stats b { font-size: 20px; }
}

/* =========================================================
   Hover profile card (desktop): follows the cursor over names + avatars
   ========================================================= */
.hovercard {
  position: fixed; z-index: 260; width: 300px; pointer-events: none; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .16s, transform .16s;
}
.hovercard.is-on { opacity: 1; transform: none; }
.hovercard .prof-banner { height: 64px; }
.hovercard__body { padding: 0 16px 16px; }
.hovercard__body .av { margin-top: -28px; border: 3px solid var(--bg-2); position: relative; z-index: 1; }
.hovercard b { display: block; font-size: 16px; margin-top: 6px; }
.hovercard .h { font-family: var(--font-mono); font-size: 12px; color: var(--red); font-weight: 600; }
.hovercard p { font-size: 13px; color: var(--text-soft); margin-top: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hovercard .meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-faint); }
.hovercard .meta strong { color: var(--text); }
.hovercard .tag { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgb(var(--red-rgb) / .14); color: var(--red); }
:root[data-theme="light"] .hovercard { background: #fff; }
@media (hover: none) { .hovercard { display: none; } }
.prof-head--v2 > .prof-info { position: static; }
.prof-head--v2 .prof-info h1 { padding-right: 0; }
@media (min-width: 761px) { .prof-head--v2 .prof-handle { padding-right: 380px; } }

/* =========================================================
   Social home: creators carousel, grid/feed toggle, feed cards
   ========================================================= */
.creators { margin: 0 0 22px; }
.creators__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.creators__head .linkish { font-size: 13px; color: var(--text-faint); }
.creators__head .linkish:hover { color: var(--red); }
.creators__row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.creators__row::-webkit-scrollbar { display: none; }
.ccard { flex: none; width: 148px; scroll-snap-align: start; display: grid; justify-items: center; gap: 10px; padding: 18px 12px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: transform .2s, border-color .2s; }
.ccard:hover { transform: translateY(-3px); border-color: rgb(var(--red-rgb) / .45); }
.ccard__link { display: grid; justify-items: center; gap: 2px; min-width: 0; width: 100%; }
.ccard__link .av-wrap { margin-bottom: 8px; }
.ccard b { font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard small { font-size: 12px; color: var(--text-faint); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard__btn { width: 100%; border: 0; cursor: pointer; padding: 8px 0; border-radius: 999px; background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--on-accent); font: 700 13px var(--font-body); text-align: center; }
.ccard__btn.is-ghost { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.ccard .on-dot { box-shadow: 0 0 0 3px var(--card); }
.feed-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.feed-bar .feed-tabs { margin-bottom: 0; }
.feed-bar + section, .feed-bar ~ section { margin-top: 18px; }
.view-toggle { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.view-toggle[hidden] { display: none; }
.view-toggle button { width: 40px; height: 34px; border: 0; border-radius: 999px; background: none; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; }
.view-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.view-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.fcards { display: grid; gap: 22px; max-width: 600px; margin: 0 auto; }
.fcard { border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.fcard__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.fcard__head .who { flex: 1; min-width: 0; }
.fcard__time { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); font-weight: 600; }
.fcard__media { position: relative; background: var(--bg); }
.fcard__media img, .fcard__media video { display: block; width: 100%; max-height: 720px; object-fit: cover; }
.fcard__media .post__attach, .fcard__media > * { margin: 0; }
.fcard__pop { position: absolute; left: 50%; top: 50%; font-size: 90px; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.4); transform: translate(-50%, -50%); animation: heart-pop .8s ease forwards; pointer-events: none; }
@keyframes heart-pop { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }
.fcard__acts { display: flex; gap: 4px; padding: 8px 8px 0; }
.fcard__btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); font: 700 14px var(--font-body); padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.fcard__btn:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.fcard__btn .heart { font-size: 20px; line-height: 1; transition: transform .2s; }
.fcard__btn.is-on .heart { color: #ff3b6b; transform: scale(1.1); }
.fcard__body { padding: 4px 16px 0; font-size: 14px; line-height: 1.5; color: var(--text-soft); word-break: break-word; }
.fcard__body b { color: var(--text); }
.fcard__more { display: block; border: 0; background: none; padding: 6px 16px 0; color: var(--text-faint); font: 500 13px var(--font-body); cursor: pointer; }
.fcard > :last-child { margin-bottom: 14px; }
@media (max-width: 820px) {
  .fcards { margin: 0 -16px; gap: 10px; }
  .fcard { border-radius: 0; border-left: 0; border-right: 0; }
  .ccard { width: 128px; }
}

/* =========================================================
   Desktop message dock (bottom right)
   ========================================================= */
.mdock { position: fixed; right: 24px; bottom: 0; z-index: 65; width: 330px; border-radius: 18px 18px 0 0; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -10px 40px -16px rgba(0,0,0,.5); overflow: hidden; transition: transform .3s cubic-bezier(.2,.9,.25,1); }
.mdock__bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--text); cursor: pointer; font: 700 15px var(--font-body); text-align: left; }
.mdock__bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mdock__faces { display: flex; margin-left: auto; }
.mdock__faces .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg-2); }
.mdock__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: var(--on-accent); font-size: 11px; line-height: 20px; text-align: center; }
.mdock__chev { transition: transform .3s; }
.mdock.is-open .mdock__chev { transform: rotate(180deg); }
.mdock__list { max-height: 0; overflow-y: auto; transition: max-height .3s cubic-bezier(.2,.9,.25,1); }
.mdock.is-open .mdock__list { max-height: 420px; border-top: 1px solid var(--line); }
.mdock__item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; }
.mdock__item:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.mdock__item span:nth-child(2) { flex: 1; min-width: 0; }
.mdock__item b { display: block; font-size: 14px; }
.mdock__item small { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdock__item.is-unread small { color: var(--text); font-weight: 700; }
.mdock__all { display: block; text-align: center; padding: 12px; font-size: 13px; font-weight: 700; color: var(--red); border-top: 1px solid var(--line); }
:root[data-theme="light"] .mdock { background: #fff; }
@media (max-width: 1099px) { .mdock { display: none; } }

/* add-your-own craft + search chips */
.craft-add { display: inline-flex; }
.craft-add input { width: 150px; padding: 9px 14px; border-radius: 999px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--text); font: 600 13px var(--font-body); }
.craft-add input:focus { outline: none; border-style: solid; border-color: var(--red); width: 190px; }
.craft-add input::placeholder { color: var(--text-faint); }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.search-chips:empty { display: none; }
.schip-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-right: 2px; font-weight: 600; }
.schip-label:not(:first-child) { margin-left: 8px; }
.schip { border: 1px solid var(--line-2); background: transparent; color: var(--text-soft); padding: 7px 14px; border-radius: 999px; font: 600 13px var(--font-body); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.schip:hover { border-color: var(--text-faint); color: var(--text); }
.schip.is-hot { border-color: rgb(var(--red-rgb) / .4); color: var(--text); }
.schip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 820px) { .search-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px; } .schip, .schip-label { flex: none; } }
/* tab rows never push the page sideways: they scroll inside themselves */
.feed-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs button { flex: none; white-space: nowrap; }
@media (max-width: 420px) { .feed-tabs button { padding: 10px 13px; font-size: 12px; } }

/* =========================================================
   v5: mini player, embeds, drag & drop, GIFs, quick chat,
   timeline, privacy bits
   ========================================================= */

/* --- embeds: YouTube thumbnail + "mini player" pop-out --- */
.embed { position: relative; }
.embed--yt { aspect-ratio: 16 / 9; cursor: pointer; }
.embed--yt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed--yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 68px; height: 48px; border: 0; border-radius: 14px; translate: -50% -50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, scale .2s; }
.yt-play svg { width: 26px; height: 26px; fill: currentColor; }
.embed--yt:hover .yt-play { background: var(--red); scale: 1.06; }
.embed--yt.is-live .yt-play { display: none; }
.embed__pop { position: absolute; right: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font: 700 11px var(--font-body); cursor: pointer; opacity: 0; transition: opacity .2s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.embed__pop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.embed:hover .embed__pop, .embed:focus-within .embed__pop { opacity: 1; }
@media (hover: none) { .embed__pop { opacity: 1; } .embed__pop span { display: none; } }
.embed__popped { display: none; }
.embed.is-popped { min-height: 64px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 12%, var(--card)); aspect-ratio: auto; }
.embed.is-popped > :not(.embed__popped) { display: none !important; }
.embed.is-popped .embed__popped { display: block; padding: 18px; font: 700 13px var(--font-body); color: var(--text-soft); }
.media--gif img { max-height: 360px; width: auto; max-width: 100%; object-fit: contain; }

/* --- audio card: plays in the mini player --- */
.acard { cursor: pointer; }
.acard__play { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -8px var(--red); transition: transform .15s; }
.acard__play:active { transform: scale(.94); }
.acard__play svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.acard__play .i-pause, .acard.is-playing .acard__play .i-play { display: none; }
.acard.is-playing .acard__play .i-pause { display: block; fill: none; }
.acard__meta { flex: 1; min-width: 0; display: grid; }
.acard__meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard__meta small { color: var(--text-faint); font-size: 12px; }
.acard.is-playing .acard__state::before { content: 'Playing'; }
.acard.is-current:not(.is-playing) .acard__state::before { content: 'Paused'; }
.acard.is-current .acard__state { font-size: 0; }
.acard.is-current .acard__state::before { font-size: 12px; color: var(--red); font-weight: 700; }
.acard__eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.acard__eq i { width: 4px; height: 30%; border-radius: 2px; background: var(--red); opacity: .5; }
.acard.is-playing .acard__eq i { opacity: 1; animation: eq 1s ease-in-out infinite; }
.acard.is-playing .acard__eq i:nth-child(2) { animation-delay: -.3s; }
.acard.is-playing .acard__eq i:nth-child(3) { animation-delay: -.6s; }
.acard.is-playing .acard__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* --- video: picture in picture button --- */
.media--video { position: relative; }
.pip-btn { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pip-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.media--video:hover .pip-btn, .media--video:focus-within .pip-btn { opacity: 1; }
@media (hover: none) { .pip-btn { opacity: .9; } }
.snd-btn { position: absolute; left: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.snd-btn svg { width: 20px; height: 20px; }
.snd-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tile .snd-btn { display: none; }
.pip-host { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

/* --- mini player --- */
.mplayer {
  --mp-bottom: 18px;
  position: fixed; z-index: 450; left: 18px; bottom: calc(var(--mp-bottom) + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 24px));
  border-radius: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.65);
  transition: bottom .25s, opacity .2s, transform .25s;
}
.has-rail .mplayer { left: 274px; }
@media (max-width: 1099px) { .has-rail .mplayer { left: 18px; } }
.mplayer.is-in { animation: mp-in .35s cubic-bezier(.2,.9,.25,1.15) both; }
.mplayer.is-leaving { opacity: 0; transform: translateY(20px); }
@keyframes mp-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.mplayer__row { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 10px; }
.mplayer__art { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--red) center / cover; display: grid; place-items: center; color: #fff; font-size: 18px; }
.mplayer:not(.is-paused):not(.is-embed) .mplayer__art { animation: mp-spin 8s linear infinite; border-radius: 50%; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mplayer__meta { flex: 1; min-width: 0; display: grid; cursor: pointer; padding: 0 4px; }
.mplayer__meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mplayer__meta small { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mplayer__btn { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.mplayer__btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.mplayer__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mplayer__play { background: var(--text); color: var(--bg); }
.mplayer__play:hover { background: var(--text); }
.mplayer__play .i-play { display: none; fill: currentColor; }
.mplayer.is-paused .mplayer__play .i-play { display: block; }
.mplayer.is-paused .mplayer__play .i-pause { display: none; }
.mplayer__like[aria-pressed="true"] { color: #ff3b6b; }
.mplayer__like[aria-pressed="true"] svg, .mplayer__save[aria-pressed="true"] svg { fill: currentColor; }
.mplayer__save[aria-pressed="true"] { color: var(--red); }
.mplayer__bar { position: relative; height: 18px; margin: -4px 12px 8px; cursor: pointer; touch-action: none; }
.mplayer__bar::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.mplayer__fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--red); width: 0; }
.mplayer__time { position: absolute; right: 0; top: -10px; font: 10px var(--font-mono); color: var(--text-faint); opacity: 0; transition: opacity .2s; }
.mplayer:hover .mplayer__time { opacity: 1; }
.mplayer__embed iframe { display: block; width: 100%; border: 0; background: #000; }
.mplayer.is-video .mplayer__embed iframe { height: auto !important; aspect-ratio: 16 / 9; }
.mplayer.is-embed .mplayer__art { display: none; }
@media (max-width: 820px) {
  .mplayer { --mp-bottom: 78px; left: 8px; right: 8px; width: auto; border-radius: 18px; }
  .has-rail .mplayer { left: 8px; }
  .mplayer__time { display: none; }
  .mplayer.is-lifted { --mp-bottom: 84px; }
}
@media (min-width: 821px) { .mplayer.is-lifted { --mp-bottom: 96px; } }

/* the frame pages open in while something's playing */
.shell-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 440; background: var(--bg); }
html.in-shell, html.in-shell body { overflow: hidden !important; }
html.in-shell body > :not(.shell-frame):not(.mplayer):not(.pip-host):not(.toast):not(.cdialog) { visibility: hidden !important; }

/* --- drag & drop overlay --- */
.drop-ov { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 24px; background: rgba(10, 9, 8, .55); backdrop-filter: blur(6px) grayscale(.8); -webkit-backdrop-filter: blur(6px) grayscale(.8); opacity: 0; transition: opacity .18s; pointer-events: none; }
.drop-ov.is-on { opacity: 1; }
.drop-ov__card { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 44px 54px; border-radius: 28px; border: 2.5px dashed rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.35); transform: scale(.94); transition: transform .25s cubic-bezier(.2,.9,.25,1.3); }
.drop-ov.is-on .drop-ov__card { transform: none; }
.drop-ov__card b { font: 700 34px/1 var(--font-display, 'Anton', sans-serif); letter-spacing: -.01em; }
.drop-ov__card span { font-size: 14px; opacity: .8; }
.drop-ov__icon { width: 74px; height: 74px; border-radius: 22px; background: var(--red); display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 16px 40px -10px var(--red); animation: drop-bob 1.1s ease-in-out infinite; }
.drop-ov__icon svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes drop-bob { 50% { transform: translateY(-8px); } }

/* composer drop box */
.composer2 .dropzone { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 16px 18px; margin-top: 14px; gap: 2px 14px; align-items: center; }
.composer2 .dropzone__icon { grid-row: span 2; margin: 0; }
.composer2 .dropzone__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone__txt { display: grid; }
.dropzone__txt small { color: var(--text-faint); font-size: 12px; }
.dropzone__file { grid-column: 2; font: 700 12px var(--font-mono); color: var(--red); }
.dropzone.has-file { border-style: solid; border-color: var(--red); }
.composer2 .composer2__media { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
[data-status]:not([data-status=""])::after { content: attr(data-status); display: block; margin-top: 6px; font: 700 12px var(--font-mono); color: var(--red); }

/* --- GIF picker --- */
.gifp { position: fixed; z-index: 620; max-height: min(440px, 70vh); display: flex; flex-direction: column; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.65); overflow: hidden; animation: bp-in .2s cubic-bezier(.2,.9,.25,1.2) both; }
.gifp__head { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.gifp__head input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 16px var(--font-body); }
.gifp__head input:focus { outline: none; border-color: var(--red); }
.gifp__x { width: 38px; border: 0; border-radius: 50%; background: none; color: var(--text); font-size: 22px; cursor: pointer; }
.gifp__grid { flex: 1; overflow-y: auto; padding: 8px; columns: 2; column-gap: 6px; }
.gifp__grid .help { column-span: all; padding: 10px 6px; }
.gifp__grid button { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--card); break-inside: avoid; }
.gifp__grid img { display: block; width: 100%; }
.gifp__grid button:hover { outline: 2px solid var(--red); }
.gifp__foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-faint); }
.gifp__foot .linkish { font-size: 13px; cursor: pointer; }
.cgif, .dm__gif, .qc__gif { flex: none; height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line-2); background: none; color: var(--text); font: 800 11px var(--font-mono); letter-spacing: .04em; cursor: pointer; }
.cgif:hover, .dm__gif:hover, .qc__gif:hover { border-color: var(--red); color: var(--red); }
.comment__gif { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; margin-top: 6px; }

/* --- quick chat --- */
.qc-scrim { position: fixed; inset: 0; z-index: 470; background: rgba(0,0,0,.4); animation: entry-in .2s ease both; }
@media (min-width: 821px) { .qc-scrim { background: transparent; } }
.qc-scrim.is-leaving { opacity: 0; transition: opacity .2s; }
.qc {
  position: fixed; z-index: 480; right: 24px; bottom: 0; width: 380px; height: min(600px, calc(100dvh - 90px));
  display: flex; flex-direction: column; border-radius: 22px 22px 0 0; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -10px 60px -20px rgba(0,0,0,.6);
  animation: qc-in .3s cubic-bezier(.2,.9,.25,1.1) both;
}
@keyframes qc-in { from { transform: translateY(40px); opacity: 0; } }
.qc.is-leaving { transform: translateY(40px); opacity: 0; transition: transform .2s, opacity .2s; }
.qc-open .mdock { display: none; }
.qc__grab { display: none; }
.qc__head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); }
.qc__title { flex: 1; min-width: 0; }
.qc__title > b { font: 700 22px var(--font-display, 'Anton', sans-serif); }
.qc__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qc__who > span:last-child { display: grid; min-width: 0; }
.qc__who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc__who small { font-size: 12px; color: var(--text-faint); }
.qc__full { font: 700 12px var(--font-body); color: var(--text-soft); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.qc__full:hover { color: var(--red); border-color: var(--red); }
.qc__back, .qc__x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.qc__back:hover, .qc__x:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.qc__back svg, .qc__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qc__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.qc.is-thread .qc__body { display: flex; flex-direction: column; overflow: hidden; }
.qc-conv { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.qc-conv:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.qc-conv__txt { flex: 1; min-width: 0; display: grid; }
.qc-conv__txt b { font-size: 14px; }
.qc-conv__txt small { font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-conv.is-unread .qc-conv__txt small { color: var(--text); font-weight: 700; }
.qc-conv__time { font: 11px var(--font-mono); color: var(--text-faint); }
.qc-conv__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.qc-msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 3px; }
.qc-m { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; margin-top: 8px; }
.qc-m.is-grouped { margin-top: 0; }
.qc-m.is-me { align-self: flex-end; flex-direction: row-reverse; }
.qc-m.is-me .av, .qc-m.is-me .qc-m__sp { display: none; }
.qc-m__sp { width: 26px; flex: none; }
.qc-m__b { padding: 8px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; word-break: break-word; min-width: 0; }
.qc-m.is-me .qc-m__b { background: var(--red); color: #fff; border-color: transparent; }
.qc-m.is-me .qc-m__b a { color: #fff; text-decoration: underline; }
.qc-m.is-gif .qc-m__b { padding: 0; background: none; border: 0; }
.qc-m__att { display: block; margin-top: 4px; }
.qc-m__att .media { max-width: 240px; border-radius: 14px; }
.qc-m__att .media--audio { padding: 10px; gap: 10px; }
.qc-m__gone { font-style: italic; opacity: .7; }
.qc-m__post { display: block; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.qc-m__status { align-self: flex-end; font: 11px var(--font-mono); color: var(--text-faint); padding: 2px 4px; }
.qc-hello { margin: auto; display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--text-faint); }
.qc-hello b { color: var(--text); font-size: 16px; margin-top: 6px; }
.qc__compose { border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.qc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qc__chips:not(:empty) { margin-bottom: 6px; }
.qc__row { display: flex; align-items: flex-end; gap: 6px; }
.qc__row textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 9px 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 15px/1.35 var(--font-body); }
.qc__row textarea:focus { outline: none; border-color: var(--red); }
.qc__tool { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--text-soft); cursor: pointer; }
.qc__tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
label.qc__tool:hover { color: var(--red); }
.qc__gif { width: auto; }
.qc__send { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.qc__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qc__send:disabled { opacity: .5; }
@media (max-width: 820px) {
  .qc { left: 0; right: 0; width: auto; height: 88dvh; border-radius: 24px 24px 0 0; }
  .qc__grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
  .qc__head { padding-top: 6px; }
}

/* --- Showcase timeline (Twitter-style) --- */
.tl.fcards { gap: 0; max-width: 640px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); }
.tw { display: flex; gap: 12px; padding: 14px 16px 6px; border-bottom: 1px solid var(--line); transition: background .15s; }
.tw:last-child { border-bottom: 0; }
.tw:hover { background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.tw__av { flex: none; }
.tw__main { flex: 1; min-width: 0; }
.tw__head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.3; }
.tw__name b { font-size: 15px; }
.tw__name:hover b { text-decoration: underline; }
.tw__meta { font-size: 14px; color: var(--text-faint); }
.tw__meta time { cursor: pointer; }
.tw__meta time:hover { text-decoration: underline; }
.tw__craft { margin-left: auto; padding: 2px 9px; border-radius: 999px; font: 700 11px var(--font-body); color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.tw__body { margin-top: 3px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; cursor: pointer; }
.tw__body a { color: var(--red); }
.tw__body.is-long { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tw__showmore { border: 0; background: none; padding: 2px 0 0; color: var(--red); font: 700 14px var(--font-body); cursor: pointer; }
.tw__media { position: relative; margin-top: 10px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.tw__media > .media, .tw__media > .embed, .tw__media > .link-card { border-radius: 0; border: 0; }
.tw__media .media--img img { max-height: 560px; }
.tw__media .media--video video { max-height: 600px; }
.tw__acts { display: flex; justify-content: space-between; max-width: 440px; margin: 6px 0 0 -8px; }
.tw__act { display: inline-flex; align-items: center; gap: 4px; min-width: 40px; height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--text-faint); font: 500 13px var(--font-body); cursor: pointer; transition: color .15s, background .15s; }
.tw__act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tw__act:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.tw__act .heart { font-size: 19px; line-height: 1; }
.tw__act--like:hover, .tw__act--like.is-on { color: #ff3b6b; }
.tw__act--like.is-on .heart { animation: heart-bump .35s ease; }
.tw__act--save.is-on { color: var(--red); }
.tw__act--save.is-on svg { fill: currentColor; }
@keyframes heart-bump { 50% { transform: scale(1.35); } }
.tool-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; }
.tool-btn.save-btn.is-on { color: var(--red); }
.tool-btn.save-btn.is-on svg { fill: currentColor; }
@media (max-width: 640px) {
  .tl.fcards { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .tw { padding: 12px 14px 4px; gap: 10px; }
  .tw__av .av { width: 40px !important; height: 40px !important; }
  .tw__craft { display: none; }
}

/* --- privacy + profile bits --- */
.follows-you { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 6px; font: 700 11px var(--font-body); letter-spacing: .02em; color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); vertical-align: 2px; }
.stat-btn.is-hidden { cursor: default; opacity: .7; }
.stat-btn.is-hidden:hover b { color: inherit; }
.hovercard .tag--follows { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); }
.search-start { padding: 60px 20px; }

/* ---------- v6: voice notes ---------- */
.dm__compose.has-text .dm__mic { display: none; }
.dm__rec { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.dm__rec[hidden] { display: none; }
.dm__rec-x { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-dim, var(--text)); }
.dm__rec-x svg, .dm__rec-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dm__rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4a2b; animation: recpulse 1s ease-in-out infinite; }
@keyframes recpulse { 50% { opacity: .25; transform: scale(.8); } }
.dm__rec b { font-variant-numeric: tabular-nums; font-size: 15px; }
.dm__rec-label { flex: 1; color: var(--text-faint); font-size: 13px; }
.dm__rec-send { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .dm__rec-dot { animation: none; } }

/* ---------- v6: invite friends ---------- */
.invite { max-width: 640px; padding-top: 28px; padding-bottom: 60px; }
.invite__head h1 { font-family: var(--font-head); font-size: clamp(40px, 8vw, 64px); line-height: .95; margin: 4px 0 10px; font-weight: 700; }
.invite__head p { color: var(--text-soft, var(--text)); margin: 0 0 22px; }
.invite__eyebrow { color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 0 !important; }
.invite__card { background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.invite__card h2 { font-size: 18px; margin: 0; }
.invite__label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.invite__label-row label { font-weight: 700; }
.invite__card textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 96px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; line-height: 1.45; }
.invite__link { display: flex; gap: 10px; align-items: baseline; margin: 10px 0 0; font-size: 13px; color: var(--text-faint); min-width: 0; }
.invite__link code { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.invite__warn { margin: 10px 0 0; font-size: 13px; color: var(--red); }
.invite__warn a { color: inherit; }
.invite__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.invite__actions .btn { flex: 1 1 140px; gap: 6px; justify-content: center; text-align: center; }
.invite__actions [hidden] { display: none; }
.invite__hint, .invite__sub { color: var(--text-faint); font-size: 13px; margin: 12px 0 0; }
.invite__sub { margin: 0 0 12px; }
.invite__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.invite__row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.invite__row.is-done { opacity: .6; }
.invite__av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }
.invite__who { flex: 1; min-width: 0; display: grid; }
.invite__who b, .invite__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite__who small { color: var(--text-faint); }
.invite__x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); font-size: 20px; cursor: pointer; }
.invite__privacy { font-size: 13px; color: var(--text-faint); text-align: center; margin-top: 18px; }
.rail__invite { color: var(--red) !important; }
#inv-contacts { flex-basis: 100% !important; }

/* =========================================================
   v7: badges, compact messages, shared post cards, portfolio picker,
   verification, admin panels, rail craft dropdown
   ========================================================= */
/* badges */
.badges { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; vertical-align: -2px; }
.vbadge { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.vbadge svg { width: 100%; height: 100%; }
.vbadge svg path:first-child { fill: var(--red); }
.vbadge svg .vtick { fill: none; stroke: var(--on-accent, #fff); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vbadge--inline { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; border-radius: 50%; background: var(--red); }
.rbadge { display: inline-flex; align-items: center; font: 700 9.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); white-space: nowrap; }
.rbadge--ceo { background: var(--text); color: var(--bg); }
.rbadge--official { background: var(--red); color: var(--on-accent, #fff); }
.rbadge--founding { background: rgb(var(--red-rgb) / .14); color: var(--red); }
.prof-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; }
.prof-badges:empty { display: none; }
.prof-badges .vbadge { width: 22px; height: 22px; }
.prof-badges .rbadge { font-size: 11px; padding: 5px 8px; }
h1 .badges .vbadge, .who b .badges .vbadge { width: 15px; height: 15px; }
.stat-btn .lock { font-size: 11px; opacity: .7; }
.av--crew { display: inline-grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--on-accent, #fff); font-size: 18px; }

/* rail: craft list folds up */
.rail__crafts > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; }
.rail__crafts > summary::-webkit-details-marker { display: none; }
.rail__crafts > summary:hover { color: var(--text); }
.rail__crafts > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s; }
.rail__crafts[open] > summary svg { transform: rotate(180deg); }

/* messages: edge-to-edge, slimmer bars, conversation kept to a readable width */
.app-main--dm { padding: 0 !important; }
.dm-wrap { max-width: none !important; padding: 0 !important; }
.dm-wrap .dm { height: calc(100dvh - 68px); border-radius: 0; border: 0; border-top: 1px solid var(--line); grid-template-columns: 300px 1fr; }
.dm-wrap .dm.has-info { grid-template-columns: 300px 1fr 300px; }
.dm__list-head { padding: 14px 14px 10px; gap: 10px; }
.dm__list-head h2 { font-size: 26px; }
.dm__thread-head { padding: 8px 12px; min-height: 56px; }
.dm__msgs { padding: 12px max(16px, calc((100% - 820px) / 2)) 6px; }
.dm__compose { padding: 6px max(12px, calc((100% - 820px) / 2)) 10px; }
.dm__compose-row { padding: 3px; gap: 2px; }
.dm__compose .tool-btn { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; flex: none; }
.dm__compose .tool-btn svg { width: 20px; height: 20px; flex: none; }
.dm__compose .dm__gif { font-size: 11px; }
.dm__compose textarea { min-height: 36px; padding: 8px 6px; font-size: 15px; }
.dm__send { width: 36px; height: 36px; }
.msg-bubble { font-size: 15px; }
.dm__hello { gap: 6px; }
.dm__work svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) {
  .dm-wrap .dm { height: calc(100dvh - 68px - 64px - env(safe-area-inset-bottom)); grid-template-columns: 1fr; margin: 0 !important; }
  .dm__compose .dm__gif { display: none; }
  body.in-thread .dm__compose .dm__gif { display: inline-grid; }
}

/* attachments waiting to send */
.attach-tray { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 2px 4px; }
.attach-tile { position: relative; width: 64px; height: 64px; border-radius: 12px; background: color-mix(in srgb, var(--text) 8%, transparent) center/cover; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-2); }
.attach-tile span { font-size: 10px; line-height: 1.2; padding: 4px; text-align: center; word-break: break-word; color: var(--text-soft); }
.attach-tile button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.attach-tray__n { flex-basis: 100%; font-size: 12px; color: var(--text-faint); }
#attach-chip[data-status]:not([data-status=""])::after { content: attr(data-status); display: block; font-size: 12px; color: var(--text-faint); padding: 4px 6px 0; }

/* a post shared in a chat */
.spost { display: block; width: min(300px, 68vw); margin: 2px 0 6px; border-radius: 16px; overflow: hidden; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); text-align: left; }
.msg-row.mine .msg-bubble .spost { box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.spost__head { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; padding: 9px 10px; color: var(--text) !important; text-decoration: none !important; text-align: left; }
.spost a { text-decoration: none !important; }
.spost__head b { font-size: 13px; }
.spost__head small { margin-left: auto; font: 700 9.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.spost__media { position: relative; display: block; width: 100%; aspect-ratio: 1; background: #000; }
.spost__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spost__count { position: absolute; top: 8px; right: 8px; font: 700 11px var(--font-body); padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.spost__player { padding: 0 8px; }
.spost__player .embed, .spost__player .media { margin: 0; }
.spost__body { display: grid; gap: 3px; padding: 9px 12px 11px; color: var(--text) !important; font-size: 13.5px; line-height: 1.4; }
.spost__body b { font-size: 14px; }
.spost__body > span:not(.spost__open) { color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spost__open { font-weight: 700; font-size: 12px; color: var(--red); }
.spost--gone { display: inline-flex; gap: 8px; padding: 10px 12px; width: auto; color: var(--text-faint) !important; font-style: italic; }
.msg-bubble:has(> .spost:first-child):not(:has(.msg-text, .post__attach, .msg-quote)), .qc-m__b:has(> .spost:only-child) { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.msg-bubble:has(> .spost:first-child):not(:has(.msg-text, .post__attach, .msg-quote)) .msg-meta { float: none; display: flex; justify-content: flex-end; margin: 2px 4px 0; color: var(--text-faint); opacity: 1; }
.qc-m__b .spost { width: min(250px, 64vw); }

/* portfolio picker */
.wpick { max-width: 640px; }
.wpick h2 { font-size: 32px; line-height: 1; margin-bottom: 4px; }
.wpick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; max-height: 52vh; overflow-y: auto; padding: 2px; }
.wpick__item { position: relative; display: grid; gap: 4px; text-align: left; padding: 6px 6px 10px; border-radius: 16px; border: 2px solid transparent; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); cursor: pointer; font: inherit; }
.wpick__item[aria-pressed="true"] { border-color: var(--red); background: rgb(var(--red-rgb) / .1); }
.wpick__thumb { aspect-ratio: 1; border-radius: 11px; background: color-mix(in srgb, var(--text) 8%, transparent) center/cover; display: grid; place-items: center; font-size: 28px; }
.wpick__item b { font-size: 13px; line-height: 1.25; padding: 0 4px; }
.wpick__item small { font-size: 11px; color: var(--text-faint); padding: 0 4px; }
.wpick__tick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: rgba(0,0,0,.45); color: transparent; border: 2px solid #fff; }
.wpick__item[aria-pressed="true"] .wpick__tick { background: var(--red); color: #fff; border-color: var(--red); }
.wpick__foot { position: sticky; bottom: 0; }

/* settings: verification + preview label */
.verify-list { list-style: none; display: grid; gap: 8px; margin: 4px 0; padding: 0; }
.verify-list li { display: flex; gap: 10px; align-items: center; color: var(--text-soft); }
.verify-list li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line-2); flex: none; }
.verify-list li.is-ok { color: var(--text); }
.verify-list li.is-ok span { background: var(--red); border-color: var(--red); color: var(--on-accent, #fff); }
.verify-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.verify-code code { font: 700 20px var(--font-mono); letter-spacing: .04em; padding: 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--text) 8%, transparent); border: 1px dashed var(--line-2); user-select: all; }
.verify-done { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 28px 18px; }
.verify-done__badge { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.verify-done__badge .vbadge { width: 44px; height: 44px; }
.preview-strip { position: relative; pointer-events: none; user-select: none; }
.preview-strip__label { flex-basis: 100%; font: 700 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.conn-head--2, .conn-row--2 { grid-template-columns: 150px 1fr !important; }

/* admin: verification queue + featured editor */
.admin-panel { margin-top: 8px; }
.vreqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.vreq { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); }
.vreq__who { display: flex; gap: 12px; align-items: center; }
.vreq__who > div { flex: 1; min-width: 0; display: grid; }
.vreq__note { font-size: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); white-space: pre-wrap; }
.vreq a { word-break: break-all; }
.feat-list { display: grid; gap: 14px; }
.feat-edit { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); }
.feat-edit.is-live { border-color: var(--red); }
.feat-edit__photo { aspect-ratio: 4 / 5; border-radius: 14px; background: color-mix(in srgb, var(--text) 8%, transparent) center/cover; display: grid; place-items: center; align-content: center; gap: 8px; font-size: 12px; color: var(--text-faint); text-align: center; }
.feat-edit__fields { display: grid; gap: 8px; min-width: 0; }
.feat-edit__row { display: flex; gap: 8px; flex-wrap: wrap; }
.feat-edit__row > * { flex: 1 1 140px; }
.feat-edit input, .feat-edit textarea { padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--font-body); }
.feat-edit textarea { min-height: 56px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; }
@media (max-width: 560px) { .feat-edit { grid-template-columns: 1fr; } .feat-edit__photo { max-width: 160px; } }

/* carousel: swipe through several photos */
.carousel { position: relative; border-radius: 16px; overflow: hidden; background: #000; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; aspect-ratio: 4 / 5; max-height: 640px; background: #000; }
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #111; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.carousel__nav--prev { left: 10px; } .carousel__nav--next { right: 10px; }
.carousel__nav[hidden] { display: none; }
.carousel__count { position: absolute; top: 10px; right: 10px; font: 700 11px var(--font-body); padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.carousel__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: transform .2s, background .2s; }
.carousel__dots i.is-on { background: #fff; transform: scale(1.25); }
@media (hover: none) { .carousel__nav { display: none; } }
.tile-badge--multi { left: auto; right: 10px; }
.tile-badge--multi svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; }

/* new post: photo tray + friendlier upload box on phones */
.ptray { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: thin; }
.ptray__item, .ptray__add { position: relative; flex: none; width: 76px; height: 76px; border-radius: 14px; background: var(--card) center/cover; border: 1px solid var(--line-2); }
.ptray__item b { position: absolute; left: 6px; bottom: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: rgba(0,0,0,.6); color: #fff; font: 700 11px/18px var(--font-body); text-align: center; }
.ptray__item button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.ptray__add { display: grid; place-items: center; font-size: 26px; color: var(--text-faint); border-style: dashed; cursor: pointer; }
.ptray__add:hover { color: var(--red); border-color: var(--red); }
.dz-touch { display: none; }
@media (hover: none), (max-width: 640px) {
  .dz-desk { display: none; } .dz-touch { display: block; }
  .composer2 .dropzone { padding: 18px 16px; border-width: 2px; background: color-mix(in srgb, var(--red) 5%, transparent); }
  .composer2 .dropzone__icon { width: 52px; height: 52px; border-radius: 16px; }
  .composer2 .dropzone:active { transform: scale(.98); }
}
.drop-ov__types { display: flex; gap: 8px; margin-top: 8px; opacity: 1 !important; }
.drop-ov__types i { font-style: normal; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.drop-ov__card { background: rgb(var(--red-rgb) / .14); }

/* GIF picker: categories, endless grid, bottom sheet on phones */
.gifp { max-height: min(520px, 76vh); }
.gifp__grab { display: none; }
.gifp__cats { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.gifp__cats::-webkit-scrollbar { display: none; }
.gifp__cats button { flex: none; border: 0; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-soft); font: 700 12.5px var(--font-body); cursor: pointer; }
.gifp__cats button[aria-pressed="true"] { background: var(--red); color: var(--on-accent, #fff); }
.gifp__grid { columns: 3; min-height: 200px; }
.gifp__grid button { aspect-ratio: auto; }
.gifp__skel { break-inside: avoid; height: 90px; margin-bottom: 6px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); animation: gifp-pulse 1.1s ease-in-out infinite alternate; }
.gifp__skel:nth-child(3n) { height: 130px; } .gifp__skel:nth-child(4n) { height: 70px; }
@keyframes gifp-pulse { to { opacity: .45; } }
.gifp--sheet { left: 0 !important; right: 0; bottom: 0 !important; top: auto !important; width: auto !important; max-height: 78vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: gifp-up .28s cubic-bezier(.2,.9,.25,1) both; }
.gifp--sheet .gifp__grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
.gifp--sheet .gifp__grid { min-height: 50vh; }
.gifp-scrim { position: fixed; inset: 0; z-index: 619; background: rgba(0,0,0,.45); }
@keyframes gifp-up { from { transform: translateY(100%); } }

/* search: work first, simple filters */
.srch__title { font-size: clamp(36px, 5.4vw, 64px); line-height: .95; margin: 4px 0 18px; }
.srch__bar { position: relative; display: flex; align-items: center; }
.srch__bar > svg { position: absolute; left: 18px; width: 20px; height: 20px; fill: none; stroke: var(--text-faint); stroke-width: 2.2; pointer-events: none; }
.srch__bar input { width: 100%; padding: 16px 48px 16px 50px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--text); font: 500 17px var(--font-body); }
.srch__bar input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgb(var(--red-rgb) / .15); }
.srch__bar input::-webkit-search-cancel-button { display: none; }
.srch__clear { position: absolute; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); font-size: 18px; cursor: pointer; }
.srch__tabs { display: flex; gap: 4px; margin: 16px 0 12px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); width: max-content; max-width: 100%; }
.srch__tabs button { border: 0; padding: 9px 22px; border-radius: 999px; background: none; color: var(--text-soft); font: 700 14px var(--font-body); cursor: pointer; }
.srch__tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.srch__filters { display: grid; gap: 8px; margin-bottom: 12px; }
.fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.fchips::-webkit-scrollbar { display: none; }
.fchips[hidden] { display: none; }
.fchips button { flex: none; border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; background: transparent; color: var(--text-soft); font: 600 13px var(--font-body); cursor: pointer; white-space: nowrap; }
.fchips button:hover { color: var(--text); border-color: var(--text-faint); }
.fchips button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-accent, #fff); }
.fchips--crafts button { font-size: 12.5px; padding: 6px 12px; }
.fchips--crafts button[aria-pressed="true"] { background: rgb(var(--red-rgb) / .16); color: var(--red); border-color: rgb(var(--red-rgb) / .5); }
.srch__more { display: flex; gap: 8px; }
.fbtn { border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; background: transparent; color: var(--text); font: 600 13px var(--font-body); cursor: pointer; }
select.fbtn { appearance: auto; }
.fbtn[hidden] { display: none; }
.srch__panel { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); }
.srch__panel[hidden], .srch__panel [hidden] { display: none; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); }
.field-inline input { padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--font-body); width: 160px; }
.srch__count { margin: 6px 0 12px; min-height: 1em; }
.srch__skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.srch__skel i { aspect-ratio: 1; border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); animation: gifp-pulse 1s ease-in-out infinite alternate; }
@media (max-width: 640px) { .srch__tabs { width: 100%; } .srch__tabs button { flex: 1; padding: 9px 0; } .srch__title { margin-bottom: 12px; } }

/* feed: "bring your crew" while Crewland is small */
.bring { display: flex; gap: 18px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 22px; padding: 22px 24px; border-radius: 22px; border: 1px solid rgb(var(--red-rgb) / .35); background: radial-gradient(circle at 0% 0%, rgb(var(--red-rgb) / .18), transparent 60%), var(--card); }
.bring h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1; margin: 4px 0 6px; }
.bring p:not(.label) { color: var(--text-soft); font-size: 14px; max-width: 460px; }
.bring__txt { flex: 1 1 280px; }
.bring__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .bring { padding: 18px; } .bring__btns > * { flex: 1 1 auto; text-align: center; } }

/* quick help */
.helpc { position: fixed; right: 18px; bottom: 18px; z-index: 640; width: min(380px, calc(100vw - 24px)); max-height: min(620px, calc(100dvh - 90px)); display: flex; flex-direction: column; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.25,1); }
.helpc.is-on { opacity: 1; transform: none; }
.helpc__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.helpc__head > span:nth-child(2) { flex: 1; display: grid; }
.helpc__head b { font-size: 15px; } .helpc__head small { font-size: 12px; color: var(--text-faint); }
.helpc__x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--text); font-size: 22px; cursor: pointer; }
.helpc__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.helpc__m { align-self: flex-start; max-width: 88%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: color-mix(in srgb, var(--text) 8%, transparent); font-size: 14px; line-height: 1.45; }
.helpc__m small { color: var(--text-faint); font-size: 12px; }
.helpc__m.is-me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--red); color: var(--on-accent, #fff); }
.helpc__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--line); max-height: 40%; overflow-y: auto; }
.helpc__chips button { border: 1px solid var(--line-2); background: transparent; color: var(--text); padding: 7px 11px; border-radius: 999px; font: 600 12.5px var(--font-body); cursor: pointer; text-align: left; }
.helpc__chips button:hover { border-color: var(--red); }
.helpc__chips .is-team { background: var(--red); border-color: var(--red); color: var(--on-accent, #fff); }
.helpc__form { display: grid; gap: 8px; margin-top: 8px; }
.helpc__form textarea { min-height: 80px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--font-body); resize: vertical; }
@media (max-width: 820px) { .helpc { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* message requests */
.dm__req-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--on-accent, #fff); font-size: 10px; margin-left: 4px; }
.dm__req-link { display: block; width: calc(100% - 16px); margin: 8px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-2); background: none; color: var(--text); font: 700 13px var(--font-body); cursor: pointer; text-align: left; }
.dm__req-link:hover { border-color: var(--red); color: var(--red); }
.dm__request { margin: 6px max(12px, calc((100% - 820px) / 2)) 12px; padding: 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; gap: 6px; text-align: center; justify-items: center; }
.dm__request p { font-size: 13px; color: var(--text-faint); margin: 0 0 6px; }
.wpick { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 24px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.gifp__head, .gifp__cats, .gifp__foot, .gifp__grab { flex: none; }
.gifp__grid { min-height: 0; }

/* ---------- side menu on phones / home-screen app (v9) ----------
   starts under the real top bar (taller with the notch), clears the bottom tab bar,
   and the page behind it can't scroll while it's open */
@media (max-width: 1099px) {
  .rail { top: var(--rail-top, 68px); height: auto; padding-bottom: calc(110px + env(safe-area-inset-bottom)); touch-action: pan-y; -webkit-overflow-scrolling: touch; }
  .rail-scrim { inset: var(--rail-top, 68px) 0 0 0; touch-action: none; }
  html.rail-lock, html.rail-lock body { overflow: hidden; }
}

/* =========================================================
   v9 feed: Reddit-style cards on desktop, Instagram-style on phones
   ========================================================= */
.feed-cols { display: block; }
.feed-side { display: block; }
@media (min-width: 1100px) {
  .feed-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .feed-side { order: 2; position: sticky; top: 88px; display: grid; gap: 16px; }
  .feed-main { order: 1; min-width: 0; }
  .feed-side .bring, .feed-side .creators { margin: 0; }
  /* side column: creatives as a list, like a sidebar widget */
  .feed-side .creators { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
  .feed-side .creators__row { display: grid; gap: 4px; overflow: visible; padding: 0; margin: 0; }
  .feed-side .ccard { width: auto; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 14px; background: none; text-align: left; }
  .feed-side .ccard:hover { transform: none; background: color-mix(in srgb, var(--text) 5%, transparent); }
  .feed-side .ccard__link { grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-items: start; column-gap: 10px; }
  .feed-side .ccard__link .av-wrap { grid-row: span 2; margin: 0; }
  .feed-side .ccard__link .av { width: 40px !important; height: 40px !important; }
  .feed-side .ccard__btn { width: auto; padding: 7px 14px; font-size: 12px; }
  .feed-side .ccard--new { display: none; }
  .feed-side .bring[data-state] .bring__strip { display: none; }
  .feed-side .bring { display: block; padding: 18px; }
  .feed-side .bring[hidden] { display: none; }
  .feed-side .bring h2 { font-size: 26px; }
  .feed-side .bring__btns { display: grid; gap: 8px; margin-top: 12px; }
  .feed-side .bring__btns .btn { justify-content: center; }
  .feed-side .bring .bring__full { display: block; }
}

/* invite: full card or a slim strip; both can be hidden */
.bring { position: relative; display: block; }
.bring[hidden] { display: none; }
.bring__full { display: flex; gap: 18px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bring[data-state="min"] .bring__full { display: none; }
.bring[data-state="full"] .bring__strip { display: none; }
.bring[data-state="min"] { padding: 8px 8px 8px 14px; border-radius: 18px; }
.bring__strip { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.bring__wave { font-size: 18px; }
.bring__line { flex: 1; min-width: 0; font-size: 14px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bring__line b { color: var(--text); }
.bring__go { flex: none; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--on-accent); font: 700 14px var(--font-body); }
.bring__ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-soft); font-size: 14px; }
.bring__ic:hover { color: var(--text); background: color-mix(in srgb, var(--text) 14%, transparent); }
.bring__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bring__ctl { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 1; }
.bring__full .bring__txt { padding-right: 84px; }

/* "Your post" bubble in the creatives row */
.ccard--new { cursor: pointer; font: inherit; color: inherit; }
.ccard__plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 400; line-height: 1; color: var(--red); border: 2px dashed rgb(var(--red-rgb) / .55); }

/* ---------- post card: desktop (Reddit-style) ---------- */
.tl.fcards { display: grid; gap: 14px; max-width: 680px; border: 0; border-radius: 0; overflow: visible; background: none; }
.tw.post { display: flex; flex-direction: column; gap: 0; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.tw.post:hover { background: var(--card); border-color: var(--line-2, rgba(241,233,220,.2)); }
.post__head { display: flex; align-items: center; gap: 10px; }
.post__av { flex: none; line-height: 0; }
.post__who { display: grid; min-width: 0; line-height: 1.25; }
.post__who .tw__name b { font-size: 15px; }
.post__sub { font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__sub time { cursor: pointer; }
.post__craftm { display: none; }
.post__capname { display: none; }
.tw.post .tw__body { margin-top: 10px; font-size: 16px; }
.tw.post .tw__showmore { align-self: flex-start; }
.tw.post .tw__media { margin-top: 12px; border-radius: 14px; background: #000; }
.tw.post .tw__media .media--img img { max-height: 620px; object-fit: contain; margin: 0 auto; }
.tw.post .tw__acts { justify-content: flex-start; flex-wrap: wrap; gap: 6px; max-width: none; margin: 10px 0 0; }
.tw.post .tw__act { height: 38px; padding: 0 12px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-soft); font-weight: 700; }
.tw.post .tw__act:hover { background: color-mix(in srgb, var(--text) 11%, transparent); color: var(--text); }
.tw.post .tw__act--like.is-on { color: #ff3b6b; background: rgba(255,59,107,.12); }
.tw.post .tw__act--save { margin-left: auto; }
.post__lbl { font-size: 13px; }
.tw.post .tw__act[aria-label="Comments"] > span:not(.post__lbl):empty { display: none; }
.post__likes, .post__more { display: none; }

/* ---------- post card + feed: phones (Instagram-style) ---------- */
@media (max-width: 640px) {
  .feed-head { display: none; }
  .feed-filtered .feed-head { display: flex; margin-bottom: 12px; }
  .feed-filtered .feed-head h1 { font-size: 32px; }
  .feed-bar { margin: 0 -16px; padding: 0 16px; border-bottom: 1px solid var(--line); }
  .feed-bar .feed-tabs { flex: 1; padding: 0; gap: 0; border-radius: 0; background: none; box-shadow: none; }
  .feed-bar .feed-tabs button { flex: 1; min-height: 48px; padding: 0 8px; border-radius: 0; background: none !important; color: var(--text-faint) !important; text-transform: none; letter-spacing: 0; font-size: 15px; border-bottom: 2.5px solid transparent; }
  .feed-bar .feed-tabs button[aria-selected="true"] { color: var(--text) !important; border-bottom-color: var(--text); }
  .ft-emoji { display: none; }
  .feed-bar .view-toggle { background: none; padding: 0; }
  .feed-bar .view-toggle button { width: 40px; height: 40px; }
  .feed-bar .view-toggle button[aria-pressed="true"] { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
  .feed-bar ~ section, .feed-bar + section { margin-top: 0; }

  /* creatives become a stories row */
  .feed-side { margin: 0 -16px; }
  .creators { margin: 4px 0 6px; }
  .creators__head { display: none; }
  .creators__row { gap: 14px; padding: 8px 16px 10px; margin: 0; scroll-snap-type: x proximity; }
  .ccard { width: 72px; padding: 0; gap: 4px; border: 0; border-radius: 0; background: none; }
  .ccard:hover { transform: none; }
  .ccard__link { gap: 0; }
  .ccard__link .av-wrap { margin: 0 0 6px; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, var(--red), #ffb21e, #ff3b9a, var(--red)); }
  .ccard__link .av { width: 62px !important; height: 62px !important; box-shadow: 0 0 0 3px var(--bg); }
  .ccard--new .av-wrap { background: none; }
  .ccard__plus { width: 62px; height: 62px; }
  .ccard b { font-size: 12px; font-weight: 600; }
  .ccard small, .ccard__btn { display: none; }
  .ccard .on-dot { box-shadow: 0 0 0 3px var(--bg); }
  .bring { margin: 10px 16px 4px; }
  .bring[data-state="full"] { padding: 18px 16px; }
  .bring[data-state="full"] h2 { font-size: 26px; }
  .bring__btns { display: grid; gap: 8px; width: 100%; }
  .bring__btns .btn { justify-content: center; min-height: 44px; }

  /* posts: edge to edge, no boxes */
  .tl.fcards { margin: 0 -16px; gap: 0; max-width: none; }
  .tw.post { padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .post__head { padding: 12px 14px 10px; }
  .post__av .av { width: 34px !important; height: 34px !important; }
  .post__who .tw__name b { font-size: 14.5px; }
  .post__handle, .tw__craft { display: none; }
  .post__craftm { display: inline; }
  .tw.post .tw__media { order: 2; margin: 0; border: 0; border-radius: 0; }
  .tw.post .tw__media .media--img img { max-height: 75vh; }
  .tw.post .tw__acts { order: 3; gap: 2px; margin: 4px 0 0; padding: 0 6px; }
  .tw.post .tw__act { height: 44px; min-width: 44px; padding: 0 8px; background: none; color: var(--text); }
  .tw.post .tw__act:hover { background: none; }
  .tw.post .tw__act svg { width: 25px; height: 25px; }
  .tw.post .tw__act .heart { font-size: 27px; }
  .tw.post .tw__act .n, .tw.post .tw__act > span:not(.heart):not(.post__lbl) { font-size: 14px; font-weight: 700; }
  .tw.post .tw__act--like.is-on { background: none; }
  .post__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .post__likes { order: 4; display: block; margin: 2px 14px 0; font-size: 14px; }
  .post__likes[hidden] { display: none; }
  .tw.post .tw__body { order: 5; margin: 4px 14px 0; font-size: 14.5px; line-height: 1.45; }
  .tw.post .tw__body.is-long { -webkit-line-clamp: 2; }
  .post__capname { display: inline; margin-right: 6px; font-weight: 800; color: var(--text) !important; }
  .tw.post .tw__showmore { order: 6; margin: 0 14px; padding: 2px 0; color: var(--text-faint); font-weight: 600; }
  .post__more { order: 7; display: block; margin: 4px 14px 0; padding: 2px 0; border: 0; background: none; color: var(--text-faint); font: 600 14px var(--font-body); text-align: left; cursor: pointer; }
  /* text-only posts: the words lead, a bit bigger */
  .tw.post.post--text .tw__body { order: 2; margin: 0 14px 6px; font-size: 17px; -webkit-line-clamp: 7; }
  .post--text .post__capname { display: none; }
}

/* ---------- phones: comfort + accessibility everywhere in the app ---------- */
@media (max-width: 820px) {
  .tabbar a { min-height: 50px; font-size: 11px; }
  .tabbar a[aria-current="page"] { font-weight: 800; }
  .app-nav .icon-btn { min-width: 44px; min-height: 44px; }
  .fchip { min-height: 40px; }
}
.tw__act:focus-visible, .bring__ic:focus-visible, .bring__go:focus-visible, .feed-tabs button:focus-visible, .view-toggle button:focus-visible, .ccard--new:focus-visible, .tabbar a:focus-visible, .rail a:focus-visible, .icon-btn:focus-visible, .post__more:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 70%, transparent); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .rail, .rail-scrim, .tw__act--like.is-on .heart, .ccard { transition: none !important; animation: none !important; }
}
@media (max-width: 640px) { .feed-side { display: flex; flex-direction: column; } .feed-side .creators { order: -1; } }
@media (max-width: 640px) {
  .ccard__link .av-wrap { padding: 5px; }
  .ccard__link .av { width: 58px !important; height: 58px !important; box-shadow: 0 0 0 2.5px var(--bg); }
  .ccard--new .ccard__plus { width: 58px; height: 58px; }
}
@media (max-width: 420px) { .bring__sub { display: none; } }
@media (min-width: 1100px) {
  .feed-side .bring[data-state] { padding: 18px; border-radius: 20px; }
  .feed-side .bring[data-state] .bring__full { display: block; }
  .feed-side .bring[data-state] .bring__strip, .feed-side .bring__ctl [data-bring="min"] { display: none; }
  .feed-side .bring__full .bring__txt { padding-right: 36px; }
}
@media (max-width: 640px) { body:has(.feed-cols) .app-main { padding-top: 0; } }
@media (max-width: 640px) { .feed-side { gap: 0; } .creators { margin: 2px 0 0; } .creators__row { padding-bottom: 6px; } .bring { margin: 4px 16px 8px; } }

/* ---------- search box in the top bar (v9.1) ---------- */
.nav-search { flex: 1 1 auto; max-width: 440px; margin: 0 auto; position: relative; display: flex; align-items: center; }
.nav-search .ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-faint); pointer-events: none; }
.nav-search input { width: 100%; height: 42px; padding: 0 40px 0 42px; border: 1.5px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); font: 500 15px var(--font-body); -webkit-appearance: none; appearance: none; }
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search input:focus { outline: none; border-color: var(--red); background: color-mix(in srgb, var(--text) 4%, transparent); box-shadow: 0 0 0 4px rgb(var(--red-rgb) / .16); }
.nav-search kbd { position: absolute; right: 12px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2, rgba(241,233,220,.2)); color: var(--text-faint); font: 600 12px var(--font-body); pointer-events: none; }
.nav-search input:focus ~ kbd { display: none; }
.top-icons .icon-btn[href="search.html"] { display: none; }
@media (max-width: 820px) { .nav-search { display: none; } }
@media (max-width: 1000px) and (min-width: 821px) { .nav-search { max-width: 280px; } .nav-search kbd { display: none; } }
.m-search { display: none; }
@media (max-width: 820px) {
  .m-search { display: flex; align-items: center; position: relative; margin: 10px 0 4px; }
  .m-search svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--text-faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
  .m-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1.5px solid transparent; border-radius: 14px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); font: 500 16px var(--font-body); -webkit-appearance: none; appearance: none; }
  .m-search input::placeholder { color: var(--text-faint); }
  .m-search input:focus { outline: none; border-color: var(--red); }
}
