.social-screen {
  position: relative;
  min-height: 500px;
  padding: 19px 0 45px;
  overflow: hidden;
  background: #fff;
}
.social-screen .phone-top {
  padding: 0 15px 8px;
  font-size: 9px;
}
.social-header {
  display: grid;
  grid-template-columns: 32px 1fr 28px;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid #e5edf5;
}
.social-header img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.social-header b {
  text-align: center;
  font-size: 13px;
}
.social-header button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--blue);
  background: #eaf5ff;
  border: 0;
  border-radius: 50%;
}
.social-header button svg {
  width: 14px;
}
.feed-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e5edf5;
  color: #75869a;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.feed-tabs span {
  position: relative;
  padding: 7px;
}
.feed-tabs .active {
  color: var(--ink);
}
.feed-tabs .active:after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: 0;
  left: 30%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.post {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 8px;
  padding: 10px 11px 8px;
  border-bottom: 1px solid #e5edf5;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #d8e8f6;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-letter {
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d73d6;
  border: 0;
  font-size: 12px;
  font-weight: 800;
}
.post-body {
  min-width: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.post-meta b {
  font-size: 10px;
}
.post-meta span {
  overflow: hidden;
  color: #718195;
  font-size: 8px;
  text-overflow: ellipsis;
}
.post p {
  margin: 2px 0 7px;
  color: #172b48;
  font-size: 9px;
  line-height: 1.45;
}
.post-photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 95px;
  padding: 11px;
  color: #fff;
  background: linear-gradient(145deg, #67b9ff 0%, #106ed2 55%, #06499c 100%);
  border-radius: 7px;
}
.post-photo span {
  font-size: 8px;
  opacity: 0.8;
}
.post-photo strong {
  font-size: 12px;
  line-height: 1.35;
}
.post-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #718195;
  font-size: 8px;
}
.post-actions span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.post-actions svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.post-compact {
  padding-bottom: 9px;
}
.post-compact p {
  margin-bottom: 4px;
}
.social-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  padding: 9px 12px 7px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5edf5;
}
.social-nav span {
  color: #65788e;
}
.social-nav .active {
  color: var(--blue);
}
.social-nav svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.social-nav .active svg {
  fill: #d9edff;
}
.compose-panel {
  position: absolute;
  z-index: 4;
  inset: 40px 0 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateY(105%);
  visibility: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 0.8, 0.25, 1),
    visibility 0.32s;
}
.compose-panel.open {
  transform: translateY(0);
  visibility: visible;
}
.compose-panel.publishing {
  transform: translateY(12px);
  opacity: 0.72;
}
.compose-panel header {
  display: grid;
  grid-template-columns: 55px 1fr 55px;
  align-items: center;
  padding: 9px 11px;
  border-bottom: 1px solid #e5edf5;
}
.compose-panel header b {
  text-align: center;
  font-size: 12px;
}
.compose-panel button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
}
.compose-close {
  color: #63768d;
  font-size: 9px;
  text-align: left;
}
.publish-button {
  min-height: 27px;
  color: #fff;
  background: var(--blue) !important;
  border-radius: 14px !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}
.publish-button:disabled {
  background: #a9cef4 !important;
}
.compose-user {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding: 14px 12px;
}
.compose-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.compose-user textarea {
  width: 100%;
  height: 160px;
  padding: 4px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  font:
    11px/1.55 Inter,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
.compose-user textarea[readonly] {
  caret-color: var(--blue);
  cursor: default;
}
.compose-user textarea::placeholder {
  color: #91a0b2;
}
.compose-panel footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 10px 13px 48px;
  color: #718195;
  border-top: 1px solid #e5edf5;
  font-size: 8px;
}
.compose-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
}
.compose-tools svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.is-new {
  animation: newPost 1.5s ease both;
  background: #edf7ff;
}
@keyframes newPost {
  0% {
    opacity: 0;
    transform: translateY(-22px);
    background: #cfeaff;
  }
  35% {
    opacity: 1;
    transform: none;
    background: #dff1ff;
  }
  100% {
    background: #fff;
  }
}
@media (max-width: 820px) {
  .social-screen {
    min-height: 430px;
  }
  .post-photo {
    height: 74px;
  }
  .post-compact {
    display: none;
  }
  .post-compact.is-new,
  .post-compact.user-post {
    display: grid;
  }
  .compose-user textarea {
    height: 120px;
  }
  .compose-panel footer {
    padding-bottom: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compose-panel {
    transition: none;
  }
  .is-new {
    animation: none;
  }
}
