@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 Facebook Posts Viewer — WordPress-scoped styles */
  .nsfpo {
    /* Facebook brand blue system — used everywhere */
    --nsfpo-ink: #ffffff;
    --nsfpo-muted: #c5daf8;
    --nsfpo-dim: #8fb4e8;
    --nsfpo-bg: #0b1f3d;
    --nsfpo-panel: #123056;
    --nsfpo-panel-soft: #1a3f70;
    --nsfpo-hover: #24528c;
    --nsfpo-line: rgba(24, 119, 242, 0.45);
    --nsfpo-accent: #1877f2;
    --nsfpo-accent-deep: #0d65d9;
    --nsfpo-cool: #4dabf7;
    --nsfpo-cool-deep: #1877f2;
    --nsfpo-success: #42b72a;
    --nsfpo-danger: #f02849;
    --nsfpo-radius: 10px;
    --nsfpo-shadow: 0 8px 24px rgba(8, 40, 90, 0.45);
    --nsfpo-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --nsfpo-space: 16px;
    --nsfpo-avatar: 128px;
    --nsfpo-pad: 16px;
    --nsfpo-gap: 12px;

    box-sizing: border-box;
    font-family: var(--nsfpo-font);
    color: var(--nsfpo-ink);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(8px, 2vw, 16px);
    background:
      radial-gradient(ellipse 90% 55% at 10% 0%, rgba(24, 119, 242, 0.55), transparent 55%),
      radial-gradient(ellipse 70% 45% at 100% 10%, rgba(13, 101, 217, 0.35), transparent 50%),
      linear-gradient(155deg, #07152b 0%, #0d274f 40%, #143a6e 75%, #1877f2 160%);
    border-radius: 0;
    border: 1px solid var(--nsfpo-line);
    position: relative;
    isolation: isolate;
    text-align: left;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

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

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

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

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

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

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

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

  /* Hero / search */
  .nsfpo-hero {
    background: transparent;
    padding: 36px 0 14px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

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

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

  .nsfpo .nsfpo-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #1877f2;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(24, 119, 242, 0.28);
  }

  .nsfpo .nsfpo-hero__icon i {
    display: block;
    line-height: 1;
  }

  .nsfpo-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: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: left;
  }

  .nsfpo-hero__title-mark {
    color: var(--nsfpo-cool);
    font-weight: 700;
  }

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

  .nsfpo-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(--nsfpo-bg);
    border: 1px solid var(--nsfpo-line);
    border-radius: 8px;
  }

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

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

  .nsfpo .nsfpo-search__field {
    flex: 1 1 160px;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 0 14px !important;
    border: 1px solid var(--nsfpo-line) !important;
    border-radius: 8px;
    background: #0b1f3d !important;
    color: #ffffff !important;
    font-family: var(--nsfpo-font);
    font-size: 16px !important;
    font-weight: 500;
    line-height: 46px;
    outline: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
  }

  .nsfpo .nsfpo-search__field:focus {
    background: #0b1f3d !important;
    border-color: #4dabf7 !important;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.45);
  }

  .nsfpo .nsfpo-search__field::placeholder {
    color: var(--nsfpo-dim);
  }

  .nsfpo .nsfpo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 calc(50% - 4px);
    height: 46px;
    min-height: 46px;
    min-width: 0;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 8px;
    font-family: var(--nsfpo-font);
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    color: #fff !important;
  }

  .nsfpo .nsfpo-btn i,
  .nsfpo .nsfpo-tabs__btn i,
  .nsfpo .nsfpo-card__action i,
  .nsfpo .nsfpo-avatar__zoom i,
  .nsfpo .nsfpo-modal__close i,
  .nsfpo .nsfpo-demo-chip i,
  .nsfpo .nsfpo-card__badge i,
  .nsfpo .nsfpo-card__overlay i,
  .nsfpo .nsfpo-post__stat i,
  .nsfpo .nsfpo-meta__name i,
  .nsfpo i.fa-solid,
  .nsfpo i.fas {
    --fa-display: inline-block;
    display: inline-block !important;
    line-height: 1 !important;
    font-size: 0.92em;
    width: 1.15em;
    text-align: center;
    vertical-align: middle;
    font-style: normal !important;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
  }

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

  .nsfpo .nsfpo-btn:hover {
    filter: brightness(1.08);
  }

  .nsfpo .nsfpo-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
  }

  .nsfpo .nsfpo-btn--paste {
    background: #24528c !important;
    color: #ffffff !important;
    box-shadow: none;
  }

  .nsfpo .nsfpo-btn--paste:hover {
    background: #2d65a8 !important;
  }

  .nsfpo .nsfpo-btn--view {
    background: var(--nsfpo-accent) !important;
    box-shadow: none;
  }

  .nsfpo .nsfpo-search__hint {
    margin: 0;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--nsfpo-dim);
    line-height: 1.4;
  }

  /* Cloudflare Turnstile — sit above the input row, never inside it */
  .nsfpo #xrespond-tools-turnstile-host {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    flex: none;
    order: unset;
    box-sizing: border-box;
  }

  .nsfpo #xrespond-tools-turnstile-host.is-visible {
    display: block;
  }

  .nsfpo #xrespond-tools-turnstile-host .xrespond-ts-label {
    display: block;
    font-size: 0.85rem;
    color: var(--nsfpo-muted);
    margin-bottom: 0.45rem;
  }

  .nsfpo #xrespond-tools-turnstile-host .xrespond-ts-widget {
    min-height: 65px;
    max-width: 100%;
    overflow: hidden;
  }

  .nsfpo #xrespond-tools-turnstile-host .xrespond-ts-error {
    color: #ff8e8e;
  }

  .nsfpo-search__row:has(#xrespond-tools-turnstile-host) {
    flex-wrap: wrap !important;
  }

  .nsfpo-search__row>#xrespond-tools-turnstile-host {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: -1;
  }

  .nsfpo .nsfpo-alert {
    display: none;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(240, 40, 73, 0.18);
    border: 1px solid rgba(240, 40, 73, 0.45);
    color: #ff8a9b;
    font-weight: 600;
    font-size: 0.88rem;
    text-align: left;
    line-height: 1.4;
  }

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

  .nsfpo .nsfpo-demo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.22);
    border: 1px solid rgba(24, 119, 242, 0.55);
    color: #9ec9ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

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

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

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

  .nsfpo .nsfpo-content.is-placeholder .nsfpo-bio,
  .nsfpo .nsfpo-content.is-placeholder .nsfpo-stats {
    display: none !important;
  }

  .nsfpo .nsfpo-content.is-placeholder .nsfpo-avatar__zoom {
    opacity: 0.55;
    pointer-events: none;
  }

  .nsfpo .nsfpo-content.is-placeholder .nsfpo-card__media,
  .nsfpo .nsfpo-content.is-placeholder .nsfpo-card__action,
  .nsfpo .nsfpo-content.is-placeholder .nsfpo-post__image,
  .nsfpo .nsfpo-content.is-placeholder [data-nsfpo-play],
  .nsfpo .nsfpo-content.is-placeholder [data-nsfpo-download] {
    pointer-events: none;
  }

  .nsfpo .nsfpo-content.is-placeholder .nsfpo-card__action {
    opacity: 0.72;
  }

  .nsfpo-card__media--ghost {
    background: linear-gradient(145deg, #123056, #1a4f8c 55%, #0d65d9);
  }

  .nsfpo-card__media--ghost-b {
    background: linear-gradient(145deg, #0f2a4d, #1877f2 60%, #42b72a);
  }

  .nsfpo-card__media--ghost-c {
    background: linear-gradient(145deg, #142848, #24528c 50%, #4dabf7);
  }

  .nsfpo-card__media--ghost .nsfpo-card__img {
    display: none;
  }

  .nsfpo-card__media--post {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .nsfpo-post__avatar--ghost {
    background: linear-gradient(145deg, #123056, #1a4f8c);
    border: 2px solid rgba(24, 119, 242, 0.45);
  }

  .nsfpo-post--ghost .nsfpo-post__author,
  .nsfpo-post--ghost .nsfpo-post__date,
  .nsfpo-post--ghost .nsfpo-post__text {
    opacity: 0.55;
  }

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

    100% {
      background-position: 400px 0;
    }
  }

  .nsfpo .nsfpo-sk {
    background: linear-gradient(90deg,
        rgba(24, 119, 242, 0.15) 0%,
        rgba(77, 171, 247, 0.35) 45%,
        rgba(24, 119, 242, 0.15) 100%);
    background-size: 800px 100%;
    animation: nsfpo-shimmer 1.35s ease-in-out infinite;
    border-radius: 8px;
  }

  .nsfpo-skeleton__panel {
    background: var(--nsfpo-panel);
    border: 1px solid var(--nsfpo-line);
    border-radius: var(--nsfpo-radius);
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfpo .nsfpo-skeleton__cover {
    width: 100%;
    aspect-ratio: 2.7 / 1;
    height: auto;
    min-height: 120px;
    max-height: 380px;
    border-radius: 0;
  }

  .nsfpo-skeleton__profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    justify-items: center;
    padding: 0 var(--nsfpo-pad) 14px;
    text-align: center;
  }

  .nsfpo .nsfpo-skeleton__avatar {
    width: var(--nsfpo-avatar);
    height: var(--nsfpo-avatar);
    margin-top: calc(var(--nsfpo-avatar) / -2);
    border-radius: 50% !important;
    border: 3px solid #123056;
  }

  .nsfpo-skeleton__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    align-items: center;
    width: 100%;
  }

  .nsfpo-skeleton__line {
    height: 16px;
  }

  .nsfpo-skeleton__line--lg {
    width: min(200px, 70%);
    height: 22px;
  }

  .nsfpo-skeleton__line--md {
    width: min(140px, 50%);
    height: 14px;
  }

  .nsfpo-skeleton__stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nsfpo-skeleton__stat {
    width: 72px;
    height: 28px;
    border-radius: 999px;
  }

  .nsfpo-skeleton__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 14px;
    padding: 0 var(--nsfpo-pad);
    width: 100%;
  }

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

  .nsfpo-skeleton__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 var(--nsfpo-pad) 18px;
  }

  .nsfpo-skeleton__card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--nsfpo-line);
    background: var(--nsfpo-panel-soft);
  }

  .nsfpo-skeleton__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 0;
  }

  .nsfpo-skeleton__foot {
    height: 44px;
    margin: 10px 12px;
    border-radius: 8px;
  }

  /* In-pane tab skeletons */
  .nsfpo-tab-sk {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfpo-tab-sk--photos,
  .nsfpo-tab-sk--videos,
  .nsfpo-tab-sk--reels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nsfpo-tab-sk--posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .nsfpo-tab-sk__photo,
  .nsfpo-tab-sk__video,
  .nsfpo-tab-sk__reel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--nsfpo-line);
    background: var(--nsfpo-panel-soft);
  }

  .nsfpo-tab-sk__photo-thumb {
    aspect-ratio: 1 / 1;
  }

  .nsfpo-tab-sk__video-thumb {
    aspect-ratio: 16 / 10;
  }

  .nsfpo-tab-sk__reel-thumb {
    aspect-ratio: 9 / 14;
  }

  .nsfpo-tab-sk__photo-foot,
  .nsfpo-tab-sk__video-foot,
  .nsfpo-tab-sk__reel-foot {
    height: 40px;
    margin: 10px 12px;
    border-radius: 8px;
  }

  .nsfpo-tab-sk__post {
    border-radius: 12px;
    border: 1px solid var(--nsfpo-line);
    background: var(--nsfpo-panel-soft);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nsfpo-tab-sk__post-head {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .nsfpo-tab-sk__post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    flex-shrink: 0;
  }

  .nsfpo-tab-sk__post-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .nsfpo-tab-sk__post-line {
    height: 12px;
    border-radius: 6px;
  }

  .nsfpo-tab-sk__post-line--short {
    width: 40%;
  }

  .nsfpo-tab-sk__post-body {
    height: 64px;
    border-radius: 8px;
  }

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

  .nsfpo-panel {
    background: var(--nsfpo-panel);
    border: 1px solid var(--nsfpo-line);
    border-radius: var(--nsfpo-radius);
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfpo-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2.7 / 1;
    height: auto;
    min-height: 150px;
    max-height: 380px;
    overflow: hidden;
    background: #1a3f70;
    border-radius: 0;
  }

  .nsfpo .nsfpo-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 18%;
  }

  .nsfpo-cover__fade {
    display: none;
  }

  .nsfpo-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    justify-items: center;
    padding: 0 16px 12px;
    margin-top: 0;
    text-align: center;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 2;
  }

  .nsfpo-avatar {
    position: relative;
    width: var(--nsfpo-avatar);
    height: var(--nsfpo-avatar);
    margin-top: calc(var(--nsfpo-avatar) / -2);
    flex-shrink: 0;
  }

  .nsfpo-avatar__ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 0;
    background: #123056;
    border: 4px solid #1877f2;
    box-shadow: 0 0 0 1px var(--nsfpo-line);
    overflow: hidden;
  }

  .nsfpo .nsfpo-avatar__img {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 0;
    background: #1a3f70;
  }

  .nsfpo .nsfpo-avatar__zoom {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: 0 !important;
    border-radius: 50%;
    background: #1877f2 !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #123056;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    z-index: 1;
  }

  .nsfpo .nsfpo-avatar__zoom:hover {
    background: #0d65d9 !important;
  }

  .nsfpo-meta {
    min-width: 0;
    width: 100%;
  }

  .nsfpo .nsfpo-meta__name {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--nsfpo-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.25;
  }

  .nsfpo .nsfpo-meta__name i {
    color: var(--nsfpo-cool);
    font-size: 0.78em;
  }

  .nsfpo .nsfpo-meta__handle {
    margin-top: 2px;
    color: var(--nsfpo-dim);
    font-size: 0.95rem;
    font-weight: 500;
  }

  .nsfpo-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-top: 10px;
  }

  .nsfpo .nsfpo-stats__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--nsfpo-muted);
    font-size: 0.88rem;
    font-weight: 600;
  }

  .nsfpo .nsfpo-stats__badge i {
    color: var(--nsfpo-dim);
    font-size: 0.85em;
  }

  .nsfpo .nsfpo-bio {
    margin-top: 2px;
    color: var(--nsfpo-ink);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
  }

  /* Tabs — Facebook underline style */
  .nsfpo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
    padding: 0 8px;
    width: 100%;
    min-width: 0;
    border-top: 1px solid var(--nsfpo-line);
    margin-top: 4px;
  }

  .nsfpo .nsfpo-tabs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    height: auto;
    padding: 12px 10px !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0;
    background: transparent !important;
    color: var(--nsfpo-muted) !important;
    font-family: var(--nsfpo-font);
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    white-space: nowrap;
  }

  .nsfpo .nsfpo-tabs__btn:hover {
    background: var(--nsfpo-panel-soft) !important;
    transform: none;
    color: var(--nsfpo-ink) !important;
  }

  .nsfpo .nsfpo-tabs__btn.is-active {
    background: rgba(24, 119, 242, 0.18) !important;
    border-bottom-color: #1877f2 !important;
    color: #9ec9ff !important;
  }

  .nsfpo-pane {
    display: none;
    padding: 0 var(--nsfpo-pad) 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfpo-pane.is-active {
    display: block;
  }

  .nsfpo-pane__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
  }

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

  .nsfpo .nsfpo-pane__title i {
    color: var(--nsfpo-accent);
  }

  .nsfpo .nsfpo-pane__count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nsfpo-dim);
  }

  .nsfpo-empty {
    text-align: center;
    padding: 36px 16px;
    color: var(--nsfpo-dim);
    font-size: 0.92rem;
  }

  /* Photo / video / reel grids */
  .nsfpo-grid {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .nsfpo-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--nsfpo-line);
    background: var(--nsfpo-panel-soft);
    min-width: 0;
    transition: transform 0.2s ease;
  }

  .nsfpo-card:hover {
    transform: translateY(-2px);
  }

  .nsfpo-card__media {
    position: relative;
    overflow: hidden;
    background: #1a3f70;
    cursor: pointer;
  }

  .nsfpo-card__media--photo {
    aspect-ratio: 1 / 1;
  }

  .nsfpo-card__media--video {
    aspect-ratio: 16 / 10;
  }

  .nsfpo-card__media--reel {
    aspect-ratio: 9 / 14;
  }

  .nsfpo .nsfpo-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }

  .nsfpo-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 2;
  }

  .nsfpo-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
  }

  .nsfpo-card__play span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
  }

  .nsfpo-card__duration {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .nsfpo-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 2;
  }

  .nsfpo-card:hover .nsfpo-card__overlay,
  .nsfpo-card:focus-within .nsfpo-card__overlay {
    opacity: 1;
  }

  .nsfpo-card__overlay span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .nsfpo-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    min-width: 0;
    flex-wrap: wrap;
  }

  .nsfpo-card__title {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--nsfpo-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nsfpo .nsfpo-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    min-height: 36px;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 8px;
    background: rgba(24, 119, 242, 0.28) !important;
    color: #9ec9ff !important;
    font-family: var(--nsfpo-font);
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
  }

  .nsfpo .nsfpo-card__action--cool {
    background: rgba(66, 183, 42, 0.2) !important;
    color: #7dde68 !important;
  }

  /* Posts feed */
  .nsfpo-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .nsfpo-post {
    border-radius: 12px;
    border: 1px solid var(--nsfpo-line);
    background: var(--nsfpo-panel-soft);
    padding: 14px;
    min-width: 0;
  }

  .nsfpo-post__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 0;
  }

  .nsfpo-post__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(24, 119, 242, 0.45);
  }

  .nsfpo-post__author {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--nsfpo-ink);
    line-height: 1.25;
  }

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

  .nsfpo-post__text {
    color: var(--nsfpo-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .nsfpo .nsfpo-post__image {
    width: 100%;
    max-width: none;
    max-height: 480px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #1a3f70;
  }

  .nsfpo-post__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nsfpo .nsfpo-post__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nsfpo-dim);
  }

  .nsfpo .nsfpo-post__stat i {
    color: var(--nsfpo-accent);
  }

  /* Modal */
  .nsfpo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.65);
    padding: 16px;
    align-items: center;
    justify-content: center;
  }

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

  .nsfpo-modal__dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: min(90vh, 900px);
    background: var(--nsfpo-panel);
    border: 1px solid var(--nsfpo-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }

  .nsfpo .nsfpo-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0 !important;
    border-radius: 50%;
    background: #1877f2 !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
  }

  .nsfpo-modal__stage {
    position: relative;
    width: 100%;
    min-width: 0;
    background: var(--nsfpo-panel-soft);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
  }

  .nsfpo .nsfpo-modal__media {
    width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 10px;
    margin: 0 auto;
    background: #0b1220;
    display: block;
  }

  .nsfpo .nsfpo-modal__media.is-hidden {
    display: none !important;
  }

  .nsfpo .nsfpo-modal__media--video {
    width: 100%;
    max-height: calc(90vh - 120px);
    background: #000;
  }

  .nsfpo-modal__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .nsfpo-modal__meta {
    flex: 1 1 160px;
    margin: 0;
    padding: 0;
    color: var(--nsfpo-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    min-width: 0;
  }

  .nsfpo-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nsfpo .nsfpo-modal__action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    border: 0 !important;
    font: inherit;
    font-weight: 700 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    color: #fff !important;
  }

  .nsfpo .nsfpo-modal__action--download {
    background: linear-gradient(135deg, #1877f2, #42b72a) !important;
  }

  .nsfpo .nsfpo-modal__action:disabled,
  .nsfpo .nsfpo-modal__action.is-hidden {
    display: none !important;
  }

  .nsfpo-modal__loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(8, 12, 24, 0.72);
    color: #fff;
    font-weight: 700;
    z-index: 1;
  }

  .nsfpo-modal__loading.is-visible {
    display: flex;
  }

  .nsfpo-modal__loading i {
    animation: nsfpo-spin 0.9s linear infinite;
  }

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

  .nsfpo-dlprog {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    width: min(360px, calc(100vw - 32px));
    background: rgba(18, 24, 40, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    color: #fff;
    display: none;
  }

  .nsfpo-dlprog.is-open {
    display: block;
  }

  .nsfpo-dlprog.is-success {
    border-color: rgba(66, 183, 42, 0.55);
  }

  .nsfpo-dlprog.is-error {
    border-color: rgba(255, 107, 122, 0.55);
  }

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

  .nsfpo-dlprog__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 700;
    font-size: 0.9rem;
  }

  .nsfpo-dlprog__title i {
    color: #42b72a;
  }

  .nsfpo-dlprog__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nsfpo-dlprog__pct {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .nsfpo-dlprog__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
  }

  .nsfpo-dlprog__fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1877f2, #42b72a);
    transition: width 0.2s ease;
  }

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

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

    100% {
      transform: translateX(280%);
    }
  }

  .nsfpo-dlprog__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
  }

  .nsfpo-card__foot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }

  /* Responsive: tablet */
  @media (min-width: 768px) {
    .nsfpo-search__row {
      flex-wrap: nowrap;
    }

    .nsfpo .nsfpo-search__field {
      flex: 1 1 auto;
    }

    .nsfpo .nsfpo-btn {
      flex: 0 0 auto;
      min-width: 110px;
      padding: 0 18px !important;
    }

    .nsfpo-profile {
      grid-template-columns: auto 1fr;
      justify-items: start;
      align-items: end;
      text-align: left;
      gap: 18px 20px;
      padding-left: 20px;
      padding-right: 20px;
    }

    .nsfpo-avatar {
      align-self: start;
    }

    .nsfpo-meta {
      text-align: left;
      padding-top: 10px;
    }

    .nsfpo .nsfpo-meta__name {
      justify-content: flex-start;
    }

    .nsfpo-stats {
      justify-content: flex-start;
    }

    .nsfpo .nsfpo-bio {
      grid-column: 1 / -1;
      margin-left: 0;
      margin-right: 0;
      max-width: none;
      text-align: left;
    }

    .nsfpo-tabs {
      justify-content: flex-start;
      padding-left: 20px;
      padding-right: 20px;
    }

    .nsfpo .nsfpo-tabs__btn {
      flex: 0 1 auto;
      min-width: 120px;
      padding: 10px 18px !important;
    }

    .nsfpo-pane {
      padding-left: 20px;
      padding-right: 20px;
    }

    .nsfpo-skeleton__profile {
      grid-template-columns: auto 1fr;
      justify-items: start;
      text-align: left;
      padding-left: 20px;
      padding-right: 20px;
    }

    .nsfpo-skeleton__meta {
      align-items: flex-start;
      text-align: left;
    }

    .nsfpo-skeleton__stats {
      justify-content: flex-start;
    }

    .nsfpo-skeleton__tabs {
      justify-content: flex-start;
      padding-left: 20px;
      padding-right: 20px;
    }

    .nsfpo-skeleton__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      padding-left: 20px;
      padding-right: 20px;
    }

    .nsfpo-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nsfpo-tab-sk--photos,
    .nsfpo-tab-sk--videos,
    .nsfpo-tab-sk--reels {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nsfpo .nsfpo-skeleton__cover {
      height: auto;
    }
  }

  /* Responsive: desktop */
  @media (min-width: 1024px) {
    .nsfpo-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .nsfpo-skeleton__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nsfpo-tab-sk--photos,
    .nsfpo-tab-sk--videos {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nsfpo-tab-sk--reels {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nsfpo .nsfpo-skeleton__cover,
    .nsfpo-cover {
      height: auto;
      max-height: 380px;
    }

    .nsfpo {
      --nsfpo-avatar: 132px;
    }
  }

  /* ResizeObserver helpers */
  .nsfpo.nsfpo--compact .nsfpo-search__row {
    flex-wrap: wrap;
  }

  .nsfpo.nsfpo--compact .nsfpo-search__field {
    flex: 1 1 100%;
  }

  .nsfpo.nsfpo--compact .nsfpo-btn {
    flex: 1 1 calc(50% - 4px);
  }

  .nsfpo.nsfpo--compact .nsfpo-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nsfpo.nsfpo--compact .nsfpo-meta,
  .nsfpo.nsfpo--compact .nsfpo-bio {
    text-align: center;
  }

  .nsfpo.nsfpo--compact .nsfpo-meta__name,
  .nsfpo.nsfpo--compact .nsfpo-stats,
  .nsfpo.nsfpo--compact .nsfpo-tabs {
    justify-content: center;
  }

  .nsfpo.nsfpo--compact .nsfpo-grid,
  .nsfpo.nsfpo--compact .nsfpo-skeleton__grid,
  .nsfpo.nsfpo--compact .nsfpo-tab-sk--photos,
  .nsfpo.nsfpo--compact .nsfpo-tab-sk--videos,
  .nsfpo.nsfpo--compact .nsfpo-tab-sk--reels {
    grid-template-columns: 1fr;
  }

  .nsfpo.nsfpo--narrow .nsfpo-btn {
    flex: 1 1 100%;
  }

  .nsfpo.nsfpo--narrow .nsfpo-tabs__btn {
    flex: 1 1 100%;
  }

  .nsfpo.nsfpo--narrow {
    --nsfpo-avatar: 84px;
    padding-left: 6px;
    padding-right: 6px;
  }

  @media (prefers-reduced-motion: reduce) {

    .nsfpo *,
    .nsfpo *::before,
    .nsfpo *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .nsfpo .nsfpo-sk {
      animation: none;
      background: #1a3f70;
    }
  }

  @media (hover: none) {

    .nsfpo .nsfpo-btn:hover,
    .nsfpo .nsfpo-tabs__btn:hover,
    .nsfpo-card:hover {
      transform: none;
    }

    .nsfpo-card:hover .nsfpo-card__overlay {
      opacity: 0;
    }

    .nsfpo-card:focus-within .nsfpo-card__overlay,
    .nsfpo-card__media:active .nsfpo-card__overlay {
      opacity: 1;
    }
  }

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

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

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

  .nsfpo .nsfpo-search .nsfpo-search__actions,
  .nsfpo .nsfpo-search .nsfpo-search__row > .nsfpo-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;
  }

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

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

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

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

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

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

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

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

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

/* --- Codex CSS updates --- */
/* New Social Facebook Posts Viewer - WordPress-scoped styles */
.nsfpo {
  --nsfpo-ink: #0f172a;
  --nsfpo-muted: #475569;
  --nsfpo-dim: #64748b;
  --nsfpo-bg: #f3f7ff;
  --nsfpo-panel: #ffffff;
  --nsfpo-panel-soft: #f8fbff;
  --nsfpo-hover: #e7f0ff;
  --nsfpo-line: rgba(24, 119, 242, 0.18);
  --nsfpo-accent: #1877f2;
  --nsfpo-accent-deep: #0d65d9;
  --nsfpo-cool: #0d65d9;
  --nsfpo-cool-deep: #0b57bd;
  --nsfpo-success: #16a34a;
  --nsfpo-danger: #dc2626;
  --nsfpo-radius: 14px;
  --nsfpo-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --nsfpo-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nsfpo-space: 16px;
  --nsfpo-avatar: 128px;
  --nsfpo-pad: clamp(14px, 2.5vw, 24px);
  --nsfpo-gap: 16px;

  box-sizing: border-box;
  font-family: var(--nsfpo-font);
  color: var(--nsfpo-ink);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 32px);
  background:
    radial-gradient(ellipse 70% 48% at 0% 0%, rgba(24, 119, 242, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 38% at 100% 8%, rgba(66, 183, 42, 0.12), transparent 52%),
    linear-gradient(180deg, #eef5ff 0%, #f8fbff 46%, #ffffff 100%);
  border-radius: 0;
  border: 0;
  position: relative;
  isolation: isolate;
  text-align: left;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

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

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

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

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

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

/* Hero / search */
.nsfpo-hero {
  background: transparent;
  padding: clamp(18px, 4vw, 42px) 0 14px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

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

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

.nsfpo .nsfpo-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1877f2, #0d65d9);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.26);
}

.nsfpo .nsfpo-hero__icon i {
  display: block;
  line-height: 1;
}

.nsfpo-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.45rem, 3.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: left;
  text-transform: capitalize;
}

.nsfpo-hero__title-mark {
  color: var(--nsfpo-cool);
  font-weight: 800;
  text-transform: capitalize;
}

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

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

.nsfpo .nsfpo-search__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nsfpo-ink);
  line-height: 1.3;
}

.nsfpo-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.nsfpo .nsfpo-search__field {
  flex: 1 1 180px;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 0 15px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 10px;
  background: #ffffff !important;
  color: var(--nsfpo-ink) !important;
  font-family: var(--nsfpo-font);
  font-size: 16px !important;
  font-weight: 500;
  line-height: 48px;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  width: 100%;
  max-width: 100%;
}

.nsfpo .nsfpo-search__field:focus {
  background: #ffffff !important;
  border-color: var(--nsfpo-accent) !important;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.16);
}

.nsfpo .nsfpo-search__field::placeholder {
  color: #94a3b8;
}

.nsfpo .nsfpo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 calc(50% - 5px);
  height: 48px;
  min-height: 48px;
  min-width: 0;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px;
  font-family: var(--nsfpo-font);
  font-size: 0.94rem !important;
  font-weight: 750 !important;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  color: #fff !important;
}

.nsfpo .nsfpo-btn i,
.nsfpo .nsfpo-tabs__btn i,
.nsfpo .nsfpo-card__action i,
.nsfpo .nsfpo-avatar__zoom i,
.nsfpo .nsfpo-modal__close i,
.nsfpo .nsfpo-demo-chip i,
.nsfpo .nsfpo-card__badge i,
.nsfpo .nsfpo-card__overlay i,
.nsfpo .nsfpo-post__stat i,
.nsfpo .nsfpo-meta__name i,
.nsfpo i.fa-solid,
.nsfpo i.fas,
.nsfpo .fa-download,
.nsfpo .fa-expand,
.nsfpo .fa-eye,
.nsfpo .fa-film,
.nsfpo .fa-images,
.nsfpo .fa-newspaper,
.nsfpo .fa-paste,
.nsfpo .fa-spinner,
.nsfpo .fa-video,
.nsfpo .fa-xmark {
  --fa-display: inline-block;
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 0.92em;
  width: 1.15em;
  text-align: center;
  vertical-align: middle;
  font-style: normal !important;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.nsfpo .fa-spinner {
  animation: nsfpo-spin 0.9s linear infinite;
}

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

.nsfpo .nsfpo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(24, 119, 242, 0.2);
  filter: none;
}

.nsfpo .nsfpo-btn:focus-visible,
.nsfpo .nsfpo-tabs__btn:focus-visible,
.nsfpo .nsfpo-card__action:focus-visible,
.nsfpo .nsfpo-avatar__zoom:focus-visible,
.nsfpo .nsfpo-modal__close:focus-visible,
.nsfpo .nsfpo-modal__action:focus-visible {
  outline: 3px solid rgba(24, 119, 242, 0.28);
  outline-offset: 2px;
}

.nsfpo .nsfpo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

.nsfpo .nsfpo-btn--paste {
  background: #334155 !important;
  color: #ffffff !important;
  box-shadow: none;
}

.nsfpo .nsfpo-btn--paste:hover {
  background: #1e293b !important;
}

.nsfpo .nsfpo-btn--view {
  background: linear-gradient(135deg, #1877f2, #0d65d9) !important;
  box-shadow: 0 10px 22px rgba(24, 119, 242, 0.22);
}

.nsfpo .nsfpo-search__hint {
  margin: 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--nsfpo-dim);
  line-height: 1.4;
}

/* Cloudflare Turnstile - sit above the input row, never inside it */
.nsfpo #xrespond-tools-turnstile-host {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  flex: none;
  order: unset;
  box-sizing: border-box;
}

.nsfpo #xrespond-tools-turnstile-host.is-visible {
  display: block;
}

.nsfpo #xrespond-tools-turnstile-host .xrespond-ts-label {
  display: block;
  font-size: 0.85rem;
  color: var(--nsfpo-muted);
  margin-bottom: 0.45rem;
}

.nsfpo #xrespond-tools-turnstile-host .xrespond-ts-widget {
  min-height: 65px;
  max-width: 100%;
  overflow: hidden;
}

.nsfpo #xrespond-tools-turnstile-host .xrespond-ts-error {
  color: var(--nsfpo-danger);
}

.nsfpo-search__row:has(#xrespond-tools-turnstile-host) {
  flex-wrap: wrap !important;
}

.nsfpo-search__row > #xrespond-tools-turnstile-host {
  flex: 0 0 100% !important;
  width: 100% !important;
  order: -1;
}

.nsfpo .nsfpo-alert {
  display: none;
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: #991b1b;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: left;
  line-height: 1.4;
}

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

.nsfpo .nsfpo-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e7f0ff;
  border: 1px solid rgba(24, 119, 242, 0.22);
  color: #0d65d9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

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

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

.nsfpo .nsfpo-content.is-placeholder .nsfpo-bio,
.nsfpo .nsfpo-content.is-placeholder .nsfpo-stats {
  display: none !important;
}

.nsfpo .nsfpo-content.is-placeholder .nsfpo-avatar__zoom {
  opacity: 0.55;
  pointer-events: none;
}

.nsfpo .nsfpo-content.is-placeholder .nsfpo-card__media,
.nsfpo .nsfpo-content.is-placeholder .nsfpo-card__action,
.nsfpo .nsfpo-content.is-placeholder .nsfpo-post__image,
.nsfpo .nsfpo-content.is-placeholder [data-nsfpo-play],
.nsfpo .nsfpo-content.is-placeholder [data-nsfpo-download] {
  pointer-events: none;
}

.nsfpo .nsfpo-content.is-placeholder .nsfpo-card__action {
  opacity: 0.72;
}

.nsfpo-card__media--ghost {
  background: linear-gradient(145deg, #dbeafe, #bfdbfe 55%, #1877f2);
}

.nsfpo-card__media--ghost-b {
  background: linear-gradient(145deg, #e0f2fe, #93c5fd 60%, #16a34a);
}

.nsfpo-card__media--ghost-c {
  background: linear-gradient(145deg, #eef2ff, #bfdbfe 50%, #60a5fa);
}

.nsfpo-card__media--ghost .nsfpo-card__img {
  display: none;
}

.nsfpo-card__media--post {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  margin-bottom: 10px;
}

.nsfpo-post__avatar--ghost {
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  border: 2px solid rgba(24, 119, 242, 0.28);
}

.nsfpo-post--ghost .nsfpo-post__author,
.nsfpo-post--ghost .nsfpo-post__date,
.nsfpo-post--ghost .nsfpo-post__text {
  opacity: 0.6;
}

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

  100% {
    background-position: 400px 0;
  }
}

.nsfpo .nsfpo-sk {
  background: linear-gradient(90deg, rgba(24, 119, 242, 0.08) 0%, rgba(24, 119, 242, 0.18) 45%, rgba(24, 119, 242, 0.08) 100%);
  background-size: 800px 100%;
  animation: nsfpo-shimmer 1.35s ease-in-out infinite;
  border-radius: 8px;
}

.nsfpo-skeleton__panel {
  background: var(--nsfpo-panel);
  border: 1px solid var(--nsfpo-line);
  border-radius: var(--nsfpo-radius);
  box-shadow: var(--nsfpo-shadow);
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfpo .nsfpo-skeleton__cover {
  width: 100%;
  aspect-ratio: 2.7 / 1;
  height: auto;
  min-height: 120px;
  max-height: 380px;
  border-radius: 0;
}

.nsfpo-skeleton__profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  padding: 0 var(--nsfpo-pad) 14px;
  text-align: center;
}

.nsfpo .nsfpo-skeleton__avatar {
  width: var(--nsfpo-avatar);
  height: var(--nsfpo-avatar);
  margin-top: calc(var(--nsfpo-avatar) / -2);
  border-radius: 50% !important;
  border: 4px solid #ffffff;
}

.nsfpo-skeleton__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  align-items: center;
  width: 100%;
}

.nsfpo-skeleton__line {
  height: 16px;
}

.nsfpo-skeleton__line--lg {
  width: min(200px, 70%);
  height: 22px;
}

.nsfpo-skeleton__line--md {
  width: min(140px, 50%);
  height: 14px;
}

.nsfpo-skeleton__stats {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.nsfpo-skeleton__stat {
  width: 72px;
  height: 28px;
  border-radius: 999px;
}

.nsfpo-skeleton__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 0 var(--nsfpo-pad);
  width: 100%;
}

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

.nsfpo-skeleton__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 var(--nsfpo-pad) 18px;
}

.nsfpo-skeleton__card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nsfpo-line);
  background: var(--nsfpo-panel-soft);
}

.nsfpo-skeleton__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.nsfpo-skeleton__foot {
  height: 44px;
  margin: 10px 12px;
  border-radius: 8px;
}

/* In-pane tab skeletons */
.nsfpo-tab-sk {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfpo-tab-sk--photos,
.nsfpo-tab-sk--videos,
.nsfpo-tab-sk--reels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.nsfpo-tab-sk--posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nsfpo-tab-sk__photo,
.nsfpo-tab-sk__video,
.nsfpo-tab-sk__reel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nsfpo-line);
  background: var(--nsfpo-panel-soft);
}

.nsfpo-tab-sk__photo-thumb {
  aspect-ratio: 1 / 1;
}

.nsfpo-tab-sk__video-thumb {
  aspect-ratio: 16 / 10;
}

.nsfpo-tab-sk__reel-thumb {
  aspect-ratio: 9 / 14;
}

.nsfpo-tab-sk__photo-foot,
.nsfpo-tab-sk__video-foot,
.nsfpo-tab-sk__reel-foot {
  height: 40px;
  margin: 10px 12px;
  border-radius: 8px;
}

.nsfpo-tab-sk__post {
  border-radius: 12px;
  border: 1px solid var(--nsfpo-line);
  background: var(--nsfpo-panel-soft);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nsfpo-tab-sk__post-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nsfpo-tab-sk__post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.nsfpo-tab-sk__post-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nsfpo-tab-sk__post-line {
  height: 12px;
  border-radius: 6px;
}

.nsfpo-tab-sk__post-line--short {
  width: 40%;
}

.nsfpo-tab-sk__post-body {
  height: 64px;
  border-radius: 8px;
}

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

.nsfpo-panel {
  background: var(--nsfpo-panel);
  border: 1px solid var(--nsfpo-line);
  border-radius: var(--nsfpo-radius);
  box-shadow: var(--nsfpo-shadow);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfpo-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2.7 / 1;
  height: auto;
  min-height: 150px;
  max-height: 380px;
  overflow: hidden;
  background: #dbeafe;
  border-radius: 0;
}

.nsfpo .nsfpo-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
}

.nsfpo-cover__fade {
  display: none;
}

.nsfpo-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  justify-items: center;
  padding: 0 var(--nsfpo-pad) 16px;
  margin-top: 0;
  text-align: center;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.nsfpo-avatar {
  position: relative;
  width: var(--nsfpo-avatar);
  height: var(--nsfpo-avatar);
  margin-top: calc(var(--nsfpo-avatar) / -2);
  flex-shrink: 0;
}

.nsfpo-avatar__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 0;
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.32), 0 12px 28px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.nsfpo .nsfpo-avatar__img {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 0;
  background: #dbeafe;
}

.nsfpo .nsfpo-avatar__zoom {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 0 !important;
  border-radius: 50%;
  background: #1877f2 !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #ffffff;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  z-index: 1;
}

.nsfpo .nsfpo-avatar__zoom:hover {
  background: #0d65d9 !important;
}

.nsfpo-meta {
  min-width: 0;
  width: 100%;
}

.nsfpo .nsfpo-meta__name {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--nsfpo-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.nsfpo .nsfpo-meta__name i {
  color: var(--nsfpo-cool);
  font-size: 0.78em;
}

.nsfpo .nsfpo-meta__handle {
  margin-top: 2px;
  color: var(--nsfpo-dim);
  font-size: 0.95rem;
  font-weight: 600;
}

.nsfpo-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 10px;
}

.nsfpo .nsfpo-stats__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--nsfpo-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.nsfpo .nsfpo-stats__badge i {
  color: var(--nsfpo-accent);
  font-size: 0.85em;
}

.nsfpo .nsfpo-bio {
  margin-top: 2px;
  color: var(--nsfpo-ink);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Tabs - Facebook underline style */
.nsfpo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  padding: 0 var(--nsfpo-pad);
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--nsfpo-line);
  margin-top: 4px;
}

.nsfpo .nsfpo-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  height: auto;
  padding: 12px 10px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--nsfpo-muted) !important;
  font-family: var(--nsfpo-font);
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  white-space: nowrap;
}

.nsfpo .nsfpo-tabs__btn:hover {
  background: var(--nsfpo-hover) !important;
  transform: none;
  color: var(--nsfpo-ink) !important;
}

.nsfpo .nsfpo-tabs__btn.is-active {
  background: #edf5ff !important;
  border-bottom-color: #1877f2 !important;
  color: #0d65d9 !important;
}

.nsfpo-pane {
  display: none;
  padding: 0 var(--nsfpo-pad) 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfpo-pane.is-active {
  display: block;
}

.nsfpo-pane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

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

.nsfpo .nsfpo-pane__title i {
  color: var(--nsfpo-accent);
}

.nsfpo .nsfpo-pane__count {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--nsfpo-dim);
}

.nsfpo-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--nsfpo-dim);
  font-size: 0.92rem;
}

/* Photo / video / reel grids */
.nsfpo-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.nsfpo-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nsfpo-line);
  background: var(--nsfpo-panel-soft);
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.nsfpo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

.nsfpo-card__media {
  position: relative;
  overflow: hidden;
  background: #dbeafe;
  cursor: pointer;
}

.nsfpo-card__media--photo {
  aspect-ratio: 1 / 1;
}

.nsfpo-card__media--video {
  aspect-ratio: 16 / 10;
}

.nsfpo-card__media--reel {
  aspect-ratio: 9 / 14;
}

.nsfpo .nsfpo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.nsfpo-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 2;
}

.nsfpo-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.nsfpo-card__play span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.64);
  border: 2px solid rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.nsfpo-card__duration {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.nsfpo-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  z-index: 2;
}

.nsfpo-card:hover .nsfpo-card__overlay,
.nsfpo-card:focus-within .nsfpo-card__overlay {
  opacity: 1;
}

.nsfpo-card__overlay span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nsfpo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.nsfpo-card__title {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--nsfpo-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsfpo .nsfpo-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 9px;
  background: #e7f0ff !important;
  color: #0d65d9 !important;
  font-family: var(--nsfpo-font);
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.nsfpo .nsfpo-card__action:hover {
  background: #dbeafe !important;
}

.nsfpo .nsfpo-card__action--cool {
  background: #dcfce7 !important;
  color: #15803d !important;
}

/* Posts feed */
.nsfpo-posts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.nsfpo-post {
  border-radius: 12px;
  border: 1px solid var(--nsfpo-line);
  background: var(--nsfpo-panel-soft);
  padding: 14px;
  min-width: 0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.nsfpo-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

.nsfpo-post__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(24, 119, 242, 0.28);
}

.nsfpo-post__author {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--nsfpo-ink);
  line-height: 1.25;
}

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

.nsfpo-post__text {
  color: var(--nsfpo-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.nsfpo .nsfpo-post__image {
  width: 100%;
  max-width: none;
  max-height: 480px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #dbeafe;
}

.nsfpo-post__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nsfpo .nsfpo-post__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--nsfpo-dim);
}

.nsfpo .nsfpo-post__stat i {
  color: var(--nsfpo-accent);
}

/* Modal */
.nsfpo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.72);
  padding: 16px;
  align-items: center;
  justify-content: center;
}

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

.nsfpo-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  background: #ffffff;
  border: 1px solid rgba(24, 119, 242, 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.nsfpo .nsfpo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0 !important;
  border-radius: 50%;
  background: #1877f2 !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.24);
}

.nsfpo-modal__stage {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.nsfpo .nsfpo-modal__media {
  width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto;
  background: #020617;
  display: block;
}

.nsfpo .nsfpo-modal__media.is-hidden {
  display: none !important;
}

.nsfpo .nsfpo-modal__media--video {
  width: 100%;
  max-height: calc(90vh - 120px);
  background: #000;
}

.nsfpo .nsfpo-modal__media--img {
  width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  background: #020617;
}

.nsfpo-modal__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.nsfpo-modal__meta {
  flex: 1 1 160px;
  margin: 0;
  padding: 0;
  color: var(--nsfpo-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  min-width: 0;
}

.nsfpo-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nsfpo .nsfpo-modal__action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  border: 0 !important;
  font: inherit;
  font-weight: 800 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  color: #fff !important;
}

.nsfpo .nsfpo-modal__action--download {
  background: linear-gradient(135deg, #1877f2, #16a34a) !important;
}

.nsfpo .nsfpo-modal__action:disabled,
.nsfpo .nsfpo-modal__action.is-hidden {
  display: none !important;
}

.nsfpo-modal__loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 800;
  z-index: 1;
}

.nsfpo-modal__loading.is-visible {
  display: flex;
}

.nsfpo-modal__loading i {
  animation: nsfpo-spin 0.9s linear infinite;
}

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

.nsfpo-dlprog {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  width: min(360px, calc(100vw - 32px));
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  color: #fff;
  display: none;
}

.nsfpo-dlprog.is-open {
  display: block;
}

.nsfpo-dlprog.is-success {
  border-color: rgba(22, 163, 74, 0.58);
}

.nsfpo-dlprog.is-error {
  border-color: rgba(220, 38, 38, 0.6);
}

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

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

.nsfpo-dlprog__title i {
  color: #22c55e;
}

.nsfpo-dlprog__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nsfpo-dlprog__pct {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
}

.nsfpo-dlprog__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.nsfpo-dlprog__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1877f2, #22c55e);
  transition: width 0.2s ease;
}

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

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

  100% {
    transform: translateX(280%);
  }
}

.nsfpo-dlprog__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.74);
}

.nsfpo-card__foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

/* Responsive: tablet */
@media (min-width: 768px) {
  .nsfpo-search__row {
    flex-wrap: nowrap;
  }

  .nsfpo .nsfpo-search__field {
    flex: 1 1 auto;
  }

  .nsfpo .nsfpo-btn {
    flex: 0 0 auto;
    min-width: 112px;
    padding: 0 18px !important;
  }

  .nsfpo-profile {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: end;
    text-align: left;
    gap: 18px 20px;
  }

  .nsfpo-avatar {
    align-self: start;
  }

  .nsfpo-meta {
    text-align: left;
    padding-top: 10px;
  }

  .nsfpo .nsfpo-meta__name {
    justify-content: flex-start;
  }

  .nsfpo-stats {
    justify-content: flex-start;
  }

  .nsfpo .nsfpo-bio {
    grid-column: 1 / -1;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }

  .nsfpo-tabs {
    justify-content: flex-start;
  }

  .nsfpo .nsfpo-tabs__btn {
    flex: 0 1 auto;
    min-width: 120px;
    padding: 10px 18px !important;
  }

  .nsfpo-skeleton__profile {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .nsfpo-skeleton__meta {
    align-items: flex-start;
    text-align: left;
  }

  .nsfpo-skeleton__stats {
    justify-content: flex-start;
  }

  .nsfpo-skeleton__tabs {
    justify-content: flex-start;
  }

  .nsfpo-skeleton__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsfpo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsfpo-tab-sk--photos,
  .nsfpo-tab-sk--videos,
  .nsfpo-tab-sk--reels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsfpo .nsfpo-skeleton__cover {
    height: auto;
  }
}

/* Responsive: desktop */
@media (min-width: 1024px) {
  .nsfpo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .nsfpo-skeleton__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nsfpo-tab-sk--photos,
  .nsfpo-tab-sk--videos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nsfpo-tab-sk--reels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nsfpo .nsfpo-skeleton__cover,
  .nsfpo-cover {
    height: auto;
    max-height: 380px;
  }

  .nsfpo {
    --nsfpo-avatar: 132px;
  }
}

/* ResizeObserver helpers */
.nsfpo.nsfpo--compact .nsfpo-search__row {
  flex-wrap: wrap;
}

.nsfpo.nsfpo--compact .nsfpo-search__field {
  flex: 1 1 100%;
}

.nsfpo.nsfpo--compact .nsfpo-btn {
  flex: 1 1 calc(50% - 4px);
}

.nsfpo.nsfpo--compact .nsfpo-profile {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.nsfpo.nsfpo--compact .nsfpo-meta,
.nsfpo.nsfpo--compact .nsfpo-bio {
  text-align: center;
}

.nsfpo.nsfpo--compact .nsfpo-meta__name,
.nsfpo.nsfpo--compact .nsfpo-stats,
.nsfpo.nsfpo--compact .nsfpo-tabs {
  justify-content: center;
}

.nsfpo.nsfpo--compact .nsfpo-grid,
.nsfpo.nsfpo--compact .nsfpo-skeleton__grid,
.nsfpo.nsfpo--compact .nsfpo-tab-sk--photos,
.nsfpo.nsfpo--compact .nsfpo-tab-sk--videos,
.nsfpo.nsfpo--compact .nsfpo-tab-sk--reels {
  grid-template-columns: 1fr;
}

.nsfpo.nsfpo--narrow .nsfpo-btn {
  flex: 1 1 100%;
}

.nsfpo.nsfpo--narrow .nsfpo-tabs__btn {
  flex: 1 1 100%;
}

.nsfpo.nsfpo--narrow {
  --nsfpo-avatar: 84px;
  padding-left: 8px;
  padding-right: 8px;
}

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

  .nsfpo .nsfpo-sk {
    animation: none;
    background: #dbeafe;
  }
}

@media (hover: none) {
  .nsfpo .nsfpo-btn:hover,
  .nsfpo .nsfpo-tabs__btn:hover,
  .nsfpo-card:hover {
    transform: none;
  }

  .nsfpo-card:hover .nsfpo-card__overlay {
    opacity: 0;
  }

  .nsfpo-card:focus-within .nsfpo-card__overlay,
  .nsfpo-card__media:active .nsfpo-card__overlay {
    opacity: 1;
  }
}

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

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

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

.nsfpo .nsfpo-search .nsfpo-search__actions,
.nsfpo .nsfpo-search .nsfpo-search__row > .nsfpo-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;
}

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

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

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

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

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

@media (max-width: 720px) {
  .nsfpo {
    padding: 10px;
  }

  .nsfpo-hero__brand {
    align-items: flex-start;
  }

  .nsfpo .nsfpo-hero__icon {
    width: 40px;
    height: 40px;
  }

  .nsfpo-hero__title-text {
    font-size: clamp(1.25rem, 7vw, 1.65rem);
  }

  .nsfpo .nsfpo-search .nsfpo-search__row {
    flex-wrap: wrap !important;
  }

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

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

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

  .nsfpo-tabs {
    padding-left: 8px;
    padding-right: 8px;
  }

  .nsfpo .nsfpo-tabs__btn {
    flex: 1 1 50%;
    min-height: 46px;
    white-space: normal;
  }

  .nsfpo-modal {
    padding: 10px;
  }

  .nsfpo-modal__dialog {
    max-height: 92vh;
    padding: 10px;
  }

  .nsfpo-modal__actions,
  .nsfpo .nsfpo-modal__action {
    width: 100%;
  }

  .nsfpo-dlprog {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 420px) {
  .nsfpo {
    --nsfpo-avatar: 88px;
  }

  .nsfpo-hero__brand {
    gap: 9px;
  }

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

  .nsfpo-card__foot,
  .nsfpo-modal__bar {
    align-items: stretch;
    flex-direction: column;
  }

  .nsfpo-card__foot-actions,
  .nsfpo .nsfpo-card__action {
    width: 100%;
    justify-content: center;
  }
}