@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

/* New Social Instagram Comments Viewer — WordPress-scoped styles */
.nsicv {
    container-type: inline-size;
    container-name: nsicv;
  --nsicv-ink: #f4f0ff;
  --nsicv-muted: #c9b8e8;
  --nsicv-dim: #9a86c4;
  --nsicv-panel: rgba(62, 28, 110, 0.92);
  --nsicv-panel-soft: rgba(255, 255, 255, 0.08);
  --nsicv-line: rgba(255, 255, 255, 0.12);
  --nsicv-accent: #ff9f1a;
  --nsicv-accent-deep: #e88700;
  --nsicv-cool: #22c8d4;
  --nsicv-cool-deep: #149aa3;
  --nsicv-danger: #ff6b7a;
  --nsicv-radius: 16px;
  --nsicv-shadow: 0 16px 36px rgba(12, 4, 28, 0.32);
  --nsicv-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --nsicv-space: 16px;
  --nsicv-pad: 12px;
  --nsicv-gap: 12px;
  --nsicv-cols: 1;

  box-sizing: border-box;
  font-family: var(--nsicv-font);
  color: var(--nsicv-ink);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
    min-height: 100vh;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(10px, 2.5vw, 28px) clamp(6px, 2vw, 14px) clamp(14px, 3vw, 28px);
  background:
    radial-gradient(ellipse 80% 50% at 12% 0%, rgba(180, 110, 255, 0.3), transparent 55%),
    radial-gradient(ellipse 70% 45% at 88% 8%, rgba(34, 200, 212, 0.16), transparent 50%),
    linear-gradient(125deg, #2a1a4a 0%, #4a2d7a 45%, #6b3fa0 100%);
  border-radius: 0;
  position: relative;
  isolation: isolate;
  text-align: left;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.nsicv *,
.nsicv *::before,
.nsicv *::after {
  box-sizing: border-box;
}

.nsicv :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
}

.nsicv :where(ul, ol) {
  list-style: none;
}

.nsicv img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  vertical-align: middle;
}

.nsicv a {
  color: var(--nsicv-cool);
  text-decoration: none;
}

.nsicv a:hover {
  text-decoration: underline;
}

.nsicv-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--nsicv-gap);
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  min-width: 0;
}

/* Hero */
.nsicv-hero {
  background: transparent;
  padding: 36px 0 14px;
  text-align: center;
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.nsicv .nsicv-hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  color: var(--nsicv-ink);
}

.nsicv-hero__brand {
  display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.nsicv .nsicv-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(214, 36, 159, 0.28);
}

.nsicv .nsicv-hero__icon i {
  display: block;
  line-height: 1;
  width: auto;
  font-size: 1em;
}

.nsicv-hero__title-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35em;
  min-width: 0;
  font-size: clamp(1.28rem, 2.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
    word-break: break-word;
  }

.nsicv-hero__title-mark {
  color: var(--nsicv-accent);
  font-weight: 800;
}

.nsicv .nsicv-hero__lead {
  max-width: 560px;
  margin: 0 auto 18px;
  color: var(--nsicv-muted);
  font-size: clamp(0.88rem, 2.4vw, 0.95rem);
  line-height: 1.55;
  padding: 0 2px;
}

.nsicv-search {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: left;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 4px;
  padding: clamp(10px, 2vw, 14px);
  background: var(--nsicv-panel-soft);
  border: 1px solid var(--nsicv-line);
  border-radius: 12px;
  box-shadow: var(--nsicv-shadow);
}

.nsicv .nsicv-search__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nsicv-muted);
  line-height: 1.3;
}

.nsicv-search__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv-search__row > .nsicv-search__field {
  flex: 1 1 220px;
  width: auto;
  max-width: none;
}

.nsicv-search__row > .nsicv-search__actions {
  flex: 1 1 220px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0;
}

.nsicv .nsicv-search__field {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #1d1630 !important;
  font-family: var(--nsicv-font);
  font-size: 16px !important;
  font-weight: 500;
  line-height: 46px;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 100%;
}

.nsicv .nsicv-search__field:focus {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 159, 26, 0.45);
}

.nsicv .nsicv-search__field::placeholder {
  color: #8a7aa8;
}

.nsicv-search__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nsicv .nsicv-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 1 1 0 !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  font-family: var(--nsicv-font) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  user-select: none;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  touch-action: manipulation;
  color: var(--nsicv-ink) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

.nsicv .nsicv-btn i,
.nsicv .nsicv-filters__btn i,
.nsicv .nsicv-demo-chip i,
.nsicv .nsicv-post__zoom i,
.nsicv .nsicv-modal__close i,
.nsicv .nsicv-stat i,
.nsicv .nsicv-cmeta i,
.nsicv .nsicv-export__btn i,
.nsicv .nsicv-notice i,
.nsicv i.fa-solid,
.nsicv i.fa-brands,
.nsicv i.fas {
  --fa-display: inline-block;
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 0.92em;
  width: 1.15em;
  height: auto !important;
  margin: 0 !important;
  text-align: center;
  vertical-align: middle;
  font-style: normal !important;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  flex-shrink: 0;
}

.nsicv .nsicv-empty i {
  display: block !important;
  font-size: 2rem !important;
  width: auto;
  margin: 0 auto 10px;
  opacity: 0.4;
  line-height: 1 !important;
}

.nsicv .nsicv-btn:hover {
  transform: translateY(-1px) !important;
}

.nsicv .nsicv-btn:active {
  transform: translateY(0) !important;
  opacity: 0.92;
}

.nsicv .nsicv-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none !important;
}

.nsicv .nsicv-btn--paste {
  background: linear-gradient(135deg, var(--nsicv-cool), var(--nsicv-cool-deep)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(20, 154, 163, 0.3);
}

.nsicv .nsicv-btn--view {
  background: linear-gradient(135deg, var(--nsicv-accent), var(--nsicv-accent-deep)) !important;
  color: #1a1028 !important;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 18px rgba(255, 159, 26, 0.28) !important;
}

.nsicv .nsicv-btn--view:hover {
  box-shadow: 0 10px 22px rgba(255, 159, 26, 0.38) !important;
}

.nsicv .nsicv-search__hint {
  font-size: 0.82rem;
  color: var(--nsicv-dim);
  line-height: 1.4;
  word-break: break-word;
}

.nsicv-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 200, 212, 0.14);
  border: 1px solid rgba(34, 200, 212, 0.35);
  color: var(--nsicv-cool);
  font-size: 0.78rem;
  font-weight: 700;
}

.nsicv .nsicv-alert {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 122, 0.14);
  border: 1px solid rgba(255, 107, 122, 0.4);
  color: #ffd0d5;
  font-size: 0.86rem;
  line-height: 1.4;
  word-break: break-word;
}

.nsicv .nsicv-alert.is-visible {
  display: block;
}

/* Skeleton */
.nsicv .nsicv-skeleton {
  display: none;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton.is-visible {
  display: block;
}

.nsicv .nsicv-content.is-hidden {
  display: none !important;
}

@keyframes nsicv-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.nsicv .nsicv-sk {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 800px 100%;
  animation: nsicv-shimmer 1.35s ease-in-out infinite;
  border-radius: 8px;
}

.nsicv-skeleton__panel {
  background: var(--nsicv-panel);
  border: 1px solid var(--nsicv-line);
  border-radius: var(--nsicv-radius);
  box-shadow: var(--nsicv-shadow);
  padding: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.nsicv-skeleton__post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px !important;
  max-height: 360px;
}

.nsicv-skeleton__author {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.nsicv-skeleton__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.nsicv-skeleton__line {
  height: 14px;
}

.nsicv-skeleton__line--lg {
  width: min(180px, 70%);
  height: 18px;
}

.nsicv-skeleton__line--md {
  width: min(120px, 45%);
  height: 12px;
}

.nsicv-skeleton__line--full {
  width: 100%;
  height: 12px;
}

.nsicv-skeleton__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nsicv-skeleton__stat {
  width: 64px;
  height: 28px;
  border-radius: 8px;
}

.nsicv-skeleton__comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.nsicv-skeleton__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.nsicv-skeleton__filter {
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  height: 40px;
  border-radius: 999px;
}

.nsicv-skeleton__clist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nsicv-skeleton__citem {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nsicv-line);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton__cavatar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.nsicv-skeleton__cbody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Results */
.nsicv-result {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv-panel {
  background: var(--nsicv-panel);
  border: 1px solid var(--nsicv-line);
  border-radius: var(--nsicv-radius);
  box-shadow: var(--nsicv-shadow);
  padding: clamp(12px, 2vw, 18px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  backdrop-filter: blur(12px);
}

.nsicv-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv-post {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nsicv-line);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv-post__media-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 1 / 1;
  max-height: 480px;
  overflow: hidden;
}

.nsicv .nsicv-post__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nsicv .nsicv-post__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.nsicv .nsicv-post__embed.is-hidden,
.nsicv .nsicv-post__media.is-hidden {
  display: none !important;
}

.nsicv .nsicv-post__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0 !important;
  border-radius: 12px;
  background: rgba(20, 10, 40, 0.72) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.nsicv-post__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 10, 40, 0.72);
  color: var(--nsicv-cool);
  font-size: 0.75rem;
  font-weight: 700;
}

.nsicv-post__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.nsicv-post__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.nsicv-post__ring {
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nsicv-accent), #d46bff, var(--nsicv-cool));
  flex-shrink: 0;
}

.nsicv .nsicv-post__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a1a4a;
  display: block;
}

.nsicv-post__who {
  min-width: 0;
  flex: 1;
}

.nsicv .nsicv-post__user {
  font-weight: 800;
  font-size: 1rem;
  color: var(--nsicv-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
}

.nsicv .nsicv-post__user i {
  color: var(--nsicv-cool);
  font-size: 0.85em;
}

.nsicv .nsicv-post__name {
  color: var(--nsicv-dim);
  font-size: 0.85rem;
  word-break: break-word;
}

.nsicv .nsicv-post__caption {
  color: var(--nsicv-muted);
  font-size: 0.94rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsicv .nsicv-post__caption.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.nsicv .nsicv-post__more {
  align-self: flex-start;
  background: transparent !important;
  border: 0 !important;
  color: var(--nsicv-accent) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 4px 0 !important;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--nsicv-font);
  appearance: none;
  -webkit-appearance: none;
}

.nsicv .nsicv-post__more.is-hidden {
  display: none !important;
}

.nsicv .nsicv-mention,
.nsicv .nsicv-hashtag {
  color: var(--nsicv-cool);
  font-weight: 600;
}

.nsicv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 8px;
  border-top: 1px solid var(--nsicv-line);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nsicv-muted);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 0;
}

.nsicv .nsicv-stat i {
  color: var(--nsicv-accent);
}

.nsicv .nsicv-notice {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(34, 200, 212, 0.1);
  border: 1px solid rgba(34, 200, 212, 0.28);
  color: var(--nsicv-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 12px;
}

.nsicv .nsicv-notice.is-visible {
  display: flex;
}

/* Comments panel */
.nsicv-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nsicv-line);
  border-radius: 14px;
  padding: 14px;
  min-height: 280px;
}

.nsicv-comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--nsicv-line);
}

.nsicv .nsicv-comments__title {
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nsicv-ink);
}

.nsicv .nsicv-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nsicv-accent), var(--nsicv-accent-deep));
  color: #1a1028;
  font-size: 0.82rem;
  font-weight: 800;
}

.nsicv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv .nsicv-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px !important;
  border-radius: 999px;
  border: 1px solid var(--nsicv-line) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--nsicv-muted) !important;
  font-family: var(--nsicv-font);
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nsicv .nsicv-filters__btn.is-active,
.nsicv .nsicv-filters__btn:hover {
  background: linear-gradient(135deg, rgba(255, 159, 26, 0.9), rgba(232, 135, 0, 0.9)) !important;
  color: #1a1028 !important;
  border-color: transparent !important;
}

.nsicv-comments__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(560px, 70vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.nsicv-comments__list::-webkit-scrollbar {
  width: 6px;
}

.nsicv-comments__list::-webkit-scrollbar-thumb {
  background: rgba(255, 159, 26, 0.55);
  border-radius: 999px;
}

.nsicv-comment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nsicv-line);
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nsicv-comment::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--nsicv-accent), var(--nsicv-cool));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nsicv-comment:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 159, 26, 0.45);
}

.nsicv-comment:hover::before {
  opacity: 1;
}

.nsicv-comment__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-comment__avatar,
.nsicv .nsicv-comment__fallback {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.nsicv .nsicv-comment__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7a3fd4, var(--nsicv-accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}

.nsicv-comment__who {
  min-width: 0;
  flex: 1;
}

.nsicv .nsicv-comment__user {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--nsicv-ink);
  word-break: break-word;
}

.nsicv-cmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
}

.nsicv .nsicv-cmeta__time {
  color: var(--nsicv-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.nsicv .nsicv-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nsicv .nsicv-badge--verified {
  background: rgba(34, 200, 212, 0.2);
  color: var(--nsicv-cool);
}

.nsicv .nsicv-badge--owner {
  background: rgba(255, 159, 26, 0.2);
  color: var(--nsicv-accent);
}

.nsicv .nsicv-comment__text {
  color: var(--nsicv-ink) !important;
  font-size: 1.05rem !important;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
  margin: 2px 0 0;
  min-height: 1.35em;
  opacity: 1 !important;
  visibility: visible !important;
  font-family:
    "Segoe UI Emoji",
    "Apple Color Emoji",
    "Noto Color Emoji",
    "Twemoji Mozilla",
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

.nsicv .nsicv-comment__text img.emoji,
.nsicv .nsicv-comment__text img.twemoji {
  height: 1.25em !important;
  width: 1.25em !important;
  margin: 0 0.05em 0 0.1em !important;
  vertical-align: -0.2em !important;
  display: inline-block !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.nsicv .nsicv-comment__empty {
  color: var(--nsicv-dim) !important;
  font-style: italic;
  font-size: 0.86rem;
}

.nsicv-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--nsicv-dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.nsicv .nsicv-cmeta-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nsicv .nsicv-cmeta-act i {
  color: var(--nsicv-accent);
}

.nsicv .nsicv-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--nsicv-dim);
  font-size: 0.9rem;
  line-height: 1.45;
  width: 100%;
  min-width: 0;
}

/* Filter section skeleton */
.nsicv .nsicv-tab-sk {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.nsicv-tab-sk__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nsicv-line);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-tab-sk__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.nsicv-tab-sk__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nsicv-tab-sk__line {
  height: 12px;
  border-radius: 8px;
}

.nsicv-tab-sk__line--sm {
  width: min(100px, 40%);
}

.nsicv-tab-sk__line--md {
  width: min(180px, 70%);
}

.nsicv-tab-sk__line--lg {
  width: 100%;
}

/* Export */
.nsicv-more {
  appearance: none; width: 100%; margin-top: 10px; border: 1px solid rgba(0,242,234,0.45);
  background: rgba(0,242,234,0.12); color: #fff; border-radius: 12px; padding: 11px 14px;
  font-weight: 800; font-size: 0.88rem; cursor: pointer; display: inline-flex; gap: 8px;
  align-items: center; justify-content: center;
}
.nsicv-more:hover { background: rgba(0,242,234,0.2); }
.nsicv-more:disabled { opacity: .55; cursor: not-allowed; }
.nsicv-more.is-hidden { display: none !important; }
.nsicv-content.is-placeholder .nsicv-more { display: none !important; }
.nsicv-export {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--nsicv-line);
}

.nsicv .nsicv-export__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nsicv-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nsicv-export__row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-export__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px !important;
  border-radius: 10px;
  border: 1px solid var(--nsicv-line) !important;
  background: rgba(34, 200, 212, 0.14) !important;
  color: var(--nsicv-cool) !important;
  font-family: var(--nsicv-font);
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.nsicv .nsicv-export__btn--csv {
  background: rgba(255, 159, 26, 0.14) !important;
  color: var(--nsicv-accent) !important;
}

/* Modal */
.nsicv-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 4, 24, 0.82);
  backdrop-filter: blur(6px);
}

.nsicv-modal.is-open {
  display: flex;
}

.nsicv-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: #2a1a4a;
  border: 1px solid var(--nsicv-line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--nsicv-shadow);
}

.nsicv .nsicv-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0 !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  z-index: 2;
}

.nsicv .nsicv-modal__media {
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  border-radius: 12px;
  background: #120a22;
}

/* Download progress toast */
.nsicv-dlprog {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 120%);
  z-index: 1000000;
  width: min(420px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(22, 12, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  color: var(--nsicv-ink);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  backdrop-filter: blur(10px);
}
.nsicv-dlprog.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.nsicv-dlprog.is-success { border-color: rgba(34, 200, 212, 0.45); }
.nsicv-dlprog.is-error { border-color: rgba(255, 107, 122, 0.55); }
.nsicv-dlprog__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.nsicv-dlprog__title {
  display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.92rem; font-weight: 700;
}
.nsicv-dlprog__title i { color: var(--nsicv-accent, #ff9f1a); }
.nsicv-dlprog__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsicv-dlprog__pct {
  flex-shrink: 0; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 0.95rem; color: var(--nsicv-cool, #22c8d4);
}
.nsicv-dlprog__track {
  width: 100%; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden;
}
.nsicv-dlprog__fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, #e88700, #ff9f1a, #22c8d4);
  box-shadow: 0 0 16px rgba(255, 159, 26, 0.35);
  transition: width 0.18s ease-out;
}
.nsicv-dlprog.is-indeterminate .nsicv-dlprog__fill {
  width: 36% !important; animation: nsicv-dlprog-slide 1.1s ease-in-out infinite;
}
@keyframes nsicv-dlprog-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.nsicv-dlprog__meta {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 8px;
  font-size: 0.78rem; color: var(--nsicv-muted); font-variant-numeric: tabular-nums;
}
.nsicv-dlprog__status {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nsicv .nsicv-modal__caption {
  margin-top: 12px;
  color: var(--nsicv-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
  padding-right: 40px;
}

/* Mobile-first: force stacked search under tablet width */
@media (max-width: 767px) {
  .nsicv {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 10px 18px !important;
    overflow-x: hidden !important;
  }

  .nsicv-hero,
  .nsicv-panel,
  .nsicv-skeleton__panel,
  .nsicv-comments {
    padding: 14px 12px !important;
  }

  .nsicv .nsicv-search__row {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .nsicv .nsicv-search__field {
    flex: 1 1 0% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nsicv .nsicv-search__actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nsicv .nsicv-search__actions .nsicv-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .nsicv .nsicv-filters__btn {
    flex: 1 1 calc(50% - 8px) !important;
  }

  .nsicv-layout,
  .nsicv-skeleton__panel {
    grid-template-columns: 1fr !important;
  }

  .nsicv-export__row {
    flex-direction: column !important;
  }

  .nsicv .nsicv-export__btn {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .nsicv .nsicv-filters__btn {
    flex: 1 1 100% !important;
  }
}

/* Tablet+ : wrap-friendly search; dual pane only when --wide / 1024+ */
@media (min-width: 768px) {
  .nsicv-search__row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .nsicv .nsicv-search__field {
    flex: 1 1 200px;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .nsicv-search__actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .nsicv .nsicv-btn {
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-height: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 14px !important;
  }

  .nsicv .nsicv-filters__btn {
    flex: 1 1 calc(25% - 8px);
  }

  .nsicv-export__row {
    flex-direction: row;
  }

  .nsicv .nsicv-export__btn {
    width: auto;
    flex: 1 1 calc(50% - 8px);
  }

  .nsicv-skeleton__filter {
    flex: 1 1 calc(25% - 8px);
  }
}

@media (min-width: 1024px) {
  .nsicv-layout,
  .nsicv-skeleton__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .nsicv-post__media-wrap,
  .nsicv .nsicv-skeleton__media {
    max-height: 520px;
  }

  .nsicv-comments__list {
    max-height: 620px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .nsicv .nsicv-hero__lead {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nsicv *,
  .nsicv *::before,
  .nsicv *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nsicv .nsicv-sk {
    animation: none;
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (hover: none) {
  .nsicv .nsicv-btn:hover,
  .nsicv .nsicv-filters__btn:hover,
  .nsicv-comment:hover {
    transform: none !important;
  }
}

/* ResizeObserver helpers — after viewport queries so narrow columns win */
.nsicv.nsicv--compact {
  padding: 12px 10px 18px !important;
}

.nsicv.nsicv--compact .nsicv-hero {
  padding: 36px 0 10px;
}

.nsicv.nsicv--compact .nsicv-search {
  padding: 14px 12px !important;
}

.nsicv.nsicv--compact .nsicv-panel,
.nsicv.nsicv--compact .nsicv-skeleton__panel {
  padding: 14px 12px !important;
}

.nsicv.nsicv--compact .nsicv-search__row {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.nsicv.nsicv--compact .nsicv-search__actions {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  gap: 8px !important;
}

.nsicv.nsicv--compact .nsicv-search__field {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.nsicv.nsicv--compact .nsicv-search__actions .nsicv-btn {
  flex: 1 1 calc(50% - 4px) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 44px !important;
}

.nsicv.nsicv--compact .nsicv-layout,
.nsicv.nsicv--compact .nsicv-skeleton__panel {
  grid-template-columns: 1fr !important;
}

.nsicv.nsicv--compact .nsicv-filters__btn {
  flex: 1 1 calc(50% - 8px) !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-search__row {
  flex-direction: row !important;
  flex-wrap: wrap !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-search__field {
  flex: 1 1 200px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-search__actions {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-btn {
  width: auto !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-layout,
.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-skeleton__panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
}

.nsicv.nsicv--narrow .nsicv-filters__btn {
  flex: 1 1 100% !important;
}

.nsicv.nsicv--narrow .nsicv-search__actions {
  flex-direction: column !important;
  flex-wrap: wrap !important;
}

.nsicv.nsicv--narrow .nsicv-search__actions .nsicv-btn {
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
}

.nsicv.nsicv--narrow .nsicv-export__row {
  flex-direction: column !important;
}

.nsicv.nsicv--narrow .nsicv-hero__title-text {
  font-size: clamp(1.05rem, 5.2vw, 1.35rem);
  justify-content: center;
  text-align: center;
}

.nsicv-content.is-placeholder .nsicv-notice,
.nsicv-content.is-placeholder .nsicv-post__download,
.nsicv-content.is-placeholder .nsicv-export {
  display: none !important;
}

.nsicv-content.is-placeholder #nsicv-username {
  order: -1;
  font-size: clamp(1.05rem, 3.5cqi, 1.25rem);
  font-weight: 800;
  color: var(--nsicv-text);
}

.nsicv-content.is-placeholder #nsicv-fullname {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.nsicv .nsicv-empty {
  padding: clamp(36px, 6vw, 56px) 20px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: transparent;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.nsicv .nsicv-empty i {
  display: block !important;
  font-size: 2.1rem !important;
  margin: 0 auto 14px;
  opacity: 0.85;
  color: #fff;
}

.nsicv .nsicv-empty p {
  margin: 0 auto;
  max-width: 38ch;
  line-height: 1.55;
}

  /* Turnstile host: keep hidden in-flow; floating panel styles come from turnstile-handler.js */
  .nsicv #xrespond-tools-turnstile-host {
    display: none;
  }

  .nsicv #xrespond-tools-turnstile-host.is-visible {
    display: block !important;
  }

  /* Ensure floating Turnstile panel (moved to body) is never clipped/hidden by tool CSS */
  body > #xrespond-tools-turnstile-host.is-visible {
    display: block !important;
    position: fixed !important;
    z-index: 2147483000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Search controls: one row on large screens, wrap on narrow/compact */
  .nsicv .nsicv-search,
  .nsicv .nsicv-search .nsicv-search__row,
  .nsicv .nsicv-search .nsicv-search__actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .nsicv .nsicv-search .nsicv-search__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .nsicv .nsicv-search .nsicv-search__field,
  .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__field {
    flex: 1 1 0% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .nsicv .nsicv-search .nsicv-search__actions,
  .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .nsicv .nsicv-search .nsicv-search__row > .nsicv-btn,
  .nsicv .nsicv-search .nsicv-search__actions .nsicv-btn,
  .nsicv .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 110px !important;
  }

  .nsicv.nsicv--compact .nsicv-search .nsicv-search__row,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__row {
    flex-wrap: wrap !important;
  }

  .nsicv.nsicv--compact .nsicv-search .nsicv-search__field,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__field,
  .nsicv.nsicv--compact .nsicv-search .nsicv-search__row > .nsicv-search__field,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__row > .nsicv-search__field {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nsicv.nsicv--compact .nsicv-search .nsicv-search__actions,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__actions,
  .nsicv.nsicv--compact .nsicv-search .nsicv-search__row > .nsicv-search__actions,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__row > .nsicv-search__actions {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nsicv.nsicv--compact .nsicv-search .nsicv-search__row > .nsicv-btn,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__row > .nsicv-btn,
  .nsicv.nsicv--compact .nsicv-search .nsicv-search__actions .nsicv-btn,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__actions .nsicv-btn,
  .nsicv.nsicv--compact .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn,
  .nsicv.nsicv--narrow .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  @media (max-width: 720px) {
    .nsicv .nsicv-search .nsicv-search__row {
      flex-wrap: wrap !important;
    }

    .nsicv .nsicv-search .nsicv-search__field,
    .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__field {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    .nsicv .nsicv-search .nsicv-search__actions,
    .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__actions {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    .nsicv .nsicv-search .nsicv-search__row > .nsicv-btn,
    .nsicv .nsicv-search .nsicv-search__actions .nsicv-btn,
    .nsicv .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn {
      flex: 1 1 calc(50% - 4px) !important;
      min-width: 0 !important;
      max-width: 100% !important;
    }
  }

  /* Narrow embed on a wide browser: wrap when container is compact even if viewport is large */
  @container nsicv (max-width: 767px) {
    .nsicv .nsicv-search .nsicv-search__row {
      flex-wrap: wrap !important;
    }
    .nsicv .nsicv-search .nsicv-search__field,
    .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__field {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
    }
    .nsicv .nsicv-search .nsicv-search__actions,
    .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__actions {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
    }
    .nsicv .nsicv-search .nsicv-search__row > .nsicv-btn,
    .nsicv .nsicv-search .nsicv-search__actions .nsicv-btn,
    .nsicv .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn {
      flex: 1 1 calc(50% - 4px) !important;
      min-width: 0 !important;
      max-width: 100% !important;
    }
  }

/* ns-responsive-fix:nsicv — keep desktop shell max-width; only prevent overflow */
  .nsicv-tabs,
  .nsicv .nsicv-tabs {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  .nsicv .nsicv-tabs__btn {
    min-width: 0;
    max-width: 100%;
  }
  .nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-tabs__btn {
    flex: 0 1 auto;
  }
  .nsicv.nsicv--compact .nsicv-tabs__btn,
  .nsicv.nsicv--narrow .nsicv-tabs__btn {
    flex: 1 1 calc(50% - 8px);
  }
  .nsicv-hero__lead,
  .nsicv .nsicv-hero__lead,
  .nsicv-hero__title-text,
  .nsicv .nsicv-hero__title-text {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .nsicv-shell,
  .nsicv .nsicv-shell {
    min-width: 0;
    width: 100%;
    /* preserve existing max-width: min(1280px, 100%) — do not force 100% */
  }

/* --- Codex CSS updates --- */
/* New Social Instagram Comments Viewer — WordPress-scoped styles */
.nsicv {
  container-type: inline-size;
  container-name: nsicv;
  --nsicv-ink: #f8fafc;
  --nsicv-text: #f8fafc;
  --nsicv-muted: #cbd5e1;
  --nsicv-dim: #94a3b8;
  --nsicv-panel: rgba(15, 23, 42, 0.82);
  --nsicv-panel-strong: rgba(15, 23, 42, 0.94);
  --nsicv-panel-soft: rgba(255, 255, 255, 0.08);
  --nsicv-line: rgba(255, 255, 255, 0.16);
  --nsicv-line-strong: rgba(255, 255, 255, 0.24);
  --nsicv-accent: #f97316;
  --nsicv-accent-deep: #db2777;
  --nsicv-cool: #38bdf8;
  --nsicv-cool-deep: #2563eb;
  --nsicv-success: #22c55e;
  --nsicv-danger: #fb7185;
  --nsicv-warning: #facc15;
  --nsicv-radius: 18px;
  --nsicv-radius-sm: 12px;
  --nsicv-shadow: 0 22px 60px rgba(2, 6, 23, 0.34);
  --nsicv-shadow-soft: 0 12px 28px rgba(2, 6, 23, 0.22);
  --nsicv-focus: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 0 0 1px rgba(56, 189, 248, 0.65);
  --nsicv-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --nsicv-space: 16px;
  --nsicv-pad: 14px;
  --nsicv-gap: 14px;
  --nsicv-cols: 1;

  box-sizing: border-box;
  font-family: var(--nsicv-font);
  color: var(--nsicv-ink);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 32px) clamp(10px, 2vw, 18px) clamp(18px, 4vw, 36px);
  background:
    radial-gradient(circle at 15% 0%, rgba(236, 72, 153, 0.34), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.22), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.18), transparent 40%),
    linear-gradient(135deg, #0f172a 0%, #172554 46%, #3b0764 100%);
  border-radius: 0;
  position: relative;
  isolation: isolate;
  text-align: left;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.nsicv::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
  opacity: 0.6;
  z-index: 0;
}

.nsicv *,
.nsicv *::before,
.nsicv *::after {
  box-sizing: border-box;
}

.nsicv :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
}

.nsicv :where(ul, ol) {
  list-style: none;
}

.nsicv img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  vertical-align: middle;
}

.nsicv a {
  color: var(--nsicv-cool);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nsicv a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.nsicv-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--nsicv-gap);
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto;
  min-width: 0;
}

/* Hero */
.nsicv-hero {
  background: transparent;
  padding: clamp(22px, 5vw, 42px) 0 clamp(12px, 2.5vw, 18px);
  text-align: center;
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.nsicv .nsicv-hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  color: var(--nsicv-ink);
}

.nsicv-hero__brand {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nsicv .nsicv-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 62%, #285aeb 92%);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(214, 36, 159, 0.34);
}

.nsicv .nsicv-hero__icon i {
  display: block;
  line-height: 1;
  width: auto;
  font-size: 1em;
}

.nsicv-hero__title-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.34em;
  min-width: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-transform: capitalize !important;
}

.nsicv-hero__title-mark {
  color: #fb923c;
  font-weight: 800;
}

.nsicv .nsicv-hero__lead {
  max-width: 640px;
  margin: 0 auto 18px;
  color: var(--nsicv-muted);
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.6;
  padding: 0 2px;
}

.nsicv-search {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: left;
  width: 100%;
  max-width: 900px;
  min-width: 0;
  box-sizing: border-box;
  margin: 6px auto 0;
  padding: clamp(14px, 2vw, 18px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--nsicv-line);
  border-radius: var(--nsicv-radius);
  box-shadow: var(--nsicv-shadow);
  backdrop-filter: blur(18px);
}

.nsicv .nsicv-search__label,
.nsicv .xrespond-ts-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nsicv-muted);
  line-height: 1.3;
}

.nsicv-search__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv-search__row > .nsicv-search__field {
  flex: 1 1 320px;
  width: auto;
  max-width: none;
}

.nsicv-search__row > .nsicv-search__actions {
  flex: 0 0 auto;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-width: 0;
}

.nsicv .nsicv-search__field {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 16px !important;
  resize: none !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #111827 !important;
  font-family: var(--nsicv-font);
  font-size: 16px !important;
  font-weight: 600;
  line-height: 52px !important;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(2, 6, 23, 0.16);
  width: 100%;
  max-width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nsicv textarea.nsicv-search__field {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  white-space: nowrap;
}

.nsicv .nsicv-search__field:focus {
  background: #fff !important;
  border-color: rgba(56, 189, 248, 0.72) !important;
  box-shadow: var(--nsicv-focus), 0 14px 28px rgba(2, 6, 23, 0.18);
}

.nsicv .nsicv-search__field::placeholder {
  color: #64748b;
  opacity: 1;
}

.nsicv-search__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nsicv .nsicv-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  min-width: 118px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  font-family: var(--nsicv-font) !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  user-select: none;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  touch-action: manipulation;
  color: var(--nsicv-ink) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18) !important;
  transform: none !important;
}

.nsicv .nsicv-btn i,
.nsicv .nsicv-filters__btn i,
.nsicv .nsicv-demo-chip i,
.nsicv .nsicv-post__zoom i,
.nsicv .nsicv-modal__close i,
.nsicv .nsicv-stat i,
.nsicv .nsicv-cmeta i,
.nsicv .nsicv-export__btn i,
.nsicv .nsicv-notice i,
.nsicv .nsicv-more i,
.nsicv i.fa-solid,
.nsicv i.fa-brands,
.nsicv i.fas,
.nsicv .fa-angles-down,
.nsicv .fa-circle,
.nsicv .fa-circle-info,
.nsicv .fa-clone,
.nsicv .fa-comment,
.nsicv .fa-comments,
.nsicv .fa-download,
.nsicv .fa-expand,
.nsicv .fa-heart,
.nsicv .fa-image,
.nsicv .fa-link,
.nsicv .fa-paste,
.nsicv .fa-play,
.nsicv .fa-star,
.nsicv .fa-xmark {
  --fa-display: inline-block;
  display: inline-block !important;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  font-size: 0.95em;
  width: 1.15em;
  height: auto !important;
  margin: 0 !important;
  text-align: center;
  vertical-align: middle;
  font-style: normal !important;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  flex-shrink: 0;
}

.nsicv .fa-circle {
  font-size: 0.62em;
}

.nsicv .nsicv-empty i {
  display: block !important;
  font-size: 2rem !important;
  width: auto;
  margin: 0 auto 10px;
  opacity: 0.4;
  line-height: 1 !important;
}

.nsicv .nsicv-btn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04);
}

.nsicv .nsicv-btn:focus-visible,
.nsicv .nsicv-filters__btn:focus-visible,
.nsicv .nsicv-export__btn:focus-visible,
.nsicv .nsicv-post__zoom:focus-visible,
.nsicv .nsicv-modal__close:focus-visible,
.nsicv .nsicv-more:focus-visible {
  outline: none !important;
  box-shadow: var(--nsicv-focus) !important;
}

.nsicv .nsicv-btn:active {
  transform: translateY(0) !important;
  opacity: 0.94;
}

.nsicv .nsicv-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none !important;
  filter: none;
}

.nsicv .nsicv-btn--paste {
  background: linear-gradient(135deg, var(--nsicv-cool), var(--nsicv-cool-deep)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28) !important;
}

.nsicv .nsicv-btn--view {
  background: linear-gradient(135deg, var(--nsicv-accent), var(--nsicv-accent-deep)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.34) !important;
}

.nsicv .nsicv-btn--view:hover {
  box-shadow: 0 18px 38px rgba(219, 39, 119, 0.44) !important;
}

.nsicv .nsicv-search__hint {
  font-size: 0.84rem;
  color: var(--nsicv-dim);
  line-height: 1.45;
  word-break: break-word;
}

.nsicv-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 0.8rem;
  font-weight: 800;
}

.nsicv .nsicv-alert,
.nsicv .xrespond-ts-error {
  display: none;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.42);
  color: #ffe4e6;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.14);
}

.nsicv .nsicv-alert.is-visible,
.nsicv .xrespond-ts-error.is-visible {
  display: block;
}

.nsicv .xrespond-ts-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

/* Skeleton */
.nsicv .nsicv-skeleton {
  display: none;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton.is-visible {
  display: block;
}

.nsicv .nsicv-content.is-hidden {
  display: none !important;
}

@keyframes nsicv-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.nsicv .nsicv-sk {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 800px 100%;
  animation: nsicv-shimmer 1.35s ease-in-out infinite;
  border-radius: 10px;
}

.nsicv-skeleton__panel {
  background: var(--nsicv-panel);
  border: 1px solid var(--nsicv-line);
  border-radius: var(--nsicv-radius);
  box-shadow: var(--nsicv-shadow);
  padding: clamp(14px, 2vw, 20px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  backdrop-filter: blur(18px);
}

.nsicv-skeleton__post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px !important;
  max-height: 360px;
}

.nsicv-skeleton__author {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.nsicv-skeleton__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.nsicv-skeleton__line { height: 14px; }
.nsicv-skeleton__line--lg { width: min(180px, 70%); height: 18px; }
.nsicv-skeleton__line--md { width: min(120px, 45%); height: 12px; }
.nsicv-skeleton__line--full { width: 100%; height: 12px; }

.nsicv-skeleton__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nsicv-skeleton__stat {
  width: 64px;
  height: 28px;
  border-radius: 999px;
}

.nsicv-skeleton__comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.nsicv-skeleton__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.nsicv-skeleton__filter {
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  height: 42px;
  border-radius: 999px;
}

.nsicv-skeleton__clist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nsicv-skeleton__citem {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--nsicv-line);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-skeleton__cavatar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.nsicv-skeleton__cbody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Results */
.nsicv-result {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv-panel {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78));
  border: 1px solid var(--nsicv-line);
  border-radius: var(--nsicv-radius);
  box-shadow: var(--nsicv-shadow);
  padding: clamp(14px, 2vw, 20px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  backdrop-filter: blur(18px);
}

.nsicv-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv-post {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--nsicv-line);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-shadow: var(--nsicv-shadow-soft);
}

.nsicv-post__media-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  background: rgba(2, 6, 23, 0.58);
  aspect-ratio: 1 / 1;
  max-height: 480px;
  overflow: hidden;
}

.nsicv .nsicv-post__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nsicv .nsicv-post__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.nsicv .nsicv-post__embed.is-hidden,
.nsicv .nsicv-post__media.is-hidden {
  display: none !important;
}

.nsicv .nsicv-post__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.nsicv .nsicv-post__zoom:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.92) !important;
}

.nsicv-post__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #bae6fd;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.nsicv-post__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  min-width: 0;
}

.nsicv-post__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.nsicv-post__ring {
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nsicv-accent), #db2777, var(--nsicv-cool));
  flex-shrink: 0;
}

.nsicv .nsicv-post__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0f172a;
  display: block;
}

.nsicv-post__who {
  min-width: 0;
  flex: 1;
}

.nsicv .nsicv-post__user {
  font-weight: 800;
  font-size: 1rem;
  color: var(--nsicv-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
}

.nsicv .nsicv-post__user i {
  color: var(--nsicv-cool);
  font-size: 0.85em;
}

.nsicv .nsicv-post__name {
  color: var(--nsicv-dim);
  font-size: 0.86rem;
  word-break: break-word;
}

.nsicv .nsicv-post__caption {
  color: var(--nsicv-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsicv .nsicv-post__caption.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.nsicv .nsicv-post__more {
  align-self: flex-start;
  background: transparent !important;
  border: 0 !important;
  color: #fb923c !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  padding: 4px 0 !important;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--nsicv-font);
  appearance: none;
  -webkit-appearance: none;
}

.nsicv .nsicv-post__more.is-hidden {
  display: none !important;
}

.nsicv .nsicv-mention,
.nsicv .nsicv-hashtag {
  color: #7dd3fc;
  font-weight: 700;
}

.nsicv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--nsicv-line);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nsicv-muted);
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 0;
}

.nsicv .nsicv-stat i {
  color: #fb923c;
}

.nsicv .nsicv-notice {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #dbeafe;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  margin-bottom: 12px;
}

.nsicv .nsicv-notice.is-visible {
  display: flex;
}

/* Comments panel */
.nsicv-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--nsicv-line);
  border-radius: 16px;
  padding: 16px;
  min-height: 280px;
  box-shadow: var(--nsicv-shadow-soft);
}

.nsicv-comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--nsicv-line);
}

.nsicv .nsicv-comments__title {
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nsicv-ink);
}

.nsicv .nsicv-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nsicv-accent), var(--nsicv-accent-deep));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(219, 39, 119, 0.24);
}

.nsicv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsicv .nsicv-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px !important;
  border-radius: 999px;
  border: 1px solid var(--nsicv-line) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--nsicv-muted) !important;
  font-family: var(--nsicv-font);
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nsicv .nsicv-filters__btn.is-active,
.nsicv .nsicv-filters__btn:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(219, 39, 119, 0.95)) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.nsicv-comments__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(560px, 70vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.nsicv-comments__list::-webkit-scrollbar {
  width: 6px;
}

.nsicv-comments__list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.55);
  border-radius: 999px;
}

.nsicv-comment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--nsicv-line);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nsicv-comment::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--nsicv-accent), var(--nsicv-cool));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nsicv-comment:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(255, 255, 255, 0.085);
}

.nsicv-comment:hover::before {
  opacity: 1;
}

.nsicv-comment__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-comment__avatar,
.nsicv .nsicv-comment__fallback {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.nsicv .nsicv-comment__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #db2777, #f97316);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
}

.nsicv-comment__who {
  min-width: 0;
  flex: 1;
}

.nsicv .nsicv-comment__user {
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--nsicv-ink);
  word-break: break-word;
}

.nsicv-cmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
}

.nsicv .nsicv-cmeta__time {
  color: var(--nsicv-dim);
  font-size: 0.78rem;
  font-weight: 700;
}

.nsicv .nsicv-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nsicv .nsicv-badge--verified {
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
}

.nsicv .nsicv-badge--owner {
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
}

.nsicv .nsicv-comment__text {
  color: var(--nsicv-ink) !important;
  font-size: 1rem !important;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
  margin: 2px 0 0;
  min-height: 1.35em;
  opacity: 1 !important;
  visibility: visible !important;
  font-family:
    "Segoe UI Emoji",
    "Apple Color Emoji",
    "Noto Color Emoji",
    "Twemoji Mozilla",
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

.nsicv .nsicv-comment__text img.emoji,
.nsicv .nsicv-comment__text img.twemoji {
  height: 1.25em !important;
  width: 1.25em !important;
  margin: 0 0.05em 0 0.1em !important;
  vertical-align: -0.2em !important;
  display: inline-block !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.nsicv .nsicv-comment__empty {
  color: var(--nsicv-dim) !important;
  font-style: italic;
  font-size: 0.86rem;
}

.nsicv-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--nsicv-dim);
  font-size: 0.82rem;
  font-weight: 800;
}

.nsicv .nsicv-cmeta-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nsicv .nsicv-cmeta-act i {
  color: #fb923c;
}

.nsicv .nsicv-empty {
  text-align: center;
  padding: clamp(36px, 6vw, 56px) 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.5;
  width: 100%;
  min-width: 0;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.nsicv .nsicv-empty i {
  display: block !important;
  font-size: 2.1rem !important;
  margin: 0 auto 14px;
  opacity: 0.9;
  color: #fff;
}

.nsicv .nsicv-empty p {
  margin: 0 auto;
  max-width: 38ch;
  line-height: 1.55;
}

/* Filter section skeleton */
.nsicv .nsicv-tab-sk {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.nsicv-tab-sk__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--nsicv-line);
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-tab-sk__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.nsicv-tab-sk__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nsicv-tab-sk__line {
  height: 12px;
  border-radius: 8px;
}

.nsicv-tab-sk__line--sm { width: min(100px, 40%); }
.nsicv-tab-sk__line--md { width: min(180px, 70%); }
.nsicv-tab-sk__line--lg { width: 100%; }

/* Export */
.nsicv-more {
  appearance: none;
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nsicv-more:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.62);
  transform: translateY(-1px);
}

.nsicv-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.nsicv-more.is-hidden { display: none !important; }
.nsicv-content.is-placeholder .nsicv-more { display: none !important; }

.nsicv-export {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--nsicv-line);
}

.nsicv .nsicv-export__title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--nsicv-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nsicv-export__row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.nsicv .nsicv-export__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px !important;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  background: rgba(56, 189, 248, 0.14) !important;
  color: #bae6fd !important;
  font-family: var(--nsicv-font);
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nsicv .nsicv-export__btn:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.22) !important;
}

.nsicv .nsicv-export__btn--csv {
  background: rgba(249, 115, 22, 0.14) !important;
  color: #fed7aa !important;
  border-color: rgba(249, 115, 22, 0.34) !important;
}

/* Modal */
.nsicv-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
}

.nsicv-modal.is-open {
  display: flex;
}

.nsicv-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--nsicv-panel-strong);
  border: 1px solid var(--nsicv-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

.nsicv .nsicv-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76) !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.nsicv .nsicv-modal__media {
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  border-radius: 14px;
  background: #020617;
}

.nsicv .nsicv-modal__caption {
  margin-top: 12px;
  color: var(--nsicv-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
  padding-right: 40px;
}

/* Download progress toast */
.nsicv-dlprog {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 120%);
  z-index: 1000000;
  width: min(420px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.48);
  color: var(--nsicv-ink);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  backdrop-filter: blur(12px);
}

.nsicv-dlprog.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.nsicv-dlprog.is-success { border-color: rgba(34, 197, 94, 0.5); }
.nsicv-dlprog.is-error { border-color: rgba(251, 113, 133, 0.58); }

.nsicv-dlprog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.nsicv-dlprog__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.nsicv-dlprog__title i { color: var(--nsicv-accent, #f97316); }
.nsicv-dlprog__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nsicv-dlprog__pct {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--nsicv-cool, #38bdf8);
}

.nsicv-dlprog__track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.nsicv-dlprog__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #f97316, #db2777);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transition: width 0.18s ease-out;
}

.nsicv-dlprog.is-indeterminate .nsicv-dlprog__fill {
  width: 36% !important;
  animation: nsicv-dlprog-slide 1.1s ease-in-out infinite;
}

@keyframes nsicv-dlprog-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.nsicv-dlprog__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--nsicv-muted);
  font-variant-numeric: tabular-nums;
}

.nsicv-dlprog__status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Turnstile host: keep hidden in-flow; floating panel styles come from turnstile-handler.js */
.nsicv #xrespond-tools-turnstile-host {
  display: none;
}

.nsicv #xrespond-tools-turnstile-host.is-visible {
  display: block !important;
}

/* Ensure floating Turnstile panel (moved to body) is never clipped/hidden by tool CSS */
body > #xrespond-tools-turnstile-host.is-visible {
  display: block !important;
  position: fixed !important;
  z-index: 2147483000 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nsicv-content.is-placeholder .nsicv-notice,
.nsicv-content.is-placeholder .nsicv-post__download,
.nsicv-content.is-placeholder .nsicv-export {
  display: none !important;
}

.nsicv-content.is-placeholder #nsicv-username {
  order: -1;
  font-size: clamp(1.05rem, 3.5cqi, 1.25rem);
  font-weight: 800;
  color: var(--nsicv-text);
}

.nsicv-content.is-placeholder #nsicv-fullname {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* Search controls: one row on large screens, stack on small and medium */
.nsicv .nsicv-search,
.nsicv .nsicv-search .nsicv-search__row,
.nsicv .nsicv-search .nsicv-search__actions {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.nsicv .nsicv-search .nsicv-search__row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.nsicv .nsicv-search .nsicv-search__field,
.nsicv .nsicv-search .nsicv-search__row > .nsicv-search__field {
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.nsicv .nsicv-search .nsicv-search__actions,
.nsicv .nsicv-search .nsicv-search__row > .nsicv-search__actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

.nsicv .nsicv-search .nsicv-search__row > .nsicv-btn,
.nsicv .nsicv-search .nsicv-search__actions .nsicv-btn,
.nsicv .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 118px !important;
}

/* ns-responsive-fix:nsicv — keep desktop shell max-width; only prevent overflow */
.nsicv-tabs,
.nsicv .nsicv-tabs {
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.nsicv .nsicv-tabs__btn {
  min-width: 0;
  max-width: 100%;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-tabs__btn {
  flex: 0 1 auto;
}

.nsicv.nsicv--compact .nsicv-tabs__btn,
.nsicv.nsicv--narrow .nsicv-tabs__btn {
  flex: 1 1 calc(50% - 8px);
}

.nsicv-hero__lead,
.nsicv .nsicv-hero__lead,
.nsicv-hero__title-text,
.nsicv .nsicv-hero__title-text {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nsicv-shell,
.nsicv .nsicv-shell {
  min-width: 0;
  width: 100%;
}

/* Mobile-first: compact one-column flow for 320px–768px */
@media (max-width: 768px) {
  .nsicv {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    padding: 14px 10px 20px !important;
    overflow-x: hidden !important;
  }

  .nsicv-hero {
    padding: 26px 0 12px !important;
  }

  .nsicv-panel,
  .nsicv-skeleton__panel,
  .nsicv-comments {
    padding: 14px 12px !important;
  }

  .nsicv-search {
    padding: 14px !important;
    border-radius: 16px;
  }

  .nsicv .nsicv-hero__title-text {
    font-size: clamp(1.18rem, 5vw, 1.45rem) !important;
    line-height: 1.25;
    justify-content: center;
    text-align: center;
  }

  .nsicv .nsicv-hero__lead {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .nsicv .nsicv-search .nsicv-search__row,
  .nsicv .nsicv-search__row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .nsicv .nsicv-search .nsicv-search__field,
  .nsicv .nsicv-search__field,
  .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__field {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    line-height: 52px !important;
  }

  .nsicv .nsicv-search .nsicv-search__actions,
  .nsicv .nsicv-search__actions,
  .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__actions {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .nsicv .nsicv-search .nsicv-search__row > .nsicv-btn,
  .nsicv .nsicv-search .nsicv-search__actions .nsicv-btn,
  .nsicv .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn,
  .nsicv .nsicv-search__actions .nsicv-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }

  .nsicv .nsicv-filters__btn {
    flex: 1 1 calc(50% - 8px) !important;
  }

  .nsicv-layout,
  .nsicv-skeleton__panel {
    grid-template-columns: 1fr !important;
  }

  .nsicv-export__row {
    flex-direction: column !important;
  }

  .nsicv .nsicv-export__btn {
    width: 100% !important;
  }

  .nsicv-comments__list {
    max-height: none;
  }
}

@media (max-width: 420px) {
  .nsicv {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .nsicv .nsicv-hero__icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .nsicv .nsicv-filters__btn {
    flex: 1 1 100% !important;
  }

  .nsicv-comment__head,
  .nsicv-skeleton__citem,
  .nsicv-tab-sk__item {
    gap: 10px;
  }
}

/* Tablet+ */
@media (min-width: 769px) {
  .nsicv-search__row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .nsicv .nsicv-search__field {
    flex: 1 1 280px;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .nsicv-search__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .nsicv .nsicv-btn {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 118px !important;
    max-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 18px !important;
  }

  .nsicv .nsicv-filters__btn {
    flex: 1 1 calc(25% - 8px);
  }

  .nsicv-export__row {
    flex-direction: row;
  }

  .nsicv .nsicv-export__btn {
    width: auto;
    flex: 1 1 calc(50% - 8px);
  }

  .nsicv-skeleton__filter {
    flex: 1 1 calc(25% - 8px);
  }
}

@media (min-width: 1024px) {
  .nsicv-layout,
  .nsicv-skeleton__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .nsicv-post__media-wrap,
  .nsicv .nsicv-skeleton__media {
    max-height: 520px;
  }

  .nsicv-comments__list {
    max-height: 620px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .nsicv .nsicv-hero__lead {
    display: none;
  }
}

/* ResizeObserver helpers — after viewport queries so narrow columns win */
.nsicv.nsicv--compact {
  padding: 12px 10px 18px !important;
}

.nsicv.nsicv--compact .nsicv-hero {
  padding: 30px 0 10px;
}

.nsicv.nsicv--compact .nsicv-search {
  padding: 14px 12px !important;
}

.nsicv.nsicv--compact .nsicv-panel,
.nsicv.nsicv--compact .nsicv-skeleton__panel {
  padding: 14px 12px !important;
}

.nsicv.nsicv--compact .nsicv-search__row,
.nsicv.nsicv--compact .nsicv-search .nsicv-search__row,
.nsicv.nsicv--narrow .nsicv-search__row,
.nsicv.nsicv--narrow .nsicv-search .nsicv-search__row {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.nsicv.nsicv--compact .nsicv-search__actions,
.nsicv.nsicv--compact .nsicv-search .nsicv-search__actions,
.nsicv.nsicv--narrow .nsicv-search__actions,
.nsicv.nsicv--narrow .nsicv-search .nsicv-search__actions {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  gap: 10px !important;
}

.nsicv.nsicv--compact .nsicv-search__field,
.nsicv.nsicv--narrow .nsicv-search__field,
.nsicv.nsicv--compact .nsicv-search .nsicv-search__row > .nsicv-search__field,
.nsicv.nsicv--narrow .nsicv-search .nsicv-search__row > .nsicv-search__field {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
}

.nsicv.nsicv--compact .nsicv-search__actions .nsicv-btn,
.nsicv.nsicv--narrow .nsicv-search__actions .nsicv-btn {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 50px !important;
  max-height: 50px !important;
}

.nsicv.nsicv--compact .nsicv-layout,
.nsicv.nsicv--compact .nsicv-skeleton__panel,
.nsicv.nsicv--narrow .nsicv-layout,
.nsicv.nsicv--narrow .nsicv-skeleton__panel {
  grid-template-columns: 1fr !important;
}

.nsicv.nsicv--compact .nsicv-filters__btn {
  flex: 1 1 calc(50% - 8px) !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-search__row {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-search__field {
  flex: 1 1 280px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-search__actions {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-btn {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 118px !important;
}

.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-layout,
.nsicv.nsicv--wide:not(.nsicv--compact) .nsicv-skeleton__panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
}

.nsicv.nsicv--narrow .nsicv-filters__btn {
  flex: 1 1 100% !important;
}

.nsicv.nsicv--narrow .nsicv-export__row {
  flex-direction: column !important;
}

.nsicv.nsicv--narrow .nsicv-hero__title-text {
  font-size: clamp(1.12rem, 5vw, 1.38rem);
  justify-content: center;
  text-align: center;
}

/* Narrow embed on a wide browser: stack when container is compact even if viewport is large */
@container nsicv (max-width: 768px) {
  .nsicv .nsicv-search .nsicv-search__row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  .nsicv .nsicv-search .nsicv-search__field,
  .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__field {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }

  .nsicv .nsicv-search .nsicv-search__actions,
  .nsicv .nsicv-search .nsicv-search__row > .nsicv-search__actions {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nsicv .nsicv-search .nsicv-search__row > .nsicv-btn,
  .nsicv .nsicv-search .nsicv-search__actions .nsicv-btn,
  .nsicv .nsicv-search .nsicv-search__row .nsicv-search__actions .nsicv-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nsicv *,
  .nsicv *::before,
  .nsicv *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nsicv .nsicv-sk {
    animation: none;
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (hover: none) {
  .nsicv .nsicv-btn:hover,
  .nsicv .nsicv-filters__btn:hover,
  .nsicv .nsicv-export__btn:hover,
  .nsicv .nsicv-more:hover,
  .nsicv-comment:hover {
    transform: none !important;
  }
}