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

    box-sizing: border-box !important;
    font-family: var(--nsfph-font);
    color: var(--nsfph-ink);
    line-height: 1.5;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-width: 0 !important;
    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(--nsfph-line);
    position: relative;
    isolation: isolate;
    text-align: left;
    overflow-x: hidden !important;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

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

  .nsfph :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

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

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

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

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

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

  .nsfph-hero {
    background: transparent;
    padding: 36px 0 14px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

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

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

  .nsfph .nsfph-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);
  }

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

  .nsfph-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.2rem, 4.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: left;
  }

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

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

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

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

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

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

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

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

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

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

  .nsfph .nsfph-btn i,
  .nsfph .nsfph-tabs__btn i,
  .nsfph .nsfph-card__action i,
  .nsfph .nsfph-profile__zoom i,
  .nsfph .nsfph-modal__close i,
  .nsfph .nsfph-modal__dl i,
  .nsfph .nsfph-demo-chip i,
  .nsfph .nsfph-notice i,
  .nsfph .nsfph-card__badge i,
  .nsfph .nsfph-card__overlay i,
  .nsfph .nsfph-meta__chip i,
  .nsfph i.fa-solid,
  .nsfph 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;
    flex-shrink: 0;
  }

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

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

  .nsfph .nsfph-btn:active {
    opacity: 0.92;
  }

  .nsfph .nsfph-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    filter: none;
  }

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

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

  .nsfph .nsfph-btn--view {
    background: var(--nsfph-accent) !important;
    color: #ffffff !important;
    box-shadow: none;
  }

  .nsfph .nsfph-btn--view:hover {
    background: var(--nsfph-accent-deep) !important;
  }

  .nsfph .nsfph-search__hint {
    font-size: 0.82rem;
    color: var(--nsfph-dim);
    line-height: 1.4;
    max-width: 100%;
  }

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

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

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

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

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

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

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

  .nsfph-demo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    max-width: 100%;
    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;
    white-space: normal;
  }

  .nsfph .nsfph-alert {
    display: none;
    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.86rem;
    line-height: 1.4;
    word-break: break-word;
  }

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

  .nsfph .nsfph-notice {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(24, 119, 242, 0.16);
    border: 1px solid rgba(24, 119, 242, 0.45);
    color: #9ec9ff;
    font-size: 0.84rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .nsfph .nsfph-notice.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

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

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

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

  .nsfph .nsfph-content.is-placeholder .nsfph-notice,
  .nsfph .nsfph-content.is-placeholder .nsfph-profile__zoom {
    display: none !important;
  }

  .nsfph .nsfph-content.is-placeholder .nsfph-card__media,
  .nsfph .nsfph-content.is-placeholder .nsfph-card__action {
    pointer-events: none;
  }

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

  .nsfph-pane__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
  }

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

  .nsfph-pane__count {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.18);
    border: 1px solid var(--nsfph-line);
    color: #9ec9ff;
    font-size: 0.78rem;
    font-weight: 700;
  }

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

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

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

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

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

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

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

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

  .nsfph-skeleton__profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    justify-items: center;
    padding: var(--nsfph-pad);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(24, 119, 242, 0.16), rgba(13, 101, 217, 0.1));
    border: 1px solid var(--nsfph-line);
    text-align: center;
    margin-bottom: 16px;
  }

  .nsfph .nsfph-skeleton__avatar {
    width: var(--nsfph-avatar);
    height: var(--nsfph-avatar);
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.12);
  }

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

  .nsfph-skeleton__line {
    height: 16px;
  }

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

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

  .nsfph-skeleton__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    width: 100%;
  }

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

  .nsfph-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(var(--nsfph-cols, 1), minmax(0, 1fr));
    gap: 12px;
  }

  .nsfph-skeleton__card,
  .nsfph-tab-sk__card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--nsfph-line);
    background: var(--nsfph-panel-soft);
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .nsfph-skeleton__thumb,
  .nsfph-tab-sk__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0 !important;
  }

  .nsfph-skeleton__foot,
  .nsfph-tab-sk__foot {
    height: 72px;
    margin: 12px;
    border-radius: 10px !important;
  }

  .nsfph-tab-sk--photos {
    display: grid;
    grid-template-columns: repeat(var(--nsfph-cols, 1), minmax(0, 1fr));
    gap: 12px;
  }

  .nsfph-tab-sk--details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
  }

  .nsfph-tab-sk__line {
    height: 14px;
    border-radius: 8px;
  }

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

  .nsfph-tab-sk__line--lg {
    width: min(280px, 85%);
    height: 20px;
  }

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

  .nsfph-panel {
    background: var(--nsfph-panel);
    border: 1px solid var(--nsfph-line);
    border-radius: var(--nsfph-radius);
    box-shadow: none;
    padding: clamp(14px, 2.5vw, 20px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfph-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    justify-items: center;
    text-align: center;
    padding: var(--nsfph-pad);
    border-radius: 8px;
    background: var(--nsfph-panel-soft);
    border: 1px solid var(--nsfph-line);
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfph-profile__avatar-wrap {
    position: relative;
    width: var(--nsfph-avatar);
    height: var(--nsfph-avatar);
  }

  .nsfph-profile__ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool));
  }

  .nsfph .nsfph-profile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #0b1f3d;
    background: var(--nsfph-panel-soft);
  }

  .nsfph .nsfph-profile__zoom {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50% !important;
    border: 0 !important;
    background: #1877f2 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 40, 90, 0.45);
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    touch-action: manipulation;
  }

  .nsfph .nsfph-profile__zoom:hover {
    background: #0d65d9 !important;
  }

  .nsfph-profile__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  .nsfph .nsfph-profile__name {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 800;
    color: var(--nsfph-ink);
    line-height: 1.3;
  }

  .nsfph .nsfph-profile__handle {
    color: var(--nsfph-cool);
    font-size: 0.92rem;
    font-weight: 600;
  }

  .nsfph-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }

  .nsfph-meta__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.18);
    border: 1px solid var(--nsfph-line);
    color: #9ec9ff;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .nsfph-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfph .nsfph-tabs__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid var(--nsfph-line) !important;
    background: var(--nsfph-panel-soft) !important;
    color: var(--nsfph-muted) !important;
    font-family: var(--nsfph-font) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    touch-action: manipulation;
    text-decoration: none !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  .nsfph .nsfph-tabs__btn.is-active {
    background: rgba(24, 119, 242, 0.22) !important;
    border-color: #1877f2 !important;
    color: #9ec9ff !important;
    box-shadow: none;
  }

  .nsfph-pane {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

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

  .nsfph-empty {
    text-align: center;
    padding: 28px 12px;
    color: var(--nsfph-dim);
    font-size: 0.92rem;
  }

  .nsfph-grid {
    display: grid;
    grid-template-columns: repeat(var(--nsfph-cols, 1), minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfph-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    background: var(--nsfph-panel-soft);
    border: 1px solid var(--nsfph-line);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .nsfph-card:hover {
    background: var(--nsfph-hover);
    border-color: rgba(24, 119, 242, 0.7);
  }

  .nsfph-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0b1f3d;
    cursor: pointer;
    overflow: hidden;
  }

  .nsfph .nsfph-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nsfph-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 21, 43, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
    font-size: 1.25rem;
    pointer-events: none;
  }

  .nsfph-card__media:hover .nsfph-card__overlay,
  .nsfph-card__media:focus-visible .nsfph-card__overlay {
    opacity: 1;
  }

  .nsfph-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    min-width: 0;
  }

  .nsfph-card__badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--nsfph-accent);
  }

  .nsfph-card__badge--large {
    background: #1877f2;
  }

  .nsfph-card__badge--medium {
    background: #4dabf7;
    color: #07152b;
  }

  .nsfph-card__badge--small {
    background: #24528c;
  }

  .nsfph-card__badge--original {
    background: #0d65d9;
  }

  .nsfph .nsfph-card__meta {
    color: var(--nsfph-muted);
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .nsfph-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .nsfph .nsfph-card__action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 0 12px !important;
    border-radius: 8px !important;
    border: 1px solid var(--nsfph-line) !important;
    background: #24528c !important;
    color: #ffffff !important;
    font-family: var(--nsfph-font) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    touch-action: manipulation;
    text-decoration: none !important;
    margin: 0 !important;
  }

  .nsfph .nsfph-card__action--primary {
    background: var(--nsfph-accent) !important;
    border-color: transparent !important;
    color: #ffffff !important;
  }

  .nsfph .nsfph-card__action:hover {
    background: #2d65a8 !important;
  }

  .nsfph .nsfph-card__action--primary:hover {
    background: var(--nsfph-accent-deep) !important;
  }

  .nsfph-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nsfph .nsfph-details__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--nsfph-ink);
  }

  .nsfph .nsfph-details__text {
    color: var(--nsfph-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-line;
  }

  .nsfph-details__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nsfph-details__item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--nsfph-panel-soft);
    border: 1px solid var(--nsfph-line);
  }

  .nsfph .nsfph-details__label {
    color: var(--nsfph-dim);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .nsfph .nsfph-details__value {
    color: var(--nsfph-ink);
    font-size: 0.9rem;
    font-weight: 600;
  }

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

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

  .nsfph-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    background: #123056;
    border: 1px solid var(--nsfph-line);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(8, 40, 90, 0.55);
    padding: 16px;
  }

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

  .nsfph .nsfph-modal__close:hover {
    background: #2d65a8 !important;
  }

  .nsfph .nsfph-modal__media {
    width: 100%;
    max-height: min(65vh, 640px);
    object-fit: contain;
    border-radius: 10px;
    background: #0b1f3d;
    margin: 8px 0 12px;
  }

  .nsfph .nsfph-modal__caption {
    color: var(--nsfph-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: center;
  }

  .nsfph .nsfph-modal__dl {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100%;
    min-height: 46px;
    height: 46px;
    border-radius: 8px !important;
    border: 0 !important;
    background: var(--nsfph-accent) !important;
    color: #ffffff !important;
    font-family: var(--nsfph-font) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    touch-action: manipulation;
    margin: 0 !important;
    padding: 0 14px !important;
  }

  .nsfph .nsfph-modal__dl:hover {
    background: var(--nsfph-accent-deep) !important;
  }

  /* Responsive — tablet */
  @media (min-width: 768px) {
    .nsfph {
      --nsfph-cols: 2;
      --nsfph-pad: 16px;
      --nsfph-avatar: 104px;
    }

    .nsfph-search__row {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: stretch;
    }

    .nsfph .nsfph-search__field {
      flex: 1 1 220px;
      width: auto;
    }

    .nsfph-search__actions {
      flex: 0 0 auto;
      width: auto;
      flex-wrap: nowrap;
    }

    .nsfph .nsfph-search__actions .nsfph-btn {
      flex: 0 0 auto;
      min-width: 120px;
    }

    .nsfph-profile,
    .nsfph-skeleton__profile {
      grid-template-columns: var(--nsfph-avatar) minmax(0, 1fr);
      justify-items: stretch;
      text-align: left;
    }

    .nsfph-profile__meta,
    .nsfph-skeleton__meta {
      align-items: flex-start;
      text-align: left;
    }

    .nsfph-meta,
    .nsfph-skeleton__stats {
      justify-content: flex-start;
    }

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

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

  /* Responsive — desktop */
  @media (min-width: 1024px) {
    .nsfph {
      --nsfph-cols: 3;
      --nsfph-pad: 18px;
    }

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

  @media (min-width: 1200px) {
    .nsfph {
      --nsfph-cols: 4;
    }

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

  /* ResizeObserver helpers */
  .nsfph.nsfph--compact .nsfph-search__row {
    flex-direction: column !important;
  }

  .nsfph.nsfph--compact .nsfph-search__field,
  .nsfph.nsfph--compact .nsfph-search__actions {
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .nsfph.nsfph--compact .nsfph-search__actions .nsfph-btn {
    flex: 1 1 calc(50% - 4px) !important;
    width: auto !important;
  }

  .nsfph.nsfph--compact .nsfph-profile,
  .nsfph.nsfph--compact .nsfph-skeleton__profile {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .nsfph.nsfph--compact .nsfph-profile__meta,
  .nsfph.nsfph--compact .nsfph-skeleton__meta {
    align-items: center !important;
    text-align: center !important;
  }

  .nsfph.nsfph--compact .nsfph-meta {
    justify-content: center !important;
  }

  .nsfph.nsfph--compact .nsfph-tabs__btn {
    flex: 1 1 calc(50% - 6px) !important;
  }

  .nsfph.nsfph--compact .nsfph-grid,
  .nsfph.nsfph--compact .nsfph-skeleton__grid,
  .nsfph.nsfph--compact .nsfph-tab-sk--photos {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .nsfph.nsfph--narrow .nsfph-tabs__btn {
    flex: 1 1 100% !important;
  }

  .nsfph.nsfph--narrow .nsfph-search__actions .nsfph-btn {
    flex: 1 1 calc(50% - 4px) !important;
  }

  .nsfph.nsfph--narrow .nsfph-card__actions {
    flex-direction: column;
  }

  .nsfph.nsfph--narrow .nsfph-card__action {
    flex: 1 1 auto !important;
    width: 100%;
  }

  @media (hover: none) {

    .nsfph .nsfph-btn:hover,
    .nsfph-card:hover {
      filter: none;
      background: var(--nsfph-panel-soft);
    }

    .nsfph-card__overlay {
      opacity: 0.85;
      background: rgba(7, 21, 43, 0.25);
    }
  }

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

    .nsfph .nsfph-sk,
    .nsfph .nsfph-btn,
    .nsfph-card,
    .nsfph-card__overlay {
      animation: none !important;
      transition: none !important;
    }
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

/* --- Codex CSS updates --- */
/* New Social Facebook Photo Viewer — WordPress-scoped */
.nsfph {
  --nsfph-ink: #f8fbff;
  --nsfph-muted: #c8d7ef;
  --nsfph-dim: #92a8c8;
  --nsfph-bg: #081525;
  --nsfph-panel: rgba(15, 31, 55, 0.82);
  --nsfph-panel-soft: rgba(25, 47, 80, 0.76);
  --nsfph-hover: rgba(43, 83, 137, 0.9);
  --nsfph-line: rgba(135, 168, 220, 0.26);
  --nsfph-accent: #3b82f6;
  --nsfph-accent-deep: #1d4ed8;
  --nsfph-cool: #38bdf8;
  --nsfph-cool-deep: #0284c7;
  --nsfph-success: #22c55e;
  --nsfph-danger: #fb4566;
  --nsfph-radius: 16px;
  --nsfph-shadow: 0 18px 46px rgba(2, 8, 23, 0.34);
  --nsfph-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nsfph-pad: 14px;
  --nsfph-gap: 14px;
  --nsfph-avatar: 88px;
  --nsfph-cols: 1;

  box-sizing: border-box !important;
  font-family: var(--nsfph-font);
  color: var(--nsfph-ink);
  line-height: 1.5;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-width: 0 !important;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 22px);
  background:
    radial-gradient(ellipse 80% 48% at 12% 0%, rgba(59, 130, 246, 0.36), transparent 58%),
    radial-gradient(ellipse 68% 46% at 100% 8%, rgba(56, 189, 248, 0.2), transparent 54%),
    linear-gradient(145deg, #06111f 0%, #0b1d34 44%, #102948 100%);
  border-radius: 0;
  border: 1px solid var(--nsfph-line);
  position: relative;
  isolation: isolate;
  text-align: left;
  overflow-x: hidden !important;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.nsfph :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

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

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

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

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

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

.nsfph-hero {
  background: transparent;
  padding: clamp(22px, 4vw, 38px) 0 14px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

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

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

.nsfph .nsfph-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool));
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.28);
}

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

.nsfph-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.35rem, 3.1vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  text-align: left;
  text-transform: capitalize !important;
}

.nsfph-hero__title-mark {
  color: var(--nsfph-cool);
  font-weight: 800;
}

.nsfph .nsfph-hero__lead {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--nsfph-muted);
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.6;
  padding: 0 2px;
  text-transform: capitalize !important;
}

.nsfph-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: linear-gradient(180deg, rgba(15, 31, 55, 0.88), rgba(10, 23, 42, 0.82));
  border: 1px solid var(--nsfph-line);
  border-radius: var(--nsfph-radius);
  box-shadow: var(--nsfph-shadow);
  backdrop-filter: blur(14px);
}

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

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

.nsfph .nsfph-search__field {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 12px;
  background: rgba(5, 15, 28, 0.78) !important;
  color: #ffffff !important;
  font-family: var(--nsfph-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.04);
  width: 100%;
  max-width: 100% !important;
  resize: none !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nsfph .nsfph-search__field:focus {
  background: rgba(7, 20, 38, 0.94) !important;
  border-color: var(--nsfph-cool) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.nsfph-search__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.nsfph .nsfph-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 1 1 auto;
  width: 100%;
  height: 52px !important;
  min-height: 52px !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-family: var(--nsfph-font) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  touch-action: manipulation;
  overflow: hidden;
  color: #fff !important;
  background: linear-gradient(135deg, #334155, #1e40af) !important;
  box-sizing: border-box !important;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.22);
}

.nsfph .nsfph-btn i,
.nsfph .nsfph-tabs__btn i,
.nsfph .nsfph-card__action i,
.nsfph .nsfph-profile__zoom i,
.nsfph .nsfph-modal__close i,
.nsfph .nsfph-modal__dl i,
.nsfph .nsfph-demo-chip i,
.nsfph .nsfph-notice i,
.nsfph .nsfph-card__badge i,
.nsfph .nsfph-card__overlay i,
.nsfph .nsfph-meta__chip i,
.nsfph i.fa-solid,
.nsfph i.fas,
.nsfph .fa-circle-info,
.nsfph .fa-clone,
.nsfph .fa-expand,
.nsfph .fa-images,
.nsfph .fa-paste,
.nsfph .fa-xmark {
  --fa-display: inline-block;
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 0.95em;
  width: 1.15em;
  text-align: center;
  vertical-align: middle;
  font-style: normal !important;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  flex-shrink: 0;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important;
}

.nsfph .fa-circle-info::before { content: "\f05a"; }
.nsfph .fa-clone::before { content: "\f24d"; }
.nsfph .fa-expand::before { content: "\f065"; }
.nsfph .fa-images::before { content: "\f302"; }
.nsfph .fa-paste::before { content: "\f0ea"; }
.nsfph .fa-xmark::before { content: "\f00d"; }

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

.nsfph .nsfph-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.3);
}

.nsfph .nsfph-btn:focus-visible,
.nsfph .nsfph-tabs__btn:focus-visible,
.nsfph .nsfph-card__action:focus-visible,
.nsfph .nsfph-profile__zoom:focus-visible,
.nsfph .nsfph-modal__close:focus-visible,
.nsfph .nsfph-modal__dl:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22) !important;
}

.nsfph .nsfph-btn:active {
  opacity: 0.94;
  transform: translateY(0);
}

.nsfph .nsfph-btn:disabled {
  opacity: 0.58;
  cursor: wait;
  filter: none;
  transform: none;
}

.nsfph .nsfph-btn--paste {
  background: linear-gradient(135deg, #334155, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.nsfph .nsfph-btn--paste:hover {
  background: linear-gradient(135deg, #3b4b63, #1d4ed8) !important;
}

.nsfph .nsfph-btn--view {
  background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool-deep)) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.28);
}

.nsfph .nsfph-btn--view:hover {
  background: linear-gradient(135deg, #2563eb, #0369a1) !important;
}

.nsfph .nsfph-search__hint {
  font-size: 0.83rem;
  color: var(--nsfph-dim);
  line-height: 1.45;
  max-width: 100%;
}

.nsfph #xrespond-tools-turnstile-host {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  flex: none;
  order: unset;
  box-sizing: border-box;
}

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

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

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

.nsfph #xrespond-tools-turnstile-host .xrespond-ts-error {
  color: #fecdd3;
}

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

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

.nsfph-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: normal;
}

.nsfph .nsfph-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(251, 69, 102, 0.13);
  border: 1px solid rgba(251, 69, 102, 0.36);
  color: #fecdd3;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

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

.nsfph .nsfph-notice {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(59, 130, 246, 0.34);
  color: #bfdbfe;
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
}

.nsfph .nsfph-notice.is-visible {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.nsfph .nsfph-skeleton {
  display: none;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

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

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

.nsfph .nsfph-content.is-placeholder .nsfph-notice,
.nsfph .nsfph-content.is-placeholder .nsfph-profile__zoom {
  display: none !important;
}

.nsfph .nsfph-content.is-placeholder .nsfph-card__media,
.nsfph .nsfph-content.is-placeholder .nsfph-card__action {
  pointer-events: none;
}

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

.nsfph-pane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

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

.nsfph-pane__count {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--nsfph-line);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 800;
}

.nsfph-card__media--ghost {
  background: linear-gradient(145deg, #132947, #1d4ed8 55%, #38bdf8);
}

.nsfph-card__media--ghost-b {
  background: linear-gradient(145deg, #10243d, #2563eb 60%, #22c55e);
}

.nsfph-card__media--ghost-c {
  background: linear-gradient(145deg, #13233d, #334155 50%, #38bdf8);
}

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

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

.nsfph .nsfph-sk {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0%, rgba(56, 189, 248, 0.25) 45%, rgba(148, 163, 184, 0.12) 100%);
  background-size: 800px 100%;
  animation: nsfph-shimmer 1.35s ease-in-out infinite;
  border-radius: 10px;
}

.nsfph-skeleton__panel {
  background: var(--nsfph-panel);
  border: 1px solid var(--nsfph-line);
  border-radius: var(--nsfph-radius);
  box-shadow: var(--nsfph-shadow);
  padding: clamp(14px, 2.5vw, 20px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  backdrop-filter: blur(14px);
}

.nsfph-skeleton__profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  padding: var(--nsfph-pad);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.13), rgba(56, 189, 248, 0.08));
  border: 1px solid var(--nsfph-line);
  text-align: center;
  margin-bottom: 16px;
}

.nsfph .nsfph-skeleton__avatar {
  width: var(--nsfph-avatar);
  height: var(--nsfph-avatar);
  border-radius: 50% !important;
  border: 3px solid rgba(255, 255, 255, 0.14);
}

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

.nsfph-skeleton__line {
  height: 16px;
}

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

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

.nsfph-skeleton__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  width: 100%;
}

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

.nsfph-skeleton__grid {
  display: grid;
  grid-template-columns: repeat(var(--nsfph-cols, 1), minmax(0, 1fr));
  gap: 12px;
}

.nsfph-skeleton__card,
.nsfph-tab-sk__card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--nsfph-line);
  background: var(--nsfph-panel-soft);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nsfph-skeleton__thumb,
.nsfph-tab-sk__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0 !important;
}

.nsfph-skeleton__foot,
.nsfph-tab-sk__foot {
  height: 72px;
  margin: 12px;
  border-radius: 12px !important;
}

.nsfph-tab-sk--photos {
  display: grid;
  grid-template-columns: repeat(var(--nsfph-cols, 1), minmax(0, 1fr));
  gap: 12px;
}

.nsfph-tab-sk--details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.nsfph-tab-sk__line {
  height: 14px;
  border-radius: 8px;
}

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

.nsfph-tab-sk__line--lg {
  width: min(280px, 85%);
  height: 20px;
}

.nsfph-result {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfph-panel {
  background: linear-gradient(180deg, rgba(15, 31, 55, 0.9), rgba(10, 23, 42, 0.84));
  border: 1px solid var(--nsfph-line);
  border-radius: var(--nsfph-radius);
  box-shadow: var(--nsfph-shadow);
  padding: clamp(14px, 2.5vw, 22px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  backdrop-filter: blur(14px);
}

.nsfph-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: var(--nsfph-pad);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(25, 47, 80, 0.92), rgba(14, 30, 54, 0.88));
  border: 1px solid var(--nsfph-line);
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfph-profile__avatar-wrap {
  position: relative;
  width: var(--nsfph-avatar);
  height: var(--nsfph-avatar);
}

.nsfph-profile__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool), var(--nsfph-success));
}

.nsfph .nsfph-profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #081525;
  background: var(--nsfph-panel-soft);
}

.nsfph .nsfph-profile__zoom {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50% !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool-deep)) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 8, 23, 0.36);
  appearance: none !important;
  -webkit-appearance: none !important;
  padding: 0 !important;
  margin: 0 !important;
  touch-action: manipulation;
}

.nsfph .nsfph-profile__zoom:hover {
  background: linear-gradient(135deg, #2563eb, #0369a1) !important;
}

.nsfph-profile__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.nsfph .nsfph-profile__name {
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  font-weight: 800;
  color: var(--nsfph-ink);
  line-height: 1.3;
}

.nsfph .nsfph-profile__handle {
  color: var(--nsfph-cool);
  font-size: 0.92rem;
  font-weight: 700;
}

.nsfph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.nsfph-meta__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--nsfph-line);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 700;
}

.nsfph-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfph .nsfph-tabs__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  min-height: 46px;
  height: auto;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--nsfph-line) !important;
  background: rgba(25, 47, 80, 0.76) !important;
  color: var(--nsfph-muted) !important;
  font-family: var(--nsfph-font) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  touch-action: manipulation;
  text-decoration: none !important;
  margin: 0 !important;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nsfph .nsfph-tabs__btn:hover {
  transform: translateY(-1px);
  background: rgba(43, 83, 137, 0.9) !important;
}

.nsfph .nsfph-tabs__btn.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.32), rgba(56, 189, 248, 0.18)) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #e0f2fe !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nsfph-pane {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

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

.nsfph-empty {
  text-align: center;
  padding: 30px 12px;
  color: var(--nsfph-dim);
  font-size: 0.92rem;
}

.nsfph-grid {
  display: grid;
  grid-template-columns: repeat(var(--nsfph-cols, 1), minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfph-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(25, 47, 80, 0.78);
  border: 1px solid var(--nsfph-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.18);
}

.nsfph-card:hover {
  background: rgba(43, 83, 137, 0.92);
  border-color: rgba(56, 189, 248, 0.46);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.28);
}

.nsfph-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #081525;
  cursor: pointer;
  overflow: hidden;
}

.nsfph .nsfph-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsfph-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 17, 31, 0.52);
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 1.25rem;
  pointer-events: none;
}

.nsfph-card__media:hover .nsfph-card__overlay,
.nsfph-card__media:focus-visible .nsfph-card__overlay {
  opacity: 1;
}

.nsfph-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-width: 0;
}

.nsfph-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool-deep));
}

.nsfph-card__badge--large {
  background: linear-gradient(135deg, #3b82f6, #0284c7);
}

.nsfph-card__badge--medium {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #06111f;
}

.nsfph-card__badge--small {
  background: linear-gradient(135deg, #334155, #475569);
}

.nsfph-card__badge--original {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.nsfph .nsfph-card__meta {
  color: var(--nsfph-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.nsfph-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.nsfph .nsfph-card__action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 12px !important;
  border-radius: 11px !important;
  border: 1px solid var(--nsfph-line) !important;
  background: rgba(37, 99, 235, 0.38) !important;
  color: #ffffff !important;
  font-family: var(--nsfph-font) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  touch-action: manipulation;
  text-decoration: none !important;
  margin: 0 !important;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nsfph .nsfph-card__action--primary {
  background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool-deep)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.nsfph .nsfph-card__action:hover {
  background: rgba(37, 99, 235, 0.58) !important;
  transform: translateY(-1px);
}

.nsfph .nsfph-card__action--primary:hover {
  background: linear-gradient(135deg, #2563eb, #0369a1) !important;
}

.nsfph-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nsfph .nsfph-details__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nsfph-ink);
}

.nsfph .nsfph-details__text {
  color: var(--nsfph-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
}

.nsfph-details__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.nsfph-details__item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(25, 47, 80, 0.74);
  border: 1px solid var(--nsfph-line);
}

.nsfph .nsfph-details__label {
  color: var(--nsfph-dim);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nsfph .nsfph-details__value {
  color: var(--nsfph-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.nsfph-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 23, 0.84);
  backdrop-filter: blur(10px);
}

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

.nsfph-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: linear-gradient(180deg, #10213a, #081525);
  border: 1px solid var(--nsfph-line);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  padding: 16px;
}

.nsfph .nsfph-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50% !important;
  border: 0 !important;
  background: rgba(15, 23, 42, 0.82) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2;
  touch-action: manipulation;
}

.nsfph .nsfph-modal__close:hover {
  background: rgba(37, 99, 235, 0.9) !important;
}

.nsfph .nsfph-modal__media {
  width: 100%;
  max-height: min(65vh, 640px);
  object-fit: contain;
  border-radius: 12px;
  background: #081525;
  margin: 8px 0 12px;
}

.nsfph .nsfph-modal__caption {
  color: var(--nsfph-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-align: center;
}

.nsfph .nsfph-modal__dl {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100%;
  min-height: 48px;
  height: 48px;
  border-radius: 12px !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--nsfph-accent), var(--nsfph-cool-deep)) !important;
  color: #ffffff !important;
  font-family: var(--nsfph-font) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  touch-action: manipulation;
  margin: 0 !important;
  padding: 0 14px !important;
}

.nsfph .nsfph-modal__dl:hover {
  background: linear-gradient(135deg, #2563eb, #0369a1) !important;
}

@media (min-width: 768px) {
  .nsfph {
    --nsfph-cols: 2;
    --nsfph-pad: 16px;
    --nsfph-avatar: 104px;
  }

  .nsfph-search__row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .nsfph .nsfph-search__field {
    flex: 1 1 260px;
    width: auto;
    max-width: none !important;
  }

  .nsfph-search__actions {
    flex: 0 0 auto;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .nsfph .nsfph-search__actions .nsfph-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 124px;
  }

  .nsfph-profile,
  .nsfph-skeleton__profile {
    grid-template-columns: var(--nsfph-avatar) minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
  }

  .nsfph-profile__meta,
  .nsfph-skeleton__meta {
    align-items: flex-start;
    text-align: left;
  }

  .nsfph-meta,
  .nsfph-skeleton__stats {
    justify-content: flex-start;
  }

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

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

@media (min-width: 1024px) {
  .nsfph {
    --nsfph-cols: 3;
    --nsfph-pad: 18px;
  }

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

@media (min-width: 1200px) {
  .nsfph {
    --nsfph-cols: 4;
  }

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

.nsfph.nsfph--compact .nsfph-search__row {
  flex-direction: column !important;
}

.nsfph.nsfph--compact .nsfph-search__field,
.nsfph.nsfph--compact .nsfph-search__actions {
  width: 100% !important;
  flex: 1 1 auto !important;
}

.nsfph.nsfph--compact .nsfph-search__actions .nsfph-btn {
  flex: 1 1 auto !important;
  width: 100% !important;
}

.nsfph.nsfph--compact .nsfph-profile,
.nsfph.nsfph--compact .nsfph-skeleton__profile {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  text-align: center !important;
}

.nsfph.nsfph--compact .nsfph-profile__meta,
.nsfph.nsfph--compact .nsfph-skeleton__meta {
  align-items: center !important;
  text-align: center !important;
}

.nsfph.nsfph--compact .nsfph-meta {
  justify-content: center !important;
}

.nsfph.nsfph--compact .nsfph-tabs__btn {
  flex: 1 1 calc(50% - 6px) !important;
}

.nsfph.nsfph--compact .nsfph-grid,
.nsfph.nsfph--compact .nsfph-skeleton__grid,
.nsfph.nsfph--compact .nsfph-tab-sk--photos {
  grid-template-columns: minmax(0, 1fr) !important;
}

.nsfph.nsfph--narrow .nsfph-tabs__btn {
  flex: 1 1 100% !important;
}

.nsfph.nsfph--narrow .nsfph-search__actions .nsfph-btn {
  flex: 1 1 auto !important;
  width: 100% !important;
}

.nsfph.nsfph--narrow .nsfph-card__actions {
  flex-direction: column;
}

.nsfph.nsfph--narrow .nsfph-card__action {
  flex: 1 1 auto !important;
  width: 100%;
}

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

  .nsfph-card__overlay {
    opacity: 0.85;
    background: rgba(6, 17, 31, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nsfph .nsfph-sk,
  .nsfph .nsfph-btn,
  .nsfph-card,
  .nsfph-card__overlay,
  .nsfph .nsfph-tabs__btn,
  .nsfph .nsfph-card__action,
  .nsfph .nsfph-search__field {
    animation: none !important;
    transition: none !important;
  }
}

.nsfph .nsfph-search,
.nsfph .nsfph-search .nsfph-search__row,
.nsfph .nsfph-search .nsfph-search__actions {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

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

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

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

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

.nsfph.nsfph--compact .nsfph-search .nsfph-search__row,
.nsfph.nsfph--narrow .nsfph-search .nsfph-search__row {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

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

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

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

@media (max-width: 768px) {
  .nsfph {
    padding: 12px;
    min-height: auto;
  }

  .nsfph-hero {
    padding: 18px 0 12px;
  }

  .nsfph-hero__brand {
    gap: 10px;
  }

  .nsfph .nsfph-hero__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.1rem;
  }

  .nsfph-hero__title-text {
    font-size: clamp(1.22rem, 5.2vw, 1.55rem);
    line-height: 1.22;
  }

  .nsfph .nsfph-hero__lead {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .nsfph .nsfph-search .nsfph-search__row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

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

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

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

  .nsfph-tabs {
    gap: 8px;
  }

  .nsfph .nsfph-tabs__btn {
    flex: 1 1 100%;
  }

  .nsfph-card__actions {
    flex-direction: column;
  }

  .nsfph .nsfph-card__action {
    width: 100%;
    flex: 1 1 auto;
  }

  .nsfph-modal {
    padding: 10px;
  }

  .nsfph-modal__dialog {
    padding: 12px;
    border-radius: 14px;
  }
}