.social-page {
  flex: 1 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 2%, rgba(100, 92, 246, 0.1), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(25, 190, 149, 0.09), transparent 28rem),
    #f7f8fc;
  color: #182235;
}

.social-main {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 64px clamp(28px, 4.2vw, 80px) 88px;
}

.social-hero {
  margin-bottom: 36px;
}

.social-hero__eyebrow {
  margin: 0 0 8px;
  color: #5b55d6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.social-hero h1 + p {
  margin: 18px 0 0;
  color: #687386;
  font-size: 1.05rem;
  white-space: nowrap;
}

.social-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: clamp(22px, 2.4vw, 34px);
  align-items: start;
}

.social-content {
  min-width: 0;
}

.social-sidebar {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.social-side-card {
  border: 1px solid rgba(31, 41, 63, 0.075);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(38, 48, 75, 0.07);
  padding: 18px;
}

.social-side-card__header--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.social-side-card__header p,
.social-side-card__stat-label {
  margin: 0;
  color: #969eae;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.social-side-card__stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 85, 214, 0.08);
  color: #4d48ca;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1;
}

.social-following-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.social-following-empty {
  margin: 0;
  color: #707b8d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.social-following-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.social-following-item:hover,
.social-following-item:focus-visible {
  border-color: rgba(91, 85, 214, 0.14);
  background: rgba(91, 85, 214, 0.055);
  outline: none;
}

.social-following-item__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #5b55d6, #16a885);
  color: #fff;
  font-weight: 800;
}

.social-following-item__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.social-following-item__copy {
  min-width: 0;
}

.social-following-item__name,
.social-following-item__goal {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-following-item__name {
  color: #202a3c;
  font-size: 0.87rem;
  font-weight: 750;
}

.social-following-item__goal {
  margin-top: 2px;
  color: #8d96a8;
  font-size: 0.76rem;
}

.social-cheer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.social-cheer-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(248, 245, 255, 0.95);
  color: #4b5263;
  font-size: 0.76rem;
  font-weight: 750;
}

.social-cheer-chip--tooltip {
  cursor: help;
  outline: none;
}

.social-cheer-chip--tooltip::before,
.social-cheer-chip--tooltip::after {
  position: absolute;
  left: 50%;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.social-cheer-chip--tooltip::before {
  content: "";
  bottom: calc(100% + 5px);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.97);
  transform: translate(-50%, 2px);
}

.social-cheer-chip--tooltip::after {
  content: attr(data-cheer-tooltip);
  bottom: calc(100% + 15px);
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  transform: translate(-50%, 4px);
}

.social-cheer-chip--tooltip:hover::before,
.social-cheer-chip--tooltip:hover::after,
.social-cheer-chip--tooltip:focus-visible::before,
.social-cheer-chip--tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.social-cheer-recent {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.social-cheer-recent-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 15px;
  background: rgba(247, 249, 253, 0.86);
}

.social-cheer-recent-item__emoji {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 63, 0.055);
}

.social-cheer-recent-item__copy {
  min-width: 0;
}

.social-cheer-recent-item__name,
.social-cheer-recent-item__kind {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-cheer-recent-item__name {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202a3c;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}

.social-cheer-recent-item__name:hover,
.social-cheer-recent-item__name:focus-visible {
  color: #4d48ca;
  text-decoration: underline;
  outline: none;
}

.social-cheer-recent-item__kind {
  margin-top: 1px;
  color: #8d96a8;
  font-size: 0.74rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: clamp(20px, 2vw, 30px);
}

.social-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 63, 0.075);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 2px rgba(25, 33, 50, 0.03),
    0 18px 48px rgba(38, 48, 75, 0.08);
  animation: social-card-enter 0.52s both;
  animation-delay: var(--social-card-delay);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.social-card__visual:focus-visible,
.social-card__body:focus-visible {
  outline: 3px solid rgba(91, 85, 214, 0.28);
  outline-offset: -3px;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 85, 214, 0.16);
  box-shadow:
    0 2px 4px rgba(25, 33, 50, 0.04),
    0 26px 64px rgba(38, 48, 75, 0.13);
}

.social-project-view .mandal-read-only-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.social-project-side-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 76;
  width: min(230px, 18vw);
  padding: 16px;
  border: 1px solid rgba(31, 41, 63, 0.075);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(38, 48, 75, 0.08);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.social-project-side-panel[hidden] {
  display: none;
}

.social-project-side-panel--left {
  left: clamp(18px, 2.2vw, 42px);
}

.social-project-side-panel--right {
  right: clamp(18px, 2.2vw, 42px);
}

.social-project-side-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-project-side-panel__eyebrow {
  margin: 0;
  color: rgba(48, 58, 74, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-project-cheer-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.social-project-cheer-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(31, 41, 63, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #283449;
  font-size: 0.84rem;
  font-weight: 760;
  box-shadow: 0 8px 22px rgba(38, 48, 75, 0.07);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-project-cheer-button:hover,
.social-project-cheer-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(91, 85, 214, 0.22);
  background: #fff;
  outline: none;
}

.social-project-cheer-button.is-sent {
  border-color: rgba(91, 85, 214, 0.24);
  background: rgba(91, 85, 214, 0.08);
  color: #4d48ca;
}

.social-project-cheer-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.social-project-cheer-panel__status {
  display: block;
  margin-top: 10px;
  min-width: 68px;
  color: #4d48ca;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

.social-project-cheer-panel__status.is-error {
  color: #d14343;
}

.social-project-side-panel .social-cheer-summary {
  margin-top: 12px;
}

.social-project-activity-panel {
  width: min(270px, 21vw);
}

.social-project-activity-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(31, 41, 63, 0.06);
}

.social-project-activity-tab {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(48, 58, 74, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.social-project-activity-tab.is-active {
  background: #fff;
  color: #263247;
  box-shadow: 0 2px 8px rgba(38, 48, 75, 0.1);
}

.social-project-activity-content[hidden] {
  display: none;
}

[data-social-main-activity-panel][hidden] {
  display: none;
}

.social-main-activity-card .social-project-activity-tabs {
  margin-top: 14px;
}

.social-main-activity-card .social-project-received-fork-projects {
  max-height: 184px;
}

.social-main-activity-card .social-project-received-fork-project {
  cursor: default;
}

.social-project-received-fork-summary {
  margin-top: 12px;
}

.social-project-received-fork-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 8px;
  color: rgba(48, 58, 74, 0.66);
  font-size: 0.75rem;
  font-weight: 760;
}

.social-project-received-fork-total strong {
  color: #b45309;
  font-size: 1rem;
}

.social-project-received-fork-projects {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}

.social-project-received-fork-project {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(31, 41, 63, 0.07);
  border-radius: 10px;
  background: rgba(247, 249, 253, 0.86);
  color: #263247;
  text-align: left;
  cursor: pointer;
}

.social-project-received-fork-project:hover,
.social-project-received-fork-project:focus-visible {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(251, 191, 36, 0.13);
  outline: none;
}

.social-project-received-fork-project__color {
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: var(--fork-color, #00796b);
}

.social-project-received-fork-project__name {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-project-received-fork-project__count {
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.social-project-received-fork-recent {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 41, 63, 0.08);
}

.social-project-received-fork-recent:empty {
  display: none;
}

.social-project-received-fork-recent-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.social-project-received-fork-recent-item__icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(251, 191, 36, 0.16);
  color: #b45309;
  font-weight: 900;
}

.social-project-received-fork-recent-item__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.social-project-received-fork-recent-item__action {
  color: rgba(94, 108, 132, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
}

.social-project-received-fork-recent-item__project {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f3a4c;
  font-size: 0.74rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.social-project-received-fork-recent-item__project:hover,
.social-project-received-fork-recent-item__project:focus-visible {
  color: #b45309;
  outline: none;
}

.social-project-fork-panel {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 41, 63, 0.08);
}

.social-project-fork-panel:hover,
.social-project-fork-panel:focus-within {
  z-index: 3;
}

.social-project-fork-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  border-radius: 18px;
  transition: width 0.2s ease, margin 0.2s ease, padding 0.2s ease,
    background 0.2s ease, box-shadow 0.2s ease;
}

.social-project-fork-panel:hover .social-project-fork-list,
.social-project-fork-panel:focus-within .social-project-fork-list {
  width: min(360px, calc(100vw - 96px));
  margin-left: -8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(38, 48, 75, 0.14);
}

.social-project-fork-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) minmax(18px, auto) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(247, 249, 253, 0.86);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.social-project-fork-item:hover,
.social-project-fork-item:focus-within,
.social-project-fork-item.is-board-hovered,
.social-project-fork-item.is-active {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(251, 191, 36, 0.16);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.social-project-fork-item.is-active {
  border-color: rgba(217, 119, 6, 0.74);
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.28),
    0 8px 18px rgba(36, 52, 71, 0.1);
}

.social-project-fork-item__color {
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: var(--fork-color, #00796b);
}

.social-project-fork-item__name {
  overflow: hidden;
  color: #202a3c;
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-project-fork-item__count {
  min-width: 18px;
  color: rgba(94, 108, 132, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.social-project-fork-item__button {
  min-width: 48px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(31, 41, 63, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #2f3a4c;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.social-project-fork-item__button:hover,
.social-project-fork-item__button:focus-visible {
  border-color: rgba(245, 158, 11, 0.48);
  color: #b45309;
  outline: none;
}

.social-project-fork-item__button:disabled,
.social-project-fork-item__button.is-forked {
  cursor: default;
  opacity: 0.64;
}

@media (max-width: 1260px) {
  .social-project-side-panel {
    width: 190px;
    padding: 14px;
  }

  .social-project-cheer-button {
    font-size: 0.78rem;
  }
}

@media (max-width: 980px) {
  .social-project-side-panel {
    position: static;
    transform: none;
    width: auto;
    margin: 12px 14px 0;
  }

  .social-project-view {
    overflow-y: auto;
  }

  .social-project-fork-panel:hover .social-project-fork-list,
  .social-project-fork-panel:focus-within .social-project-fork-list {
    width: 100%;
    margin-left: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
}

.social-card__visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(31, 41, 63, 0.075);
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(86, 97, 120, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(86, 97, 120, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(86, 97, 120, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(86, 97, 120, 0.035) 75%),
    #f8f9fc;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  cursor: zoom-in;
}

.social-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.social-card:hover .social-card__visual img {
  transform: scale(1.035);
}

.social-card__vision-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-card__visual:hover .social-card__vision-hint,
.social-card__visual:focus-visible .social-card__vision-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.social-card__visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.09), transparent 32%);
  pointer-events: none;
}

.social-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent),
    linear-gradient(145deg, #5b55d6, #16a885);
}

.social-card__badges {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-card__gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(18, 25, 39, 0.62);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.social-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 23px 17px;
  background:
    linear-gradient(180deg, rgba(250, 251, 255, 0.72), rgba(255, 255, 255, 0.98));
  cursor: pointer;
}

.social-card__gold {
  flex: 0 0 auto;
  color: #fff;
}

.social-card__gold span {
  color: #ffd254;
}

.social-card__goal {
  min-height: 0;
}

.social-card__label,
.social-card__progress-copy span {
  color: #969eae;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.social-card__goal h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #202a3c;
  font-size: clamp(1.12rem, 1.25vw, 1.36rem);
  font-weight: 760;
  line-height: 1.42;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.social-card__progress {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.social-card__progress-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.social-card__progress-copy strong {
  color: #4d48ca;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
}

.social-card__progress-copy strong b {
  font-size: 1.72rem;
  font-weight: 820;
  letter-spacing: -0.055em;
}

.social-card__progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef4;
}

.social-card__progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #625cf1 0%, #4d74e8 48%, #20b995 100%);
  box-shadow: 0 0 14px rgba(81, 92, 225, 0.24);
}

.social-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.social-card__nickname {
  overflow: hidden;
  color: #a0a7b5;
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card__follow {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(91, 85, 214, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #4d48ca;
  font-size: 0.76rem;
  font-weight: 780;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.social-card__follow:hover:not(:disabled),
.social-card__follow:focus-visible {
  border-color: rgba(91, 85, 214, 0.28);
  background: rgba(91, 85, 214, 0.07);
  outline: none;
  transform: translateY(-1px);
}

.social-card__follow.is-following {
  border-color: rgba(32, 185, 149, 0.22);
  background: rgba(32, 185, 149, 0.1);
  color: #138d75;
}

body.social-vision-modal-open {
  overflow: hidden;
}

.social-vision-modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.5vw, 20px);
  background: rgba(8, 13, 24, 0.76);
  backdrop-filter: blur(14px);
}

.social-vision-modal__dialog {
  position: relative;
  width: min(1600px, 100%);
  height: min(94vh, 980px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 36px 100px rgba(2, 6, 23, 0.46);
}

.social-vision-modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(44, 62, 80, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #607284;
  font-size: 1.65rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(36, 52, 71, 0.16);
  cursor: pointer;
}

.social-vision-modal__viewport {
  height: 100%;
  min-height: 0;
  padding: 14px;
  box-sizing: border-box;
}

.social-vision-modal__viewport .vision-board-canvas {
  flex: 0 0 auto;
  max-width: none;
  transform-origin: center center;
}

.social-vision-modal__loading,
.social-vision-modal__error,
.social-vision-modal__board-empty {
  color: #6b7587;
  font-size: 0.9rem;
  font-weight: 650;
}

.social-vision-modal__board-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
}

.social-vision-modal__readonly-item {
  cursor: default;
}

.social-vision-modal__readonly-item.has-memos {
  cursor: pointer;
}

.social-vision-modal__readonly-item.has-memos:hover,
.social-vision-modal__readonly-item.has-memos:focus-visible {
  outline: 2px solid rgba(44, 62, 80, 0.72);
  outline-offset: 4px;
}

.social-vision-modal__memo-badge {
  pointer-events: auto;
  cursor: pointer;
}

.social-vision-modal__memo-badge:hover,
.social-vision-modal__memo-badge:focus-visible,
.social-vision-modal__memo-badge.is-active {
  background: #526a80;
  outline: 3px solid rgba(44, 62, 80, 0.18);
  outline-offset: 2px;
}

.social-vision-modal__inspector {
  z-index: 45;
}

.social-vision-modal__memo-board {
  margin: 28px 0 0;
}

.social-vision-modal__memo-editor {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(44, 62, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.social-vision-modal__memo-body {
  margin: 9px 0 0;
  color: #596579;
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.social-vision-modal__memo-editor a {
  display: inline-flex;
  margin-top: 10px;
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 750;
}

@media (max-width: 840px) {
  .social-vision-modal {
    padding: 6px;
  }

  .social-vision-modal__dialog {
    height: 96vh;
  }

  .social-vision-modal__inspector {
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(42vh, 360px);
  }
}

.social-card__follow:disabled {
  cursor: wait;
  opacity: 0.7;
}

.social-pagination {
  display: flex;
  justify-content: center;
  padding: 36px 0 4px;
}

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

.social-load-more {
  min-width: 150px;
  padding: 11px 22px;
  border: 1px solid rgba(91, 85, 214, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4b46bf;
  font-weight: 760;
  box-shadow: 0 10px 28px rgba(38, 48, 75, 0.08);
}

.social-load-more:hover:not(:disabled) {
  border-color: rgba(91, 85, 214, 0.32);
  background: #fff;
  transform: translateY(-1px);
}

.social-load-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

.social-status {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

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

.social-status--empty,
.social-status--error {
  min-height: 260px;
  border: 1px solid rgba(31, 41, 63, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(38, 48, 75, 0.05);
}

.social-status h2,
.social-status p {
  margin: 0;
}

.social-status p {
  max-width: 520px;
  color: #707b8d;
}

.social-status--error h2 {
  color: #b42318;
}

.social-loader {
  width: 30px;
  height: 30px;
  border: 3px solid #e2e3f2;
  border-top-color: #5b55d6;
  border-radius: 50%;
  animation: social-spin 0.8s linear infinite;
}

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

@keyframes social-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (max-width: 720px) {
  .social-main {
    padding: 34px 12px 60px;
  }

  .social-hero {
    margin-bottom: 28px;
  }

  .social-hero h1 + p {
    white-space: normal;
  }

  .social-layout {
    grid-template-columns: 1fr;
  }

  .social-sidebar {
    position: static;
    order: 2;
  }

  .social-content {
    order: 1;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    display: block;
    min-height: 0;
  }

  .social-card__visual {
    aspect-ratio: 16 / 9;
  }
}
