.profile-banner {
  height: clamp(180px, 25vw, 320px);
  background: var(--panel);
  overflow: hidden;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.profile-side {
  min-width: 0;
  margin-top: -104px;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  padding: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: #fff;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.profile-avatar img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 50%;
  object-fit: cover;
}

.profile-title { margin-top: 16px; }

.profile-title-text { min-width: 0; }

.profile-name {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.profile-handle {
  margin-top: 0;
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.profile-share {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.profile-rule {
  margin: 16px 0;
  border-top: 1px solid var(--line);
}

.profile-bio {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.profile-joined {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--text);
  font-size: 16px;
}

.profile-joined svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-body {
  min-width: 0;
  padding-top: 16px;
}

.tabs {
  position: relative;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.tabs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--tab-w, 0);
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
  transform: translateX(var(--tab-x, 0));
  opacity: var(--tab-o, 0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.tabs.no-anim::after { transition: none; }

.tab {
  display: inline-block;
  margin-bottom: -1px;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.tab:hover { color: var(--text); }

.tab.is-active { color: var(--blue); }

.tab-panel { padding-top: 16px; }

.state {
  padding: 12px 0;
  color: var(--muted);
  font-size: 16px;
}

/* Feed */

.feed-list { display: grid; gap: 16px; }

.feed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.feed-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}

.feed-head .avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.feed-who { min-width: 0; flex: 1; }

.feed-ident {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.feed-name {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-name:hover { color: var(--blue); }

.feed-handle {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.feed-room {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-room:hover { color: var(--blue); }

.feed-media {
  display: block;
  background: #1a1a1a;
}

.feed-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}

.cheer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.cheer-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.feed-note {
  padding: 0 24px 24px;
  color: var(--text);
  font-size: 16px;
}

/* Photos + filters */

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-toggle:hover { background: rgba(255, 255, 255, 0.08); }

.filter-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-panel {
  padding: 8px;
}

.filter-section {
  padding-top: 16px;
}

.filter-label {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  width: 279px;
  max-width: 100%;
}

.filter-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 135px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.filter-field input,
.filter-row select {
  height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #424242;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.filter-field input:focus,
.filter-row select:focus {
  box-shadow: 0 0 0 2px var(--blue);
}

.filter-field input:disabled,
.filter-row select:disabled {
  opacity: 0.45;
}

.filter-check {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.filter-room-select {
  width: 279px;
  max-width: 100%;
}

.filter-row .filter-room-select { width: 279px; }

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 8px;
}

.filter-actions-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.btn {
  height: 32px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: rgba(255, 255, 255, 0.08); }

.btn-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: #3d77ff; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.photo-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #262626;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile:hover img { opacity: 0.92; }

.cheer-badge {
  position: absolute;
  right: 8px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cheer-badge svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Rooms */

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.room-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.room-tile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.room-tile-head .avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.room-tile-who { min-width: 0; }

.room-tile-name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-tile-name:hover { color: var(--blue); }

.room-tile-owner {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.room-tile-media {
  display: block;
  background: #1a1a1a;
}

.room-tile-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.room-tile-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.stat svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Events */

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.event-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #2a2a2a;
}

.event-card-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.event-card-body { padding: 16px; }

.event-card-body .event-title {
  white-space: normal;
  font-size: 16px;
  font-weight: 500;
}

.event-when {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.event-meta { margin-top: 2px; color: var(--muted); font-size: 14px; }

@media (max-width: 1000px) {
  .profile-wrap { grid-template-columns: 232px minmax(0, 1fr); gap: 24px; }
  .profile-avatar { width: 140px; height: 140px; font-size: 38px; }
  .photo-grid, .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .profile-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px 48px; }
  .profile-side { margin-top: -64px; }
  .profile-avatar { width: 128px; height: 128px; font-size: 34px; }
  .profile-body { padding-top: 20px; }
  .tabs { gap: 0; overflow-x: auto; }
  .tab { padding: 8px 10px; }
  .event-grid { grid-template-columns: minmax(0, 1fr); }
  .feed-actions { padding: 12px 16px; }
  .feed-note { padding: 0 16px 16px; }
  .filter-row { padding: 12px 4px; }
  .filter-check-label { width: 100%; }
  .filter-field { width: 100%; }
  .filter-room-select { width: 100%; }
}

@media (max-width: 520px) {
  .photo-grid { gap: 4px; }
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-name { font-size: 19px; }
}

/* Filter panel (recroom.network reference) */

.filter-panel {
  background: #262626;
  border-radius: 12px;
  padding: 0 16px 16px;
}

.filter-section { padding-top: 8px; }

.filter-label {
  display: block;
  padding: 16px 0 8px;
  border-bottom: 1px solid #5a5a5a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 0 8px;
  flex-wrap: wrap;
}

.filter-row-sort { padding: 16px 0 8px; }

.filter-check {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 135px;
  height: 56px;
  cursor: pointer;
}

.filter-check input {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.filter-box {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #bdbdbd;
  border-radius: 3px;
  background: transparent;
}

.filter-check input:checked + .filter-box {
  border-color: #fff;
  background: #fff;
}

.filter-check input:checked + .filter-box::after {
  content: "";
  display: block;
  width: 6px;
  height: 11px;
  margin: 1px auto 0;
  border: solid #1d1d1d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-field {
  position: relative;
  display: block;
  width: 279px;
  max-width: 100%;
  height: 56px;
}

.filter-field .filter-date {
  width: 100%;
  height: 56px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: #a7c0ff;
  font: inherit;
  font-size: 16px;
  outline: none;
  cursor: pointer;
}

.filter-field.is-disabled .filter-date {
  border-color: #6f6f6f;
  color: #a7c0ff;
  cursor: default;
}

.filter-float {
  position: absolute;
  top: -8px;
  left: 12px;
  z-index: 1;
  padding: 0 4px;
  background: #262626;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 16px;
}

.filter-field:not(.is-disabled) .filter-float,
.filter-select:not(.is-disabled) .filter-float {
  color: var(--blue);
}

.filter-field-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}

.filter-field-icon:hover { background: rgba(255, 255, 255, 0.08); }

.filter-field.is-disabled .filter-field-icon { color: #9e9e9e; cursor: default; }

.filter-field-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-calendar {
  position: absolute;
  top: 64px;
  left: 0;
  z-index: 30;
  width: 300px;
  padding: 12px;
  border-radius: 12px;
  background: #303030;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.filter-cal-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.filter-cal-month {
  flex: 1;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.filter-cal-nav {
  display: grid;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  place-items: center;
}

.filter-cal-nav:hover { background: rgba(255, 255, 255, 0.08); }

.filter-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.filter-cal-dow {
  padding: 6px 0;
  color: #bdbdbd;
  font-size: 12px;
  text-align: center;
}

.filter-cal-day {
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.filter-cal-day:hover { background: rgba(255, 255, 255, 0.08); }
.filter-cal-day.is-today { box-shadow: inset 0 0 0 1px var(--blue); }
.filter-cal-day.is-selected { background: var(--blue); }

.filter-cal-empty { height: 34px; }

.filter-select {
  position: relative;
  width: 279px;
  max-width: 100%;
  height: 56px;
}

.filter-select-plain { height: 40px; }

.filter-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 12px 0 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.filter-select.is-disabled .filter-select-btn {
  border-color: #6f6f6f;
  color: #9e9e9e;
  cursor: default;
}

.filter-select-plain .filter-select-btn { border-color: #fff; }

.filter-chevron {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-select.is-open .filter-chevron { transform: rotate(180deg); }

.filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 100%;
  max-height: 260px;
  overflow: auto;
  padding: 4px 0;
  border-radius: 8px;
  background: #303030;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.filter-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.filter-option:hover { background: rgba(255, 255, 255, 0.06); }
.filter-option.is-selected { color: var(--blue); }

.filter-option-empty {
  display: block;
  padding: 12px 16px;
  color: #bdbdbd;
  font-size: 16px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
}

.filter-actions-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.filter-reset,
.filter-close,
.filter-apply {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-reset,
.filter-close {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}

.filter-reset:hover,
.filter-close:hover { background: rgba(255, 255, 255, 0.08); }

.filter-close { background: #262626; }

.filter-apply {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.filter-apply:hover { background: #3d77ff; }

@media (max-width: 760px) {
  .filter-check { width: 100%; height: 32px; }
  .filter-field,
  .filter-select { width: 100%; }
  .filter-row { gap: 12px; padding: 16px 0 8px; }
  .filter-calendar { width: 100%; min-width: 260px; }
  .filter-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .tabs::after { transition: none; }
}

.room-preview {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: inherit;
  background-color: #1d1d1d;
  background-size: cover;
  background-position: center;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.room-tile:hover .room-preview,
.room-tile:focus-within .room-preview {
  opacity: 1;
  visibility: visible;
}

.room-preview-stat svg.is-filled,
.stat svg.is-filled {
  fill: currentColor;
  stroke: none;
}

.cheer-badge svg.is-filled,
.cheer-btn svg.is-filled {
  fill: currentColor;
  stroke: none;
}

.room-tile-media { position: relative; }

.room-tile-icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #424242;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  place-items: center;
}

.room-tile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  margin-left: -6px;
}

.profile-actions .icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #cfcfcf;
  cursor: pointer;
  place-items: center;
}

.profile-actions .icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.profile-actions .icon-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.profile-status {
  margin-top: 20px;
  color: var(--text);
  font-size: 15px;
}

.profile-lists {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.profile-list {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-list-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-list-value {
  margin-top: 4px;
  font-size: 16px;
}

.profile-list-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.profile-friend {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-friend .avatar {
  width: 24px;
  height: 24px;
  flex: none;
  font-size: 11px;
}

.profile-friend-name {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-friend-name:hover { color: var(--blue); }

.profile-stats {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.profile-stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 14px;
  background: #3d3d3d;
  color: #dcdcdc;
  text-decoration: none;
}

.profile-stat + .profile-stat { margin-top: 1px; }

.profile-stat.is-active { background: #2f6fed; color: #fff; }
.profile-stat:hover { background: #4a4a4a; }
.profile-stat.is-active:hover { background: #2f6fed; }

.profile-stat-count {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.profile-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-panel {
  background: #353535;
  padding: 4px 0 0;
}

.social-search { display: block; padding: 14px 16px 12px; }

.social-search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #5c5c5c;
  background: transparent;
  color: #f0f0f0;
  font: inherit;
  font-size: 14px;
  padding: 4px 0 8px;
  outline: none;
}

.social-list { display: flex; flex-direction: column; }

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid #414141;
  color: inherit;
  text-decoration: none;
}

.social-row:hover { background: #3d3d3d; }

.social-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666;
}

.social-dot.is-online { background: #f0643c; }

.social-row .avatar {
  flex: none;
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.social-ident {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-name { color: #f2f2f2; font-size: 14px; }

.social-handle {
  color: #a0a0a0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-status { flex: none; font-size: 13px; color: #cfcfcf; }
.social-status.is-online { color: #f2f2f2; }

.profile-connect {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 16px;
}

.connect-box {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: #3d3d3d;
  color: #e6e6e6;
  font-family: inherit;
}

button.connect-box {
  padding: 12px 14px;
  cursor: pointer;
}

.connect-box.is-on { background: #2f6fed; color: #fff; }

.connect-label {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.connect-main {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.connect-main:disabled { cursor: default; }

.connect-star {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  align-self: stretch;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.18), inset 0 -2px 5px rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.connect-star svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.connect-star.is-on svg { fill: currentColor; }
.connect-star.is-on { opacity: 1; }
.connect-star:hover { opacity: 0.9; }
.connect-star.is-on:hover { opacity: 1; }

.social-list > .state {
  margin: 0;
  padding: 18px 16px;
  color: #b9b9b9;
  font-size: 14px;
}

.connect-star svg { transition: transform 0.1s ease; }
.connect-star:active svg { transform: scale(0.78); }

.cheer-btn { cursor: pointer; }
.cheer-btn:hover { color: #fff; }
.cheer-btn.is-on { color: #fff; }
.cheer-btn.is-on svg { fill: currentColor; stroke: currentColor; }
.cheer-btn:disabled { opacity: 0.7; cursor: default; }
.cheer-count { font-variant-numeric: tabular-nums; }

.feed-comments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px;
}

.feed-comments:empty { display: none; }

.feed-comment-row {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.feed-comment-author { color: #9ec1ff; font-weight: 500; }

.feed-comment { padding: 16px 24px 18px; }

.feed-comment-input {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid #6d6d6d;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.feed-comment-input::placeholder { color: #9a9a9a; }
.feed-comment-input:focus { outline: none; border-bottom-color: #9a9a9a; }

@media (max-width: 760px) {
  .feed-comments { padding: 0 16px; }
  .feed-comment { padding: 12px 16px 16px; }
}

.feed-wrap { display: grid; gap: 16px; }

.showcase-host { display: block; }

.showcase {
  display: block;
  padding: 10px 12px 14px;
  border: 1px solid #5c5c5c;
  border-radius: 10px;
  background: #303030;
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 9px;
  margin-bottom: 12px;
  border-bottom: 1px solid #5a5a5a;
}

.showcase-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #e6e6e6;
}

.showcase-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.showcase-edit:hover { color: #6f97ff; }

.showcase-edit-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.showcase-empty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid #616161;
  border-radius: 6px;
  background: #303030;
  color: #e0e0e0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.showcase-empty:hover { background: #3a3a3a; border-color: #7a7a7a; }

.showcase-empty-plus {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 196px));
  gap: 10px;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #5c5c5c;
  border-radius: 8px;
  background: #303030;
}

.showcase-link {
  display: block;
  color: inherit;
}

.showcase-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}

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

.showcase-name {
  display: block;
  padding: 10px 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 12px 11px;
  color: #e0e0e0;
  font-size: 13px;
}

.showcase-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.showcase-stat svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.showcase-grid.is-editing .showcase-link { pointer-events: none; }

.showcase-remove {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.showcase-remove:hover { background: rgba(0, 0, 0, 0.8); }

.showcase-add {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px dashed #6f6f6f;
  border-radius: 8px;
  background: #242424;
  color: #e6e6e6;
  font: inherit;
  cursor: pointer;
}

.showcase-add:hover { background: #2b2b2b; }
.showcase-add:disabled { opacity: 0.4; cursor: default; }

.showcase-plus {
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.showcase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.showcase-cancel,
.showcase-save {
  height: 34px;
  padding: 0 16px;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.showcase-cancel {
  border: 1px solid #616161;
  background: #303030;
  color: #e0e0e0;
}

.showcase-cancel:hover { background: #3a3a3a; }

.showcase-save {
  border: 0;
  background: #2f7d32;
  color: #fff;
}

.showcase-save:hover { background: #36913a; }

.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.picker {
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 20px 24px 24px;
  border-radius: 8px;
  background: #252525;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.picker-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.picker-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #bdbdbd;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.picker-close:hover { color: #fff; }

.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.picker-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #303030;
  text-align: left;
  cursor: pointer;
}

.picker-tile.is-picked { outline: 3px solid #4caf50; outline-offset: -3px; }

.picker-name {
  padding: 6px 8px;
  background: #3a3a3a;
  color: #e6e6e6;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.picker-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.picker-confirm {
  width: 220px;
  max-width: 100%;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #2f7d32;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.picker-confirm:hover { background: #36913a; }

.picker-pager {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.picker-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #616161;
  border-radius: 4px;
  background: #303030;
  color: #e6e6e6;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.picker-arrow:hover { background: #3a3a3a; }
.picker-arrow:disabled { opacity: 0.45; cursor: default; }

@media (max-width: 760px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-add { min-height: 110px; }
  .picker { padding: 16px; }
  .picker-foot { flex-direction: column; align-items: stretch; }
  .picker-pager { justify-content: flex-end; }
}
