body.pos-page {
  background: #0a0a0a;
  color: #f3f4f6;
}

html.pos-modal-open,
body.pos-modal-open,
html.notif-open,
body.notif-open {
  overflow: hidden !important;
  touch-action: none;
}

.pos-page .main-content {
  padding: 0 0 96px;
  min-height: 100vh;
}

.pos-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 12px 0;
}

.pos-header-create-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 184, 0, 0.12)) !important;
  border-color: rgba(255, 215, 0, 0.45) !important;
  color: #ffd700 !important;
}

.pos-header-create-btn:hover,
.pos-header-create-btn:focus {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.28), rgba(255, 184, 0, 0.2)) !important;
  border-color: rgba(255, 215, 0, 0.6) !important;
  color: #fff !important;
}

.pos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-topbar-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f3f4f6;
}

.pos-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pos-topbar .notif-bell-wrap,
.mobile-header .notif-bell-wrap {
  position: relative;
}

.pos-topbar .icon-btn-head,
.mobile-header .notif-bell-wrap .mobile-header-action {
  position: relative;
}

.pos-topbar .icon-btn-head {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffd700;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pos-topbar .icon-btn-head:hover,
.pos-topbar .icon-btn-head.is-active {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  color: #fff;
}

.dash-head-cart__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

.dash-head-cart .js-pending-pay-badge {
  background: #ff9800;
  color: #000;
}

.mobile-header .notif-bell-wrap .notif-unread-dot {
  top: -2px;
  right: -2px;
}

.mobile-header .notif-panel-card {
  right: 0;
  left: auto;
  z-index: 1085;
}

@media (max-width: 991px) {
  .mobile-header .notif-panel-card {
    position: fixed;
    top: calc(var(--mobile-header-row1-h, 60px) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--mobile-header-row1-h, 60px) - 24px);
    overflow: hidden;
    display: none;
    flex-direction: column;
  }

  .mobile-header .notif-panel-card[style*="display: block"] {
    display: flex !important;
  }

  .mobile-header .notif-panel-card .notif-list-wrap {
    flex: 1;
    min-height: 0;
    max-height: none;
    overscroll-behavior: contain;
  }
}

.pos-create-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #111;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pos-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pos-post {
  background: #121212;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  overflow: hidden;
}

.pos-post.is-deep-link-target {
  position: relative;
  z-index: 3;
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.45);
  animation: pos-deep-link-pulse 0.7s ease-in-out 2;
}

@keyframes pos-deep-link-pulse {
  0%, 100% {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.28);
  }
  50% {
    border-color: rgba(255, 215, 0, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pos-post.is-deep-link-target {
    animation: none;
  }
}

.pos-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.pos-carousel-coin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1400;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 184, 0, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.pos-carousel-coin-badge i {
  font-size: 0.78rem;
}

.pos-grant-member {
  color: #cbd5e1;
}

.pos-grant-coin-btn-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pos-grant-coin-btn-bg:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.55);
}

.pos-grant-coin-btn-bg .pos-grant-coin-btn {
  width: 100%;
  height: 100%;
  color: #ffd700;
  font-size: 1rem;
}

.pos-grant-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.06);
}

.pos-grant-preview-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pos-grant-preview-member {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pos-grant-preview-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
}

.pos-grant-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 2px;
}

.pos-grant-preview-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.pos-grant-preview-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

.pos-grant-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 6px 0 14px;
}

.pos-post-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.pos-post-menu-btn-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pos-post-menu-wrap.is-open .pos-post-menu-btn-bg,
.pos-post-menu-btn-bg:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.pos-post-menu-btn-bg .pos-post-menu-btn {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-post-menu-btn-bg .pos-post-menu-btn i {
  font-size: 1.15rem;
}

.pos-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}

.pos-post-meta {
  min-width: 0;
  flex: 1;
}

.pos-post-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-post-date {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 2px;
}

.pos-carousel {
  position: relative;
  background: #000;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.pos-carousel.is-dragging {
  touch-action: none;
  cursor: grabbing;
}

.pos-carousel-nav,
.pos-carousel-dots {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pos-carousel:hover .pos-carousel-nav,
.pos-carousel:hover .pos-carousel-dots,
.pos-carousel:focus-within .pos-carousel-nav,
.pos-carousel:focus-within .pos-carousel-dots,
.pos-carousel.is-active .pos-carousel-nav,
.pos-carousel.is-active .pos-carousel-dots {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pos-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pos-carousel-nav:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

.pos-carousel:hover .pos-carousel-nav:disabled,
.pos-carousel.is-active .pos-carousel-nav:disabled {
  visibility: visible;
}

.pos-carousel-prev {
  left: 10px;
}

.pos-carousel-next {
  right: 10px;
}

.pos-carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.pos-carousel.is-dragging .pos-carousel-track {
  transition: none;
}

.pos-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
}

.pos-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  cursor: zoom-in;
}

.pos-slide-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.88;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pos-slide-expand:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: scale(1.05);
}

.pos-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.pos-carousel-float {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.pos-float-chip {
  pointer-events: auto;
  min-width: 52px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pos-float-chip > i {
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.pos-float-chip .pos-like-count,
.pos-float-chip .pos-comment-count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 10px;
  text-align: left;
}

.pos-carousel:has(.pos-carousel-dots) .pos-carousel-float {
  bottom: 12px;
}

.pos-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.pos-carousel-dot.is-active {
  background: #ffd700;
  transform: scale(1.15);
}

.pos-post-menu-wrap {
  position: relative;
}

.pos-post-menu-btn i {
  font-size: 1.15rem;
}

.pos-post-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #151515;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.pos-post-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: #f3f4f6;
  font-size: 0.86rem;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.pos-post-menu-item i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.pos-post-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pos-post-menu-item-danger {
  color: #fca5a5;
}

.pos-post-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

.pos-action-btn {
  border: none;
  background: transparent;
  color: #f3f4f6;
  font-size: 1.35rem;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.pos-action-btn.is-liked {
  color: #ef4444;
}

.pos-action-btn.is-liked i {
  animation: pos-like-pop 0.25s ease;
}

.pos-float-chip.pos-action-btn {
  font-size: inherit;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

.pos-float-chip.pos-action-btn:hover {
  background: rgba(30, 30, 30, 0.58);
  border-color: rgba(255, 255, 255, 0.2);
}

.pos-float-static {
  cursor: default;
}

.pos-guest-view .pos-float-static:hover {
  background: rgba(20, 20, 20, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
}

.pos-guest-view .pos-detail-composer,
.pos-guest-view .pos-comments-modal-form {
  display: none;
}

.pos-float-chip.pos-action-btn.is-liked {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.32);
}

@keyframes pos-like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.pos-like-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 4px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #d1d5db;
}

.pos-like-summary-avatars {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.pos-like-summary-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0a0a0a;
  margin-left: -7px;
  background: #1a1c1e;
}

.pos-like-summary-avatar:first-child {
  margin-left: 0;
}

.pos-like-summary-text {
  min-width: 0;
  flex: 1;
}

.pos-like-summary-text strong {
  color: #fff;
  font-weight: 600;
}

.pos-like-summary-open {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.pos-like-summary-open strong {
  color: #fff;
  font-weight: 600;
}

.pos-like-summary-open:active strong {
  opacity: 0.85;
}

.pos-liker-item {
  align-items: center;
}

.pos-liker-body {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.pos-liker-namestack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.pos-liker-name {
  line-height: 1.25;
}

.pos-liker-meta {
  margin-top: 0;
  padding: 0;
}

.pos-liker-item .pos-comment-time {
  font-size: 0.7rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.2;
}

.pos-caption {
  padding: 10px 14px 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e5e7eb;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pos-caption strong {
  color: #fff;
  margin-right: 6px;
  white-space: nowrap;
}

.pos-empty,
.pos-loading {
  text-align: center;
  color: #9ca3af;
  padding: 48px 16px;
  font-size: 0.92rem;
}

.pos-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}

.pos-load-more {
  border: 1px solid #333;
  background: transparent;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.84rem;
  cursor: pointer;
}

.pos-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.pos-modal-backdrop.is-open {
  display: flex;
  overscroll-behavior: none;
}

.pos-modal {
  width: min(520px, 100%);
  max-height: 94vh;
  background: #141414;
  border-radius: 18px 18px 0 0;
  border: 1px solid #262626;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-modal form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.pos-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #1f1f1f;
}

.pos-modal-head h2 {
  margin: 0;
  font-size: 1rem;
}

.pos-modal-close {
  border: none;
  background: transparent;
  color: #d1d5db;
  font-size: 1.1rem;
  cursor: pointer;
}

.pos-modal-body {
  padding: 16px;
  overflow-y: auto;
}

.pos-compose-details {
  flex-shrink: 0;
}

.pos-field-label {
  display: block;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.pos-optional-tag {
  color: #6b7280;
  font-weight: 500;
}

.pos-textarea,
.pos-input {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.pos-textarea {
  min-height: 88px;
  resize: vertical;
}

.pos-compose-stage {
  flex-shrink: 0;
  background: #0a0a0a;
  border-bottom: 1px solid #1f1f1f;
}

.pos-compose-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 320px;
  padding: 24px;
  cursor: pointer;
  text-align: center;
  color: #9ca3af;
}

.pos-compose-empty[hidden] {
  display: none !important;
}

.pos-compose-empty i {
  font-size: 2.4rem;
  color: #ffd700;
}

.pos-compose-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.pos-compose-empty-sub {
  font-size: 0.8rem;
  max-width: 280px;
  line-height: 1.4;
}

.pos-compose-preview[hidden] {
  display: none !important;
}

.pos-compose-carousel {
  position: relative;
  background: #000;
  touch-action: pan-y;
  user-select: none;
}

.pos-compose-carousel.is-dragging {
  touch-action: none;
  cursor: grabbing;
}

.pos-compose-track-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.pos-compose-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.pos-compose-carousel.is-dragging .pos-compose-track {
  transition: none;
}

.pos-compose-slide {
  min-width: 100%;
  height: 100%;
}

.pos-compose-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.pos-compose-nav,
.pos-compose-dots {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pos-compose-carousel:hover .pos-compose-nav,
.pos-compose-carousel:hover .pos-compose-dots,
.pos-compose-carousel:focus-within .pos-compose-nav,
.pos-compose-carousel:focus-within .pos-compose-dots,
.pos-compose-carousel.is-active .pos-compose-nav,
.pos-compose-carousel.is-active .pos-compose-dots {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pos-compose-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pos-compose-nav:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

.pos-compose-carousel:hover .pos-compose-nav:disabled,
.pos-compose-carousel.is-active .pos-compose-nav:disabled {
  visibility: visible;
}

.pos-compose-prev {
  left: 10px;
}

.pos-compose-next {
  right: 10px;
}

.pos-compose-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.pos-compose-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.pos-compose-dot.is-active {
  background: #ffd700;
  transform: scale(1.15);
}

.pos-compose-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fca5a5;
  cursor: pointer;
}

.pos-compose-add-more {
  width: 100%;
  border: none;
  border-top: 1px solid #1f1f1f;
  background: #121212;
  color: #d1d5db;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.pos-compose-add-more[hidden] {
  display: none !important;
}

.pos-compose-caption[hidden] {
  display: none !important;
}

.pos-caption-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pos-caption-mode-label {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 600;
}

.pos-caption-mode-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.pos-caption-mode-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pos-caption-mode-btn.active {
  background: #2563eb;
  color: #fff;
}

.pos-slide-counter {
  color: #ffd700;
  font-weight: 700;
}

.pos-compose-caption .pos-textarea {
  min-height: 72px;
}

.pos-modal-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid #1f1f1f;
}

.pos-share-modal {
  width: min(480px, 100%);
  background: #1a1d26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.pos-share-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  margin: 12px auto 0;
}

.pos-share-head {
  border-bottom: none;
  padding: 14px 18px 10px;
}

.pos-share-head h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f3f4f6;
}

.pos-share-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  font-size: 0.875rem;
}

.pos-share-close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.pos-share-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 0;
}

.pos-share-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.pos-share-url-text {
  flex: 1;
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pos-share-url-copy {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffd700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s;
}

.pos-share-url-copy:hover,
.pos-share-url-copy.is-copied {
  background: rgba(255, 215, 0, 0.2);
}

.pos-share-grid {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.pos-share-grid::-webkit-scrollbar {
  display: none;
}

.pos-share-grid.is-dragging {
  cursor: grabbing;
}

.pos-share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 68px;
  padding: 10px 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.15s;
  color: inherit;
}

.pos-share-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pos-share-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.375rem;
}

.psi-copy {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.psi-wa {
  background: #25d366;
  color: #fff;
}

.psi-tg {
  background: #229ed9;
  color: #fff;
}

.psi-fb {
  background: #1877f2;
  color: #fff;
}

.psi-tw {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.psi-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}

.psi-more {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pos-share-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.pos-share-success {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  font-size: 0.86rem;
  font-weight: 600;
}

.pos-share-success .bi {
  font-size: 1.05rem;
  color: #ffd700;
}

@media (min-width: 768px) {
  .pos-share-handle {
    display: none;
  }

  .pos-share-modal {
    border-radius: 20px;
  }
}

.pos-submit-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
}

.pos-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pos-post-comments {
  border-top: 1px solid #1f1f1f;
  background: #101010;
}

.pos-post-comment-cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: #101010;
  color: #9ca3af;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.pos-post-comment-cta:hover {
  background: #151515;
}

.pos-comment-cta-placeholder {
  color: #6b7280;
}

.pos-comment-cta-count {
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.pos-comments-modal {
  max-height: min(86vh, 720px);
}

.pos-comments-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pos-comments-modal-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
}

.pos-comments-modal-loading,
.pos-comments-modal-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.84rem;
  color: #9ca3af;
}

.pos-comments-modal-form {
  border-top: 1px solid #1f1f1f;
  padding: 12px 14px 14px;
  background: #101010;
}

.pos-post-comments-list[hidden] {
  display: none !important;
}

.pos-post-composer {
  padding: 10px 14px 14px;
}

.pos-post-composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pos-post-composer-input {
  flex: 1;
  min-width: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: #fff;
  font-size: 0.88rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-post-composer-input:focus {
  border-color: #404040;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pos-post-composer-input::placeholder {
  color: #6b7280;
}

.pos-post-composer-send {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pos-post-composer-send:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.pos-post-composer-send:active {
  transform: scale(0.97);
}

.pos-post-composer-send span {
  display: none;
}

@media (min-width: 480px) {
  .pos-post-composer-send span {
    display: inline;
  }
}

.pos-comment-item {
  display: flex;
  gap: 10px;
}

.pos-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.pos-comment-body {
  min-width: 0;
  flex: 1;
}

.pos-comment-author {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-comment-text {
  font-size: 0.84rem;
  color: #e5e7eb;
  margin-top: 2px;
}

.pos-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.pos-comment-time {
  font-size: 0.7rem;
  color: #6b7280;
}

.pos-comment-reply-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
}

.pos-comment-reply-btn:hover {
  color: #e5e7eb;
}

.pos-comment-item--nested {
  margin-left: 44px;
}

.pos-comments-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.pos-comments-reply-preview strong {
  color: #fff;
  font-weight: 700;
}

.pos-comments-reply-cancel {
  background: none;
  border: none;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.pos-comments-reply-cancel:hover {
  color: #dbeafe;
}

body.pos-viewer-open {
  overflow: hidden;
}

.pos-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
}

.pos-image-viewer.is-open {
  display: block;
}

.pos-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.pos-viewer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pos-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-viewer-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-viewer-counter {
  flex: 1;
  text-align: center;
  font-size: 0.84rem;
  color: #d1d5db;
  font-weight: 600;
}

.pos-viewer-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pos-viewer-zoom-btn {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.pos-viewer-zoom-reset {
  min-width: 52px;
}

.pos-viewer-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  position: relative;
}

.pos-viewer-canvas {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  padding: 12px;
}

.pos-viewer-canvas:active {
  cursor: grabbing;
}

.pos-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.pos-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pos-viewer-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.pos-viewer-prev {
  left: 12px;
}

.pos-viewer-next {
  right: 12px;
}

.pos-viewer-caption {
  padding: 10px 16px;
  font-size: 0.86rem;
  color: #e5e7eb;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 88px;
  overflow-y: auto;
}

.pos-viewer-caption[hidden] {
  display: none !important;
}

.pos-viewer-hint {
  padding: 8px 16px 14px;
  font-size: 0.72rem;
  color: #6b7280;
  text-align: center;
}

/* Desktop post detail (Instagram-style split view) */
.pos-detail-backdrop {
  display: none;
}

@media (min-width: 992px) {
  .pos-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 32px 72px;
  }

  .pos-detail-backdrop.is-open {
    display: flex;
    animation: pos-detail-fade 0.18s ease-out;
  }

  .pos-detail-backdrop[hidden]:not(.is-open) {
    display: none;
  }

  .pos-detail-dialog {
    position: relative;
    width: min(1180px, 100%);
    height: min(calc(100vh - 64px), 860px);
    background: #0f0f0f;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    animation: pos-detail-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pos-detail-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, background 0.15s ease;
  }

  .pos-detail-close:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .pos-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    height: 100%;
    min-height: 0;
  }

  .pos-detail-media-wrap {
    position: relative;
    background: #000;
    min-height: 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .pos-detail-media-wrap .pos-carousel-slide,
  .pos-detail-media-wrap .pos-carousel-slide img {
    cursor: grab;
  }

  .pos-detail-media-wrap .pos-carousel-nav {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.88);
    color: #111;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .pos-detail-media-wrap .pos-carousel-nav:hover {
    transform: translateY(-50%) scale(1.06);
  }

  .pos-detail-media-wrap .pos-carousel-nav:disabled {
    opacity: 0;
  }

  .pos-detail-media-wrap .pos-carousel-prev { left: 14px; }
  .pos-detail-media-wrap .pos-carousel-next { right: 14px; }

  .pos-detail-media-wrap .pos-carousel-dots {
    bottom: 16px;
  }

  .pos-detail-media-wrap .pos-slide-expand {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
  }

  .pos-detail-media-wrap:hover .pos-slide-expand,
  .pos-detail-media-wrap .pos-slide-expand:focus-visible {
    opacity: 1;
  }

  .pos-detail-heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    font-size: 96px;
    color: #fff;
    pointer-events: none;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
    transform: translate(-50%, -50%) scale(0);
    animation: pos-detail-heart 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .pos-detail-media-wrap .pos-detail-carousel {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: unset;
    border-radius: 0;
  }

  .pos-detail-media-wrap .pos-carousel-track,
  .pos-detail-media-wrap .pos-carousel-slide {
    height: 100%;
  }

  .pos-detail-media-wrap .pos-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .pos-detail-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    border-left: 1px solid #222;
    background: #0f0f0f;
    color: #f5f5f5;
  }

  .pos-detail-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a1a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .pos-detail-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 16px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
  }

  .pos-detail-head-meta {
    min-width: 0;
    flex: 1;
  }

  .pos-detail-head-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pos-detail-panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
  }

  .pos-detail-panel-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .pos-detail-panel-scroll::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 3px;
  }

  .pos-detail-caption-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .pos-detail-caption-wrap[hidden] {
    display: none;
  }

  .pos-detail-caption-body {
    min-width: 0;
    flex: 1;
  }

  .pos-detail-caption-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e5e5e5;
    white-space: pre-line;
    overflow-wrap: anywhere;
  }

  .pos-detail-caption-text strong {
    color: #fff;
    font-weight: 600;
    margin-right: 6px;
  }

  .pos-detail-caption-time {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #8e8e8e;
  }

  .pos-detail-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .pos-detail-comments-list[hidden] {
    display: none;
  }

  .pos-detail-comments-list .pos-comment-item {
    gap: 12px;
  }

  .pos-detail-comments-list .pos-comment-avatar {
    width: 32px;
    height: 32px;
  }

  .pos-detail-comments-list .pos-comment-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
  }

  .pos-detail-comments-list .pos-comment-text {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #e5e5e5;
    overflow-wrap: anywhere;
  }

  .pos-detail-comments-list .pos-comment-meta {
    gap: 14px;
    margin-top: 6px;
  }

  .pos-detail-comments-list .pos-comment-time,
  .pos-detail-comments-list .pos-comment-reply-btn {
    font-size: 0.72rem;
    color: #8e8e8e;
  }

  .pos-detail-comments-list .pos-comment-reply-btn:hover {
    color: #d4d4d4;
  }

  .pos-detail-comments-list .pos-comment-item--nested {
    margin-left: 44px;
  }

  .pos-detail-comments-loading {
    font-size: 0.82rem;
    color: #8e8e8e;
  }

  .pos-detail-comments-loading[hidden] {
    display: none;
  }

  .pos-detail-comments-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 24px 0;
  }

  .pos-detail-comments-empty[hidden] {
    display: none;
  }

  .pos-detail-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
  }

  .pos-detail-empty-sub {
    font-size: 0.84rem;
    color: #8e8e8e;
  }

  .pos-detail-footer {
    flex-shrink: 0;
    border-top: 1px solid #222;
  }

  .pos-detail-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px 2px;
  }

  .pos-detail-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity 0.15s ease, color 0.15s ease;
  }

  .pos-detail-icon-btn:hover {
    opacity: 0.6;
  }

  .pos-detail-like-btn.is-liked {
    color: #ff3040;
  }

  .pos-detail-like-btn.is-liked:hover {
    opacity: 1;
  }

  .pos-detail-like-btn.is-popping i {
    display: inline-block;
    animation: pos-like-pop 0.35s ease;
  }

  .pos-detail-likes {
    padding: 0 16px;
    min-height: 20px;
  }

  .pos-detail-likes .pos-like-summary {
    padding: 0;
    font-size: 0.875rem;
    color: #e5e5e5;
  }

  .pos-detail-likes .pos-like-summary-avatar {
    width: 20px;
    height: 20px;
    border-color: #0f0f0f;
  }

  .pos-detail-likes-empty {
    font-size: 0.875rem;
    color: #a3a3a3;
  }

  .pos-detail-time {
    padding: 4px 16px 12px;
    font-size: 0.68rem;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .pos-detail-composer {
    border-top: 1px solid #222;
  }

  .pos-detail-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px 0;
    font-size: 0.75rem;
    color: #a3a3a3;
  }

  .pos-detail-reply-preview[hidden] {
    display: none;
  }

  .pos-detail-reply-preview strong {
    color: #fff;
    font-weight: 600;
  }

  .pos-detail-reply-cancel {
    border: none;
    background: transparent;
    color: #a3a3a3;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px;
    cursor: pointer;
  }

  .pos-detail-reply-cancel:hover {
    color: #fff;
  }

  .pos-detail-composer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .pos-detail-composer-icon {
    font-size: 1.3rem;
    color: #a3a3a3;
    flex-shrink: 0;
  }

  .pos-detail-composer-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    padding: 6px 0;
    outline: none;
  }

  .pos-detail-composer-input::placeholder {
    color: #8e8e8e;
  }

  .pos-detail-composer-send {
    border: none;
    background: transparent;
    color: #4a9eff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 2px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease, opacity 0.15s ease;
  }

  .pos-detail-composer-send:hover:not(:disabled) {
    color: #fff;
  }

  .pos-detail-composer-send:disabled {
    opacity: 0.35;
    cursor: default;
  }

  @keyframes pos-detail-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes pos-detail-pop {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes pos-detail-heart {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.95; }
    30% { transform: translate(-50%, -50%) scale(0.95); }
    45% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  }

  .pos-shell {
    max-width: 1080px;
    padding: 0 24px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .pos-detail-backdrop {
    padding: 24px 60px;
  }

  .pos-detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .pos-detail-backdrop.is-open,
  .pos-detail-dialog,
  .pos-detail-heart-burst {
    animation-duration: 0.01ms;
  }
}

@media (min-width: 768px) {

  .pos-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }

  .pos-feed .pos-empty,
  .pos-loading,
  .pos-load-more-wrap {
    grid-column: 1 / -1;
  }

  .pos-modal-backdrop {
    align-items: center;
  }

  .pos-modal {
    border-radius: 18px;
    max-height: 86vh;
  }

}

@media (prefers-reduced-motion: reduce) {
  .pos-carousel-track,
  .pos-compose-track {
    transition-duration: 0.01ms;
  }
}

@media (min-width: 992px) {
  .pos-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Guest marketing page: sit under the nav, inside the same side bounds as the menu. */
body.pos-page.marketing-top-nav .pos-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--marketing-content-max, 1280px);
  margin-inline: auto;
  padding-top: 40px;
  padding-left: max(1.75rem, env(safe-area-inset-left, 0px), var(--marketing-content-x, 1.25rem));
  padding-right: max(1.75rem, env(safe-area-inset-right, 0px), var(--marketing-content-x, 1.25rem));
}

@media (min-width: 1200px) {
  .pos-shell {
    max-width: 1440px;
  }

  .pos-feed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
