/* Friends page (FORRE_DARK / 02 facit) */
.tw-friends-page {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tw-friends-hero {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0;
  padding: 14px 14px 14px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.tw-friends-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
}

.tw-friends-hero-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.4px;
}

.tw-friends-hero-title i {
  color: var(--primary);
}

.tw-friends-hero-meta {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tw-friends-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.tw-friends-pill {
  border: 1px solid rgba(39, 150, 242, 0.35);
  background: rgba(39, 150, 242, 0.14);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 9px;
  border-radius: 0;
}

.tw-friends-pill.is-muted {
  border-color: var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
}

.tw-friends-search-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(39, 150, 242, 0.45);
  background: rgba(39, 150, 242, 0.14);
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 10px;
}

.tw-friends-search-link:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(39, 150, 242, 0.22);
}

.tw-friends-alert {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0;
  padding: 10px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 11px;
}

.tw-friends-alert.is-success {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--success);
}

.tw-friends-alert.is-error {
  border-color: rgba(231, 76, 60, 0.5);
  color: var(--danger);
}

.tw-friends-section {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0;
  padding: 12px;
}

.tw-friends-section-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tw-friends-section-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tw-friends-section-head h2 i {
  color: var(--primary);
}

.tw-friends-counter {
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
}

.tw-friends-counter.is-primary {
  border-color: rgba(39, 150, 242, 0.45);
  background: rgba(39, 150, 242, 0.14);
  color: var(--primary);
}

.tw-friends-counter.is-warning {
  border-color: rgba(39, 150, 242, 0.45);
  background: rgba(39, 150, 242, 0.12);
  color: var(--primary);
}

.tw-friends-request-list {
  display: grid;
  gap: 8px;
}

.tw-friends-request-card {
  position: relative;
  border: 1px solid rgba(51, 51, 51, 0.5);
  background: var(--surface-3);
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.tw-friends-request-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: transparent;
}

.tw-friends-request-card:not(.is-sent)::before {
  background: rgba(39, 150, 242, 0.75);
}

.tw-friends-request-card.is-sent::before {
  background: rgba(39, 150, 242, 0.7);
}

.tw-friends-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  overflow: hidden;
  position: relative;
}

.tw-friends-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-friends-presence {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface-2);
}

.tw-friends-presence.is-online {
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.tw-friends-presence.is-offline {
  background: rgba(255, 255, 255, 0.25);
}

.tw-friends-request-info,
.tw-friends-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tw-friends-name {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tw-friends-name:hover {
  color: var(--primary);
}

.tw-friends-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tw-friends-request-actions,
.tw-friends-card-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.tw-friends-request-actions form,
.tw-friends-card-actions form {
  margin: 0;
}

.tw-friends-btn,
.tw-friends-card-btn {
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 800;
  padding: 6px 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 30px;
}

.tw-friends-btn.is-accept {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--success);
}

.tw-friends-btn.is-decline,
.tw-friends-card-btn.is-danger {
  border-color: rgba(231, 76, 60, 0.5);
  color: var(--danger);
}

.tw-friends-sent-status {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.tw-friends-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tw-friends-grid.is-hidden {
  display: none;
  margin-top: 10px;
}

.tw-friends-grid.is-open {
  display: grid;
}

.tw-friends-card {
  border: 1px solid rgba(51, 51, 51, 0.5);
  background: var(--surface-3);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.tw-friends-card.is-hidden {
  display: none;
}

.tw-friends-card:hover {
  border-color: rgba(39, 150, 242, 0.45);
  background: rgba(39, 150, 242, 0.06);
}

.tw-friends-card:focus-within {
  border-color: rgba(39, 150, 242, 0.55);
}

.tw-friends-empty {
  border: 1px solid rgba(51, 51, 51, 0.5);
  background: var(--surface-1);
  text-align: center;
  padding: 28px 12px;
}

.tw-friends-empty i {
  color: rgba(39, 150, 242, 0.45);
  font-size: 22px;
}

.tw-friends-empty h3 {
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.tw-friends-empty p {
  margin: 0 0 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.tw-friends-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(39, 150, 242, 0.45);
  background: rgba(39, 150, 242, 0.14);
  color: var(--primary);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 12px;
}

.tw-friends-empty-cta:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.tw-friends-more-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.tw-friends-more-btn {
  border: 1px solid rgba(39, 150, 242, 0.45);
  background: rgba(39, 150, 242, 0.14);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  padding: 8px 12px;
}

.tw-friends-more-btn.is-open i {
  transform: rotate(180deg);
}

.tw-friends-more-btn i {
  transition: transform var(--transition-speed) ease;
}

@media (max-width: 900px) {
  .tw-friends-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tw-friends-hero {
    grid-template-columns: 1fr;
  }

  .tw-friends-hero-stats {
    justify-content: flex-start;
  }

  .tw-friends-request-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tw-friends-request-actions {
    grid-column: 1 / -1;
  }

  .tw-friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tw-friends-grid {
    grid-template-columns: 1fr;
  }
}

/* Social premium — hub links + friend wall + shoutbox */
.tw-mob-social-premium-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tw-mob-social-premium-link {
  flex: 1 1 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary, #bbb);
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-radius: 0;
}

.tw-mob-social-premium-link--accent {
  border-color: rgba(39, 150, 242, 0.5);
  color: rgba(224, 242, 254, 0.95);
  background: rgba(39, 150, 242, 0.08);
}

.tw-social-feed-premium {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.tw-social-feed-h {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tw-social-feed-list {
  display: grid;
  gap: 10px;
}

.tw-social-feed-card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface-1);
}

.tw-social-feed-card--shout {
  border-style: dashed;
}

.tw-social-feed-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.tw-social-feed-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.tw-social-feed-time {
  font-size: 11px;
  color: var(--text-muted);
}

.tw-social-feed-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.88);
}

.tw-social-feed-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.tw-social-feed-card-actions a {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

/* ── Friends / Social mobile P0 (≤768px, tw-mob-view only on mobile) ── */
@media (max-width: 768px) {
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-compact-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-compact-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-compact-meta {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-secondary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-compact-meta-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-primary-cta {
    flex: 0 0 auto;
    align-self: center;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--text-primary);
    border: 1px solid rgba(39, 150, 242, 0.5);
    background: rgba(39, 150, 242, 0.12);
    border-radius: 0;
    white-space: nowrap;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-flash {
    margin: 8px 14px 0;
    padding: 10px 12px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-flash.is-success {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.08);
    color: var(--text-primary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-flash.is-error {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
    color: var(--text-primary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-tabs .tw-mob-tab {
    flex: 1 1 0;
    min-width: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-card,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-card {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--surface-2);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-card-top,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-avatar {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-3);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-live {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(34, 197, 94, 0.95);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-friend-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-actions .tw-mob-social-request-profile {
    grid-column: 1 / -1;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-actions form {
    margin: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-actions .tw-mob-accept-btn,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-actions .tw-mob-decline-btn {
    width: 100%;
    min-height: 34px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-request-profile {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 10px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-notif-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--surface-2);
    text-decoration: none;
    color: inherit;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-notif-ic {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface-3);
    color: var(--text-muted);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-notif-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-notif-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-notif-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-notif-go {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-activity-feed {
    padding: 4px 0 8px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-card {
    margin: 6px 12px 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    border-radius: 0;
    border-left: 2px solid rgba(39, 150, 242, 0.2);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-3);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-time {
    font-size: 11px;
    color: var(--text-muted);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(39, 150, 242, 0.32);
    background: rgba(39, 150, 242, 0.08);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-action--gratta {
    border-color: rgba(39, 150, 242, 0.55);
    background: rgba(39, 150, 242, 0.16);
    color: var(--primary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-action--msg {
    border-color: var(--border);
    background: var(--surface-2);
    color: rgba(255, 255, 255, 0.78);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-feed-action:focus-visible {
    outline: 2px solid rgba(39, 150, 242, 0.55);
    outline-offset: 1px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-activity-empty {
    margin: 14px 14px 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    background: var(--surface-2);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-activity-empty--quiet {
    border-style: solid;
    font-size: 11px;
    line-height: 1.4;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-empty-inline {
    padding: 20px 14px 24px;
    text-align: center;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-empty-inline-msg {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-secondary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-empty-inline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(39, 150, 242, 0.5);
    background: rgba(39, 150, 242, 0.12);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-shouts-details {
    margin: 12px 14px 16px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-shouts-summary {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-shouts-summary::-webkit-details-marker {
    display: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-shouts-inner {
    padding: 0 8px 10px;
    border-top: 1px solid var(--border);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-details {
    margin: 0 14px calc(12px + env(safe-area-inset-bottom));
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-summary {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-summary::-webkit-details-marker {
    display: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-body {
    padding: 0 12px 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-h {
    margin: 12px 0 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-h:first-child {
    margin-top: 8px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-muted {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-muted--small {
    font-size: 11px;
    margin-top: 12px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-online,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-lfg {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-online li,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-lfg li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-online a:first-child,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-lfg a:first-child {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    min-width: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-msg {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-more-links a {
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: var(--surface-3);
    border-radius: 0;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-btn,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-btn--primary {
    border-radius: 0;
    padding: 7px 10px;
    font-size: 10px;
  }

  body.tw-page-friends .tw-mob-view--social .tw-mob-social-btn:focus-visible,
  body.tw-page-friends .tw-mob-view--social .tw-mob-social-btn--primary:focus-visible {
    outline: 2px solid rgba(39, 150, 242, 0.55);
    outline-offset: 1px;
  }
}
