/* Muster Us — Feed prototype stylesheet
   Brand palette (exact hex, no improvisation):
   teal #0F766E · light teal #2EC4B6 · gold #D4AF37 · bg #E8F7F6
   surface #FFFFFF · text #1F2937 · muted #6B7280 */

:root {
  --teal: #0F766E;
  --teal-light: #2EC4B6;
  --gold: #D4AF37;
  --bg: #E8F7F6;
  --surface: #FFFFFF;
  --text: #1F2937;
  --muted: #6B7280;
  --success: #10B981;
  --error: #EF4444;
  --line: rgba(31, 41, 55, 0.09);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 41, 55, 0.05), 0 4px 14px rgba(31, 41, 55, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 20px; letter-spacing: 0.5px; }
.brand-name .gold { color: var(--gold); }
.brand-tag { font-size: 9px; letter-spacing: 2.5px; color: var(--muted); font-weight: 600; }

.search { flex: 1; max-width: 380px; margin-left: 8px; }
.search input {
  width: 100%; padding: 9px 14px 9px 36px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 14px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.search input:focus { border-color: var(--teal); background-color: #fff; }

.nav-icons { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-icons a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.nav-icons a:hover { background: var(--bg); text-decoration: none; }
.nav-icons a.active { color: var(--teal); background: rgba(15, 118, 110, 0.1); }
.nav-icons svg { width: 22px; height: 22px; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1280px; margin: 0 auto;
  padding: 20px;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .layout { grid-template-columns: 264px minmax(0, 620px) 320px; align-items: start; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 640px) 300px; }
  .col-left { display: none; }
}
@media (max-width: 699px) {
  .col-left, .col-right { display: none; }
  .post-media img { max-height: 380px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card h3 { font-size: 19px; margin-bottom: 4px; }

/* ---------- Left column ---------- */
.mini-profile { text-align: center; padding: 22px 18px; }
.mini-profile .avatar { width: 72px; height: 72px; font-size: 26px; margin: 0 auto 10px; }
.mini-profile .name { font-weight: 700; font-size: 17px; }
.mini-profile .handle { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.side-nav { list-style: none; padding: 8px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text); font-weight: 500; font-size: 14.5px;
}
.side-nav a:hover { background: var(--bg); text-decoration: none; }
.side-nav a.active { background: rgba(15, 118, 110, 0.1); color: var(--teal); font-weight: 600; }
.side-nav svg { width: 20px; height: 20px; flex-shrink: 0; }
.brand-foot { padding: 16px 18px; font-size: 12px; color: var(--muted); }
.brand-foot .tag { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; font-size: 10px; }

/* ---------- Stories ---------- */
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 108px; height: 168px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; position: relative; cursor: pointer;
  box-shadow: var(--shadow);
}
.story:hover { text-decoration: none; }
.story-top { height: 108px; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.story-top .avatar { width: 52px; height: 52px; font-size: 20px; border: 3px solid var(--gold); }
.story-label { padding: 10px 8px; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.story.add .story-top { background: rgba(15, 118, 110, 0.08); }
.story.add .plus {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 300;
}

/* ---------- Avatars ---------- */
.avatar {
  border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600;
}
.a-teal { background: var(--teal); }
.a-light { background: var(--teal-light); }
.a-gold { background: var(--gold); }
.a-slate { background: var(--text); }

/* ---------- Composer ---------- */
.composer { padding: 16px 18px; margin-bottom: 20px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-top .avatar { width: 44px; height: 44px; font-size: 17px; }
.composer textarea {
  flex: 1; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); padding: 12px 14px; font-size: 15px;
  font-family: inherit; resize: vertical; min-height: 56px; outline: none;
}
.composer textarea:focus { border-color: var(--teal); background: #fff; }
.composer-actions {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.tool-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 500;
  cursor: pointer;
}
.tool-btn:hover { border-color: var(--teal); color: var(--teal); }
.tool-btn svg { width: 17px; height: 17px; }
.tool-btn.on { border-color: var(--teal); color: var(--teal); background: rgba(15,118,110,0.07); }
.btn-primary {
  margin-left: auto; background: var(--teal); color: #fff;
  border: none; border-radius: 999px; padding: 10px 26px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.btn-primary:hover { background: #0d655e; }
.attach-row { display: none; margin-top: 12px; gap: 10px; align-items: center; }
.attach-row.open { display: flex; }
.attach-row input[type="file"] { font-size: 13px; }
.yt-row { display: none; margin-top: 12px; }
.yt-row.open { display: block; }
.yt-row input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none;
}
.yt-row input:focus { border-color: var(--teal); }
.file-note { font-size: 12px; color: var(--muted); }

/* ---------- Post card ---------- */
.post { margin-bottom: 20px; overflow: hidden; }
.post-head { display: flex; gap: 12px; padding: 16px 18px 0; align-items: center; }
.post-head .avatar { width: 46px; height: 46px; font-size: 18px; }
.post-meta { flex: 1; min-width: 0; }
.post-meta .name { font-weight: 700; font-size: 15px; }
.post-meta .name:hover { text-decoration: underline; }
.post-meta .time { font-size: 12.5px; color: var(--muted); }
.post-menu { color: var(--muted); border: none; background: none; cursor: pointer; font-size: 20px; padding: 4px 8px; border-radius: 8px; }
.post-menu:hover { background: var(--bg); }
.post-text { padding: 10px 18px 0; font-size: 15px; }
.post-text a { font-weight: 500; }
.media-ph {
  margin-top: 12px; aspect-ratio: 16 / 9;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.media-ph svg { width: 72px; height: 72px; opacity: 0.55; }
.reaction-bar {
  display: flex; flex-wrap: wrap; border-top: 1px solid var(--line);
  margin: 12px 18px 0; padding: 6px 0;
}
.reaction-bar a {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 4px; border-radius: 10px; white-space: nowrap;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.reaction-bar a:hover { background: var(--bg); text-decoration: none; color: var(--teal); }
.reaction-bar a .count { font-weight: 500; font-size: 13px; flex-shrink: 0; }
.reaction-bar svg { width: 19px; height: 19px; }
.reaction-bar .rx-emoji { font-size: 19px; line-height: 1; flex-shrink: 0; }

/* ---------- Comments ---------- */
.comments { padding: 4px 18px 16px; }
.comment { display: flex; gap: 10px; margin-top: 12px; }
.comment .avatar { width: 34px; height: 34px; font-size: 13px; }
.comment-bubble { background: var(--bg); border-radius: 4px 14px 14px 14px; padding: 9px 13px; flex: 1; }
.comment-bubble .c-name { font-weight: 700; font-size: 13.5px; }
.comment-bubble .c-text { font-size: 14px; }
.comment-del { font-size: 12px; color: var(--muted); margin-top: 4px; display: inline-block; }
.comment-del:hover { color: var(--error); }
.no-comments { color: var(--muted); font-size: 13.5px; margin-top: 12px; font-style: italic; }
.comment-form { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.comment-form .avatar { width: 34px; height: 34px; font-size: 13px; }
.comment-form input[type="text"] {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; font-size: 14px; outline: none; background: var(--bg);
}
.comment-form input[type="text"]:focus { border-color: var(--teal); background: #fff; }
.comment-form button {
  border: none; background: var(--teal); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 9px 18px; font-size: 13.5px; cursor: pointer;
}
.comment-form button:hover { background: #0d655e; }
.delete-post { font-size: 12.5px; color: var(--muted); padding: 0 18px 14px; display: inline-block; }
.delete-post:hover { color: var(--error); }

/* ---------- Right column ---------- */
.col-right .card { margin-bottom: 20px; }
.req { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: none; padding-bottom: 0; }
.req .avatar { width: 48px; height: 48px; font-size: 18px; }
.req-info { flex: 1; min-width: 0; }
.req-info .name { font-weight: 700; font-size: 14.5px; }
.req-info .sub { font-size: 12.5px; color: var(--muted); }
.req-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-accept {
  background: var(--teal); color: #fff; border: none; border-radius: 8px;
  padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn-accept:hover { background: #0d655e; text-decoration: none; color: #fff; }
.btn-decline {
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-decline:hover { background: #e2e8f0; text-decoration: none; }
.sugg { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sugg:last-child { border-bottom: none; padding-bottom: 0; }
.sugg .avatar { width: 44px; height: 44px; font-size: 16px; }
.sugg .name { font-weight: 600; font-size: 14.5px; }
.sugg .sub { font-size: 12.5px; color: var(--muted); }
.sugg .btn-accept { margin-left: auto; }
.side-foot { font-size: 12px; color: var(--muted); padding: 4px 6px; line-height: 1.9; }
.side-foot a { color: var(--muted); }
.side-foot .tag { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; font-size: 10px; display: block; margin-top: 8px; }

/* ---------- Section titles ---------- */
.feed-title { font-size: 22px; margin: 2px 2px 14px; }

/* ---------- v2 preview additions: real photo avatars + media ---------- */
.avatar-photo { object-fit: cover; }
.post-head .avatar-photo { width: 46px; height: 46px; }
.comment .avatar-photo { width: 34px; height: 34px; }
.comment-form .avatar-photo { width: 34px; height: 34px; }
.req .avatar-photo { width: 48px; height: 48px; }
.sugg .avatar-photo { width: 44px; height: 44px; }
.mini-profile .avatar-photo { width: 72px; height: 72px; margin: 0 auto 10px; }
.nav-icons .avatar-photo { width: 34px; height: 34px; }
.story .avatar-photo { width: 52px; height: 52px; border: 3px solid var(--gold); }
.post-media { margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0B1220; }
.post-media img { display: block; width: auto; max-width: 100%; max-height: 520px; margin: 0 auto; }
.post-media video { width: 100%; display: block; max-height: 520px; background: #000; object-fit: contain; }
.post-media iframe { width: 100%; display: block; border: 0; aspect-ratio: 16 / 9; height: auto; }
.empty-note { color: var(--muted); font-size: 13.5px; padding: 10px 0; font-style: italic; }

/* ---------- Feed switcher: Muster Feed / Your Circle ---------- */
.feed-tabs { display: flex; gap: 8px; margin: 4px 2px 14px; }
.feed-tab {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--muted);
  font-weight: 700; font-size: 14px; text-decoration: none; background: #fff;
  transition: border-color .2s, color .2s, background .2s;
}
.feed-tab:hover { border-color: var(--teal); color: var(--teal); }
.feed-tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- "How the Muster Feed works" explainer ---------- */
.feed-info { margin-bottom: 18px; border-left: 4px solid var(--gold); }
.feed-info h3 { font-size: 16px; margin: 0 0 8px; }
.feed-info p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.feed-info ul { margin: 0 0 8px 18px; padding: 0; font-size: 13.5px; color: var(--muted); }
.feed-info li { margin-bottom: 4px; }
.feed-info strong { color: #1F2937; }
.feed-info-foot { font-style: italic; margin-bottom: 0 !important; }

/* Follow button on Muster Feed post cards */
.follow-btn {
  margin-left: auto;
  flex-shrink: 0;
  font: 600 13px/1 'Inter', system-ui, sans-serif;
  color: #0F766E;
  background: #fff;
  border: 1.5px solid #0F766E;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.follow-btn:hover { background: #E8F7F6; }
.follow-btn.is-following {
  background: #0F766E;
  color: #fff;
}
.follow-btn.is-following:hover { background: #0d655e; }

/* ---------- Connections page ---------- */
.conn-section { margin-bottom: 18px; }
.conn-section h3 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.count-pill {
  font: 700 12px/1 'Inter', system-ui, sans-serif;
  background: #E8F7F6; color: #0F766E;
  border-radius: 999px; padding: 5px 12px;
}
.person-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid #eef2f3;
}
.person-row:first-of-type { border-top: 0; padding-top: 2px; }
.person-info { flex: 1; min-width: 0; }
.person-info .name { font-weight: 600; font-size: 14.5px; color: #1F2937; text-decoration: none; }
.person-info .name:hover { color: #0F766E; }
.person-info .handle { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.person-actions { display: flex; gap: 8px; flex-shrink: 0; }
.person-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px; margin-top: 4px;
}
.person-cell {
  text-align: center; padding: 16px 8px;
  border: 1px solid #eef2f3; border-radius: 14px; background: #fbfdfd;
}
.person-cell .avatar { width: 56px; height: 56px; font-size: 20px; margin: 0 auto 8px; }
.person-cell .name { display: block; font-weight: 600; font-size: 13.5px; color: #1F2937; text-decoration: none; }
.person-cell .name:hover { color: #0F766E; }
.person-cell .handle { font-size: 11.5px; color: var(--muted); margin: 2px 0 8px; }
.badge-friend {
  display: inline-block; font: 700 10.5px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .6px; text-transform: uppercase;
  color: #0F766E; background: #E8F7F6;
  border: 1px solid #cdeae7; border-radius: 999px; padding: 5px 10px;
}
@media (max-width: 560px) {
  .person-actions { flex-direction: column; }
}

/* ---------- Tip Jar (Wave 2, Starter — link-based tips) ---------- */
.tip-jar{ border-top:3px solid #D4AF37; }
.tip-jar .tip-title{ font-family:'Playfair Display',Georgia,serif; color:#0F766E; font-size:22px; margin:0 0 6px; }
.tip-jar .tip-sub{ color:#6B7280; font-size:14px; margin:0 0 14px; line-height:1.6; }
.tip-btns{ display:flex; gap:10px; flex-wrap:wrap; }
.tip-btn{ display:inline-block; padding:10px 24px; border-radius:999px; font-weight:700; font-size:14px;
  text-decoration:none; background:#D4AF37; color:#1F2937; box-shadow:0 4px 14px rgba(212,175,55,.35); }
.tip-btn:hover{ background:#c39f2e; color:#1F2937; transform:translateY(-1px); }
.tip-jar .tip-promise, p.tip-promise{ margin:14px 0 0; font-size:12.5px; color:#6B7280; line-height:1.6; }
.tip-promise a{ color:#0F766E; font-weight:600; }
/* Subtle per-post affordance on feed cards: jumps to the author's Tip Jar. */
.tip-link{ display:inline-block; margin-left:8px; padding:5px 14px; border:1.5px solid #D4AF37; color:#8a6d1c;
  border-radius:999px; font-size:12px; font-weight:700; text-decoration:none; white-space:nowrap; }
.tip-link:hover{ background:#D4AF37; color:#1F2937; }
@media (max-width:560px){
  .tip-btns .tip-btn{ flex:1 1 auto; text-align:center; }
}

/* ---------- Mobile hardening (20250925d): avatar sizing ---------- */
.person-row .avatar { width: 56px; height: 56px; font-size: 20px; flex: none; }
.person-row .avatar-photo { width: 56px; height: 56px; }
.person-cell .avatar-photo { width: 56px; height: 56px; }
.composer-top textarea { min-width: 0; }

/* Comment reactions + threaded replies (Sep 26, 2026). */
.c-actions { margin-top: 6px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.c-rx { font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.c-rx:hover { color: var(--teal); }
.c-rx.on { font-weight: 700; color: var(--teal); }
/* Instant reactions (Sep 27, 2026): active post reaction, mirrors .c-rx.on. */
.reaction-bar a.on { font-weight: 700; color: var(--teal); }
.c-rx span { font-weight: 600; }
.c-rx .rx-emoji { font-size: 16px; line-height: 1; }
/* Comment reaction group (Oct 7, 2026): keeps all five reactions on one line inside narrow comment bubbles. */
.c-rx-row { display: inline-flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.reply-toggle { font-size: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
.reply-toggle:hover { color: var(--teal); }
.comment-children { margin-left: 44px; border-left: 2px solid var(--line); padding-left: 12px; }
.comment-children .comment { margin-top: 10px; }
.reply-form { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.reply-form input[type="text"] { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; outline: none; background: var(--bg); }
.reply-form input[type="text"]:focus { border-color: var(--teal); background: #fff; }
.reply-form button { border: none; background: var(--teal); color: #fff; font-weight: 700; border-radius: 999px; padding: 7px 15px; font-size: 12.5px; cursor: pointer; }
.reply-form button:hover { background: #0d655e; }

/* ---------- PWA mobile polish (Sep 26 2026): thumb reach, readable type ---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }

  /* Post actions: thumb-reachable */
  .reaction-bar { margin: 10px 12px 0; }
  .reaction-bar a { min-height: 46px; padding: 10px 4px; font-size: 14px; }

  /* Composer: big touch targets, no fiddly controls */
  .composer { padding: 14px; }
  .composer textarea { font-size: 16px; min-height: 64px; } /* 16px stops iOS auto-zoom */
  .composer-actions { gap: 10px; }
  .tool-btn { min-height: 46px; padding: 10px 18px; font-size: 14px; }
  .btn-primary { min-height: 46px; padding: 12px 30px; font-size: 15px; }
  .attach-row.open { flex-wrap: wrap; }
  .attach-row input[type="file"] { font-size: 14px; min-height: 46px; max-width: 100%; }
  .yt-row input { font-size: 16px; min-height: 46px; }
  .file-note { font-size: 12.5px; }

  /* Commenting: thumb-reachable */
  .comments { padding: 4px 12px 14px; }
  .comment-form input[type="text"] { font-size: 16px; padding: 12px 16px; } /* no iOS zoom */
  .comment-form button { min-height: 46px; padding: 12px 20px; font-size: 14px; }
  .c-actions { gap: 6px; }
  .c-rx {
    display: inline-flex; align-items: center; flex-shrink: 0;
    min-height: 44px; padding: 8px 5px; font-size: 13px;
  }

  /* Feed switcher + misc touch-ups */
  .feed-tabs { margin: 4px 0 14px; }
  .feed-tab {
    min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 14.5px;
  }
  .tip-link { padding: 10px 18px; font-size: 12.5px; }
  .mu-report-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 6px; font-size: 13px; }
  .delete-post { display: inline-block; padding: 12px 18px 12px; font-size: 13px; }
  .card-pad { padding: 16px 14px; }

  /* Stories row already scrolls horizontally; keep it breathing on phones */
  .stories { gap: 12px; padding-bottom: 6px; }
}

@media (max-width: 380px) {
  /* 360px phones: reaction row + composer stay on clean, tappable rows */
  .reaction-bar a { font-size: 12px; padding: 10px 2px; gap: 4px; }
  .reaction-bar svg { width: 16px; height: 16px; }
  .composer-actions .btn-primary { width: 100%; margin-left: 0; margin-top: 2px; }
  .composer { padding: 12px; }
}

/* ---------- Feed switcher: unmissable sticky tabs (Sep 26, 2026) ---------- */
.feed-tabs{
  position:-webkit-sticky; position:sticky; top:56px; z-index:55;
  background:var(--bg); padding:10px 2px; margin:4px 0 14px;
  border-bottom:1px solid transparent;
}
.feed-tabs.is-stuck{ border-bottom-color:var(--line); box-shadow:0 4px 12px rgba(11,18,32,.06); }
.feed-tab{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.feed-tab-name{ font-weight:700; font-size:14px; line-height:1.2; }
.feed-tab-sub{ font-weight:500; font-size:11px; line-height:1.2; opacity:.75; }
.feed-tab.active .feed-tab-sub{ opacity:.9; }
.feed-how{
  flex:0 0 auto; align-self:center; font-size:12px; font-weight:600;
  color:var(--teal); text-decoration:underline; white-space:nowrap; padding:8px 4px;
}
/* Composer audience pill: explicit about where a post goes. */
.composer-audience{ padding:12px 16px 0; }
.audience-pill{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.4px;
  color:#0B1220; background:#E8F7F6; border:1px solid var(--line);
  border-radius:999px; padding:5px 12px;
}
.audience-pill::before{ content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--gold); margin-right:7px; vertical-align:1px; }
/* Your Circle empty state: friendly + a way out. Never a blank page. */
.feed-empty-circle{ text-align:center; padding:28px 20px; }
.feed-empty-circle .empty-note{ font-size:16px; margin-bottom:6px; }
.feed-empty-circle .empty-note-sub{ color:var(--muted); font-size:13.5px; margin:0 0 16px; }
.feed-empty-circle .btn-primary{ display:inline-block; text-decoration:none; }
@media (max-width:760px){
  .feed-tabs{ top:54px; padding:8px 0; } /* docked flush under the 54px mobile topbar (was 100px: floated detached, split images) */
  .feed-how{ font-size:11px; }
}

/* ---------- Rich-text post composer (Sep 27, 2026): TLT-email-builder style ---------- */
.mu-rich-wrap { flex: 1; min-width: 0; }
.mu-rich-toolbar { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.mu-rich-toolbar button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 8px; min-width: 34px; height: 34px; padding: 0 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mu-rich-toolbar button:hover { border-color: var(--teal); color: var(--teal); }
.mu-rich-toolbar button:active { background: rgba(15,118,110,0.08); }
.mu-rich-toolbar .mu-rich-sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
.mu-rich-editor {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--text);
  min-height: 56px; outline: none; overflow-wrap: break-word; line-height: 1.55;
}
.mu-rich-editor:focus { border-color: var(--teal); background: #fff; }
.mu-rich-editor.is-empty:before {
  content: attr(data-placeholder); color: #9AA3AF; pointer-events: none;
}
.mu-rich-editor p, .mu-rich-editor div { margin: 0 0 0.35em; }
.mu-rich-editor ul, .mu-rich-editor ol { margin: 0 0 0.35em; padding-left: 1.4em; }

/* ---------- Rendered rich post body ---------- */
.post-text.post-rich { line-height: 1.55; }
.post-text.post-rich p, .post-text.post-rich div { margin: 0 0 0.7em; }
.post-text.post-rich p:last-child, .post-text.post-rich div:last-child { margin-bottom: 0; }
.post-text.post-rich ul, .post-text.post-rich ol { margin: 0 0 0.7em; padding-left: 1.4em; }
.post-text.post-rich li { margin: 0.15em 0; }
.post-text.post-rich blockquote {
  margin: 0 0 0.7em; padding: 6px 12px;
  border-left: 3px solid var(--gold); color: var(--muted);
}
@media (max-width: 760px) {
  .mu-rich-editor { font-size: 16px; min-height: 64px; } /* 16px stops iOS auto-zoom */
  .mu-rich-toolbar button { min-width: 40px; height: 40px; font-size: 14px; }
}

/* GIF picker modal (shared: feed + profile) */
/* GIF picker modal (Oct 4, 2026) - Muster Us light theme, teal/gold branding,
 * masonry grid with natural aspect ratios, mobile-first. */
.mu-gif-modal{position:fixed;inset:0;z-index:10000;background:rgba(15,118,110,.4);display:flex;align-items:center;justify-content:center;padding:12px}
.mu-gif-modal[hidden]{display:none}
.mu-gif-box{background:#fff;border:1px solid #e5e7eb;border-radius:16px;width:min(600px,100%);max-height:88vh;display:flex;flex-direction:column;overflow:hidden;color:#1F2937;box-shadow:0 12px 40px rgba(0,0,0,.18)}
.mu-gif-head{display:flex;gap:8px;padding:12px;border-bottom:1px solid #f0f0f0;align-items:center}
.mu-gif-head input{flex:1;background:#f8fafc;border:2px solid #e5e7eb;color:#1F2937;border-radius:10px;padding:10px 12px;font-size:16px;min-width:0}
.mu-gif-head input:focus{outline:none;border-color:#0F766E}
#mu-gif-close{background:#f8fafc;border:1px solid #e5e7eb;color:#6B7280;border-radius:10px;min-width:44px;min-height:44px;font-size:22px;line-height:1;cursor:pointer;flex:none}
#mu-gif-close:hover{border-color:#0F766E;color:#0F766E}
.mu-gif-status{padding:8px 14px;font-size:14px;color:#6B7280;min-height:20px}
.mu-gif-grid{columns:2;column-gap:10px;padding:4px 14px 14px;overflow-y:auto;-webkit-overflow-scrolling:touch}
@media(min-width:640px){.mu-gif-grid{columns:3}}
.mu-gif-item{display:block;width:100%;padding:0;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#f8fafc;cursor:pointer;position:relative;break-inside:avoid;margin:0 0 10px}
.mu-gif-item img{display:block;width:100%;height:auto}
.mu-gif-item .gif-title{position:absolute;bottom:0;left:0;right:0;padding:4px 8px;font-size:11px;color:#fff;background:rgba(0,0,0,.65);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.mu-gif-item:hover{border-color:#0F766E}
.mu-gif-item:focus-visible{outline:2px solid #0F766E;outline-offset:2px}
.mu-gif-foot{padding:6px 14px;font-size:11px;color:#9CA3AF;border-top:1px solid #f0f0f0;text-align:right}
@media(max-width:480px){
.mu-gif-modal{padding:8px;align-items:flex-end}
.mu-gif-box{width:100%;max-height:94vh;border-radius:16px 16px 0 0}
}
body.mu-gif-open{overflow:hidden}

/* Audience selector (Sep 29, 2026) */
.composer-audience{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.audience-label{font-size:13px;color:#6B7280;font-weight:500}
.audience-select{background:#fff;border:1px solid #D4AF37;border-radius:8px;padding:8px 12px;font-size:14px;color:#1F2937;cursor:pointer;font-weight:500}
.audience-select:focus{outline:none;border-color:#0F766E;box-shadow:0 0 0 2px rgba(15,118,110,.15)}

/* Edit post button (Sep 29, 2026) */
.mu-edit-link{background:none;border:none;color:#6B7280;font-size:13px;cursor:pointer;padding:4px 8px;border-radius:6px}
.mu-edit-link:hover{color:#0F766E;background:rgba(15,118,110,.08)}

/* ---------- Post header mobile fix (20261008): prevent Following/Tip/Report overlap ---------- */
@media (max-width: 560px) {
  .post-head { flex-wrap: wrap; row-gap: 8px; }
  .post-head .post-meta { flex: 1 1 calc(100% - 58px); min-width: 0; }
  .post-head .post-meta .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .post-head .follow-btn { margin-left: 0; order: 3; }
  .post-head .tip-link { margin-left: 0; order: 4; }
  .post-head .mu-report-link { margin-left: auto !important; order: 5; }
}

/* ---------- Composer format toggle (Oct 8, 2026): keep composer clean ---------- */
.mu-format-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 'Inter', system-ui, sans-serif;
  color: #0F766E; background: #fff;
  border: 1.5px solid #0F766E; border-radius: 999px;
  padding: 7px 14px; margin-bottom: 8px; cursor: pointer;
}
.mu-format-toggle:hover { background: #E8F7F6; }
.mu-rich-toolbar { flex-wrap: wrap; gap: 6px; }
.mu-rich-toolbar[hidden] { display: none; }
.mu-rich-toolbar:not([hidden]) { display: flex; }
