/* ================================
   Rosie's Wall — dedicated stylesheet
   Deliberately its own design language: different fonts, different
   palette, different shapes from the rest of the site. Loaded only
   on rosie.html so nothing here leaks elsewhere.
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

.rosie-wall {
  background: linear-gradient(160deg, #f5ddf7 0%, #e6d0fb 45%, #ffd6ec 100%);
  padding: 3.5rem 1.5rem 4rem;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Page-scoped nav/footer recolor - this stylesheet only loads on
   rosie.html, so these overrides never touch any other page. */
.site-nav {
  background: #f0d9f5;
  border-bottom: 1px solid rgba(139, 95, 191, 0.25);
}

/* .site-nav-links (in the shared stylesheet) is absolutely positioned
   and centered via left:50%/transform:translateX(-50%). That pattern
   has a known quirk: the browser computes its shrink-to-fit width
   *before* the transform is applied, using only the space from the 50%
   mark to the container's edge — so it wraps to a second line much
   earlier than it visually needs to, on any screen (including landscape
   phones, which are often wider than a typical mobile breakpoint).
   Capping max-width forces the overflow-x:auto that's already on this
   element in the base stylesheet to create a real internal scrollbar
   instead of wrapping. Applied unconditionally — not gated behind a
   media query — since the underlying quirk isn't width-specific. */
.site-nav-links {
  flex-wrap: nowrap;
  max-width: 92vw;
}

.site-nav-link {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-nav-links {
    gap: 0.9rem;
  }
  .site-nav-link {
    font-size: 0.82rem;
  }
  .site-nav-logo {
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

.site-nav-logo {
  color: #5b2e91;
}

.site-nav-link {
  color: #7a4fa8;
}

.site-nav-link.active {
  color: #ff6fa5;
  border-bottom-color: #ff6fa5;
}

footer {
  background-color: #f0d9f5;
  color: #7a4fa8;
}

.rosie-wall-header {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.rosie-wall-title {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #5b2e91;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  text-shadow: 2px 2px 0 rgba(255, 111, 165, 0.25);
}

.rosie-wall-subtitle {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #7a4fa8;
}

.rosie-layout {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 340px;
  align-items: start;
  gap: 2.5rem;
}

.rosie-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rosie-sidebar-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 8px 20px rgba(91, 46, 145, 0.15);
}

.rosie-sidebar-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.9rem;
  box-shadow: 0 6px 16px rgba(43, 27, 61, 0.25);
  border: 3px solid #fff;
}

.rosie-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-sidebar-name {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #5b2e91;
  text-align: center;
}

.rosie-sidebar-tagline {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #7a4fa8;
  text-align: center;
  margin: 0.3rem 0 1.1rem;
}

.rosie-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: #5b2e91;
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  vertical-align: middle;
  margin-left: 0.15rem;
}

.rosie-profile-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}

.rosie-profile-action-btn {
  flex: 1;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #5b2e91;
  background: rgba(91, 46, 145, 0.12);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rosie-profile-action-btn:hover {
  background: rgba(91, 46, 145, 0.2);
}

.rosie-profile-action-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-profile-action-primary {
  background: #5b2e91;
  color: #fff;
}

.rosie-profile-action-primary:hover {
  background: #47256f;
}

.rosie-sidebar-stats {
  display: flex;
  justify-content: space-between;
  border-top: 2px dashed rgba(91, 46, 145, 0.2);
  padding-top: 0.9rem;
}

.rosie-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
}

.rosie-stat strong {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  color: #2b1b3d;
}

.rosie-stat span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7a4fa8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rosie-sidebar-heading {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #5b2e91;
  margin: 0 0 1rem;
  text-align: center;
}

.rosie-sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rosie-sidebar-card-header .rosie-sidebar-heading {
  margin: 0;
  text-align: left;
}

.rosie-see-all-btn {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: #7a4fa8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.rosie-see-all-btn:hover {
  text-decoration: underline;
}

.rosie-see-all-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

/* Friends: horizontal row that overflows and fades at the edge,
   mimicking an Instagram story reel to hint at more friends than
   are shown. */
.rosie-friends-scroll {
  position: relative;
  overflow: hidden;
}

.rosie-friends-row {
  display: flex;
  gap: 1rem;
}

.rosie-friends-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, rgba(245, 221, 247, 0), rgba(245, 221, 247, 0.95));
  pointer-events: none;
}

.rosie-friend {
  flex: 0 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem;
  border-radius: 12px;
}

.rosie-friend-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
}

.rosie-friend-avatar-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-friend-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, #ff6fa5, #ffb347, #8b5fbf, #6fe0c4, #ff6fa5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Friends with no active story get a plain muted ring instead of the
   colorful gradient one, same idea as Instagram graying out a seen or
   story-less contact. */
.rosie-friend-ring-none {
  background: rgba(91, 46, 145, 0.18);
}

.rosie-friend-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  overflow: hidden;
  background: #fff;
}

.rosie-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-friend-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.rosie-friend-name-btn {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  color: #2b1b3d;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.rosie-friend-name-btn:hover {
  text-decoration: underline;
}

.rosie-friend-name-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

/* Story Highlights row */
.rosie-highlights-scroll {
  position: relative;
}

.rosie-highlights-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rosie-highlights-row::-webkit-scrollbar {
  display: none;
}

.rosie-highlights-arrow {
  position: absolute;
  top: 26px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #5b2e91;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(43, 27, 61, 0.35);
}

.rosie-highlights-arrow-left {
  left: -0.5rem;
}

.rosie-highlights-arrow-right {
  right: -0.5rem;
}

.rosie-highlights-arrow:hover {
  background: #47256f;
}

.rosie-highlights-arrow:focus-visible {
  outline: 2px solid #2b1b3d;
  outline-offset: 2px;
}

.rosie-highlight {
  flex: 0 0 56px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.rosie-highlight:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-highlight-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #c9b8e8, #8b5fbf);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rosie-highlight-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fdf3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.rosie-highlight-label {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  color: #2b1b3d;
}

.rosie-main {
  min-width: 0;
}

.rosie-right-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Groups widget */
.rosie-groups-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rosie-group-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rosie-group-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(139, 95, 191, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.rosie-group-body {
  flex: 1;
  min-width: 0;
}

.rosie-group-name {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  color: #2b1b3d;
  line-height: 1.25;
}

.rosie-group-members {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  color: #7a4fa8;
  margin-top: 0.1rem;
}

.rosie-group-join-btn {
  flex: 0 0 auto;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  color: #5b2e91;
  background: rgba(91, 46, 145, 0.12);
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.rosie-group-join-btn:hover {
  background: rgba(91, 46, 145, 0.2);
}

.rosie-group-join-btn.joined {
  background: #5b2e91;
  color: #fff;
}

.rosie-group-join-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

/* Trending widget */
.rosie-trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.rosie-trending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px dashed rgba(91, 46, 145, 0.2);
  padding-top: 0.7rem;
}

.rosie-trending-item:first-child {
  border-top: none;
  padding-top: 0;
}

.rosie-trending-tag {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: #5b2e91;
}

.rosie-trending-count {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  color: #7a4fa8;
}

.rosie-search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 16px rgba(91, 46, 145, 0.12);
}

.rosie-search-icon {
  font-size: 1rem;
}

.rosie-search-input {
  flex: 1;
  border: none;
  background: none;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2b1b3d;
  outline: none;
}

.rosie-search-input::placeholder {
  color: rgba(43, 27, 61, 0.45);
}

.rosie-search-empty {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #7a4fa8;
  text-align: center;
  padding: 3rem 1rem;
}

.rosie-pagination {
  max-width: 820px;
  margin: 2.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.rosie-page-btn {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: #5b2e91;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.rosie-page-btn:hover:not(:disabled) {
  background: #47256f;
}

.rosie-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.rosie-page-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-page-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rosie-page-num-btn {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #5b2e91;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.rosie-page-num-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.rosie-page-num-btn.active {
  background: #5b2e91;
  color: #fff;
}

.rosie-page-num-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

@media (max-width: 1560px) {
  .rosie-layout {
    grid-template-columns: 1fr;
  }
  .rosie-sidebar,
  .rosie-right-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
  }
  .rosie-sidebar-card {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .rosie-sidebar,
  .rosie-right-sidebar {
    flex-direction: column;
  }
}

/* Single column - one notecard at a time, scroll to the next */
.rosie-post-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.rosie-post-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 32px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 14px 30px rgba(91, 46, 145, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}

.rosie-post-card:nth-child(4n+1) { transform: rotate(-1deg); }
.rosie-post-card:nth-child(4n+2) { transform: rotate(0.7deg); }
.rosie-post-card:nth-child(4n+3) { transform: rotate(-0.7deg); }
.rosie-post-card:nth-child(4n+4) { transform: rotate(1deg); }

.rosie-post-card:hover {
  transform: rotate(0deg) scale(1.015);
}

.rosie-card-grape {
  background: linear-gradient(150deg, #d9bdf7, #8b5fbf);
}

.rosie-card-bubblegum {
  background: linear-gradient(150deg, #ffc2e0, #ff6fa5);
}

.rosie-card-mint {
  background: linear-gradient(150deg, #c3f5e8, #6fe0c4);
}

.rosie-card-butter {
  background: linear-gradient(150deg, #fff2c2, #ffd666);
}

.rosie-card-lavender {
  background: linear-gradient(150deg, #e6dcfb, #a78bda);
}

.rosie-card-peach {
  background: linear-gradient(150deg, #ffe3c9, #ffab73);
}

.rosie-card-sky {
  background: linear-gradient(150deg, #cfeafc, #7ec8ec);
}

.rosie-card-blush {
  background: linear-gradient(150deg, #ffd9e3, #ff9ab3);
}

.rosie-card-sage {
  background: linear-gradient(150deg, #e2f2ce, #a8d08d);
}

.rosie-card-periwinkle {
  background: linear-gradient(150deg, #dadffb, #97a3e8);
}

/* Second palette — pages alternate between this set and the one above so
   consecutive pages don't share the same 10 colors. */
.rosie-card-coral {
  background: linear-gradient(150deg, #ffd8c9, #ff8b6b);
}

.rosie-card-seafoam {
  background: linear-gradient(150deg, #c9f2e6, #4fb99e);
}

.rosie-card-lilac {
  background: linear-gradient(150deg, #edd7f8, #c48ce0);
}

.rosie-card-honey {
  background: linear-gradient(150deg, #ffecb8, #f0b429);
}

.rosie-card-rosewater {
  background: linear-gradient(150deg, #ffe1e7, #f2a6bb);
}

.rosie-card-aqua {
  background: linear-gradient(150deg, #c9f1f7, #4fb8cf);
}

.rosie-card-plum {
  background: linear-gradient(150deg, #ecd7f2, #a86cc4);
}

.rosie-card-tangerine {
  background: linear-gradient(150deg, #ffddc0, #ff9640);
}

.rosie-card-pistachio {
  background: linear-gradient(150deg, #e6f2c9, #a8cc5e);
}

.rosie-card-cornflower {
  background: linear-gradient(150deg, #d8e1fb, #7590e8);
}

.rosie-post-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2b1b3d;
  padding-bottom: 0.6rem;
  border-bottom: 2px dashed rgba(43, 27, 61, 0.25);
}

.rosie-post-author {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}

.rosie-post-username {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2b1b3d;
  white-space: nowrap;
}

.rosie-post-tag-btn {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #2b1b3d;
  opacity: 0.7;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease, opacity 0.15s ease;
}

.rosie-post-tag-btn:hover {
  opacity: 1;
  text-decoration-color: currentColor;
}

.rosie-post-tag-btn:focus-visible {
  outline: 2px solid #2b1b3d;
  outline-offset: 2px;
}

.rosie-post-date {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #2b1b3d;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Top row: photo (left) + caption/comments (right) */
.rosie-post-top {
  flex: 1;
  display: flex;
  gap: 1rem;
  min-height: 0;
}

.rosie-post-photo {
  flex: 0 0 42%;
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(43, 27, 61, 0.25);
}

.rosie-post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-post-photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.rosie-post-text {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rosie-post-caption {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #2b1b3d;
  margin: 0;
  padding-bottom: 0.6rem;
  border-bottom: 2px dashed rgba(43, 27, 61, 0.2);
}

.rosie-comment {
  display: flex;
  gap: 0.5rem;
}

.rosie-comment-avatar-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
}

.rosie-comment-avatar-btn:focus-visible {
  outline: 2px solid #2b1b3d;
  outline-offset: 2px;
}

.rosie-comment-avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  overflow: hidden;
}

.rosie-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-comment-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.rosie-comment-body {
  flex: 1;
  min-width: 0;
}

.rosie-comment-name-btn {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #2b1b3d;
  background: none;
  border: none;
  padding: 0;
  margin-right: 0.3rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.rosie-comment-name-btn:hover,
.rosie-comment-name-btn:focus-visible {
  text-decoration-color: currentColor;
}

.rosie-comment-name-btn:focus-visible {
  outline: 2px solid #2b1b3d;
  outline-offset: 2px;
}

.rosie-comment-username {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 0.72rem;
  color: #2b1b3d;
  opacity: 0.6;
}

.rosie-comment-text {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #2b1b3d;
  margin: 0.1rem 0 0;
}

/* Footer rows - full width, fixed height, under the photo/text row */
.rosie-post-feeling {
  flex: 0 0 auto;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(43, 27, 61, 0.55);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-align: center;
}

.rosie-post-engagement {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #2b1b3d;
}

.rosie-engagement-btn {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #2b1b3d;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.rosie-engagement-btn:hover {
  background: rgba(255, 255, 255, 0.65);
}

.rosie-engagement-btn:active {
  transform: scale(1.15);
}

.rosie-engagement-btn:focus-visible {
  outline: 2px solid #2b1b3d;
  outline-offset: 2px;
}

.rosie-engagement-btn.active {
  background: #2b1b3d;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .rosie-post-card,
  .rosie-post-card:nth-child(4n+1),
  .rosie-post-card:nth-child(4n+2),
  .rosie-post-card:nth-child(4n+3),
  .rosie-post-card:nth-child(4n+4) {
    transform: none;
    transition: none;
  }
}

@media (max-width: 560px) {
  .rosie-wall-title {
    font-size: 2.2rem;
  }
  .rosie-post-card {
    aspect-ratio: auto;
    padding: 1.1rem;
  }
  .rosie-post-header {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }
  .rosie-post-date {
    font-size: 0.68rem;
    padding: 0.22rem 0.6rem;
  }
  .rosie-post-engagement {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    gap: 0.6rem;
  }
  .rosie-post-top {
    flex-direction: column;
  }
  .rosie-post-photo {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
  }
  .rosie-post-text {
    overflow-y: visible;
  }
  .rosie-post-card:nth-child(4n+1),
  .rosie-post-card:nth-child(4n+2),
  .rosie-post-card:nth-child(4n+3),
  .rosie-post-card:nth-child(4n+4) {
    transform: none;
  }
}

/* ---- Fake profile card popup ---- */
.rosie-profile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(43, 27, 61, 0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.rosie-profile-overlay.open {
  display: flex;
}

.rosie-profile-card {
  position: relative;
  background: linear-gradient(160deg, #fdf3ff, #f6e6ff);
  border-radius: 28px;
  padding: 2.2rem 1.8rem 1.8rem;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(43, 27, 61, 0.4);
}

.rosie-profile-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(43, 27, 61, 0.1);
  color: #2b1b3d;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.rosie-profile-close:hover {
  background: rgba(43, 27, 61, 0.2);
}

/* ---- Post detail overlay (opened from mobile search results) ---- */
.rosie-post-detail-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(43, 27, 61, 0.55);
  z-index: 220;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.rosie-post-detail-overlay.open {
  display: flex;
}

.rosie-post-detail-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.rosie-post-detail-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(43, 27, 61, 0.3);
}

.rosie-post-detail-wrap .rosie-post-card {
  aspect-ratio: auto;
  width: 100%;
}

.rosie-post-detail-wrap .rosie-post-top {
  flex-direction: column;
}

.rosie-post-detail-wrap .rosie-post-photo {
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
}

.rosie-post-detail-wrap .rosie-post-text {
  overflow-y: visible;
}

.rosie-post-detail-wrap .rosie-post-card,
.rosie-post-detail-wrap .rosie-post-card:nth-child(4n+1),
.rosie-post-detail-wrap .rosie-post-card:nth-child(4n+2),
.rosie-post-detail-wrap .rosie-post-card:nth-child(4n+3),
.rosie-post-detail-wrap .rosie-post-card:nth-child(4n+4) {
  transform: none;
}

/* ---- On This Day story ring (distinct from regular friend rings) ---- */
.rosie-onthisday-ring {
  background: conic-gradient(from 180deg, #ffd54a, #ff9a4d, #ff6fa5, #ffd54a) !important;
}

.rosie-onthisday-circle {
  background: #fff;
  overflow: hidden;
}

.rosie-onthisday-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ---- Story viewer (Instagram-style, opened from "On This Day") ---- */
.rosie-story-viewer {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.rosie-story-viewer.open {
  display: flex;
}

.rosie-story-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 860px;
  background: #1a1220;
  overflow: hidden;
}

@media (min-width: 421px) {
  .rosie-story-inner {
    border-radius: 20px;
    height: 90vh;
  }
}

.rosie-story-progress {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  right: 0.7rem;
  display: flex;
  gap: 4px;
  z-index: 10;
}

.rosie-story-progress-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.rosie-story-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
}

.rosie-story-header {
  position: absolute;
  top: 1.3rem;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.rosie-story-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.rosie-story-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.rosie-story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-story-username {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
}

.rosie-story-date {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rosie-story-timeleft {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  flex: 0 0 auto;
}

.rosie-story-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.rosie-story-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.rosie-story-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.rosie-story-media {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.rosie-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-story-img-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.rosie-story-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 5.2rem;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
}

.rosie-story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 5;
}

.rosie-story-tap-left {
  left: 0;
}

.rosie-story-tap-right {
  right: 0;
}

.rosie-story-footer {
  position: absolute;
  bottom: 1rem;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
}

.rosie-story-message-box {
  flex: 1;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  text-align: left;
  cursor: pointer;
}

.rosie-story-icon-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #fff;
}

.rosie-story-icon-btn:focus-visible,
.rosie-story-message-box:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.rosie-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 27, 61, 0.3);
  overflow: hidden;
}

.rosie-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-profile-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.rosie-profile-name {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #2b1b3d;
}

.rosie-profile-username {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 0.85rem;
  color: #7a4fa8;
  margin-bottom: 0.9rem;
}

.rosie-profile-bio {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #2b1b3d;
  margin: 0;
}

/* ---- Toast (comment button click) ---- */
.rosie-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2b1b3d;
  color: #fff;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}

.rosie-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .rosie-toast {
    transition: opacity 0.2s ease;
    transform: translateX(-50%);
  }
}

/* ---- Floating Messages pill (Instagram-style DM shortcut) ---- */
.rosie-dm-float {
  position: fixed;
  right: 2rem;
  bottom: 1.5rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  box-shadow: 0 10px 26px rgba(43, 27, 61, 0.3);
  cursor: pointer;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2b1b3d;
  transition: transform 0.15s ease;
}

.rosie-dm-float:hover {
  transform: translateY(-2px);
}

.rosie-dm-float:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-dm-float-avatars {
  display: flex;
}

.rosie-dm-float-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.rosie-dm-float-avatar:first-child {
  margin-left: 0;
}

.rosie-dm-float-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff6fa5;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 560px) {
  .rosie-dm-float {
    bottom: 1rem;
    right: 1rem;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rosie-dm-float {
    transition: none;
  }
}

/* Page-scoped override: the shared back-to-top button and the Messages
   pill both live in the bottom-right corner. Only on this page, lift
   back-to-top up so it stacks above Messages instead of overlapping it. */
.back-to-top-btn {
  bottom: 6.5rem;
}

@media (max-width: 560px) {
  .back-to-top-btn {
    bottom: 5rem;
  }
}

/* ================================================================
   MOBILE APP SHELL — an entirely separate Instagram-style layout,
   shown only below 760px. The desktop .rosie-wall is hidden at that
   same breakpoint so only one version is ever visible. Both share
   the same JS data/functions; this is purely presentational.
   ================================================================ */

.rosie-mobile-app,
.rosie-mobile-tabbar {
  display: none;
}

@media (max-width: 760px) {
  .rosie-wall {
    display: none;
  }

  .rosie-mobile-app {
    display: block;
    background: linear-gradient(160deg, #f5ddf7 0%, #e6d0fb 45%, #ffd6ec 100%);
    min-height: 100vh;
    padding: 1.2rem 1rem 5.5rem;
    box-sizing: border-box;
  }

  .rosie-mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 250;
    background: #fdf3ff;
    border-top: 1px solid rgba(139, 95, 191, 0.25);
    padding: 0.5rem 0.3rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.rosie-mobile-section-heading {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #5b2e91;
  margin: 1.6rem 0 0.9rem;
}

.rosie-mobile-section-heading:first-child {
  margin-top: 0;
}

/* ---- Compact profile strip (Home tab) ---- */
.rosie-mprofile-strip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(91, 46, 145, 0.12);
}

.rosie-mprofile-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(43, 27, 61, 0.2);
}

.rosie-mprofile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-mprofile-body {
  flex: 1;
  min-width: 0;
}

.rosie-mprofile-name {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #5b2e91;
}

.rosie-mprofile-stats {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.2rem;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: #7a4fa8;
}

.rosie-mprofile-stats strong {
  color: #2b1b3d;
  font-weight: 800;
}

.rosie-mprofile-messages-btn {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(91, 46, 145, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rosie-mprofile-messages-icon {
  font-size: 1.1rem;
}

.rosie-mprofile-messages-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff6fa5;
  color: #fff;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rosie-mprofile-messages-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

/* ---- Stories row ---- */
.rosie-mobile-stories {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.3rem 0.1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rosie-mobile-stories::-webkit-scrollbar {
  display: none;
}

.rosie-mstory {
  flex: 0 0 64px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
}

.rosie-mstory:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-mstory-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, #ff6fa5, #ffb347, #8b5fbf, #6fe0c4, #ff6fa5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rosie-mstory-ring-none {
  background: rgba(91, 46, 145, 0.18);
}

.rosie-mstory-avatar {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fdf3ff;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #fff;
}

.rosie-mstory-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-mstory-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.rosie-mstory-label {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  color: #2b1b3d;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Mobile post grid (Home tab) ---- */
.rosie-mobile-post-grid {
  max-width: 100%;
  gap: 2rem;
}

/* ---- Suggested accounts (Friends tab) ---- */
.rosie-msuggest-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.rosie-msuggest-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rosie-msuggest-avatar-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #fff;
}

.rosie-msuggest-avatar-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-msuggest-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-msuggest-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.rosie-msuggest-body {
  flex: 1;
  min-width: 0;
}

.rosie-msuggest-name-btn {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2b1b3d;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.rosie-msuggest-name-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-msuggest-bio {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #7a4fa8;
  margin: 0.15rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rosie-msuggest-follow-btn {
  flex: 0 0 auto;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: #fff;
  background: #5b2e91;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.rosie-msuggest-follow-btn:focus-visible {
  outline: 2px solid #2b1b3d;
  outline-offset: 2px;
}

.rosie-mobile-showmore-btn {
  display: none;
  width: 100%;
  margin-top: 1.2rem;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #5b2e91;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 999px;
  padding: 0.65rem;
  cursor: pointer;
}

.rosie-mobile-showmore-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

/* ---- Search tab ---- */
.rosie-mobile-search-bar {
  margin-bottom: 0.4rem;
}

.rosie-mobile-search-count {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #7a4fa8;
  margin: 0 0 1rem;
}

.rosie-msearch-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  width: 100%;
  border: none;
  border-bottom: 2px dashed rgba(91, 46, 145, 0.15);
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.rosie-msearch-item:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-msearch-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.rosie-msearch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rosie-msearch-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.rosie-msearch-body {
  flex: 1;
  min-width: 0;
}

.rosie-msearch-caption {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #2b1b3d;
  margin: 0 0 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rosie-msearch-date {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  color: #7a4fa8;
}

/* ---- Trending tab (Today's News + hashtags) ---- */
.rosie-mnews-item {
  display: block;
  width: 100%;
  padding: 0.9rem 0;
  border: none;
  border-bottom: 2px dashed rgba(91, 46, 145, 0.15);
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.rosie-mnews-item:last-child {
  border-bottom: none;
}

.rosie-mnews-item:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

.rosie-mnews-category {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7a4fa8;
  margin: 0 0 0.2rem;
}

.rosie-mnews-headline {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #2b1b3d;
  margin: 0 0 0.3rem;
}

.rosie-mnews-meta {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: #7a4fa8;
  margin: 0;
}

/* ---- Groups tab ---- */
.rosie-mgroup-pinned-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rosie-mgroup-pinned-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 16px rgba(91, 46, 145, 0.12);
}

.rosie-mgroup-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(139, 95, 191, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.rosie-mgroup-body {
  flex: 1;
  min-width: 0;
}

.rosie-mgroup-name {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #2b1b3d;
  line-height: 1.25;
}

.rosie-mgroup-members {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  color: #7a4fa8;
  margin-top: 0.1rem;
}

.rosie-mgrouppost {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 16px rgba(91, 46, 145, 0.12);
  margin-bottom: 1.1rem;
}

.rosie-mgrouppost-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.rosie-mgrouppost-headerbody {
  flex: 1;
  min-width: 0;
}

.rosie-mgrouppost-groupname {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #2b1b3d;
}

.rosie-mgrouppost-meta {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  color: #7a4fa8;
}

.rosie-mgrouppost-text {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #2b1b3d;
  margin: 0 0 0.8rem;
}

.rosie-mgrouppost-stats {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: #7a4fa8;
  padding-bottom: 0.7rem;
  border-bottom: 2px dashed rgba(91, 46, 145, 0.15);
  margin-bottom: 0.5rem;
}

.rosie-mgrouppost-actions {
  display: flex;
}

.rosie-mgrouppost-action-btn {
  flex: 1;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: #5b2e91;
  background: none;
  border: none;
  padding: 0.4rem 0;
  cursor: pointer;
  border-radius: 8px;
}

.rosie-mgrouppost-action-btn:hover {
  background: rgba(91, 46, 145, 0.1);
}

.rosie-mgrouppost-action-btn.active {
  color: #ff6fa5;
}

.rosie-mgrouppost-action-btn:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

/* ---- Bottom tab bar buttons ---- */
.rosie-mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  color: #9b7ab8;
}

.rosie-mobile-tab-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.rosie-mobile-tab-label {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
}

.rosie-mobile-tab.active {
  color: #5b2e91;
}

.rosie-mobile-tab:focus-visible {
  outline: 2px solid #5b2e91;
  outline-offset: 2px;
}

/* The floating Messages pill and back-to-top button were designed for
   the desktop layout's scroll behavior; on the new mobile app shell the
   fixed tab bar already occupies that space, so hide both to avoid
   overlap. */
@media (max-width: 760px) {
  .rosie-dm-float,
  .back-to-top-btn {
    display: none;
  }
}
