/* Social feed drawer: shared by galaxy and planet world. */

:root {
  --social-feed-width: 386px;
  --social-feed-edge: 10px;
  --social-feed-split-gap: 12px;
  --social-feed-active-inset: 0px;
  --social-feed-center-inset: 0px;
  --social-glass-bg: rgba(9, 10, 14, 0.68);
  --social-glass-soft: rgba(255, 255, 255, 0.075);
  --social-glass-line: rgba(255, 255, 255, 0.16);
  --social-text: rgba(255, 255, 255, 0.94);
  --social-muted: rgba(255, 255, 255, 0.62);
  --social-accent: rgba(125, 243, 255, 0.86);
}

body.social-feed-open #canvas-container {
  transition: left 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
              width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#social-feed-root {
  position: fixed;
  inset: 0 auto 0 0;
  width: 0;
  pointer-events: none;
  z-index: 10020;
  color: var(--social-text);
  font-family: 'Inter', 'Google Sans', system-ui, sans-serif;
  direction: ltr;
}

#social-feed-root * {
  box-sizing: border-box;
}

.social-feed-handle {
  position: fixed;
  left: 0;
  top: 50%;
  width: 17px;
  height: 128px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(18, 20, 28, 0.48);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.30),
              inset 1px 0 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  pointer-events: auto;
  transition: width 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-feed-handle::before {
  content: "";
  position: absolute;
  inset: 31px 6px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #fff, #7df3ff, #ff7aa8);
  opacity: 0.82;
}

.social-feed-handle:hover,
body.social-feed-open .social-feed-handle {
  width: 23px;
  background: rgba(26, 28, 36, 0.64);
  border-color: rgba(125, 243, 255, 0.44);
}

.social-feed-panel {
  position: fixed;
  top: var(--social-feed-edge);
  bottom: var(--social-feed-edge);
  left: var(--social-feed-edge);
  width: min(var(--social-feed-width), calc(100vw - 20px));
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  grid-template-areas:
    "header"
    "status"
    "stories"
    "body"
    "chat"
    "tabs";
  overflow: hidden;
  direction: ltr;
  border: 1px solid var(--social-glass-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(125, 243, 255, 0.12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255, 122, 168, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(20, 22, 30, 0.72), rgba(7, 8, 12, 0.62));
  backdrop-filter: blur(30px) saturate(156%);
  -webkit-backdrop-filter: blur(30px) saturate(156%);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.46),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-106%) scaleX(0.94);
  transform-origin: left center;
  transition: opacity 250ms ease,
              transform 420ms cubic-bezier(0.18, 0.9, 0.16, 1);
}

body.social-feed-open .social-feed-panel {
  opacity: 1;
  transform: translateX(0) scaleX(1);
}

.social-feed-header {
  position: relative;
  grid-area: header;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px 12px 6px;
}

.social-feed-title {
  min-width: 0;
  text-align: center;
}

.social-feed-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: 20px;
  font-weight: 840;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.social-feed-title h2 {
  margin: 1px 0 0;
  color: var(--social-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-feed-actions {
  display: flex;
  justify-content: flex-start;
}

.social-icon-btn,
.social-capture-btn,
.social-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.095);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.social-icon-btn,
.social-capture-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.social-icon-btn:hover,
.social-capture-btn:hover,
.social-inline-btn:hover {
  transform: translateY(-1px);
  background: rgba(125, 243, 255, 0.16);
  border-color: rgba(125, 243, 255, 0.46);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30),
              0 0 18px rgba(125, 243, 255, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.social-icon-btn:disabled,
.social-capture-btn:disabled,
.social-inline-btn:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.social-feed-status {
  grid-area: status;
  display: none;
  margin: 4px 12px 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.social-feed-status.visible {
  display: block;
}

.social-feed-status.error {
  color: rgba(255, 205, 205, 0.96);
  border-color: rgba(255, 88, 88, 0.36);
  background: rgba(255, 68, 68, 0.12);
}

.social-feed-status.success {
  color: rgba(205, 255, 226, 0.96);
  border-color: rgba(46, 204, 113, 0.34);
  background: rgba(46, 204, 113, 0.11);
}

.social-friends-strip {
  grid-area: stories;
  display: flex;
  gap: 13px;
  min-height: 96px;
  padding: 8px 12px 13px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.social-friends-strip::-webkit-scrollbar {
  display: none;
}

.social-story {
  position: relative;
  width: 66px;
  min-width: 66px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.social-story-avatar {
  width: 62px;
  height: 62px;
  margin: 0 auto 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(rgba(15, 16, 21, 0.95), rgba(15, 16, 21, 0.95)) padding-box,
    conic-gradient(from 220deg, #ffd84d, #ff6a3d, #ff3f85, #bd4cff, #5bdcff, #ffd84d) border-box;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 820;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.social-story.is-online .social-story-avatar {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26),
              0 0 18px rgba(46, 204, 113, 0.26);
}

.social-story-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.social-story-avatar svg {
  width: 36px;
  height: 36px;
}

.social-story-avatar img + span,
.social-avatar img + span {
  display: none;
}

.social-story-dot {
  position: absolute;
  right: 5px;
  top: 48px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(10, 11, 15, 0.96);
  background: rgba(255, 255, 255, 0.35);
}

.social-story.is-online .social-story-dot {
  background: #30d46f;
}

.social-story-add {
  position: absolute;
  right: 3px;
  top: 43px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(10, 11, 15, 0.96);
  border-radius: 50%;
  background: rgba(23, 26, 34, 0.92);
  color: white;
}

.social-story-add svg {
  width: 13px;
  height: 13px;
}

.social-story-name {
  display: block;
  width: 66px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-feed-body {
  grid-area: body;
  min-height: 0;
  overflow: hidden;
}

.social-feed-view {
  display: none;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 86px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.social-feed-view.active {
  display: block;
}

.social-feed-empty {
  margin: 12px 2px 0;
  padding: 18px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  line-height: 1.45;
}

.social-post {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.social-post.is-clickable {
  cursor: pointer;
}

.social-post.is-clickable:hover {
  border-color: rgba(125, 243, 255, 0.36);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32),
              0 0 20px rgba(125, 243, 255, 0.10);
}

.social-post-avatar-jump {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.social-post-avatar-jump:hover .social-avatar {
  box-shadow: 0 0 0 2px rgba(125, 243, 255, 0.5),
              0 0 18px rgba(125, 243, 255, 0.20);
}

.social-post::before,
.social-post::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.social-post::before {
  top: 0;
  height: 112px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent);
}

.social-post::after {
  bottom: 0;
  height: 112px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent);
}

.social-post-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
}

.social-avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 820;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.social-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-post-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.social-post-name {
  overflow: hidden;
  color: white;
  font-size: 14px;
  font-weight: 840;
  line-height: 1.14;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-post-context {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-post img.social-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.30);
}

.social-post-foot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 760;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.social-inline-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 50%;
}

.social-inline-btn.accept {
  border-color: rgba(46, 204, 113, 0.42);
  background: rgba(46, 204, 113, 0.16);
}

.social-inline-btn.reject {
  border-color: rgba(255, 108, 108, 0.34);
  background: rgba(255, 108, 108, 0.13);
}

.social-section-title {
  margin: 18px 2px 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.social-friend-section:first-child .social-section-title {
  margin-top: 8px;
}

.social-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: 0 0 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.social-person-main {
  min-width: 0;
  flex: 1 1 auto;
}

.social-person-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-person-sub {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.social-person-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.social-chat-list {
  min-height: 230px;
  overflow-y: auto;
  padding: 2px 0 12px;
}

.social-chat-message {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 9px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.social-chat-message.own {
  margin-left: auto;
  border-color: rgba(125, 243, 255, 0.30);
  background: rgba(125, 243, 255, 0.13);
}

.social-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.social-chat-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.social-chat-form {
  grid-area: chat;
  gap: 8px;
  margin: 0 10px 8px;
  min-height: 46px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.social-chat-input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: white;
  font: 600 13px 'Inter', system-ui, sans-serif;
  padding: 0 10px;
  outline: none;
}

.social-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.social-chat-form .social-inline-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.social-feed-tabs {
  grid-area: tabs;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 10px 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social-feed-tab {
  min-width: 0;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-feed-tab svg {
  width: 19px;
  height: 19px;
}

.social-feed-tab.active {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.social-feed-tab:hover {
  transform: translateY(-1px);
  color: white;
}

.social-feed-tab[hidden] {
  display: none;
}

.social-capture-btn.social-feed-floating-capture {
  position: fixed;
  top: 20px;
  left: 300px;
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--galaxy-glass-fg, rgba(255, 255, 255, 0.94)) !important;
  box-shadow: none !important;
  overflow: visible;
  isolation: isolate;
  z-index: 9998;
  pointer-events: auto;
}

.social-capture-btn.social-feed-floating-capture::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--galaxy-glass-bg, rgba(255, 255, 255, 0.095));
  border: 1px solid var(--galaxy-glass-border, rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  box-shadow: var(--galaxy-glass-shadow, 0 14px 34px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12));
  pointer-events: none;
  z-index: -1;
  transition: background 400ms cubic-bezier(1, 0, 0.4, 1),
              border-color 400ms cubic-bezier(1, 0, 0.4, 1),
              box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}

.social-capture-btn.social-feed-floating-capture:hover {
  transform: scale(1.03);
}

.social-capture-btn.social-feed-floating-capture:hover::before {
  background: var(--galaxy-glass-bg-hover, rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.18);
}

.social-capture-btn.social-feed-floating-capture > svg {
  position: relative;
  z-index: 1;
}

.top-nav-buttons .social-capture-btn {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  flex: 0 0 50px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--world-glass-fg, rgba(255, 255, 255, 0.94)) !important;
  box-shadow: none !important;
  overflow: visible;
  isolation: isolate;
}

.top-nav-buttons .social-capture-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--world-glass-bg, rgba(255, 255, 255, 0.095));
  border: 1px solid var(--world-glass-border, rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  box-shadow: var(--world-glass-shadow, 0 14px 34px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12));
  pointer-events: none;
  z-index: -1;
  transition: background 400ms cubic-bezier(1, 0, 0.4, 1),
              border-color 400ms cubic-bezier(1, 0, 0.4, 1),
              box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}

.top-nav-buttons .social-capture-btn:hover {
  transform: scale(1.03) !important;
}

.top-nav-buttons .social-capture-btn:hover::before {
  background: var(--world-glass-bg-hover, rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.18);
}

.top-nav-buttons .social-capture-btn > svg {
  position: relative;
  z-index: 1;
}

body.social-feed-capturing .social-capture-btn svg,
.social-feed-capture-loading svg {
  animation: social-feed-spin 900ms linear infinite;
}

@keyframes social-feed-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 761px) {
  body.social-feed-open #ui-overlay {
    left: calc(min(var(--social-feed-width), calc(100vw - 20px)) + var(--social-feed-split-gap));
    width: calc(100% - (min(var(--social-feed-width), calc(100vw - 20px)) + var(--social-feed-split-gap)));
    transition: left 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
                width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  #ui-overlay > #user-button,
  #ui-overlay > #add-creation-container,
  #ui-overlay > #mic-toggle-button,
  #stories-toggle-wrap,
  #ai-chat-container,
  .top-nav-buttons,
  .online-counter-pill:not(.embedded) {
    transition-property: translate, transform;
    transition-duration: 360ms, 160ms;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), ease;
  }

  #solar-system-nav {
    transition-property: translate, transform;
    transition-duration: 360ms, 360ms;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), ease;
  }

  body.social-feed-open #ui-overlay > #user-button,
  body.social-feed-open #ui-overlay > #add-creation-container,
  body.social-feed-open #ui-overlay > #mic-toggle-button,
  body.social-feed-open #stories-toggle-wrap,
  body.social-feed-open #ai-chat-container,
  body.social-feed-open .top-nav-buttons,
  body.social-feed-open .online-counter-pill:not(.embedded) {
    translate: var(--social-feed-active-inset) 0;
  }

  body.social-feed-open #solar-system-nav {
    translate: var(--social-feed-center-inset) 0;
  }

  body.social-feed-open .top-nav-buttons {
    max-width: calc(100vw - var(--social-feed-active-inset) - 28px) !important;
  }

  body.social-feed-open #ai-chat-container {
    max-width: calc(100vw - var(--social-feed-active-inset) - 40px);
  }
}

@media (max-width: 760px) {
  :root {
    --social-feed-width: calc(100vw - 16px);
    --social-feed-edge: 8px;
  }

  .social-feed-panel {
    width: calc(100vw - 16px);
  }

  .social-feed-handle {
    height: 112px;
  }

  .social-capture-btn.social-feed-floating-capture {
    top: 20px;
    left: 236px;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  .top-nav-buttons .social-capture-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }

  .social-post img.social-post-image {
    aspect-ratio: 4 / 5.25;
  }
}

@media (max-width: 520px) {
  .social-feed-header {
    min-height: 54px;
    padding-top: 7px;
  }

  .social-feed-kicker {
    font-size: 18px;
  }

  .social-story {
    width: 62px;
    min-width: 62px;
  }

  .social-story-avatar {
    width: 58px;
    height: 58px;
  }

  .social-story-name {
    width: 62px;
  }

  .social-feed-tab span {
    display: none;
  }

  .social-feed-tab svg {
    width: 21px;
    height: 21px;
  }

  .social-capture-btn.social-feed-floating-capture {
    left: 232px;
  }
}
