.profile-follows,
.profile-social__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.profile-follow,
.profile-social__item,
.profile-settings {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(4, 8, 8, 0.42);
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.profile-follow::after,
.profile-social__item::after,
.profile-settings::after,
.topbar-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.profile-follow svg,
.profile-social__item svg,
.profile-settings img {
  pointer-events: none;
}

.profile-follow svg,
.profile-social__item svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #c4a574;
}

.profile-follow {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.profile-follow strong {
  color: #f3f5ee;
}

.profile-follow small,
.profile-social__title {
  color: var(--kb-mist, #d5d8c8);
  font-size: 0.72rem;
}

.profile-social {
  display: grid;
  gap: 0.55rem;
}

.profile-social__title {
  margin: 0;
  font-weight: 800;
}

.profile-social__grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.profile-social__item {
  flex-direction: column;
  justify-content: center;
  min-height: 4.4rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.notice-dot {
  position: absolute;
  top: 0.28rem;
  left: 0.28rem;
  z-index: 4;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #e11d2e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(8, 10, 8, 0.85);
}

.profile-settings img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
}

.profile-settings span {
  font-weight: 800;
}

.profile-support svg {
  width: 1.7rem;
  height: 1.7rem;
  color: #cd8dff;
  filter: drop-shadow(0 0 6px rgba(180, 76, 255, 0.55));
}

.profile-stats {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.95rem;
  background: rgba(4, 8, 8, 0.42);
  text-align: right;
}

.profile-stats__totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.profile-stats__stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0.4rem;
  border-radius: 0.7rem;
  background: rgba(8, 10, 12, 0.55);
}

.profile-stats__stat strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f3f5ee;
}

.profile-stats__stat small {
  color: var(--kb-mist, #d5d8c8);
  font-size: 0.68rem;
}

.profile-stats__stat.is-views strong {
  color: #8cefff;
}

.profile-stats__stat.is-likes strong {
  color: #f0c27a;
}

.profile-stats__stat.is-comments strong {
  color: #e9a8ff;
}

.profile-stats__chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.28rem;
  min-height: 7.2rem;
  padding: 0.35rem 0.1rem 0;
}

.profile-stats__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.profile-stats__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  height: 6.1rem;
}

.profile-stats__bar {
  display: block;
  width: 0.38rem;
  min-height: 0.16rem;
  border-radius: 999px 999px 0.12rem 0.12rem;
  background: #8cefff;
}

.profile-stats__bar.is-likes {
  background: #f0c27a;
}

.profile-stats__bar.is-comments {
  background: #e9a8ff;
}

.profile-stats__col small {
  color: var(--kb-mist, #d5d8c8);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-stats__legend {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  color: var(--kb-mist, #d5d8c8);
  font-size: 0.68rem;
  font-weight: 700;
}

.profile-stats__legend span::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.28rem;
  border-radius: 999px;
  background: #8cefff;
  vertical-align: -0.08rem;
}

.profile-stats__legend .is-likes::before {
  background: #f0c27a;
}

.profile-stats__legend .is-comments::before {
  background: #e9a8ff;
}

.profile-stats__table-wrap {
  overflow-x: auto;
}

.profile-stats__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.profile-stats__table th,
.profile-stats__table td {
  padding: 0.32rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.profile-stats__table th {
  color: var(--kb-mist, #d5d8c8);
  font-weight: 700;
}

.profile-stats__table td {
  color: #f3f5ee;
  font-weight: 700;
}

.profile-stats__unseen {
  display: grid;
  gap: 0.35rem;
}

.profile-stats__unseen p,
.profile-stats__unseen li {
  margin: 0;
  color: #a8aaf5;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
}

.profile-stats__unseen ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.profile-stats__unseen li {
  color: var(--kb-mist, #d5d8c8);
  font-weight: 600;
}

.profile-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.profile-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.3rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(4, 8, 8, 0.42);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.profile-extra img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  pointer-events: none;
}

.profile-friends {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.profile-action,
.profile-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.3rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(4, 8, 8, 0.42);
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-action svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.profile-messengers {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.profile-action.is-on {
  color: var(--kb-neon, #c4a574);
  border-color: color-mix(in srgb, var(--kb-neon, #c4a574) 45%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--kb-neon, #c4a574) 28%, transparent);
}

.profile-logout {
  width: 100%;
  border-color: rgba(255, 80, 70, 0.45);
  background: rgba(90, 12, 12, 0.42);
  color: #ffb4a8;
  cursor: pointer;
}

.invite-link {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.invite-link input,
.friend-search input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(4, 8, 8, 0.42);
  color: inherit;
  font: inherit;
}

.invite-actions,
.friend-search {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.invite-actions {
  flex-direction: column;
}

.invite-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.invite-actions svg {
  width: 1.1rem;
  height: 1.1rem;
  pointer-events: none;
}

.people-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
  text-align: right;
}

.people-avatar {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(8, 10, 8, 0.4);
  flex-shrink: 0;
}

.people-main > div {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.people-main small {
  display: block;
  opacity: 0.8;
}

#invite-status:not([hidden]) {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(106, 55, 255, 0.42);
  border-radius: 0.7rem;
  background: rgba(75, 29, 130, 0.5);
  color: #a8aaf5;
  text-align: center;
}

#invite-status.is-error:not([hidden]) {
  border-color: rgba(255, 120, 100, 0.45);
  background: rgba(90, 18, 18, 0.5);
  color: #ffb4a8;
}

.invite-count {
  margin: 0.2rem 0 0;
  font-weight: 800;
}

.invite-tiers {
  display: grid;
  gap: 0.4rem;
}

.invite-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(4, 8, 8, 0.35);
  font-size: 0.8rem;
}

.invite-tier.is-reached {
  border-color: rgba(106, 55, 255, 0.35);
  color: #988aff;
}

.is-online {
  color: #9dff7a;
  font-style: normal;
  font-size: 0.72rem;
}

.legal-body {
  color: #ece7d8;
  font-size: 0.92rem;
  line-height: 1.85;
  text-align: right;
}

.legal-body a {
  color: #a48eff;
}

.legal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.7rem;
}

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.7rem 0.6rem;
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: 0.75rem;
  background: rgba(18, 12, 8, 0.55);
  color: #e8dcc8;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
}

.lang-btn.is-active {
  background: linear-gradient(180deg, #8a6844 0%, #5c422c 100%);
  border-color: #c4a574;
}

.social-card {
  width: min(34rem, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.composer {
  display: grid;
  gap: 0.5rem;
  pointer-events: auto;
}

.composer input,
.composer textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  background: rgba(6, 8, 10, 0.72);
  color: inherit;
  font-family: inherit;
}

.composer-file {
  display: grid;
  place-items: center;
  min-height: 3.2rem;
  border: 1px dashed rgba(196, 165, 116, 0.4);
  border-radius: 0.75rem;
  cursor: pointer;
}

.composer-file input {
  display: none;
}

.kb-upload-bar {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(143, 112, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 18, 16, 0.72), rgba(6, 10, 10, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(106, 55, 255, 0.12);
  backdrop-filter: blur(10px);
}

.kb-upload-bar__fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(90deg, rgba(107, 46, 187, 0.18), rgba(143, 112, 255, 0.62));
  box-shadow: 0 0 16px rgba(143, 112, 255, 0.45);
  pointer-events: none;
}

.kb-upload-bar__label {
  position: relative;
  z-index: 1;
  color: #d9d6ff;
  font-size: 0.75rem;
  font-weight: 800;
}

.kb-upload-preview {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.kb-upload-preview[hidden],
.kb-upload-preview [hidden] {
  display: none !important;
}

.kb-upload-preview__ph {
  display: grid;
  place-items: center;
  gap: 0.28rem;
  width: min(100%, 12rem);
  min-height: 6.5rem;
  padding: 0.7rem;
  border: 1px dashed rgba(196, 165, 116, 0.38);
  border-radius: 0.75rem;
  background: rgba(8, 12, 10, 0.42);
  color: rgba(219, 216, 255, 0.82);
}

.kb-upload-preview__ph svg {
  width: 2.1rem;
  height: 2.1rem;
  opacity: 0.88;
}

.kb-upload-preview__ph span {
  font-size: 0.72rem;
  font-weight: 800;
}

.kb-upload-preview.has-file .kb-upload-preview__ph {
  display: none;
}

.kb-upload-preview__img,
.kb-upload-preview__vid {
  width: min(100%, 12rem);
  max-height: 10rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(8, 12, 10, 0.4);
}

.composer.is-uploading,
.profile-avatar-upload.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.auth-btn.is-busy {
  pointer-events: none;
}

.auth-btn.is-busy::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  margin-inline-start: 0.4rem;
  border: 2px solid rgba(244, 255, 240, 0.3);
  border-top-color: #f4fff0;
  border-radius: 50%;
  animation: kb-upload-spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .auth-btn.is-busy::after {
    animation: none;
  }
}

.feed-card {
  width: min(32rem, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(10, 12, 16, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  contain: layout style;
  transform: translateZ(0);
  text-align: right;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.feed-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.feed-more {
  color: #988aff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-swipe {
  position: relative;
  overflow: hidden;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
  direction: ltr;
  border-radius: 0.85rem;
  pointer-events: auto;
}

.home-swipe__track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.home-swipe__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  gap: 0.45rem;
  padding: 0.2rem 2.1rem 0.35rem;
  direction: rtl;
  text-align: right;
  pointer-events: auto;
}

.home-swipe__nav {
  position: absolute;
  top: 52%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 10, 8, 0.72);
  color: #dbd8ff;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-swipe__nav.is-next {
  right: 0.25rem;
}

.home-swipe__nav.is-prev {
  left: 0.25rem;
}

.home-swipe__nav svg {
  width: 1.1rem;
  height: 1.1rem;
  pointer-events: none;
}

.home-swipe__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  pointer-events: auto;
}

.home-swipe__count {
  margin: 0;
  color: #988aff;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-swipe__user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.home-swipe__avatar {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: cover;
  border-radius: 50%;
}

.home-swipe__media,
.home-swipe .kb-media {
  width: 100%;
  max-height: 16rem;
  pointer-events: none;
}

.home-swipe .kb-mute {
  pointer-events: auto;
}

.kb-media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: #07080c;
  background-image: var(--kb-poster, none);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.kb-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(10, 14, 16, 0.15) 0%,
    rgba(152, 138, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(12, 18, 22, 0.2) 58%,
    rgba(10, 14, 16, 0.15) 100%
  );
  /* Perf: the sweep moves the layer (transform) instead of repainting background-position. */
  inset: 0 auto 0 -80%;
  width: 180%;
  will-change: transform;
  animation: kb-shimmer 1.35s ease-in-out infinite;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.kb-media.is-ready::before,
.kb-media.is-video.is-ready::before {
  opacity: 0;
  animation: none;
  will-change: auto;
}

.kb-media__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 0.38s ease;
  -webkit-user-drag: none;
  pointer-events: none;
}

.kb-media.is-ready .kb-media__el {
  opacity: 1;
}

.kb-mute {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid rgba(152, 138, 255, 0.42);
  border-radius: 50%;
  background: rgba(8, 12, 10, 0.82);
  color: #dbd8ff;
  box-shadow:
    0 0 14px rgba(106, 55, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transform: translateZ(0);
  pointer-events: auto;
  touch-action: manipulation;
}

.kb-mute svg {
  width: 1.28rem;
  height: 1.28rem;
  pointer-events: none;
}

.kb-mute .kb-mute__on {
  display: none;
}

.kb-mute:not(.is-muted) .kb-mute__on {
  display: block;
}

.kb-mute:not(.is-muted) .kb-mute__off {
  display: none;
}

@keyframes kb-shimmer {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(44%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-media::before {
    animation: none;
    opacity: 0.25;
  }

  .kb-media__el,
  .kb-media.is-ready .kb-media__el {
    transition: none;
  }
}

.home-swipe__text,
.home-swipe__caption {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.home-swipe__dots {
  display: flex;
  justify-content: center;
  gap: 0.28rem;
  margin: 0;
}

.home-swipe__dot {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.home-swipe__dot.is-on {
  background: #988aff;
}

.explore-card {
  width: min(52rem, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

.kb-explore,
.kb-explore.landing-stage,
.kb-explore.profile-stage {
  width: min(100%, 46rem);
  max-width: 46rem;
  margin-inline: auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding-bottom: 6rem;
  box-sizing: border-box;
  overflow: visible;
  max-height: none;
  text-align: right;
}

.kb-explore .profile-card,
.kb-explore .explore-card,
.kb-explore .social-card,
.kb-explore-section {
  width: 100%;
  max-width: 100%;
}

.kb-explore .auth-kicker,
.kb-explore-kicker {
  margin: 0;
  color: #edf6ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-shadow:
    0 0 4px #fff,
    0 0 10px rgba(140, 210, 255, 1),
    0 0 22px rgba(70, 160, 255, 0.85),
    0 0 38px rgba(255, 55, 190, 0.5);
}

.kb-explore-kicker {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.55rem;
}

.kb-explore-kicker span {
  color: #d7dcff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(120, 190, 255, 0.9),
    0 0 18px rgba(255, 80, 200, 0.4);
}

.kb-explore .auth-title {
  color: #eef1f8;
  text-shadow: 0 0 12px rgba(210, 220, 255, 0.28);
}

.kb-explore-section {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.kb-explore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.15rem 0 0.2rem;
  padding: 0 0.1rem;
}

.kb-explore-head h2 {
  margin: 0;
  color: #eef1f8;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(210, 220, 255, 0.28);
}

.kb-explore .story-tray {
  padding: 0.35rem 0.1rem 0.15rem;
}

.kb-explore .story-ring__plus {
  border-color: rgba(210, 220, 255, 0.38);
  background: rgba(12, 14, 22, 0.72);
  color: #f4f7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 12px rgba(120, 170, 255, 0.16);
}

.kb-explore .story-ring.is-unseen img,
.kb-explore .story-ring.is-unseen .kb-avatar {
  box-shadow: 0 0 0 2px rgba(140, 190, 255, 0.95), 0 0 12px rgba(80, 150, 255, 0.4);
}

.kb-explore .story-ring.is-following.is-unseen img,
.kb-explore .story-ring.is-following.is-unseen .kb-avatar {
  box-shadow: 0 0 0 2px rgba(255, 90, 200, 0.9), 0 0 14px rgba(255, 80, 200, 0.4);
}

.kb-explore .explore-grid {
  gap: 0.35rem;
}

.kb-explore .explore-tile {
  border-radius: 0.7rem;
  background: rgba(10, 12, 20, 0.62);
  box-shadow: inset 0 0 0 1px rgba(210, 220, 255, 0.12);
}

.kb-explore .explore-tile--add {
  border: 1px dashed rgba(210, 220, 255, 0.32);
  background: rgba(12, 14, 22, 0.55);
  color: #f4f7ff;
}

.kb-explore .explore-tile--add .explore-tile__plus {
  border: 1px solid rgba(210, 220, 255, 0.38);
  background: linear-gradient(180deg, rgba(48, 50, 62, 0.96) 0%, rgba(18, 18, 26, 0.96) 100%);
  color: #f4f7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(120, 170, 255, 0.18);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
}

.explore-tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.2rem;
  background: rgba(4, 8, 8, 0.55);
  color: inherit;
  cursor: pointer;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
  transform: translateZ(0);
}

.explore-tile img,
.explore-tile video,
.explore-tile .kb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.explore-tile__play {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: rgba(8, 12, 10, 0.55);
  box-shadow: 0 0 8px rgba(106, 55, 255, 0.25);
  pointer-events: none;
}

.explore-tile__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.22rem 0 0.22rem 0.34rem;
  border-color: transparent transparent transparent #dbd8ff;
  transform: translate(-50%, -50%);
}

.explore-tile span {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.explore-tile--add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  border: 1px dashed rgba(152, 138, 255, 0.28);
  background: rgba(8, 12, 10, 0.42);
  color: inherit;
  text-decoration: none;
}

.explore-tile--add .explore-tile__plus {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(152, 138, 255, 0.38);
  background: rgba(8, 12, 10, 0.7);
  color: #dbd8ff;
}

.explore-tile--add .explore-tile__plus svg {
  width: 1.15rem;
  height: 1.15rem;
}

.explore-tile--add span {
  height: auto;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 800;
}

body.is-kb-overlay {
  overflow: hidden;
}

body.is-kb-overlay #kb-chrome-top,
body.is-kb-overlay #kb-chrome-dock,
body.is-kb-overlay .guest-banner,
body.is-kb-overlay .home-swipe__nav {
  visibility: hidden;
  pointer-events: none;
}

dialog.post-reader:not([open]) {
  display: none !important;
}

.post-reader {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #05070a;
  color: #f3ead8;
  z-index: 260;
  transform: translateZ(0);
  animation: kb-overlay-in 0.22s ease both;
}

.post-reader::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.post-reader[open],
.post-reader.is-open {
  display: grid;
}

.post-reader__feed {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: #000;
}

.post-reader__slide {
  position: relative;
  height: 100%;
  min-height: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  contain: layout paint;
}

.post-reader__card {
  position: relative;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #000;
  text-align: right;
}

/* Full-viewport media (reels style): never cropped, letterboxed on black. */
.post-reader__media,
.post-reader__card .kb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
  aspect-ratio: auto !important;
  box-shadow: none;
}

.post-reader__media .kb-media__el,
.post-reader .kb-media__el {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

/* Header floats over the media, next to the close button. */
.post-reader__user {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: calc(0.45rem + env(safe-area-inset-top, 0px)) 3.3rem 1.4rem 0.8rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 100%);
  font-weight: 800;
  pointer-events: none;
}

.post-reader__user > * {
  pointer-events: auto;
}

.post-reader__who {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.post-reader__name {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  white-space: nowrap;
}

.post-reader__name bdi {
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-reader__name .kb-tick--inline {
  width: 1rem;
  height: 1rem;
  box-shadow: none;
  pointer-events: none;
  cursor: inherit;
}

.post-reader__who .kb-avatar {
  pointer-events: none;
}

.post-reader__follow {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.22rem 0.62rem;
  border: 1px solid rgba(180, 210, 255, 0.38);
  border-radius: 999px;
  background: rgba(12, 16, 28, 0.72);
  color: #eef4ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(90, 150, 255, 0.18);
}

.post-reader__follow.is-on {
  border-color: rgba(152, 138, 255, 0.45);
  background: rgba(8, 22, 14, 0.78);
  color: #dcd0ff;
  box-shadow: 0 0 12px rgba(189, 115, 255, 0.16);
}

.post-reader__avatar {
  display: block;
  width: 2.3rem;
  height: 2.3rem;
  max-width: 2.3rem;
  max-height: 2.3rem;
  flex: 0 0 2.3rem;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Caption floats at the bottom, clear of the action column. */
.post-reader__caption {
  position: absolute;
  z-index: 3;
  right: 4.6rem;
  left: 0.8rem;
  bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  max-height: 5.2rem;
  margin: 0;
  overflow-y: auto;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 1px 8px #000;
}

/* Instagram-Reels-style floating action column on the right edge of the media. */
.post-reader__rail {
  position: absolute;
  z-index: 4;
  right: 0.55rem;
  bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.post-reader__act {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.2rem;
  min-width: 2.9rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.75));
  -webkit-tap-highlight-color: transparent;
}

.post-reader__act.is-static {
  cursor: default;
  opacity: 0.85;
}

.post-reader__act svg {
  width: 1.85rem;
  height: 1.85rem;
  pointer-events: none;
}

.post-reader__act.is-static svg {
  width: 1.45rem;
  height: 1.45rem;
}

.post-reader__act .story-act__count {
  min-height: 0.85rem;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.post-reader__act[data-like-post].is-on {
  color: #ff3b5c;
}

.post-reader__act[data-save-post].is-on {
  color: #ffd84a;
}

.post-reader__act:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 0.6rem;
}

/* Comments open as a bottom sheet over the media. */
.post-reader__sheet {
  position: absolute;
  z-index: 6;
  right: 0;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  max-height: 62%;
  padding: 0.75rem 0.85rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.1rem 1.1rem 0 0;
  background: rgba(10, 12, 18, 0.94);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: kb-reader-sheet-in 0.2s ease both;
}

.post-reader__sheet[hidden] {
  display: none;
}

@keyframes kb-reader-sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}

.post-reader__sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-reader__sheet-close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.post-reader__sheet-close svg {
  width: 1.2rem;
  height: 1.2rem;
}

.post-reader__slide.is-sheet-open .post-reader__rail,
.post-reader__slide.is-sheet-open .post-reader__caption {
  visibility: hidden;
}

.post-reader .kb-mute {
  top: calc(3.4rem + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: 0.7rem;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: none;
}

.post-reader__nav {
  position: absolute;
  z-index: 4;
  right: 0.55rem;
  left: 0.55rem;
  bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  pointer-events: none;
}

.post-reader__nav-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.45rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(8, 10, 8, 0.72);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.post-reader__nav-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  pointer-events: none;
}

.post-reader__close {
  position: absolute;
  top: calc(0.45rem + env(safe-area-inset-top, 0px));
  inset-inline-start: 0.55rem;
  z-index: 5;
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0;
}

.story-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(8, 10, 8, 0.62);
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.story-act svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.story-act__count {
  min-height: 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.story-act__label {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.story-act.is-on {
  color: #ff8a96;
  border-color: rgba(255, 120, 130, 0.45);
}

.home-swipe__acts {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.post-reader__comment {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.32rem;
  min-width: 0;
  margin-top: 0.1rem;
}

.post-reader__comment input[type='hidden'] {
  display: none;
}

.post-reader__comment .kb-composer-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.post-reader__comment .kb-composer-row input,
.post-reader__comment input[type='text'] {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(8, 10, 8, 0.7);
  color: inherit;
  font: inherit;
}

.post-reader__comment .kb-gif-btn,
.post-reader__comment button[type='submit'] {
  flex: 0 0 auto;
  white-space: nowrap;
}

.post-reader__comment .kb-emoji {
  min-width: 2.05rem;
  height: 2.05rem;
  font-size: 1.05rem;
}

.post-reader__comments {
  max-height: none;
  min-height: 3rem;
  overflow-y: auto;
  padding: 0;
  padding-inline-end: 0.35rem;
}

.kb-social-flash {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(92vw, 22rem);
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 180, 160, 0.35);
  border-radius: 0.85rem;
  background: rgba(18, 8, 8, 0.92);
  color: #ffd7cf;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.story-tray {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-top: 0.3rem;
  scrollbar-width: none;
}

@media (min-width: 720px) {
  .is-feed .story-tray {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: hidden;
    gap: 0.75rem 0.95rem;
  }

  .is-feed .story-ring {
    min-width: 5rem;
  }

  .is-feed .story-ring img,
  .is-feed .story-ring__plus {
    width: 4.15rem;
    height: 4.15rem;
  }

  .home-feed--posts .home-swipe.is-pair .home-swipe__slide {
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    background: rgba(4, 8, 8, 0.38);
  }

  .home-feed--posts .home-swipe__media,
  .home-feed--posts .home-swipe .kb-media {
    max-height: 14rem;
  }
}

@media (min-width: 1100px) {
  .is-feed .story-ring {
    min-width: 5.4rem;
  }

  .is-feed .story-ring img,
  .is-feed .story-ring__plus {
    width: 4.6rem;
    height: 4.6rem;
  }

  .home-feed--posts .home-swipe__media,
  .home-feed--posts .home-swipe .kb-media {
    max-height: 12.5rem;
  }
}

.story-tray::-webkit-scrollbar {
  display: none;
}

.story-ring {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-width: 4.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.story-ring img,
.story-ring .kb-avatar {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #8a8a8a;
}

.story-ring .kb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: none;
}

.story-ring.is-unseen img,
.story-ring.is-unseen .kb-avatar {
  box-shadow: 0 0 0 2px #3d7ea6, 0 0 8px rgba(61, 126, 166, 0.35);
}

.story-ring.is-following.is-unseen img,
.story-ring.is-following.is-unseen .kb-avatar {
  box-shadow: 0 0 0 2px #c4a574, 0 0 12px rgba(196, 165, 116, 0.55);
}

.story-ring.is-seen img,
.story-ring.is-seen .kb-avatar {
  box-shadow: 0 0 0 2px #6b6b6b;
}

.story-ring span {
  max-width: 4.6rem;
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-ring--add {
  text-decoration: none;
}

.story-ring__plus {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 2px dashed rgba(152, 138, 255, 0.42);
  background: rgba(8, 12, 10, 0.55);
  color: #dbd8ff;
  box-shadow: none;
}

.story-ring__plus svg {
  width: 1.35rem;
  height: 1.35rem;
}

.story-ring--add > span:last-child {
  white-space: normal;
  text-overflow: unset;
  line-height: 1.25;
  font-weight: 800;
}

dialog.story-viewer:not([open]) {
  display: none !important;
}

.story-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
  color: #f3ead8;
  z-index: 400;
}

.story-viewer[open],
.story-viewer.is-open {
  display: grid;
  place-items: stretch;
}

.story-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  animation: kb-overlay-in 0.22s ease both;
}

.story-viewer__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #05070a;
  transform: translateZ(0);
  will-change: transform, opacity;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.story-viewer::backdrop {
  background: #000;
}

@keyframes kb-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.story-viewer__chrome {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: grid;
  gap: 0.45rem;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.7rem 2.4rem;
  background: linear-gradient(rgba(0, 0, 0, 0.62), transparent);
  pointer-events: none;
}

.story-viewer__chrome > * {
  pointer-events: auto;
}

.story-viewer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.story-viewer__user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #fff;
  text-shadow: 0 1px 8px #000;
}

.story-viewer__user img {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(152, 138, 255, 0.45), 0 0 12px rgba(106, 55, 255, 0.25);
}

.story-viewer__user strong {
  max-width: 7.5rem;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-viewer__bars {
  display: flex;
  flex: 1;
  gap: 0.2rem;
  padding: 0;
  direction: ltr;
}

.story-viewer__bars span {
  flex: 1;
  height: 0.16rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.story-viewer__bars i {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 8px rgba(152, 138, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
}

.story-viewer__bars i.is-done {
  transform: scaleX(1);
}

.story-viewer__canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.story-viewer__stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.story-viewer__stage.is-loading::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  border: 0.22rem solid rgba(255, 255, 255, 0.18);
  border-top-color: #988aff;
  border-radius: 50%;
  animation: kb-spin 0.7s linear infinite;
  pointer-events: none;
}

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

.story-viewer__stage .kb-media {
  width: 100%;
  height: 100%;
  border-radius: 0;
  max-height: none;
}

.story-viewer__stage .kb-media__el {
  object-fit: contain;
  background: #000;
}

.post-reader .kb-media {
  max-height: 100%;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto !important;
}

.post-card .kb-media {
  max-height: min(70dvh, 36rem);
}

.post-card__media.kb-media {
  object-fit: unset;
  background: #07080c;
}

.story-viewer.is-paused .story-viewer__bars i {
  filter: brightness(0.72);
}

.story-viewer__overlay {
  position: absolute;
  right: 1rem;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 2px 10px #000;
  pointer-events: none;
}

.story-viewer__overlay:empty {
  display: none;
}

.story-viewer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(8, 10, 8, 0.62);
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.story-viewer__icon svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.story-viewer__icon.is-like.is-on {
  color: #ff8a96;
  border-color: rgba(255, 120, 130, 0.45);
}

.story-viewer__comment {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.28rem;
  min-width: 0;
}

.story-viewer__comment .kb-composer-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.story-viewer__comment input {
  flex: 1;
  min-width: 0;
}

.story-viewer__actions,
.thread-tools,
.post-card__bar,
.thread-request {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem;
  pointer-events: auto;
}

.story-viewer__dock {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 28%);
}

.story-viewer__actions {
  position: static;
  flex-wrap: nowrap;
  align-items: flex-end;
  padding: 0;
  background: none;
}

.story-viewer .story-viewer__comments {
  position: static;
  max-height: min(28dvh, 9.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0.1rem 0.2rem;
  padding-inline-end: 0.45rem;
  pointer-events: auto;
}

.story-viewer .story-viewer__comments[hidden] {
  display: none !important;
}

.story-viewer .story-viewer__comments .kb-gif {
  width: 4.8rem;
  height: 4.8rem;
  max-width: 4.8rem;
}

.story-viewer .kb-comment {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.story-viewer__actions .story-viewer__icon {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
}

.story-viewer__actions button:not(.story-viewer__icon),
.story-viewer__actions input,
.post-card__bar button,
.post-card__bar a,
.thread-tools button,
.people-row button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  background: rgba(12, 10, 8, 0.7);
  color: inherit;
  font-family: inherit;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  text-decoration: none;
}

.story-viewer__comments,
.comment-list {
  max-height: 6rem;
  overflow: auto;
  padding: 0 0.7rem 0.7rem;
  padding-inline-end: 0.55rem;
  font-size: 0.8rem;
}

.post-feed {
  display: grid;
  gap: 0.85rem;
}

.post-card__media:not(.kb-media) {
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  background: #050505;
  border-radius: 0.7rem;
}

.post-card__head,
.people-row,
.inbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.post-card__caption {
  margin: 0.4rem 0 0;
}

.inbox-list {
  display: grid;
  gap: 0.45rem;
}

.inbox-row {
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.inbox-row small {
  opacity: 0.8;
}

.chat-log {
  display: grid;
  gap: 0.4rem;
  max-height: 42dvh;
  overflow: auto;
}

.chat-bubble {
  justify-self: start;
  max-width: 85%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
}

.chat-bubble.is-mine {
  justify-self: end;
  background: rgba(196, 165, 116, 0.28);
}

.thread-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

#google_translate_element,
.goog-te-banner-frame,
.skiptranslate iframe,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.story-act[data-save-post].is-on,
.story-act[data-save-post][aria-pressed='true'] {
  color: var(--kb-neon, #c4a574);
  border-color: color-mix(in srgb, var(--kb-neon, #c4a574) 55%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--kb-neon, #c4a574) 35%, transparent);
}

.kb-emoji-bar {
  display: flex;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.25rem;
  scrollbar-width: none;
}

.kb-composer-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
}

.kb-composer-row input,
.kb-composer-row textarea {
  flex: 1;
  min-width: 0;
}

.kb-emoji-bar::-webkit-scrollbar {
  display: none;
}

.kb-emoji {
  flex: 0 0 auto;
  min-width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  background: rgba(8, 10, 8, 0.5);
  font-size: 1.15rem;
  cursor: pointer;
}

.kb-gif-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  border: 1px solid color-mix(in srgb, var(--kb-neon, #c4a574) 40%, transparent);
  border-radius: 0.7rem;
  background: rgba(8, 10, 8, 0.62);
  color: var(--kb-neon, #c4a574);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.kb-gif {
  display: block;
  width: 7.2rem;
  height: 7.2rem;
  max-width: min(42%, 7.2rem);
  aspect-ratio: 1;
  margin: 0.35rem 0;
  overflow: hidden;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.4);
}

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

.kb-gif-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.28rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--kb-neon, #c4a574) 40%, transparent);
  border-radius: 0.75rem;
  background: rgba(8, 12, 10, 0.72);
}

.kb-gif-chip[hidden] {
  display: none !important;
}

.kb-gif-chip img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #111;
}

.kb-gif-chip span {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.kb-gif-chip button {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.composer-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(8, 10, 8, 0.62);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.comment-list {
  list-style: none;
}

.kb-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.kb-comment__avatar {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 1.45rem;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.kb-comment__body {
  min-width: 0;
  flex: 1;
}

.comment-list li.is-reply,
.kb-comment.is-reply {
  margin-right: 1.2rem;
  opacity: 0.92;
}

.kb-comment-reply,
.kb-comment-del {
  margin-right: 0.35rem;
  border: 0;
  background: none;
  color: var(--kb-mist, #d5d8c8);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.kb-gif-sheet {
  position: fixed;
  inset: 0;
  z-index: 480;
  display: none;
}

.kb-gif-sheet.is-open,
.kb-gif-sheet[open] {
  display: block;
}

.kb-gif-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.kb-gif-sheet__panel {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  max-height: min(72dvh, 32rem);
  padding: 0.8rem 0.8rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem 1.1rem 0 0;
  background: rgba(8, 10, 10, 0.94);
  transform: translate3d(0, 0, 0);
}

@media (min-width: 720px) {
  .kb-gif-sheet__panel {
    right: auto;
    left: 50%;
    bottom: auto;
    top: 18%;
    width: min(26rem, 92vw);
    border-radius: 1rem;
    transform: translate3d(-50%, 0, 0);
  }
}

.kb-gif-sheet__head {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.kb-gif-sheet__head input {
  flex: 1;
  min-height: 2.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
}

.kb-gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  max-height: 46dvh;
  overflow: auto;
}

.kb-gif-tile {
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.kb-gif-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-gif-status {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}

.kb-gif-status.is-error {
  color: #ff8a96;
}

.kb-empty {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  padding: 1.2rem 0.2rem;
}

.kb-viewers {
  position: absolute;
  right: 0.6rem;
  left: 0.6rem;
  top: 4.4rem;
  bottom: auto;
  z-index: 6;
  max-height: calc(100% - 8.5rem);
  overflow: auto;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(8, 10, 10, 0.92);
}

.kb-viewers__head,
.kb-viewers__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kb-viewers__row {
  justify-content: flex-start;
  padding: 0.35rem 0;
}

.kb-viewers__row img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.kb-viewers__row small {
  display: block;
  opacity: 0.7;
  direction: ltr;
}

@media (max-width: 480px) {
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-reader__caption {
    max-height: 4.4rem;
  }

  .post-reader__nav-btn span {
    font-size: 0.7rem;
  }
}

@media (min-width: 720px) {
  .explore-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .story-viewer[open],
  .story-viewer.is-open {
    display: grid;
    place-items: center;
    background: #000;
  }

  .story-viewer__frame {
    width: min(26.5rem, 100vw);
    height: min(100dvh, 56rem);
    max-height: 100dvh;
    overflow: hidden;
    border-radius: 0;
  }

  .explore-card.profile-card {
    width: min(56rem, 100%);
  }

  .kb-explore .explore-card.profile-card {
    width: 100%;
  }
}

@media (min-width: 1280px) {
  .explore-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .kb-explore .explore-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-gif-sheet__panel,
  .story-act[data-save-post],
  .story-viewer__stage.is-loading::after {
    animation: none;
    transition: none;
  }
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Post viewer: prev/next float over the media without a frame. */
.post-reader .post-reader__nav-btn {
  min-height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: none;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.post-reader__nav {
  right: 4.4rem;
  left: 0.8rem;
}

.post-reader.is-sheet-open .post-reader__nav {
  visibility: hidden;
}

.post-reader__feed {
  scrollbar-width: none;
}

.post-reader__feed::-webkit-scrollbar {
  display: none;
}

/* Explore load-more: floating pill, no frame. */
.explore-more {
  display: flex;
  justify-content: center;
  padding: 0.9rem 0 0.4rem;
}

.explore-more__btn {
  min-height: 2.4rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.explore-more__btn.is-loading {
  opacity: 0.55;
  cursor: progress;
}
