/* =============================================
   BASE
   ============================================= */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #111;
}

a {
  color: inherit;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: min(760px, calc(100% - 32px));
  margin: 32px auto;
}

.topbar,
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* =============================================
   AVATAR
   ============================================= */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  background: linear-gradient(135deg, #dfe6ef, #f3f5f8);
}

.avatar-sm {
  width: 56px;
  height: 56px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: #111;
  border: 1px solid #d9dee7;
}

.like-btn {
  appearance: none;
  border: 1px solid #d9dee7;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}

.like-btn.is-liked {
  border-color: #f0b3b3;
  background: #fff4f4;
}

/* =============================================
   FORMS
   ============================================= */
textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 180px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #cfd6df;
  font: inherit;
}

.form-row {
  margin-top: 12px;
}

.upload-box {
  margin: 12px 0;
}

.search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cfd6df;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

/* =============================================
   POST CARD
   ============================================= */
.post {
  padding: 16px;
  margin-bottom: 16px;
}

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

.post-author {
  font-weight: 600;
}

.post-content {
  white-space: normal;
  line-height: 1.5;
  margin-top: 12px;
}

.post-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}

.post-media-grid img {
  width: 100%;
  display: block;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.post-media-grid img:only-child {
  grid-column: span 3;
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 75vh;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  padding: 0;
}

.post-link-btn.danger {
  color: #c62828;
}


/* =============================================
   LINK PREVIEW
   ============================================= */
.post-preview {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.post-preview:hover {
  background: #eaf0f6;
}

.post-preview-thumb-wrap {
  flex: 0 0 196px;
  width: 196px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  background: #d9dee3;
}

.post-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-preview-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.post-preview-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.post-preview-link {
  font-size: 14px;
  color: #4b5563;
}

/* =============================================
   MEDIA / THUMBS
   ============================================= */
.media-thumb-wrap {
  position: relative;
}

.media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* =============================================
   SHARE
   ============================================= */
.share-menu {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  background: #fff;
}

.share-menu-item {
  appearance: none;
  border: 1px solid #d8dee7;
  background: #f7f9fc;
  color: #111827;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.share-menu-item:hover {
  background: #eef3f8;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

/* =============================================
   MISC
   ============================================= */
.muted {
  color: #777;
  font-size: 13px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 32px;
  padding: 14px 0 0;
  text-align: center;
}

/* =============================================
   USER CARD
   ============================================= */
.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.user-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.user-card-main > div {
  min-width: 0;
}

/* =============================================
   PROFILE (legacy)
   ============================================= */
.profile-head-card {
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 16px;
  padding: 16px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-stats {
  display: flex;
  gap: 16px;
  color: #555;
  font-size: 14px;
  margin-top: 6px;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-page-head {
  padding: 12px 0 20px;
  border-bottom: 1px solid #e7edf3;
  margin-bottom: 8px;
}

.profile-page-top {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.profile-page-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.profile-page-main {
  min-width: 0;
}

.profile-page-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.profile-page-username {
  margin-top: 6px;
  color: #6b7280;
  font-size: 18px;
}

.profile-page-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.profile-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #4b5563;
  font-size: 16px;
}

.profile-stat strong {
  font-size: 20px;
  color: #111827;
}

.profile-page-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* =============================================
   TWEET CARD
   ============================================= */
#feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tweet-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e7edf3;
  border-radius: 0;
  padding: 20px 0;
  margin: 0;
}

.tweet-card-inner {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tweet-avatar-col {
  display: flex;
  justify-content: flex-start;
}

.tweet-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.tweet-avatar-placeholder {
  background: linear-gradient(135deg, #dfe6ef, #f3f5f8);
}

.tweet-main {
  min-width: 0;
}

.tweet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tweet-author-block {
  min-width: 0;
}

.tweet-display-name {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}

.tweet-display-name:hover {
  text-decoration: underline;
}

.tweet-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
  flex-wrap: wrap;
}

.tweet-username {
  color: #6b7280;
  text-decoration: none;
}

.tweet-username:hover,
.tweet-more-link:hover,
.feed-preview-card__more-link:hover {
  text-decoration: underline;
}

.tweet-dot,
.tweet-time {
  color: #6b7280;
}

.tweet-head-actions {
  flex: 0 0 auto;
}

.tweet-more-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.tweet-more-btn:hover {
  background: #f3f4f6;
}

.tweet-content {
  margin-bottom: 12px;
}

.tweet-text,
.tweet-text-full {
  color: #111827;
  font-size: 16px;
  line-height: 1.55;
  word-break: break-word;
}

.tweet-more-inline {
  color: #6b7280;
}

.tweet-more-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  cursor: pointer;
  padding: 0 0 0 2px;
}

.tweet-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #4b5563;
  font-size: 15px;
}

.tweet-stat-item,
.tweet-stat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 15px;
  background: transparent;
  border: 0;
  padding: 0;
}

.tweet-stat-btn {
  cursor: pointer;
}

.tweet-stat-btn.is-liked {
  color: #3b82f6;
}

.tweet-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   CHROME-KIT HEADER
   ============================================= */
.ck-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  box-sizing: border-box;
}

.app-feed-page,
.profile-page,
.single-post-page,
.people-page,
.guest-feed {
  padding-top: 70px !important;
}

.ck-header__left,
.ck-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ck-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1f1f1f;
}


.ck-apps-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ck-apps-btn svg {
  width: 20px;
  height: 20px;
  fill: #6a6a6a;
  display: block;
}

.ck-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #45A4E1;
  color: #fff;
  text-decoration: none;
  flex: 0 0 36px;
}

.ck-user-avatar img,
.ck-account-menu__toggle img,
[data-account-avatar-img] {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.ck-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.ck-topbar__right > [data-ck-component="ckln-services-menu"],
.ck-topbar__right > .ck-user-avatar {
  flex: 0 0 auto;
}

.ck-topbar__right > .ck-user-avatar {
  margin-left: 0;
}

/* =============================================
   SIDEBAR
   ============================================= */
.ck-sidebar {
  position: fixed;
  top: 96px;
  left: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =============================================
   MOBILE NAV & COMPOSE
   ============================================= */
.ck-mobile-nav,
.ck-mobile-compose {
  display: none;
}

/* =============================================
   GUEST FEED
   ============================================= */
.guest-feed {
  padding: 12px 16px 40px;
}

.guest-feed__inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.guest-join-card {
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.guest-join-card__title {
  font-size: 13px;
  line-height: 1.35;
  color: #222;
  font-weight: 600;
}

.guest-join-card__title a {
  color: #36a0f0;
  text-decoration: none;
}

.guest-join-card__text {
  font-size: 12px;
  color: #7a7f87;
  margin-top: 2px;
}

.guest-join-card__action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.guest-join-card__action .ck-topbar__btn {
  min-width: 72px;
  height: 30px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

/* =============================================
   FEED CARD (guest)
   ============================================= */
.feed-card {
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  overflow: hidden;
}

.feed-post {
  padding: 14px 18px 12px;
}

.feed-post--border {
  border-bottom: 1px solid #dfe4ea;
}

.feed-post__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feed-post__author {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feed-post__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.feed-post__name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-top: 2px;
}

.feed-post__username {
  font-size: 12px;
  color: #8a8f97;
  margin-top: 2px;
}

.feed-post__more {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0 0;
  cursor: pointer;
}

.feed-post__more span {
  width: 3px;
  height: 3px;
  background: #90959c;
  border-radius: 50%;
  display: block;
}

.feed-post__text {
  font-size: 13px;
  line-height: 1.55;
  color: #2a2d31;
}

.feed-post__text a {
  color: #4ea5e3;
  text-decoration: none;
}

.feed-post__morelink {
  color: #8a8f97;
}

.feed-post__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.feed-post__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #53575e;
}

.feed-post__stat svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #4f545c;
  stroke-width: 1.7;
}

.feed-post__stat svg path {
  fill: none;
}

.feed-card__footer {
  border-top: 1px solid #dfe4ea;
  background: #fbfcfd;
}

.feed-card__more {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #6e737b;
  font-size: 14px;
  padding: 0 16px;
}

.feed-card__more strong {
  color: #36a0f0;
  font-weight: 600;
}

.feed-card__more svg {
  width: 16px;
  height: 16px;
  fill: #8a8f97;
}

/* =============================================
   APP FEED
   ============================================= */
.app-feed-page {
  min-height: calc(100vh - 40px);
  padding: 14px 0 92px;
  box-sizing: border-box;
}

.app-feed-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.app-feed-list-wrap,
.app-feed-list {
  width: 100%;
}

/* =============================================
   FEED PREVIEW CARD
   ============================================= */
.feed-preview-card {
  width: 100%;
  padding: 14px 0 12px;
  border-bottom: 1px solid #45A4E133;
  box-sizing: border-box;
}

.feed-preview-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feed-preview-card__author {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.feed-preview-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 42px;
}

.feed-preview-card__avatar--empty {
  background: #d8dde2;
}

.feed-preview-card__meta {
  min-width: 0;
}

.feed-preview-card__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-preview-card__name {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.feed-preview-card__time {
  font-size: 13px;
  color: #666;
  line-height: 1.2;
  text-decoration: none;
}

.feed-preview-card__time:hover {
  text-decoration: underline;
}

.feed-preview-card__username a {
  color: #6f757d;
  text-decoration: none;
  font-size: 13px;
}

.feed-preview-card__actions {
  flex: 0 0 auto;
}

.feed-preview-card__more {
  border: 0;
  background: transparent;
  color: #8f959b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.feed-preview-card__content {
  margin-top: 10px;
}

.feed-preview-card__content-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feed-preview-card__text {
  font-size: 13px;
  line-height: 1.55;
  color: #222;
}

.feed-preview-card__text a {
  color: #48a4ea;
  text-decoration: none;
}

.feed-preview-card__more-inline {
  color: #8a8f97;
}

.feed-preview-card__more-link {
  border: 0;
  background: transparent;
  color: #8a8f97;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: none;
}

.feed-preview-card__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.feed-preview-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #50565d;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
}

.feed-preview-card__stat-icon {
  font-size: 16px;
  line-height: 1;
}

/* =============================================
   COMPOSER DOCK
   ============================================= */
.composer-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 60;
  pointer-events: none;
}

.composer-dock__form {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  pointer-events: auto;
}

.composer-dock__input {
  flex: 1 1 auto;
  min-height: 38px;
  border: 1px solid #d7dfe6;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #8d939a;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.composer-dock__icon {
  width: 18px;
  height: 18px;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-dock__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.composer-dock__submit {
  height: 38px;
  min-width: 80px;
  border: 0;
  border-radius: 10px;
  background: #47a5e7;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(71, 165, 231, .28);
}

/* =============================================
   COMPOSER BOX
   ============================================= */
.composer-box {
  background: #fff;
  border: 1px solid #d7dfe6;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  padding: 10px 12px;
}

.composer-box__media {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.composer-box__media:not(:empty) {
    margin-bottom: 8px;
}

.composer-box__media-item {
  position: relative;
  width: 126px;
  height: 138px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f5;
  flex: 0 0 126px;
}

.composer-box__media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.composer-box__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}


/* =============================================
   EDIT POST MODAL
   ============================================= */
.edit-post-modal[hidden] {
  display: none !important;
}

.edit-post-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.edit-post-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.edit-post-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 80px auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.edit-post-modal__header {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef4;
}

.edit-post-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.edit-post-modal__body {
  padding: 14px 14px 10px;
}

.edit-post-modal__author {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.edit-post-modal__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.edit-post-modal__author-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.edit-post-modal__author-username {
  margin-top: 2px;
  font-size: 12px;
  color: #6f757d;
}

.edit-post-modal__textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border: 1px solid #d7dfe6;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
  color: #222;
  padding: 14px 12px;
  box-sizing: border-box;
}

.edit-post-modal__media {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.edit-post-modal__media-item {
  position: relative;
  width: 182px;
  height: 202px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f5;
  flex: 0 0 182px;
}

.edit-post-modal__media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-post-modal__media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 13px;
}

.edit-post-modal__add-photo-row {
  margin-top: 10px;
}

.edit-post-modal__add-photo {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dfe6;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: #222;
  cursor: pointer;
  background: #fff;
}

.edit-post-modal__add-photo-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edit-post-modal__add-photo-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.edit-post-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 14px 14px;
  border-top: 1px solid #e8eef4;
}

.edit-post-modal__btn {
  min-width: 72px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 0 18px;
  cursor: pointer;
}

.edit-post-modal__btn--cancel {
  border: 1px solid #45A4E1;
  background: #fff;
  color: #45A4E1;
}

.edit-post-modal__btn--save {
  border: 0;
  background: #45A4E1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(69, 164, 225, .22);
}

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-page {
  min-height: calc(100vh - 40px);
  padding: 14px 0 40px;
  box-sizing: border-box;
}

.profile-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.profile-header-card {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(69, 164, 225, 0.20);
}

.profile-header-card__avatar-wrap {
  flex: 0 0 82px;
}

.profile-header-card__top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-header-card__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 128px;
}

.profile-header-card__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}

.profile-header-card__top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
}

.profile-header-card__name {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
}

.profile-header-card__username {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.2;
  color: #5e646d;
}

.profile-header-card__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.profile-header-card__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.profile-header-card__stat strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #111;
}

.profile-header-card__stat span {
  font-size: 14px;
  line-height: 1.2;
  color: #3f3f46;
}

.profile-header-card__action {
  width: 100%;
}

.profile-follow-btn {
  width: 100%;
  max-width: 300px;
  height: 37px;
  border: 0;
  border-radius: 18px;
  background: #45A4E1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.profile-follow-btn.is-following {
  background: #45A4E1;
  color: #fff;
}

.profile-header-card__info {
  margin-top: 12px;
}

.profile-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.profile-username {
  font-size: 13px;
  color: #7d838a;
  margin-top: 2px;
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-page {
  min-height: calc(100vh - 40px);
  padding: 14px 0 40px;
  box-sizing: border-box;
}

.single-post-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.single-post-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.single-post-topbar__back {
  text-decoration: none;
  color: #111;
  font-size: 22px;
  line-height: 1;
}

.single-post-topbar__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.single-post-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.single-post-card__author {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.single-post-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 42px;
}

.single-post-card__avatar--empty {
  background: #d8dde2;
}

.single-post-card__meta {
  min-width: 0;
}

.single-post-card__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.single-post-card__name {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.single-post-card__time {
  font-size: 13px;
  color: #666;
  line-height: 1.2;
}

.single-post-card__username a {
  color: #6f757d;
  text-decoration: none;
  font-size: 13px;
}

.single-post-card__actions {
  flex: 0 0 auto;
  position: relative;
}

.single-post-card__more {
  border: 0;
  background: transparent;
  color: #8f959b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.single-post-card__text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #222;
}

.single-post-card__media {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-post-card__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.single-post-card__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.single-post-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #50565d;
  font-size: 13px;
  border: 0;
  background: transparent;
  padding: 0;
}

.single-post-card__stat-icon {
  font-size: 16px;
  line-height: 1;
}

/* =============================================
   PEOPLE PAGE
   ============================================= */
.people-page {
  min-height: calc(100vh - 40px);
  padding: 18px 0 40px 56px;
  box-sizing: border-box;
}

.people-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}


.people-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.people-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.people-user__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.people-user__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 38px;
}

.people-user__avatar--empty {
  background: #d8dde2;
}

.people-user__meta {
  min-width: 0;
}

.people-user__name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.people-user__username {
  margin-top: 2px;
  font-size: 13px;
  color: #7d838a;
  line-height: 1.2;
}

.people-user__follow {
  min-width: 78px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid #d8e3ec;
  background: #fff;
  color: #45A4E1;
  font-size: 12px;
  font-weight: 500;
  padding: 0 14px;
  cursor: pointer;
}

.people-user__follow.is-following {
  background: #eaf4fb;
  border-color: #d8e9f8;
}

.people-user__self {
  font-size: 12px;
  color: #9aa1a8;
}

.people-empty {
  font-size: 13px;
  color: #8d949c;
  margin: 8px 0 0;
}

/* =============================================
   RESPONSIVE — 900px
   ============================================= */
@media (max-width: 900px) {
  .profile-page-top {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .profile-page-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .profile-page-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-page-name {
    font-size: 24px;
  }

  .profile-page-username {
    font-size: 16px;
  }
}

/* =============================================
   RESPONSIVE — 768px
   ============================================= */
@media (max-width: 768px) {
  .ck-sidebar {
    display: none !important;
  }

  .composer-dock {
    display: none !important;
  }

  .app-feed-page,
  .profile-page,
  .single-post-page,
  .people-page,
  .guest-feed {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 92px;
    padding-top: 72px !important;
  }

  .app-feed-shell,
  .profile-shell,
  .single-post-shell,
  .people-shell,
  .guest-feed__inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .feed-preview-card,
  .feed-post,
  .feed-card,
  .post-media-grid,
  .single-post-card__media {
    width: 100%;
    box-sizing: border-box;
  }

  .feed-preview-card img,
  .feed-post img,
  .post-media-grid img,
  .single-post-card__media img {
    max-width: 100%;
    display: block;
  }

  .ck-mobile-nav {
    display: flex;
    position: fixed;
    left: 8px;
    right: 72px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    z-index: 1200;
    align-items: center;
    justify-content: space-around;
  }

  body {
    padding-bottom: 90px;
  }
}

/* =============================================
   RESPONSIVE — 640px
   ============================================= */
@media (max-width: 640px) {
  .topbar,
  .profile-head-card,
  .user-card,
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav,
  .profile-actions {
    flex-wrap: wrap;
  }

  .tweet-card-inner {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .tweet-avatar {
    width: 44px;
    height: 44px;
  }

  .tweet-stats-row {
    gap: 16px;
    font-size: 14px;
  }

  .tweet-text,
  .tweet-text-full {
    font-size: 15px;
  }

  .app-feed-page {
    padding: 10px 12px 92px;
  }

  .composer-dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .composer-dock__form {
    max-width: none;
    gap: 10px;
  }

  .composer-dock__submit {
    min-width: 72px;
    padding: 0 16px;
  }

  .edit-post-modal__dialog {
    max-width: calc(100% - 24px);
    margin-top: 64px;
  }

  .edit-post-modal__media-item {
    width: calc(50% - 3px);
    height: 180px;
    flex: 0 0 calc(50% - 3px);
  }

  .people-page {
    padding: 18px 12px 40px 56px;
  }

  .people-shell {
    max-width: none;
  }
}

/* =============================================
   DELETE CONFIRM MODAL
   ============================================= */
.delete-confirm-modal[hidden] {
  display: none !important;
}

.delete-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.delete-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(2px);
}

.delete-confirm-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 220px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-align: center;
}

.delete-confirm-modal__title {
  padding: 22px 20px 8px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.delete-confirm-modal__text {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #737983;
}

.delete-confirm-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #edf1f5;
}

.delete-confirm-modal__btn {
  height: 52px;
  border: 0;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.delete-confirm-modal__btn + .delete-confirm-modal__btn {
  border-left: 1px solid #edf1f5;
}

.delete-confirm-modal__btn--cancel {
  color: #5f6670;
}

.delete-confirm-modal__btn--danger {
  color: #111;
  background: #f5fbff;
  font-weight: 600;
}

.delete-confirm-modal__btn:hover {
  background: #f8fafc;
}

.delete-confirm-modal__btn--danger:hover {
  background: #eaf6fe;
}

.feed-composer,
.post-composer,
.composer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feed-composer__media-btn,
.post-composer__media-btn,
.composer__media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.feed-composer__input,
.post-composer__input,
.composer__input,
.feed-composer textarea,
.post-composer textarea,
.composer textarea,
.feed-composer input,
.post-composer input,
.composer input {
  flex: 1 1 auto;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent;
  min-height: 24px;
  line-height: 24px;
  padding: 0;
  display: block;
}

.feed-composer__submit,
.post-composer__submit,
.composer__submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-composer textarea,
.post-composer textarea,
.composer textarea {
  padding-top: 0;
  padding-bottom: 0;
  resize: none;
}

@media (max-width: 767px) {
  .profile-header-card {
    padding: 0 0 14px;
  }

  .profile-header-card__top {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .profile-header-card__avatar {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 50%;
    object-fit: cover;
  }

  .profile-header-card__content {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0;
  }

  .profile-header-card__name {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 700;
  }

  .profile-header-card__username {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.15;
    color: #5e646d;
  }

  .profile-header-card__stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    flex-wrap: wrap;
  }

  .profile-header-card__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
  }

  .profile-header-card__stat strong {
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
  }

  .profile-header-card__stat span {
    font-size: 14px;
    line-height: 1.1;
    color: #3f3f46;
  }

  .profile-follow-btn {
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
    height: 36px;
    border-radius: 14px;
    font-size: 14px;
  }
}

.people-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.people-user__main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.people-user__avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 54px;
}

.people-user__avatar--empty {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #d9dde3;
  flex: 0 0 54px;
}

.people-user__meta {
  min-width: 0;
}

.people-follow-btn {
  flex: 0 0 auto;
  min-width: 80px;
  height: 32px;
  padding: 8px 20px;
  border-radius: 12px;
  border: 1px solid #d7e2eb;
  background: #eef6fb;
  color: #42a5f5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.people-follow-btn:hover {
  background: #e7f2f9;
  border-color: #cddbe6;
}

.people-follow-btn:disabled,
.people-follow-btn.is-loading {
  opacity: .7;
  cursor: default;
}

.people-follow-btn.is-following {
  background: #eef6fb;
  border-color: #d7e2eb;
  color: #42a5f5;
}

/* =========================================================
   CKLN POST CARD — repost info
========================================================= */

.ckln-post-card__repost-info {
    display: flex;
    align-items: center;
    gap: 6px;

    width: 100%;
    height: 22px;
    margin-bottom: 6px;
}

.ckln-post-card__repost-avatar {
    display: block;

    width: 22px;
    height: 22px;
    flex: 0 0 22px;

    object-fit: cover;
    border-radius: 90px;
}

.ckln-post-card__repost-avatar--empty {
    background: rgba(69, 164, 225, 0.12);
}

.ckln-post-card__repost-text {
    display: block;

    width: auto;
    max-width: calc(100% - 28px);
    height: 15px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-family: var(--ck-font-base, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;

    color: #000000;
}

.ckln-repost-compose-original {
    width: 100%;
    margin-top: 14px;
}

.ckln-repost-original-card {
    width: 100%;
    padding: 14px;
    border: 1px solid #DEE5EE;
    border-radius: 14px;
    background: #FFFFFF;
}

.ckln-repost-original-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ckln-repost-original-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 42px;
}

.ckln-repost-original-card__meta {
    min-width: 0;
}

.ckln-repost-original-card__line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ckln-repost-original-card__name {
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

.ckln-repost-original-card__time {
    font-size: 13px;
    color: rgba(0,0,0,.55);
}

.ckln-repost-original-card__username {
    display: block;
    font-size: 13px;
    color: rgba(0,0,0,.65);
    margin-top: 2px;
}

.ckln-repost-original-card__text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #000;
}

.ckln-repost-original-card__media {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 12px;
}

.ckln-repost-original-card__media-img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

#ckln-priest-profile-hero-01, .ckln-priest-profile-hero, .ckln-repost-original-card{
  background: none !important;
}

.ckln-priest-profile-hero__stat, .ckln-priest-profile-hero__tab{
  text-decoration: none !important;
}

.ckln-post-detail__comment-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ckln-post-detail__comment-user {
    min-width: 0;
}

.ckln-post-detail__comment-menu-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
}

.ckln-post-detail__comment-menu {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    color: rgba(15, 23, 42, 0.55);
}

.ckln-comment-dropdown {
    position: absolute;
    top: 28px;
    right: 0;
    z-index: 2000;
    width: 120px;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
}

.ckln-comment-dropdown[hidden] {
    display: none !important;
}

.ckln-comment-dropdown__item {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.ckln-comment-dropdown__item:hover {
    background: rgba(69, 164, 225, 0.10);
}

.ckln-comment-dropdown__item--delete {
    color: #d92d20;
}