:root {
  --aift-bg: #f3f4f6;
  --aift-card: #ffffff;
  --aift-text: #111827;
  --aift-muted: #6b7280;
  --aift-soft: #e5e7eb;
  --aift-soft2: #f0f2f5;
  --aift-blue: #2563eb;
  --aift-linkedin: #0a66c2;
  --aift-danger: #ef4444;
  --aift-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --aift-radius: 18px;
}

* {
  box-sizing: border-box;
}

body.aift-sheet-open {
  overflow: hidden;
}

/* MAIN FEED */

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

.aift-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aift-composer,
.aift-post-card {
  background: var(--aift-card);
  border: 1px solid var(--aift-soft);
  border-radius: var(--aift-radius);
  overflow: hidden;
}

.aift-post-card{
  margin-bottom:0!important;
  padding-bottom:0!important;
}

.aift-composer {
  margin-bottom: 14px;
  padding: 14px;
}

.aift-composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.aift-composer-avatar,
.aift-input-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2f7;
  flex: 0 0 auto;
}

.aift-composer textarea {
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--aift-soft);
  border-radius: 18px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  font: inherit;
  background: #fff;
}

.aift-composer textarea:focus {
  border-color: var(--aift-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.aift-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.aift-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--aift-soft);
  border-radius: 999px;
  color: var(--aift-text);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.aift-upload-btn input {
  display: none;
}

.aift-primary-btn {
  border: none;
  border-radius: 999px;
  background: var(--aift-blue);
  color: #fff;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.aift-primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.aift-primary-btn.wide {
  width: 100%;
  margin-top: 12px;
}

.aift-load-more {
  display: none;
  width: 100%;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--aift-soft);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.aift-feed-empty {
  padding: 18px;
  text-align: center;
  color: var(--aift-muted);
  background: #fff;
  border: 1px solid var(--aift-soft);
  border-radius: var(--aift-radius);
}

.aift-feed-empty.flat {
  border: none;
  background: transparent;
  border-radius: 0;
}

/* POST HEADER */

.aift-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.aift-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.aift-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f4f6;
  flex: 0 0 auto;
}

.aift-author-text {
  min-width: 0;
}

.aift-author-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.aift-author-name strong {
  color: var(--aift-text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.aift-author-text span {
  display: block;
  color: var(--aift-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.aift-verified,
.aift-mini-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--aift-blue);
  color: #fff;
  flex: 0 0 auto;
}

.aift-verified {
  width: 17px;
  height: 17px;
}

.aift-mini-verified {
  width: 14px;
  height: 14px;
}

.aift-verified svg,
.aift-mini-verified svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

.aift-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.aift-follow-btn {
  border: 1px solid rgba(10, 102, 194, 0.35);
  background: #fff;
  color: var(--aift-linkedin);
  font-weight: 900;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.aift-follow-btn:hover {
  background: #eef6ff;
  border-color: var(--aift-linkedin);
}

.aift-follow-btn:disabled {
  cursor: default;
  opacity: 0.95;
}

.aift-follow-btn.is-loading {
  background: #f8fafc;
  color: #64748b;
  border-color: #cbd5e1;
}

.aift-follow-btn.is-followed {
  background: #eafaf1;
  border-color: #16a34a;
  color: #15803d;
  animation: aiftFollowPop 520ms ease both;
}

.aift-follow-plus {
  font-size: 17px;
  line-height: 0;
  margin-top: -1px;
}

.aift-follow-check {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aift-follow-check svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

.aift-follow-loader {
  width: 13px;
  height: 13px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--aift-linkedin);
  border-radius: 50%;
  animation: aiftSpin 700ms linear infinite;
}

@keyframes aiftFollowPop {
  0% {
    transform: scale(0.92);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes aiftSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ICONS */

.aift-icon-btn,
.aift-action-btn {
  border: none;
  background: transparent;
  color: var(--aift-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aift-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.aift-icon-btn:hover,
.aift-action-btn:hover {
  background: #f3f4f6;
}

.aift-icon-btn svg,
.aift-action-btn svg,
.aift-sheet-option svg,
.aift-share-search svg,
.aift-share-actions svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.aift-icon-btn svg circle {
  fill: currentColor;
  stroke: none;
}

/* POST BODY */

.aift-post-text {
  padding: 0 14px 12px;
  color: var(--aift-text);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.aift-media-wrap {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  user-select: none;
}

.aift-post-media {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.aift-heart-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}

.aift-heart-overlay svg {
  width: 92px;
  height: 92px;
  fill: currentColor;
  stroke: currentColor;
}

.aift-heart-overlay.show {
  animation: aiftHeartPop 900ms ease forwards;
}

@keyframes aiftHeartPop {
  0% { opacity: 0; transform: scale(0.35); }
  18% { opacity: 1; transform: scale(1.18); }
  42% { transform: scale(0.94); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* POST ACTIONS */

.aift-post-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px 2px;
}

.aift-left-actions{
  display:flex;
  align-items:center;
  gap:18px;
}

.aift-action-btn{
  width:auto;
  height:34px;
  padding:0;
  border-radius:0;
  background:transparent;
}

.aift-action-btn.is-liked,
.aift-action-btn.liked,
.aift-like-btn.is-liked,
.aift-like-btn.liked{
  color:#ed4956!important;
}

.aift-action-btn.is-liked svg,
.aift-action-btn.liked svg,
.aift-like-btn.is-liked svg,
.aift-like-btn.liked svg{
  color:#ed4956!important;
  fill:#ed4956!important;
  stroke:#ed4956!important;
}

.aift-post-stats{
  display:none!important;
}

.aift-post-stats button,
.aift-post-stats span{
  display:inline-flex;
  align-items:center;
  gap:3px;
}

.aift-post-stats button {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--aift-text);
  cursor: pointer;
  font: inherit;
}

.aift-post-stats strong {
  color: var(--aift-text);
}

.aift-hidden {
  display: none !important;
}

/* OVERLAYS */

#aiftSheetBackdrop,
.aift-sheet-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  background: rgba(15, 23, 42, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#aiftSheetBackdrop.open,
.aift-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.aift-bottom-sheet {
  position: fixed !important;
  left: 50% !important;
  bottom: 0 !important;
  z-index: 2147483001 !important;
  width: min(680px, 100%);
  max-height: 88vh;
  transform: translate(-50%, 105%) !important;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--aift-shadow);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aift-bottom-sheet.open {
  transform: translate(-50%, 0) !important;
}

.aift-bottom-sheet.compact {
  max-height: 62vh;
}

.aift-sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 10px auto 6px;
}

.aift-sheet-head {
  min-height: 48px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--aift-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aift-sheet-head strong {
  font-size: 16px;
  color: var(--aift-text);
}

.aift-sheet-body {
  overflow-y: auto;
  padding: 12px 14px;
}

/* COMMENT SHEET + INLINE COMMENTS */

.aift-comments-body{
  padding-bottom:12px;
}

.aift-comments-topbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:0 0 14px;
}

.aift-comments-filter{
  border:none;
  background:transparent;
  color:#374151;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  padding:4px 0;
}

.aift-comments-preview{
  padding-bottom:10px;
}

.aift-comments-inline-container{
  display:block;
}

.aift-inline-comments{
  border-top:1px solid #eef0f3;
  padding:10px 14px 14px;
  background:#fff;
}

.aift-inline-comments-list{
  margin-bottom:8px;
}

/* INSTAGRAM STYLE COMMENTS */

.aift-fb-comment{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:18px;
}

.aift-fb-avatar{
  width:38px;
  height:38px;
  border-radius:999px;
  object-fit:cover;
  background:#f3f4f6;
  flex:0 0 auto;
}

.aift-fb-avatar.small{
  width:30px;
  height:30px;
}

.aift-fb-comment-content{
  flex:1;
  min-width:0;
}

.aift-fb-line{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.aift-fb-bubble,
.aift-fb-bubble.reply{
  background:transparent;
  border-radius:0;
  padding:0;
  max-width:100%;
}

.aift-fb-name-row{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-right:5px;
}

.aift-fb-name{
  font-size:14px;
  font-weight:800;
  color:#111;
  line-height:1.2;
}

.aift-fb-sub{
  display:inline;
  font-size:13px;
  color:#737373;
  margin:0;
}

.aift-fb-text{
  display:block;
  margin-top:3px;
  font-size:15px;
  line-height:1.35;
  color:#111;
  white-space:pre-wrap;
  word-break:break-word;
}

.aift-fb-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin:6px 0 0;
  font-size:13px;
  color:#737373;
}

.aift-fb-actions button{
  border:none;
  background:transparent;
  padding:0;
  font-weight:700;
  color:#737373;
  cursor:pointer;
}

.aift-fb-actions button.active{
  color:#ed4956;
}

.aift-comment-more{
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  color:#737373;
  border-radius:999px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:auto;
  opacity:.75;
}

.aift-comment-more:hover{
  background:transparent;
}

.aift-comment-more svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
}

.aift-comment-more svg circle{
  fill:currentColor;
  stroke:none;
}

.aift-heart-mini{
  display:inline-flex!important;
  align-items:center;
  gap:5px!important;
}

.aift-heart-mini svg{
  width:15px!important;
  height:15px!important;
  stroke:currentColor;
  fill:none;
}

.aift-heart-mini.active{
  color:#ed4956!important;
}

.aift-heart-mini.active svg{
  fill:currentColor!important;
  stroke:currentColor!important;
}

.aift-heart-mini.active span{
  color:#737373!important;
}

.aift-view-replies{
  border:none;
  background:transparent;
  color:#737373;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  margin:8px 0 0;
  padding:0;
}

.aift-view-replies::before{
  content:"";
  display:inline-block;
  width:38px;
  height:1px;
  background:#dbdbdb;
  vertical-align:middle;
  margin-right:12px;
}

.aift-fb-replies{
  position:relative;
  margin-top:10px;
  margin-left:0;
  padding-left:0;
}

.aift-fb-replies::before,
.aift-reply-connector{
  display:none!important;
}

/* COMMENT INPUT */

.aift-comment-footer {
  border-top: 1px solid var(--aift-soft);
  padding: 10px 12px;
  background: #fff;
}

.aift-reply-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.aift-reply-banner.show {
  display: flex;
}

.aift-reply-banner button {
  border: none;
  background: transparent;
  color: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}

.aift-comment-input-row,
.aift-inline-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.aift-comment-input-row input,
.aift-inline-input input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  background: var(--aift-soft2);
}

.aift-comment-input-row button,
.aift-inline-input button {
  border: none;
  background: var(--aift-blue);
  color: #fff;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
  cursor: pointer;
}

.aift-comment-input-row button:hover,
.aift-inline-input button:hover {
  background: #1d4ed8;
}

/* LIKES */

.aift-person-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  cursor: pointer;
}

.aift-person-row + .aift-person-row {
  border-top: 1px solid #f3f4f6;
}

.aift-person-row img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f4f6;
}

.aift-person-row strong {
  display: block;
  color: var(--aift-text);
  font-size: 14px;
}

.aift-person-row span {
  display: block;
  color: var(--aift-muted);
  font-size: 12px;
}

/* MENU */

.aift-menu-body {
  padding: 8px 12px 20px;
}

.aift-sheet-option {
  width: 100%;
  border: none;
  background: #fff;
  color: var(--aift-text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 14px;
}

.aift-sheet-option:hover {
  background: #f3f4f6;
}

.aift-sheet-option span {
  font-weight: 800;
}

.aift-sheet-option.danger {
  color: var(--aift-danger);
}

/* SHARE SHEET */

.aift-share-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--aift-soft2);
  border-radius: 999px;
  padding: 10px 13px;
  margin-bottom: 14px;
  color: #6b7280;
}

.aift-share-search svg {
  width: 18px;
  height: 18px;
}

.aift-share-search input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
}

.aift-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  margin-bottom: 14px;
}

.aift-share-user {
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: var(--aift-text);
  min-width: 0;
}

.aift-share-avatar-wrap {
  position: relative;
  display: inline-block;
}

.aift-share-user img {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2f7;
  border: 2px solid transparent;
}

.aift-share-user.selected img {
  border-color: var(--aift-blue);
}

.aift-share-user span:last-child {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aift-share-check {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--aift-blue);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aift-share-check svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

.aift-share-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 10px 0 12px;
}

.aift-share-actions button {
  border: 1px solid var(--aift-soft);
  background: #fff;
  border-radius: 14px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 800;
  color: var(--aift-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}

.aift-copy-link {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--aift-soft);
  border-radius: 14px;
  background: #f9fafb;
  color: var(--aift-muted);
  font-size: 12px;
  word-break: break-all;
}

/* REPOST */

.aift-repost-textarea {
  width: 100%;
  min-height: 118px;
  border: 1px solid var(--aift-soft);
  border-radius: 16px;
  padding: 12px;
  resize: vertical;
  outline: none;
  font: inherit;
}

.aift-repost-textarea:focus {
  border-color: var(--aift-blue);
}

/* TOAST */

.aift-feed-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 30px);
  z-index: 2147483002;
  background: #111827;
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: all 180ms ease;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
}

.aift-feed-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.aift-feed-toast.error {
  background: var(--aift-danger);
}

/* MOBILE */

@media (max-width: 720px) {
  .aift-feed-shell {
    max-width: none;
    margin: 0;
  }

  .aift-feed-list {
    gap: 8px;
  }

  .aift-composer {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 8px;
  }

  .aift-post-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .aift-post-header {
    padding: 10px 12px;
  }

  .aift-author-name strong {
    max-width: 145px;
  }

  .aift-author-text span {
    max-width: 165px;
  }

  .aift-post-media {
    max-height: 74vh;
  }

  .aift-post-actions {
    padding-left: 6px;
    padding-right: 6px;
  }

  .aift-post-stats {
    padding-left: 12px;
    padding-right: 12px;
  }

  .aift-bottom-sheet {
    width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
  }

  .aift-bottom-sheet.compact {
    max-height: 68vh;
  }

  .aift-comments-sheet,
  .comments-sheet {
    max-height: 92vh;
  }

  .aift-sheet-body {
    padding: 12px;
  }

  .aift-share-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .aift-share-user img {
    width: 54px;
    height: 54px;
  }

  .aift-comment-footer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* DESKTOP */

@media (min-width: 721px) {
  .aift-bottom-sheet,
  .share-sheet,
  .comments-sheet,
  .aift-bottom-sheet.compact {
    left: 50% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(.96) !important;
    opacity: 0;
    pointer-events: none;
    border-radius: 22px !important;
  }

  .aift-bottom-sheet.open,
  .share-sheet.open,
  .comments-sheet.open,
  .aift-bottom-sheet.compact.open {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
    pointer-events: auto;
  }

  .share-sheet {
    width: 560px !important;
    max-height: 82vh !important;
  }

  .comments-sheet {
    width: 620px !important;
    max-height: 84vh !important;
  }

  .aift-bottom-sheet.compact {
    width: 460px !important;
    max-height: 72vh !important;
  }

  .aift-sheet-handle {
    display: none;
  }
}
.aift-heart-mini {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

.aift-heart-mini svg {
  width: 13px !important;
  height: 13px !important;
  stroke: currentColor;
  fill: none;
}

.aift-heart-mini.active {
  color: #e11d48 !important;
}

.aift-heart-mini.active svg {
  fill: currentColor;
  stroke: currentColor;
}

.aift-view-replies {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  margin: 7px 0 2px 12px;
  padding: 2px 0;
}

.aift-view-replies.less {
  margin-left: 0;
}

.aift-fb-replies {
  display: block;
}
.aift-heart-mini.active svg {
  color: #e11d48 !important;
  fill: #e11d48 !important;
  stroke: #e11d48 !important;
}

.aift-heart-mini.active span {
  color: #6b7280 !important;
}

.aift-inline-reply-box {
  margin: 8px 0 4px 0;
  padding-left: 0;
}

.aift-inline-reply-box .aift-reply-banner {
  margin-left: 0;
}
.aift-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483005;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.aift-confirm-backdrop.show {
  display: flex;
}

.aift-confirm-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  padding: 24px;
  animation: aiftConfirmPop 180ms ease both;
}

.aift-confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.aift-confirm-icon.danger {
  background: #fff1f2;
  color: #e11d48;
}

.aift-confirm-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.aift-confirm-content h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
}

.aift-confirm-content p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
  font-size: 14px;
}

.aift-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.aift-confirm-cancel,
.aift-confirm-ok {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
  cursor: pointer;
}

.aift-confirm-cancel {
  background: #f3f4f6;
  color: #111827;
}

.aift-confirm-ok {
  background: #2563eb;
  color: #fff;
}

.aift-confirm-ok.danger {
  background: #e11d48;
}

.aift-confirm-ok:disabled {
  opacity: .65;
  cursor: not-allowed;
}

@keyframes aiftConfirmPop {
  from {
    opacity: 0;
    transform: scale(.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* === HARD FIX: MOBILE COMMENTS DRAWER === */
@media (max-width: 768px) {
  #aiftSheetBackdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
  }

  #aiftCommentsSheet {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 82vh !important;
    max-height: 82vh !important;
    transform: translateY(110%) !important;
    z-index: 2147483001 !important;
    border-radius: 22px 22px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
  }

  #aiftCommentsSheet.open {
    transform: translateY(0) !important;
  }

  #aiftCommentsBody {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 14px !important;
  }

  #aiftCommentsSheet .aift-comment-footer {
    flex: 0 0 auto !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }
}
/* =========================================================
   AIFT FEED PRODUCTION POLISH — SAFE OVERRIDE
   Keeps current feed.js behavior, improves design only.
========================================================= */

:root{
  --aift-bg:#f3f2ef;
  --aift-card:#ffffff;
  --aift-text:#191919;
  --aift-muted:#666666;
  --aift-soft:#d8d8d8;
  --aift-soft2:#f2f2f2;
  --aift-blue:#0a66c2;
  --aift-linkedin:#0a66c2;
  --aift-danger:#cc1016;
  --aift-shadow:0 1px 2px rgba(0,0,0,.08);
  --aift-radius:8px;
}

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

.aift-feed-list{
  gap:12px;
}

.aift-composer,
.aift-post-card{
  background:#fff;
  border:1px solid var(--aift-soft);
  border-radius:8px;
  box-shadow:var(--aift-shadow);
}

.aift-composer{
  padding:14px;
  margin-bottom:12px;
}

.aift-composer textarea{
  min-height:52px;
  border-radius:999px;
  background:#fff;
  resize:none;
  font-size:14px;
}

.aift-upload-btn,
.aift-primary-btn{
  border-radius:999px;
  font-size:14px;
  font-weight:800;
}

.aift-primary-btn{
  background:var(--aift-blue);
}

.aift-post-header{
  padding:12px 14px 8px;
  align-items:flex-start;
}

.aift-avatar{
  width:48px;
  height:48px;
}

.aift-author-name strong{
  font-size:14px;
  font-weight:800;
  color:#191919;
}

.aift-author-text span{
  font-size:12px;
  color:#666;
  max-width:320px;
}

.aift-follow-btn{
  color:var(--aift-blue);
  font-weight:900;
}

.aift-icon-btn:hover,
.aift-action-btn:hover{
  background:#f3f2ef;
}

.aift-post-text{
  padding:2px 14px 12px;
  font-size:14px;
  line-height:1.58;
  color:#222;
}

.aift-media-wrap{
  background:#000;
}

.aift-post-media{
  width:100%;
  max-height:720px;
  object-fit:cover;
}

.aift-post-actions{
  padding:4px 8px;
  border-top:1px solid #eee;
  display:flex;
  justify-content:space-between;
}

.aift-action-btn{
  width:42px;
  height:42px;
  border-radius:6px;
}

.aift-action-btn svg{
  width:22px;
  height:22px;
}

.aift-action-btn.is-liked,
.aift-action-btn.liked,
.aift-like-btn.is-liked,
.aift-like-btn.liked{
  color:#ed4956!important;
}

.aift-post-stats{
  padding:8px 14px 12px;
  font-size:13px;
  color:#666;
}

.aift-post-stats button{
  color:#666;
}

.aift-post-stats strong{
  color:#333;
}

.aift-inline-comments{
  border-top:1px solid #eee;
  padding:12px 14px 14px;
}

.aift-fb-bubble{
  background:#f2f3f5;
  border-radius:16px;
}

.aift-fb-name{
  font-size:13px;
  font-weight:800;
}

.aift-fb-sub{
  font-size:11px;
}

.aift-fb-text{
  font-size:13px;
  line-height:1.45;
}

.aift-fb-actions{
  margin-left:10px;
  gap:10px;
}

.aift-heart-mini svg{
  width:15px;
  height:15px;
}

.aift-bottom-sheet{
  border-radius:18px 18px 0 0;
}

.aift-sheet-head strong{
  font-size:16px;
  font-weight:800;
}

.aift-feed-toast{
  background:#111827;
  font-size:13px;
}

/* Desktop modal polish */
@media(min-width:721px){
  .aift-bottom-sheet,
  .share-sheet,
  .comments-sheet,
  .aift-bottom-sheet.compact{
    border-radius:14px!important;
    max-width:640px;
  }

  .comments-sheet{
    width:min(640px,calc(100% - 32px))!important;
  }

  .share-sheet{
    width:min(560px,calc(100% - 32px))!important;
  }
}

/* Mobile polish */
@media(max-width:720px){
  .aift-feed-shell{
    max-width:none;
    margin:0;
  }

  .aift-feed-list{
    gap:8px;
  }

  .aift-composer,
  .aift-post-card{
    border-radius:0;
    border-left:0;
    border-right:0;
  }

  .aift-post-header{
    padding:10px 12px 8px;
  }

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

  .aift-post-text{
    padding-left:12px;
    padding-right:12px;
  }

  .aift-post-media{
    max-height:74vh;
  }

  .aift-author-name strong{
    max-width:160px;
  }

  .aift-author-text span{
    max-width:190px;
  }
}
.aift-media-grid{
  display:grid;
  gap:4px;
  margin-top:8px;
}

.aift-media-grid.count-1{
  grid-template-columns:1fr;
}

.aift-media-grid.count-2,
.aift-media-grid.count-3,
.aift-media-grid.count-4,
.aift-media-grid.count-5,
.aift-media-grid.count-6,
.aift-media-grid.count-7,
.aift-media-grid.count-8,
.aift-media-grid.count-9,
.aift-media-grid.count-10{
  grid-template-columns:repeat(2,1fr);
}

.aift-media-grid .aift-post-media{
  width:100%;
  height:100%;
  max-height:520px;
  object-fit:cover;
  display:block;
}

.aift-media-grid.count-1 .aift-post-media{
  height:auto;
}

.aift-media-grid:not(.count-1) .aift-media-wrap{
  aspect-ratio:1/1;
  overflow:hidden;
  background:#000;
}

.aift-repost-card{
  margin:10px 14px 12px;
  border:1px solid #ddd;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.aift-repost-author{
  display:flex;
  gap:10px;
  padding:12px;
  cursor:pointer;
}

.aift-repost-author img{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
}

.aift-repost-author strong{
  display:block;
  font-size:14px;
  font-weight:800;
}

.aift-repost-author span{
  display:block;
  font-size:12px;
  color:#666;
  margin-top:2px;
}

.aift-repost-text{
  padding:0 12px 12px;
  font-size:14px;
  line-height:1.5;
  color:#222;
}
/* AIFT carousel + repost card */

.aift-carousel,
.aift-carousel-preview{
  position:relative;
  overflow:hidden;
  background:#000;
}

.aift-carousel-track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.aift-carousel-track::-webkit-scrollbar{
  display:none;
}

.aift-carousel-slide{
  flex:0 0 100%;
  width:100%;
  scroll-snap-align:center;
  background:#000;
}

.aift-carousel-slide img,
.aift-carousel-slide video,
.aift-carousel-preview img,
.aift-carousel-preview video{
  width:100%;
  max-height:620px;
  object-fit:cover;
  display:block;
}

.aift-carousel-dots{
  display:flex;
  justify-content:center;
  gap:5px;
  padding:8px 0;
  background:#fff;
}

.aift-carousel-dots span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#cbd5e1;
}

.aift-carousel-dots span.active{
  background:#0a66c2;
}

.aift-composer-preview{
  margin-top:10px;
  border-radius:12px;
  overflow:hidden;
}

.aift-repost-card{
  margin:10px 14px 12px;
  border:1px solid #ddd;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
}

.aift-repost-author{
  display:flex;
  gap:10px;
  padding:12px;
}

.aift-repost-author img{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
}

.aift-repost-author strong{
  display:block;
  font-size:14px;
  font-weight:800;
}

.aift-repost-author span{
  display:block;
  font-size:12px;
  color:#666;
}

.aift-repost-text{
  padding:0 12px 12px;
  font-size:14px;
  line-height:1.5;
}

.aift-repost-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:10px 12px;
  border-top:1px solid #eee;
  color:#666;
  font-size:12px;
}
.aift-save-btn.is-saved {
  color: #057642 !important;
}

.aift-save-btn.is-saved svg {
  fill: #057642 !important;
  stroke: #057642 !important;
}
@media(max-width:720px){
  .aift-post-stats{
    display:none!important;
    height:0!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }

  .aift-post-card{
    margin-bottom:0!important;
    padding-bottom:0!important;
    border-bottom:0!important;
  }

  .aift-post-actions{
    margin:0!important;
    padding:7px 16px!important;
    border:0!important;
    background:#fff!important;
  }

  .aift-feed-list{
    gap:0!important;
  }

  .aift-action-btn.is-liked,
  .aift-action-btn.liked,
  .aift-like-btn.is-liked,
  .aift-like-btn.liked,
  .aift-action-btn.is-liked svg,
  .aift-action-btn.liked svg,
  .aift-like-btn.is-liked svg,
  .aift-like-btn.liked svg{
    color:#ed4956!important;
    fill:#ed4956!important;
    stroke:#ed4956!important;
  }
}
/* =====================================================
   AIFT FEED — INSTAGRAM MOBILE POLISH
   Smaller icons, cleaner spacing, simple white style
===================================================== */

@media(max-width:720px){

  .aift-feed-list{
    gap:0!important;
  }

  .aift-post-card{
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
    border-top:0!important;
    border-bottom:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }

  .aift-post-header{
    padding:9px 12px 7px!important;
  }

  .aift-avatar{
    width:34px!important;
    height:34px!important;
  }

  .aift-author{
    gap:8px!important;
  }

  .aift-author-name strong{
    font-size:13px!important;
    font-weight:800!important;
    max-width:165px!important;
  }

  .aift-author-text span{
    font-size:11px!important;
    max-width:185px!important;
  }

  .aift-icon-btn{
    width:28px!important;
    height:28px!important;
  }

  .aift-icon-btn svg{
    width:18px!important;
    height:18px!important;
  }

  .aift-follow-btn{
    padding:5px 9px!important;
    font-size:11px!important;
  }

  .aift-post-text{
    padding:2px 12px 8px!important;
    font-size:13.5px!important;
    line-height:1.45!important;
  }

  .aift-media-wrap,
  .aift-carousel{
    border-radius:0!important;
    background:#000!important;
  }

  .aift-post-media,
  .aift-carousel-slide img,
  .aift-carousel-slide video{
    width:100%!important;
    max-height:620px!important;
    object-fit:cover!important;
    border-radius:0!important;
  }

  .aift-post-actions{
    padding:6px 12px 4px!important;
    border:0!important;
    background:#fff!important;
  }

  .aift-left-actions{
    gap:15px!important;
  }

  .aift-action-btn{
    height:28px!important;
    min-width:auto!important;
    padding:0!important;
    gap:4px!important;
    color:#262626!important;
    background:transparent!important;
  }

  .aift-action-btn svg{
    width:19px!important;
    height:19px!important;
    stroke-width:2!important;
  }

  .aift-action-btn strong{
    font-size:11px!important;
    font-weight:700!important;
    color:#555!important;
    line-height:1!important;
  }

  .aift-save-btn svg{
    width:19px!important;
    height:19px!important;
  }

  .aift-action-btn:hover{
    background:transparent!important;
  }

  .aift-action-btn.is-liked svg,
  .aift-action-btn.liked svg,
  .aift-like-btn.is-liked svg,
  .aift-like-btn.liked svg{
    color:#ed4956!important;
    fill:#ed4956!important;
    stroke:#ed4956!important;
  }

  .aift-post-stats{
    display:none!important;
  }

  .aift-carousel-dots{
    padding:6px 0!important;
  }

  .aift-carousel-dots span{
    width:5px!important;
    height:5px!important;
  }
}
/* =====================================================
   AIFT FEED — INSTAGRAM CONTINUOUS WHITE FEED
===================================================== */

@media(max-width:720px){

  body,
  .page,
  #feedMount,
  .aift-feed-shell,
  .aift-feed-list{
    background:#fff!important;
  }

  .aift-feed-list{
    gap:0!important;
  }

  .aift-post-card{
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }

  .aift-post-card + .aift-post-card{
    border-top:0!important;
  }

  .aift-post-header{
    padding-top:10px!important;
  }

  .aift-post-actions{
    border-bottom:0!important;
  }

  .aift-comments-inline-container{
    background:#fff!important;
  }

  .aift-inline-comments{
    border-top:0!important;
    background:#fff!important;
  }

  .aift-media-wrap,
  .aift-carousel{
    background:#fff!important;
  }
}
/* FACEBOOK STYLE MORE TEXT */

.aift-post-text{
  position:relative;
  font-size:13.5px!important;
  line-height:1.5!important;
  color:#222!important;
  word-break:break-word;
}

.aift-inline-more{
  display:inline;
  border:none;
  background:none;
  color:#65676b;
  font-size:inherit;
  font-weight:600;
  padding:0;
  margin-left:3px;
  cursor:pointer;
}
/* =====================================================
   FINAL CLEAN TEXT: FACEBOOK STYLE "... more"
===================================================== */

.aift-post-text{
  padding:4px 12px 8px!important;
  font-size:15px!important;
  line-height:1.35!important;
  color:#1c1e21!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow:visible!important;
  max-height:none!important;
}

.aift-inline-more{
  display:inline!important;
  border:0!important;
  background:transparent!important;
  color:#65676b!important;
  font:inherit!important;
  font-weight:500!important;
  padding:0!important;
  margin:0!important;
  cursor:pointer!important;
  vertical-align:baseline!important;
}
/* =====================================================
   AIFT COMMENTS — INSTAGRAM MOBILE SHEET
===================================================== */

@media(max-width:768px){

  #aiftCommentsSheet{
    height:86vh!important;
    max-height:86vh!important;
    border-radius:28px 28px 0 0!important;
    background:#fff!important;
  }

  #aiftCommentsSheet .aift-sheet-handle{
    width:48px!important;
    height:5px!important;
    background:#d1d5db!important;
    margin:10px auto 8px!important;
  }

  #aiftCommentsSheet .aift-sheet-head{
    min-height:56px!important;
    padding:10px 18px 14px!important;
    border-bottom:1px solid #eeeeee!important;
    justify-content:center!important;
    position:relative!important;
  }

  #aiftCommentsSheet .aift-sheet-head strong{
    font-size:18px!important;
    font-weight:800!important;
    color:#111!important;
  }

  #aiftCommentsSheet .aift-sheet-head .aift-icon-btn{
    position:absolute!important;
    right:14px!important;
    top:9px!important;
    width:38px!important;
    height:38px!important;
    color:#111!important;
    background:transparent!important;
  }

  #aiftCommentsBody{
    padding:14px 14px 110px!important;
    background:#fff!important;
  }

  #aiftCommentsSheet .aift-comment-footer{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:2147483002!important;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
    border-top:1px solid #eeeeee!important;
  }

  #aiftCommentsSheet .aift-comment-input-row{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    background:#fff!important;
  }

  #aiftCommentsSheet .aift-input-avatar{
    width:38px!important;
    height:38px!important;
    border-radius:50%!important;
  }

  #aiftCommentsSheet .aift-comment-input-row input{
    height:42px!important;
    border-radius:999px!important;
    background:#fff!important;
    border:1px solid #dbdbdb!important;
    padding:0 14px!important;
    font-size:15px!important;
  }

  #aiftCommentsSheet .aift-comment-input-row button{
    height:42px!important;
    border-radius:999px!important;
    padding:0 14px!important;
    background:#0a66c2!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
  }
}
/* =====================================================
   COMMENTS MOBILE FIX — BETTER BUBBLES + INPUT FOOTER
===================================================== */

@media(max-width:768px){

  /* make comment sheet body not hide behind input */
  #aiftCommentsBody{
    padding-bottom:125px!important;
  }

  /* fix gray comment bubble width */
  #aiftCommentsSheet .aift-fb-line{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 28px!important;
    column-gap:8px!important;
    width:100%!important;
  }

  #aiftCommentsSheet .aift-fb-bubble,
  #aiftCommentsSheet .aift-fb-bubble.reply{
    display:block!important;
    width:fit-content!important;
    min-width:150px!important;
    max-width:100%!important;
    background:#f1f2f4!important;
    border-radius:18px!important;
    padding:8px 12px!important;
  }

  #aiftCommentsSheet .aift-fb-text{
    margin-top:3px!important;
    display:block!important;
    word-break:break-word!important;
  }

  /* keep the three dots neat */
  #aiftCommentsSheet .aift-comment-more{
    width:26px!important;
    height:26px!important;
    margin-top:4px!important;
    justify-self:end!important;
  }

  /* fix bottom write-comment bar */
  #aiftCommentsSheet .aift-comment-footer{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
    border-top:1px solid #eee!important;
  }

  #aiftCommentsSheet .aift-comment-input-row{
    width:100%!important;
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr) auto!important;
    gap:8px!important;
    align-items:center!important;
  }

  #aiftCommentsSheet .aift-input-avatar{
    width:34px!important;
    height:34px!important;
  }

  #aiftCommentsSheet .aift-comment-input-row input{
    width:100%!important;
    min-width:0!important;
    height:40px!important;
    border-radius:999px!important;
    border:1px solid #dbdbdb!important;
    background:#fff!important;
    padding:0 13px!important;
    font-size:15px!important;
  }

  #aiftCommentsSheet .aift-comment-input-row button{
    width:auto!important;
    min-width:62px!important;
    height:40px!important;
    border-radius:999px!important;
    padding:0 13px!important;
    white-space:nowrap!important;
    background:#0a66c2!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
  }
}
.aift-view-more-comments{
  border:0!important;
  background:transparent!important;
  color:#737373!important;
  font-size:13px!important;
  font-weight:700!important;
  cursor:pointer!important;
  margin:10px 0 0 50px!important;
  padding:0!important;
}

.aift-view-more-comments::before{
  content:"";
  display:inline-block;
  width:38px;
  height:1px;
  background:#dbdbdb;
  vertical-align:middle;
  margin-right:12px;
}
@media (max-width: 768px){
  html.aift-sheet-open,
  body.aift-sheet-open{
    overflow:hidden !important;
    overscroll-behavior:none;
    touch-action:none;
  }

  .aift-bottom-sheet,
  .aift-bottom-sheet *{
    touch-action:auto;
  }

  .comments-sheet{
    max-height:88vh;
    height:88vh;
    overflow:hidden;
  }

  .comments-sheet .aift-sheet-body,
  .aift-comments-body{
    flex:1;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
}
/* PROFESSIONAL LINKEDIN-STYLE REPOST */

.aift-repost-banner{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-bottom:1px solid #eef0f3;
  color:#64748b;
  font-size:13px;
  background:#fff;
}

.aift-repost-banner svg{
  width:16px;
  height:16px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.2;
}

.aift-repost-banner strong{
  color:#374151;
  font-weight:900;
}

.aift-repost-banner span{
  color:#64748b;
  font-weight:700;
}

.aift-reposted-original{
  width:100%;
}

.aift-reposted-original > .aift-post-card{
  border:none !important;
  border-radius:0 !important;
  margin:0 !important;
  box-shadow:none !important;
}

.is-repost-post .aift-reposted-original{
  border-top:1px solid #eef0f3;
}

@media(max-width:720px){
  .aift-repost-banner{
    padding:9px 12px;
    font-size:12px;
  }
}
.aift-repost-original-card{
  margin:0 14px 12px;
  border:1px solid #d7dce2;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
  cursor:pointer;
}

.aift-repost-original-card:hover{
  background:#fafafa;
}

.aift-repost-original-header{
  padding:12px;
}

.aift-repost-original-card .aift-avatar{
  width:42px;
  height:42px;
}

.aift-repost-original-text{
  padding:0 12px 12px;
}

.aift-repost-original-card .aift-carousel{
  margin:0;
}

.aift-repost-original-card .aift-post-media{
  border-radius:0;
}

@media(max-width:720px){
  .aift-repost-original-card{
    margin:0 12px 12px;
    border-radius:8px;
  }
}
.aift-repost-banner{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:9px 14px!important;
  border-bottom:1px solid #eef0f3!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:13px!important;
  font-weight:700!important;
}

.aift-repost-banner svg{
  width:15px!important;
  height:15px!important;
  stroke:currentColor!important;
  fill:none!important;
}

.aift-repost-banner strong{
  color:#374151!important;
  font-weight:900!important;
}

.aift-repost-banner span{
  color:#64748b!important;
}
/* =========================
   CLEAN LINKEDIN STYLE REPOST
========================= */

.aift-repost-banner{
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 14px;
  border-bottom:1px solid #eef0f3;
  background:#fff;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.aift-repost-banner svg{
  width:17px;
  height:17px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.3;
}

.aift-repost-banner strong{
  color:#1f2937;
  font-weight:900;
}

.aift-repost-banner span{
  color:#64748b;
  font-weight:800;
}

.aift-repost-clean-box{
  margin:0 14px 12px;
  border:1px solid #d9dee7;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
  cursor:pointer;
}

.aift-repost-clean-box:hover{
  background:#fafafa;
}

.aift-repost-clean-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:12px;
}

.aift-repost-clean-box .aift-avatar{
  width:40px;
  height:40px;
}

.aift-repost-clean-box .aift-author-name strong{
  font-size:14px;
  max-width:160px;
}

.aift-repost-clean-box .aift-author-text span{
  font-size:12px;
  max-width:180px;
}

.aift-repost-clean-follow{
  border:none;
  padding:4px 2px;
  background:transparent;
  color:#0a66c2;
  font-size:14px;
  border-radius:0;
  flex-shrink:0;
}

.aift-repost-clean-follow:hover{
  background:transparent;
  color:#004182;
}

.aift-repost-clean-text{
  padding:0 12px 12px;
  font-size:14px;
  line-height:1.45;
  color:#111827;
  white-space:pre-wrap;
  word-break:break-word;
}

.aift-repost-clean-media{
  overflow:hidden;
}

.aift-repost-clean-box .aift-carousel{
  margin:0!important;
}

.aift-repost-clean-box .aift-post-media{
  border-radius:0!important;
  max-height:520px;
}

/* remove old repost styles */
.aift-reposted-original,
.aift-repost-original-card,
.aift-repost-wrap,
.aift-repost-card,
.insta-repost{
  all:unset;
}

@media(max-width:720px){
  .aift-repost-banner{
    padding:10px 12px;
    font-size:13px;
  }

  .aift-repost-clean-box{
    margin:0 12px 12px;
    border-radius:9px;
  }

  .aift-repost-clean-head{
    padding:11px 12px;
  }

  .aift-repost-clean-box .aift-author-name strong{
    max-width:145px;
  }

  .aift-repost-clean-box .aift-author-text span{
    max-width:155px;
  }

  .aift-repost-clean-box .aift-post-media{
    max-height:430px;
  }
}
.aift-single-post-bar{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:#fff;
  border:1px solid var(--aift-soft);
  border-radius:14px;
  margin-bottom:10px;
}

.aift-single-post-bar button{
  border:0;
  background:transparent;
  color:#0a66c2;
  font-weight:900;
  cursor:pointer;
  font-size:14px;
}

.aift-single-post-bar strong{
  font-size:16px;
  color:#111827;
}

@media(max-width:720px){
  .aift-single-post-bar{
    border-left:0;
    border-right:0;
    border-radius:0;
    margin-bottom:8px;
  }
}
.aift-infinite-sentinel{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.aift-video-wrap{
  position:relative;
  width:100%;
  background:#000;
}

.aift-feed-video{
  width:100%;
  max-height:78vh;
  object-fit:cover;
  background:#000;
  display:block;
}

.aift-video-sound{
  position:absolute;
  right:12px;
  bottom:12px;
  border:0;
  background:rgba(0,0,0,.55);
  color:#fff;
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  font-weight:900;
}

.aift-reel-viewer{
  position:fixed;
  inset:0;
  z-index:2147483600;
  background:#000;
  display:none;
}

.aift-reel-viewer.show{
  display:block;
}

body.aift-reel-open{
  overflow:hidden;
}

.aift-reel-track{
  height:100vh;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
}

.aift-reel-slide{
  position:relative;
  height:100vh;
  scroll-snap-align:start;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.aift-reel-video{
  width:100%;
  height:100%;
  object-fit:cover;
}

.aift-reel-close{
  position:fixed;
  top:14px;
  right:14px;
  z-index:3;
  border:0;
  background:rgba(0,0,0,.5);
  color:#fff;
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:26px;
}

.aift-reel-info{
  position:absolute;
  left:14px;
  bottom:28px;
  right:78px;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.5);
}

.aift-reel-info strong{
  font-size:15px;
  font-weight:900;
}

.aift-reel-info p{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.4;
}

.aift-reel-actions{
  position:absolute;
  right:12px;
  bottom:90px;
  display:grid;
  gap:18px;
}

.aift-reel-actions button{
  border:0;
  background:rgba(0,0,0,.35);
  color:#fff;
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
}

.aift-reel-actions svg{
  width:24px;
  height:24px;
  stroke:currentColor;
  fill:none;
}
.aift-video-sound{
  position:absolute;
  right:12px;
  bottom:12px;
  border:0;
  background:rgba(0,0,0,.58);
  color:#fff;
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  font-weight:900;
  pointer-events:none;
  backdrop-filter:blur(8px);
}

.aift-video-sound.is-on{
  background:rgba(255,255,255,.92);
  color:#111;
}

.aift-reel-viewer{
  position:fixed;
  inset:0;
  z-index:2147483600;
  background:#000;
  display:none;
  overflow:hidden!important;
}

.aift-reel-viewer.show{
  display:block;
}

html:has(body.aift-reel-open),
body.aift-reel-open{
  overflow:hidden!important;
  height:100%!important;
}

.aift-reel-track{
  height:100dvh!important;
  width:100%;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scroll-snap-type:y mandatory;
  scrollbar-width:none;
  overscroll-behavior:contain;
  background:#000;
}

.aift-reel-track::-webkit-scrollbar{
  display:none;
}

.aift-reel-slide{
  position:relative;
  height:100dvh!important;
  min-height:100dvh!important;
  width:100%;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  background:#000;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.aift-reel-video{
  width:100%;
  height:100%;
  object-fit:cover;
  background:#000;
}

.aift-reel-gradient{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to top, rgba(0,0,0,.72), transparent 42%),
    linear-gradient(to bottom, rgba(0,0,0,.42), transparent 22%);
}

.aift-reel-close{
  position:fixed;
  top:14px;
  right:14px;
  z-index:5;
  border:0;
  background:rgba(0,0,0,.48);
  color:#fff;
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:26px;
  display:grid;
  place-items:center;
}

.aift-reel-sound{
  position:absolute;
  left:14px;
  top:16px;
  z-index:3;
  border:0;
  background:rgba(0,0,0,.5);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  pointer-events:none;
  backdrop-filter:blur(8px);
}

.aift-reel-sound.is-on{
  background:rgba(255,255,255,.9);
  color:#111;
}

.aift-reel-sound-pop{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(.86);
  z-index:4;
  background:rgba(0,0,0,.68);
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  opacity:0;
  pointer-events:none;
}

.aift-reel-sound-pop.show{
  animation:aiftSoundPop .85s ease both;
}

@keyframes aiftSoundPop{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.82);}
  18%{opacity:1;transform:translate(-50%,-50%) scale(1);}
  72%{opacity:1;}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.04);}
}

.aift-reel-info{
  position:absolute;
  left:14px;
  right:82px;
  bottom:30px;
  z-index:3;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.65);
}

.aift-reel-author{
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:100%;
}

.aift-reel-author img{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.75);
}

.aift-reel-author strong{
  font-size:14px;
  font-weight:900;
}

.aift-reel-info p{
  margin:9px 0 0;
  font-size:13px;
  line-height:1.45;
  max-height:68px;
  overflow:hidden;
}

.aift-reel-actions{
  position:absolute;
  right:12px;
  bottom:92px;
  z-index:4;
  display:grid;
  gap:18px;
}

.aift-reel-actions button{
  border:0;
  background:transparent;
  color:#fff;
  display:grid;
  place-items:center;
  gap:4px;
  font-size:11px;
  font-weight:900;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}

.aift-reel-actions svg{
  width:29px;
  height:29px;
  stroke:currentColor;
  fill:none;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.45));
}

.aift-reel-actions button.is-liked{
  color:#ed4956;
}

.aift-reel-actions button.is-liked svg{
  fill:#ed4956;
  stroke:#ed4956;
}

@media(max-width:720px){
  .aift-reel-close{
    top:10px;
    right:10px;
  }

  .aift-reel-info{
    bottom:24px;
  }

  .aift-reel-actions{
    bottom:86px;
  }
}
html.aift-reel-lock,
body.aift-reel-open{
  overflow:hidden!important;
  height:100%!important;
  overscroll-behavior:none!important;
}

body.aift-reel-open{
  touch-action:none;
}

.aift-reel-viewer,
.aift-reel-viewer *{
  box-sizing:border-box;
}

.aift-reel-viewer{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  background:#000!important;
  display:none;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

.aift-reel-viewer.show{
  display:block!important;
}

.aift-reel-track{
  position:absolute!important;
  inset:0!important;
  height:100dvh!important;
  width:100vw!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}

.aift-reel-track::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

.aift-reel-slide{
  height:100dvh!important;
  min-height:100dvh!important;
  width:100vw!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  overflow:hidden!important;
  position:relative;
  background:#000;
}

.aift-reel-actions button.is-saved{
  color:#facc15!important;
  transform:scale(1.12);
}

.aift-reel-caption-row{
  display:flex;
  align-items:flex-end;
  gap:8px;
}

.aift-reel-caption-row p{
  flex:1;
}

.aift-reel-more{
  border:0;
  background:transparent;
  color:#fff;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}

.aift-reel-more svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
}

.aift-reel-panel-backdrop{
  position:fixed;
  inset:0;
  z-index:2147483605;
  background:rgba(0,0,0,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}

.aift-reel-panel-backdrop.show{
  opacity:1;
  pointer-events:auto;
}

.aift-reel-panel{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translate(-50%,105%);
  z-index:2147483610;
  width:min(100%,520px);
  max-height:72dvh;
  background:#fff;
  color:#111;
  border-radius:20px 20px 0 0;
  box-shadow:0 -18px 50px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition:transform .24s ease;
  touch-action:auto;
}

.aift-reel-panel.show{
  transform:translate(-50%,0);
}

.aift-reel-panel-handle{
  width:40px;
  height:4px;
  border-radius:999px;
  background:#dbdbdb;
  margin:10px auto 6px;
}

.aift-reel-panel-head{
  height:46px;
  padding:0 14px;
  border-bottom:1px solid #efefef;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.aift-reel-panel-head strong{
  font-size:16px;
  font-weight:800;
  color:#111;
}

.aift-reel-panel-head button{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#111;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
}

.aift-reel-panel-head button svg{
  width:21px;
  height:21px;
  stroke:currentColor;
  fill:none;
}

.aift-reel-comments-list{
  flex:1;
  overflow-y:auto;
  padding:14px 14px 8px;
  background:#fff;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

.aift-reel-comments-list::-webkit-scrollbar{
  width:0;
  display:none;
}

.aift-reel-comment-footer{
  border-top:1px solid #efefef;
  background:#fff;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  display:flex;
  align-items:center;
  gap:9px;
}

.aift-reel-comment-footer img{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
}

.aift-reel-comment-footer input{
  flex:1;
  border:0;
  outline:0;
  background:#f5f5f5;
  border-radius:999px;
  padding:11px 14px;
  font-size:14px;
}

.aift-reel-comment-footer button{
  border:0;
  background:transparent;
  color:#0095f6;
  font-weight:800;
  font-size:14px;
}

.aift-reel-share-grid,
.aift-reel-options{
  display:grid;
  gap:8px;
  padding:14px;
}

.aift-reel-share-grid{
  grid-template-columns:repeat(3,1fr);
}

.aift-reel-share-grid button,
.aift-reel-options button{
  border:0;
  background:#fff;
  color:#111;
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 10px;
  border-radius:14px;
  font-weight:800;
  text-align:left;
}

.aift-reel-share-grid button{
  flex-direction:column;
  justify-content:center;
  border:1px solid #efefef;
}

.aift-reel-share-grid svg,
.aift-reel-options svg{
  width:23px;
  height:23px;
  stroke:currentColor;
  fill:none;
}

.aift-reel-options button:hover,
.aift-reel-share-grid button:hover{
  background:#f7f7f7;
}

.aift-reel-options button.danger{
  color:#ed4956;
}

.aift-reel-copy-link{
  margin:0 14px 14px;
  padding:12px;
  background:#f7f7f7;
  color:#737373;
  border-radius:12px;
  font-size:12px;
  word-break:break-all;
}
/* BLACK INSTAGRAM-STYLE REEL COMMENTS */

.aift-reel-panel{
  background:#000!important;
  color:#fff!important;
  border-radius:22px 22px 0 0!important;
}

.aift-reel-panel-head{
  background:#000!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
}

.aift-reel-panel-head strong,
.aift-reel-panel-head button{
  color:#fff!important;
}

.aift-reel-comments-list{
  background:#000!important;
  color:#fff!important;
}

.aift-reel-comments-list .aift-fb-name,
.aift-reel-comments-list .aift-fb-text{
  color:#fff!important;
}

.aift-reel-comments-list .aift-fb-sub,
.aift-reel-comments-list .aift-fb-actions,
.aift-reel-comments-list .aift-fb-actions button{
  color:#a8a8a8!important;
}

.aift-reel-comment-footer{
  background:#000!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
}

.aift-reel-comment-footer input{
  background:#1c1c1e!important;
  color:#fff!important;
}

.aift-reel-comment-footer input::placeholder{
  color:#8e8e93!important;
}

.aift-reel-sound{
  pointer-events:auto!important;
}

.aift-reel-actions button{
  cursor:pointer;
}

.aift-reel-actions button.is-saved{
  color:#facc15!important;
}

.aift-reel-actions button.is-saved svg{
  fill:#facc15!important;
  stroke:#facc15!important;
}
/* ==========================================
   REEL COMMENTS DARK MODE
========================================== */

#aiftReelPanel{
  background:#000 !important;
  color:#fff !important;
}

#aiftReelPanel .aift-reel-panel-head{
  background:#000 !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}

#aiftReelPanel .aift-reel-panel-head strong{
  color:#fff !important;
}

#aiftReelPanel .aift-reel-comments-list{
  background:#000 !important;
}

#aiftReelPanel .aift-fb-name{
  color:#fff !important;
}

#aiftReelPanel .aift-fb-text{
  color:#fff !important;
}

#aiftReelPanel .aift-fb-sub,
#aiftReelPanel .aift-fb-actions,
#aiftReelPanel .aift-fb-actions button{
  color:#9ca3af !important;
}

#aiftReelPanel .aift-reel-comment-footer{
  background:#000 !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
}

#aiftReelPanel .aift-reel-comment-footer input{
  background:transparent !important;
  color:#fff !important;
  border:none !important;
}

#aiftReelPanel .aift-reel-comment-footer input::placeholder{
  color:#9ca3af !important;
}
/* FINAL FIX — REELS RIGHT SIDE ACTIONS */

.aift-reel-actions{
  position:absolute!important;
  right:12px!important;
  bottom:92px!important;
  z-index:50!important;

  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:16px!important;

  width:auto!important;
  overflow:visible!important;
}

.aift-reel-actions button{
  width:auto!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;

  border:0!important;
  background:transparent!important;
  color:#fff!important;

  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;

  overflow:visible!important;
}

.aift-reel-actions .aift-reel-sound{
  position:static!important;
  width:auto!important;
  min-width:76px!important;
  height:34px!important;
  min-height:34px!important;

  padding:0 12px!important;
  border-radius:999px!important;

  background:rgba(0,0,0,.55)!important;
  color:#fff!important;

  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;

  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;

  pointer-events:auto!important;
  white-space:nowrap!important;
}

.aift-reel-actions .aift-reel-sound.is-on{
  background:rgba(255,255,255,.92)!important;
  color:#111!important;
}
/* ==========================================
   REEL COMMENTS FORCE DARK MODE
========================================== */

#aiftReelPanel,
#aiftReelPanel *{
  color:#fff;
}

#aiftReelPanel .aift-fb-comment,
#aiftReelPanel .aift-fb-comment-card,
#aiftReelPanel .aift-fb-comment-item,
#aiftReelPanel .aift-fb-row,
#aiftReelPanel .aift-fb-bubble{
  background:transparent !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.08) !important;
}

#aiftReelPanel .aift-fb-name,
#aiftReelPanel .aift-fb-text{
  color:#fff !important;
}

#aiftReelPanel .aift-fb-sub,
#aiftReelPanel .aift-fb-actions,
#aiftReelPanel .aift-fb-actions button{
  color:#9ca3af !important;
}

#aiftReelPanel .aift-fb-text a,
#aiftReelPanel .aift-fb-name a{
  color:#fff !important;
}

#aiftReelPanel .aift-fb-reply,
#aiftReelPanel .aift-fb-replies{
  background:transparent !important;
}

#aiftReelPanel textarea,
#aiftReelPanel input{
  color:#fff !important;
}
.aift-reel-sound{
  display:none!important;
}

.aift-reel-sound-pop{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%) scale(.86)!important;

  min-width:92px!important;
  height:42px!important;
  padding:0 14px!important;
  border-radius:999px!important;

  background:rgba(0,0,0,.62)!important;
  backdrop-filter:blur(10px)!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;

  opacity:0!important;
  pointer-events:none!important;
  z-index:80!important;
}

.aift-reel-sound-pop.show{
  animation:aiftReelSoundPop 1s ease forwards!important;
}

@keyframes aiftReelSoundPop{
  0%{
    opacity:0;
    transform:translate(-50%,-50%) scale(.82);
  }
  15%{
    opacity:1;
    transform:translate(-50%,-50%) scale(1);
  }
  70%{
    opacity:1;
  }
  100%{
    opacity:0;
    transform:translate(-50%,-50%) scale(1.05);
  }
}
/* FINAL CLEAN REEL PLAY + SOUND UI */

.aift-reel-sound{
  display:none!important;
}

.aift-reel-play-indicator{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:90!important;

  width:72px!important;
  height:72px!important;
  border-radius:50%!important;
  background:rgba(0,0,0,.55)!important;
  backdrop-filter:blur(10px)!important;

  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  pointer-events:none!important;
}

.aift-reel-play-indicator::before{
  content:""!important;
  width:0!important;
  height:0!important;
  border-top:16px solid transparent!important;
  border-bottom:16px solid transparent!important;
  border-left:24px solid #fff!important;
  margin-left:6px!important;
}

.aift-reel-play-indicator.show{
  display:flex!important;
}

.aift-reel-sound-pop{
  position:absolute!important;
  left:50%!important;
  top:calc(50% + 58px)!important;
  transform:translateX(-50%)!important;

  min-width:92px!important;
  height:38px!important;
  padding:0 14px!important;
  border-radius:999px!important;

  background:rgba(0,0,0,.62)!important;
  backdrop-filter:blur(10px)!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;

  opacity:0!important;
  pointer-events:none!important;
  z-index:91!important;
}

.aift-reel-sound-pop.show{
  opacity:1!important;
  pointer-events:auto!important;
}

.aift-reel-sound-pop:not(.is-paused).show{
  animation:aiftReelSoundFade 1.15s ease forwards!important;
}

@keyframes aiftReelSoundFade{
  0%{opacity:0;}
  15%{opacity:1;}
  70%{opacity:1;}
  100%{opacity:0;}
}
.aift-video-wrap{
  position:relative!important;
}

.aift-video-sound{
  position:absolute!important;
  right:12px!important;
  bottom:12px!important;
  z-index:20!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
}

.aift-reel-comment-footer{
  display:block!important;
}

.aift-reel-comment-row{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}

#aiftReelReplyBanner.show{
  display:flex!important;
  margin-bottom:8px!important;
}
#aiftReelReplyBanner{
  background:transparent!important;
  color:#111!important;
  border:0!important;
  border-radius:0!important;
  padding:0 2px 8px!important;
  margin:0!important;
  font-size:13px!important;
}

#aiftReelReplyBanner.show{
  display:flex!important;
}

#aiftReelReplyBanner button{
  background:transparent!important;
  color:#0a66c2!important;
  border:0!important;
}
.aift-feed-video,
.aift-reel-slide{
  touch-action: manipulation!important;
}

.aift-video-sound,
.aift-reel-sound-pop,
.aift-reel-actions,
.aift-reel-close,
.aift-reel-author{
  touch-action: manipulation!important;
}
.aift-reel-heart-overlay{
  z-index:120!important;
  color:#fff!important;
}

#aiftReelPanel{
  height:min(62dvh,560px)!important;
  max-height:min(62dvh,560px)!important;
}

body.aift-reel-keyboard #aiftReelPanel{
  height:46dvh!important;
  max-height:46dvh!important;
}

#aiftReelPanel .aift-reel-comments-list{
  flex:1 1 auto!important;
  overflow-y:auto!important;
  padding-bottom:12px!important;
}

#aiftReelPanel .aift-reel-comment-footer{
  flex:0 0 auto!important;
  position:relative!important;
  bottom:auto!important;
}

#aiftReelPanel .aift-comment-more{
  pointer-events:auto!important;
  z-index:5!important;
  color:#9ca3af!important;
}

#aiftReelPanel .aift-reel-options{
  display:grid!important;
  gap:8px!important;
  padding:14px!important;
  background:#000!important;
}

#aiftReelPanel .aift-reel-options button{
  width:100%!important;
  min-height:48px!important;
  border:0!important;
  border-radius:14px!important;
  background:#111!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  padding:12px 14px!important;
  font-weight:800!important;
  text-align:left!important;
}

#aiftReelPanel .aift-reel-options button svg{
  width:22px!important;
  height:22px!important;
  stroke:currentColor!important;
  fill:none!important;
}

#aiftReelPanel .aift-reel-options button.danger{
  color:#ed4956!important;
}
#aiftReelShareBody{
  background:#000!important;
  color:#fff!important;
}

#aiftReelShareBody .aift-share-search{
  background:#111!important;
  color:#fff!important;
}

#aiftReelShareBody .aift-share-search input{
  color:#fff!important;
}

#aiftReelShareBody .aift-share-search input::placeholder{
  color:#aaa!important;
}

#aiftReelShareBody .aift-share-user{
  color:#fff!important;
}

#aiftReelShareBody .aift-share-actions button{
  background:#111!important;
  color:#fff!important;
  border:1px solid #2a2a2a!important;
}

#aiftReelShareBody .aift-copy-link{
  background:#111!important;
  color:#fff!important;
  border:1px solid #2a2a2a!important;
}
.aift-feed-loading{
  min-height:120px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
}

.aift-spinner{
  width:28px!important;
  height:28px!important;
  border:3px solid #e5e7eb!important;
  border-top-color:#0a66c2!important;
  border-radius:50%!important;
  display:inline-block!important;
  animation:aiftSpin .75s linear infinite!important;
}

#aiftInfiniteSentinel{
  background:#fff!important;
}

#aiftInfiniteSentinel span:not(.aift-spinner){
  font-size:0!important;
}
html.aift-sheet-open,
body.aift-sheet-open{
  scroll-behavior:auto!important;
  overflow:hidden!important;
}
#aiftFeedList .aift-feed-loading{
  min-height:55vh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

#aiftInfiniteSentinel{
  display:none!important;
}

.aift-feed-list:has(.aift-feed-loading) + #aiftInfiniteSentinel{
  display:none!important;
}
/* === FINAL FIX: REELS OVERLAY CLOSE / MOBILE ONLY === */
.aift-reel-viewer{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  background:#000!important;
  display:none;
  opacity:0;
  visibility:visible;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  transition:none!important;
  will-change:opacity;
}

.aift-reel-viewer.show{
  display:block!important;
}

html.aift-reel-lock,
body.aift-reel-open{
  overflow:hidden!important;
  height:100%!important;
  overscroll-behavior:none!important;
}

body.aift-reel-open{
  touch-action:none;
}
/* === FINAL MOBILE REELS CLOSE FIX === */
html.aift-reel-lock{
  scroll-behavior:auto!important;
}

body.aift-reel-open{
  scroll-behavior:auto!important;
}

.aift-reel-viewer{
  transition:none!important;
}

.aift-reel-viewer.show{
  opacity:1!important;
  visibility:visible!important;
  display:block!important;
}

/* Employer mobile first paint: reveal the dashboard only after its complete
   mobile layout is ready, preventing desktop/mobile layout shifts. */
@media(max-width:760px){
  html[data-employer-theme]:not(.aift-employer-mobile-ready) body{
    visibility:hidden!important;
  }

  html[data-employer-theme].aift-employer-mobile-ready body{
    visibility:visible!important;
  }

  html[data-employer-theme]:not(.aift-employer-mobile-interactive) .tabs.employer-sidebar{
    transition:none!important;
  }
}


/* Compact AIFT Family feed card */
.aift-family-feed-card{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  align-items:center;
  gap:13px;
  margin:12px 0;
  padding:15px 46px 15px 15px;
  overflow:hidden;
  border:1px solid rgba(16,185,129,.2);
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 0%,rgba(250,204,21,.2),transparent 35%),
    linear-gradient(135deg,#f0fdf8 0%,#eff8ff 55%,#fff7ed 100%);
  box-shadow:0 7px 22px rgba(15,118,110,.09);
  color:#102a2a;
}

.aift-family-feed-card::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-26px;
  bottom:-48px;
  width:116px;
  height:116px;
  border-radius:50%;
  background:rgba(14,165,233,.09);
}

.aift-family-feed-mark{
  position:relative;
  width:54px;
  height:54px;
  border-radius:17px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(145deg,#13b8a6,#0877bd);
  box-shadow:0 8px 18px rgba(8,119,189,.22);
}

.aift-family-feed-mark svg{
  width:34px;
  height:34px;
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-width:2.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.aift-family-feed-mark i{
  position:absolute;
  right:-3px;
  top:-3px;
  width:12px;
  height:12px;
  border:3px solid #f0fdf8;
  border-radius:50%;
  background:#facc15;
}

.aift-family-feed-copy{
  min-width:0;
}

.aift-family-feed-kicker{
  display:block;
  margin-bottom:3px;
  color:#07846e;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}

.aift-family-feed-copy strong{
  display:block;
  padding-right:2px;
  color:#12202f;
  font-size:16px;
  line-height:1.22;
}

.aift-family-feed-copy p{
  margin:4px 0 10px;
  color:#5b6875;
  font-size:12px;
  line-height:1.38;
}

.aift-family-feed-copy button{
  min-height:32px;
  padding:0 16px;
  border:0;
  border-radius:999px;
  background:#0a7d67;
  color:#fff;
  font:800 12px/1 Inter,Arial,sans-serif;
  box-shadow:0 4px 10px rgba(10,125,103,.18);
}

.aift-family-feed-close{
  position:absolute;
  top:8px;
  right:9px;
  width:29px;
  height:29px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.72);
  color:#607080;
  font-size:20px;
  line-height:1;
}

@media (max-width:768px){
  .aift-family-feed-card{
    margin:10px 8px;
    border-radius:17px;
    padding:13px 44px 13px 13px;
  }

  .aift-family-feed-copy strong{
    font-size:15px;
  }
}


/* Reels must cover dashboard navigation on every account page. */
body.aift-reel-open .mobile-nav,
body.aift-reel-open .mobile-create,
body.aift-reel-open .bottom-nav,
body.aift-reel-open .mobile-bottom-nav,
body.aift-reel-open [class*="bottom-nav"],
body.aift-reel-open [class*="mobile-nav"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

body.aift-reel-open{
  padding-bottom:0!important;
}


/* Keep feed scrolling functional without a visible browser scrollbar. */
html.aift-feed-scrollbarless,
body.aift-feed-scrollbarless{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}

html.aift-feed-scrollbarless::-webkit-scrollbar,
body.aift-feed-scrollbarless::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

.aift-feed-list,
.aift-reel-track{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}

.aift-feed-list::-webkit-scrollbar,
.aift-reel-track::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}
