@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");

.nstfv {
    container-type: inline-size;
    container-name: nstfv;
    -webkit-text-size-adjust: 100%;
    --nstfv-ink: #ffffff;
    --nstfv-muted: #cbd5e1;
    --nstfv-dim: #94a3b8;
    --nstfv-panel: rgba(22, 24, 35, 0.94);
    --nstfv-panel-soft: rgba(255, 255, 255, 0.08);
    --nstfv-line: rgba(255, 255, 255, 0.12);
    --nstfv-accent: #ff0050;
    --nstfv-accent-deep: #ee1d52;
    --nstfv-cool: #00f2ea;
    --nstfv-danger: #ff4d6d;
    --nstfv-radius: 16px;
    --nstfv-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    --nstfv-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --nstfv-gap: 12px;
    --nstfv-pad: 12px;
    box-sizing: border-box;
    font-family: var(--nstfv-font);
    color: var(--nstfv-ink);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(10px, 2.5vw, 28px) max(clamp(6px, 2vw, 14px), env(safe-area-inset-right, 0px)) max(clamp(14px, 3vw, 28px), env(safe-area-inset-bottom, 0px)) max(clamp(6px, 2vw, 14px), env(safe-area-inset-left, 0px));
    background:
      radial-gradient(ellipse 75% 50% at 12% 0%, rgba(255, 0, 80, 0.28), transparent 55%),
      radial-gradient(ellipse 70% 45% at 92% 8%, rgba(0, 242, 234, 0.18), transparent 50%),
      linear-gradient(145deg, #0a0a0f 0%, #161823 42%, #1c1917 100%);
    border-radius: 0;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
  }

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

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

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

  .nstfv img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
  }

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

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

  .nstfv-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--nstfv-gap);
    width: 100%;
    min-width: 0;
  }

  .nstfv-hero {
    background: transparent;
    padding: 36px 0 14px;
    text-align: center;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .nstfv-hero__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 4px;
  }

  .nstfv-hero__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nstfv-accent), var(--nstfv-cool));
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 0, 80, 0.35);
    flex: 0 0 auto;
  }

  .nstfv .nstfv-hero__brand i {
    font-size: 1.25rem !important;
    width: auto;
    color: #fff !important;
    display: inline-block !important;
    line-height: 1 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
  }

  .nstfv-hero__title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
  }

  .nstfv-hero__title-mark {
    position: relative;
    color: var(--nstfv-accent);
    display: inline-block;
  }

  .nstfv-hero__title-mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: linear-gradient(90deg, var(--nstfv-accent), var(--nstfv-cool));
    border-radius: 2px;
  }

  .nstfv-hero__lead {
    margin-top: 8px;
    color: var(--nstfv-muted);
    font-size: 0.95rem;
  }

  .nstfv-search {
    text-align: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 14px;
    padding: clamp(14px, 2.5vw, 20px);
    background: var(--nstfv-panel);
    border: 1px solid var(--nstfv-line);
    border-radius: var(--nstfv-radius);
    box-shadow: var(--nstfv-shadow);
  }

  .nstfv-search__label {
    display: block;
    font-size: 0.82rem;
    color: var(--nstfv-dim);
    margin-bottom: 6px;
    font-weight: 600;
  }

  .nstfv-search__row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nstfv-search__field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--nstfv-line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--nstfv-ink);
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
  }

  .nstfv-search__field:focus {
    border-color: var(--nstfv-cool);
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.15);
  }

  .nstfv-search__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .nstfv-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    flex: 1 1 auto;
    min-height: 44px;
  }

  .nstfv-btn:hover {
    transform: translateY(-1px);
  }

  .nstfv-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
  }

  .nstfv-btn--paste {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--nstfv-line);
  }

  .nstfv-btn--view {
    background: linear-gradient(135deg, var(--nstfv-accent), var(--nstfv-accent-deep));
  }

  .nstfv-btn--reset {
    background: linear-gradient(135deg, var(--nstfv-cool), #0891b2);
    color: #041016;
  }

  .nstfv-btn.is-hidden {
    display: none !important;
  }

  .nstfv-alert {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.35);
    color: #fecdd3;
    font-size: 0.88rem;
  }

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

  .nstfv-alert.is-info {
    background: rgba(0, 242, 234, 0.12);
    border-color: rgba(0, 242, 234, 0.35);
    color: #a5f3fc;
  }

  .nstfv-search__hint {
    margin-top: 8px;
    color: var(--nstfv-dim);
    font-size: 0.8rem;
  }

  .nstfv-skeleton {
    display: none;
  }

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

  .nstfv-skeleton__panel {
    background: var(--nstfv-panel);
    border: 1px solid var(--nstfv-line);
    border-radius: var(--nstfv-radius);
    padding: var(--nstfv-pad);
  }

  .nstfv-sk {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    background-size: 200% 100%;
    animation: nstfv-shimmer 1.2s ease-in-out infinite;
    border-radius: 10px;
  }

  @keyframes nstfv-shimmer {
    0% {
      background-position: 200% 0;
    }

    100% {
      background-position: -200% 0;
    }
  }

  .nstfv-skeleton__head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
  }

  .nstfv-skeleton__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .nstfv-skeleton__line {
    height: 12px;
    margin-top: 8px;
  }

  .nstfv-skeleton__line--lg {
    width: 60%;
  }

  .nstfv-skeleton__line--md {
    width: 40%;
  }

  .nstfv-skeleton__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nstfv-skeleton__card {
    height: 160px;
  }

  .nstfv-panel {
    background: var(--nstfv-panel);
    border: 1px solid var(--nstfv-line);
    border-radius: var(--nstfv-radius);
    box-shadow: var(--nstfv-shadow);
    padding: var(--nstfv-pad);
  }

  .nstfv-content.is-hidden {
    display: none;
  }

  .nstfv-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(0, 242, 234, 0.08);
    border: 1px solid rgba(0, 242, 234, 0.2);
    color: var(--nstfv-muted);
    font-size: 0.88rem;
  }

  .nstfv-notice i {
    color: var(--nstfv-cool);
    margin-top: 2px;
  }

  .nstfv-content:not(.is-placeholder) .nstfv-notice {
    display: none;
  }

  .nstfv-profile {
    display: grid;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--nstfv-line);
  }

  .nstfv-profile__avatar-wrap {
    position: relative;
    width: fit-content;
    margin: 0 auto;
  }

  .nstfv-profile__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 0, 80, 0.55);
    background: #222;
    cursor: pointer;
  }

  .nstfv-profile__zoom {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--nstfv-accent);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
  }

  .nstfv-content.is-placeholder .nstfv-profile__zoom {
    pointer-events: none;
    opacity: .4;
  }

  .nstfv-profile__name {
    font-size: clamp(1.05rem, 3.5cqi, 1.25rem);
    font-weight: 800;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nstfv-profile__verified {
    color: var(--nstfv-cool);
  }

  .nstfv-profile__verified.is-hidden {
    display: none !important;
  }

  .nstfv-profile__handle {
    color: var(--nstfv-muted);
    margin-top: 2px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .nstfv-profile__bio {
    margin-top: 8px;
    color: var(--nstfv-dim);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: center;
  }

  .nstfv-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .nstfv-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--nstfv-panel-soft);
    border: 1px solid var(--nstfv-line);
    text-align: center;
  }

  .nstfv-stat__value {
    font-weight: 800;
    font-size: clamp(0.9rem, 2.8cqi, 1rem);
    overflow-wrap: anywhere;
  }

  .nstfv-stat__label {
    color: var(--nstfv-dim);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .nstfv-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    align-items: stretch;
  }

  .nstfv-find {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--nstfv-line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 10px 12px;
    font-size: 16px;
    outline: none;
    min-height: 44px;
  }

  .nstfv-sort {
    width: 100%;
    border: 1px solid var(--nstfv-line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 44px;
  }

  .nstfv-meta {
    color: var(--nstfv-dim);
    font-size: 0.82rem;
    font-weight: 600;
    width: 100%;
  }

  .nstfv-more {
    appearance: none;
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(0, 242, 234, 0.45);
    background: rgba(0, 242, 234, 0.12);
    color: #fff;
    border-radius: 12px;
    padding: 11px 14px;
    min-height: 44px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }

  .nstfv-more:hover {
    background: rgba(0, 242, 234, 0.2);
  }

  .nstfv-more:disabled {
    opacity: .55;
    cursor: not-allowed;
  }

  .nstfv-more.is-hidden {
    display: none !important;
  }

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

  .nstfv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nstfv-card {
    border: 1px solid var(--nstfv-line);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
  }

  .nstfv-card--ghost {
    pointer-events: none;
  }

  .nstfv-card__avatar {
    width: clamp(56px, 18cqi, 72px);
    height: clamp(56px, 18cqi, 72px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    border: 2px solid rgba(0, 242, 234, 0.35);
    background: #222;
  }

  .nstfv-card__avatar--ghost {
    background:
      linear-gradient(135deg, rgba(255, 0, 80, 0.35), rgba(0, 242, 234, 0.2)),
      #1a1a22;
    border-color: transparent;
  }

  .nstfv-card__nick {
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
  }

  .nstfv-card__user {
    color: var(--nstfv-dim);
    font-size: 0.78rem;
    margin-top: 2px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nstfv-card__badges {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .nstfv-chip {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nstfv-line);
    color: var(--nstfv-muted);
  }

  .nstfv-chip--ok {
    border-color: rgba(0, 242, 234, 0.4);
    color: var(--nstfv-cool);
  }

  .nstfv-chip--lock {
    border-color: rgba(255, 77, 109, 0.4);
    color: #fecdd3;
  }

  .nstfv-card__stats {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--nstfv-dim);
    font-size: 0.75rem;
    font-weight: 700;
    flex-wrap: wrap;
  }

  .nstfv-card__stats i {
    color: var(--nstfv-accent);
  }

  .nstfv-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 28px 12px;
    color: var(--nstfv-dim);
    border: 1px dashed var(--nstfv-line);
    border-radius: 12px;
  }

  .nstfv-empty i {
    font-size: 1.6rem;
    color: var(--nstfv-accent);
    display: block;
    margin-bottom: 8px;
  }

  .nstfv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(0, 0, 0, 0.72);
  }

  .nstfv-modal.is-open {
    display: grid;
  }

  .nstfv-modal__dialog {
    width: min(480px, 100%);
    background: #12131a;
    border: 1px solid var(--nstfv-line);
    border-radius: 16px;
    padding: 14px;
    position: relative;
    max-height: min(92vh, 900px);
    overflow: auto;
  }

  .nstfv-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
  }

  .nstfv-modal__media {
    width: 100%;
    border-radius: 12px;
  }

  .nstfv-modal__caption {
    margin-top: 10px;
    color: var(--nstfv-muted);
    text-align: center;
    font-size: 0.9rem;
    word-break: break-word;
  }

  /* ------------------------------------------------------------------
   Responsive — same pattern as Facebook Friends / YouTube Channel
   JS classes (ResizeObserver on tool width):
     --narrow  < 480
     --compact < 768
     --desktop >= 768
   Grid columns set inline via JS (beats WP theme CSS).
------------------------------------------------------------------- */
  .nstfv {
    --nstfv-cols: 1;
  }

  .nstfv-search__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .nstfv-search__field {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    font-size: 16px !important;
  }

  .nstfv-search__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .nstfv-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-height: 44px;
  }

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

  .nstfv-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .nstfv.nstfv--desktop .nstfv-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nstfv.nstfv--desktop .nstfv-profile {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .nstfv.nstfv--desktop .nstfv-profile__avatar-wrap {
    margin: 0;
  }

  .nstfv.nstfv--desktop .nstfv-profile__name {
    justify-content: flex-start;
  }

  .nstfv.nstfv--desktop .nstfv-profile__handle,
  .nstfv.nstfv--desktop .nstfv-profile__bio {
    text-align: left;
  }

  .nstfv.nstfv--desktop .nstfv-tools {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .nstfv.nstfv--desktop .nstfv-find {
    flex: 1 1 180px;
    width: auto;
  }

  .nstfv.nstfv--desktop .nstfv-sort {
    width: auto;
    flex: 0 1 auto;
  }

  .nstfv.nstfv--compact .nstfv-tools {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .nstfv.nstfv--compact .nstfv-find,
  .nstfv.nstfv--compact .nstfv-sort {
    width: 100% !important;
  }

  @media (min-width: 768px) {
    .nstfv:not(.nstfv--compact) .nstfv-search__row {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: stretch;
    }

    .nstfv:not(.nstfv--compact) .nstfv-search__field {
      flex: 1 1 220px !important;
      width: auto !important;
    }

    .nstfv:not(.nstfv--compact) .nstfv-search__actions {
      width: auto;
      flex: 0 0 auto;
      flex-wrap: nowrap;
    }

    .nstfv:not(.nstfv--compact) .nstfv-btn {
      flex: 0 0 auto;
    }
  }

  /* WordPress / Live Server narrow container (set by ResizeObserver) */
  .nstfv.nstfv--compact .nstfv-search__row {
    flex-direction: column !important;
  }

  .nstfv.nstfv--compact .nstfv-search__actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

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

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

  .nstfv.nstfv--narrow .nstfv-btn {
    flex: 1 1 100% !important;
  }

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

  .nstfv.nstfv--narrow .nstfv-hero__title {
    font-size: 1.15rem;
  }

  @media (hover: none) {

    .nstfv-btn:hover,
    .nstfv-more:hover {
      transform: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .nstfv-sk {
      animation: none;
    }
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* --- Codex CSS updates --- */
.nstfv {
  container-type: inline-size;
  container-name: nstfv;
  -webkit-text-size-adjust: 100%;
  --nstfv-ink: #f7efe4;
  --nstfv-muted: #d6c9ba;
  --nstfv-dim: #9f907f;
  --nstfv-panel: rgba(30, 18, 12, 0.9);
  --nstfv-panel-soft: rgba(255, 244, 230, 0.08);
  --nstfv-line: rgba(255, 214, 170, 0.18);
  --nstfv-accent: #ff7a18;
  --nstfv-accent-deep: #ff4f1f;
  --nstfv-cool: #ffd166;
  --nstfv-danger: #ff6b6b;
  --nstfv-success: #7dd3a7;
  --nstfv-radius: 18px;
  --nstfv-shadow: 0 20px 50px rgba(10, 4, 1, 0.34);
  --nstfv-font: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --nstfv-gap: 16px;
  --nstfv-pad: 16px;
  --nstfv-cols: 1;
  box-sizing: border-box;
  font-family: var(--nstfv-font);
  color: var(--nstfv-ink);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  padding: clamp(16px, 3vw, 34px) max(clamp(14px, 2vw, 24px), env(safe-area-inset-right, 0px)) max(clamp(18px, 3vw, 34px), env(safe-area-inset-bottom, 0px)) max(clamp(14px, 2vw, 24px), env(safe-area-inset-left, 0px));
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, 0.28), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.2), transparent 32%),
    linear-gradient(180deg, #2b160d 0%, #1a100c 48%, #120b08 100%);
  border-radius: 0;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

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

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

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

.nstfv img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

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

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

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

.nstfv-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 209, 102, 0.06)),
    rgba(43, 24, 15, 0.5);
  padding: clamp(24px, 4vw, 42px);
  text-align: center;
  border: 1px solid rgba(255, 214, 170, 0.14);
  box-shadow: var(--nstfv-shadow);
  border-radius: calc(var(--nstfv-radius) + 6px);
  backdrop-filter: blur(12px);
}

.nstfv-hero__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}

.nstfv-hero__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  margin: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--nstfv-accent), var(--nstfv-cool));
  color: #2d180f;
  box-shadow: 0 14px 30px rgba(255, 122, 24, 0.34);
  flex: 0 0 auto;
}

.nstfv .nstfv-hero__brand i {
  font-size: 1.3rem !important;
  width: auto;
  color: inherit !important;
  display: inline-block !important;
  line-height: 1 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
}

.nstfv-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
  text-transform: capitalize;
}

.nstfv-hero__title-mark {
  position: relative;
  color: var(--nstfv-cool);
  display: inline-block;
}

.nstfv-hero__title-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--nstfv-accent), var(--nstfv-cool));
  border-radius: 999px;
  opacity: 0.9;
}

.nstfv-hero__lead {
  margin-top: 10px;
  color: var(--nstfv-muted);
  font-size: 0.98rem;
  max-width: 72ch;
  margin-inline: auto;
}

.nstfv-search {
  text-align: left;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
  padding: clamp(16px, 2.5vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--nstfv-panel);
  border: 1px solid var(--nstfv-line);
  border-radius: var(--nstfv-radius);
  box-shadow: var(--nstfv-shadow);
  backdrop-filter: blur(10px);
}

.nstfv-search__label {
  display: block;
  font-size: 0.82rem;
  color: var(--nstfv-dim);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nstfv-search__row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.nstfv-search__field {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--nstfv-line);
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.06);
  color: var(--nstfv-ink);
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nstfv-search__field::placeholder,
.nstfv-find::placeholder {
  color: color-mix(in srgb, var(--nstfv-dim) 80%, white 20%);
}

.nstfv-search__field:focus,
.nstfv-find:focus,
.nstfv-sort:focus {
  border-color: var(--nstfv-cool);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
}

.nstfv-search__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.nstfv-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff8ee;
  flex: 1 1 auto;
  min-height: 46px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nstfv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.nstfv-btn:focus-visible,
.nstfv-more:focus-visible,
.nstfv-profile__zoom:focus-visible,
.nstfv-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18), 0 0 0 1px rgba(255, 209, 102, 0.45);
}

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

.nstfv-btn--paste {
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid var(--nstfv-line);
  color: var(--nstfv-ink);
}

.nstfv-btn--paste:hover {
  background: rgba(255, 248, 240, 0.14);
}

.nstfv-btn--view {
  background: linear-gradient(135deg, var(--nstfv-accent), var(--nstfv-accent-deep));
  border-color: rgba(255, 122, 24, 0.34);
}

.nstfv-btn--reset {
  background: linear-gradient(135deg, var(--nstfv-cool), #ffb547);
  color: #2a180d;
  border-color: rgba(255, 209, 102, 0.34);
}

.nstfv-btn.is-hidden {
  display: none !important;
}

.nstfv-alert {
  display: none;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.28);
  color: #ffd4d4;
  font-size: 0.88rem;
}

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

.nstfv-alert.is-info {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.26);
  color: #ffe7a8;
}

.nstfv-search__hint {
  margin-top: 9px;
  color: var(--nstfv-dim);
  font-size: 0.8rem;
}

.nstfv-skeleton {
  display: none;
}

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

.nstfv-skeleton__panel {
  background: var(--nstfv-panel);
  border: 1px solid var(--nstfv-line);
  border-radius: var(--nstfv-radius);
  padding: var(--nstfv-pad);
  box-shadow: var(--nstfv-shadow);
}

.nstfv-sk {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 209, 102, 0.14), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: nstfv-shimmer 1.2s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes nstfv-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.nstfv-skeleton__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.nstfv-skeleton__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.nstfv-skeleton__line {
  height: 12px;
  margin-top: 8px;
}

.nstfv-skeleton__line--lg {
  width: 60%;
}

.nstfv-skeleton__line--md {
  width: 40%;
}

.nstfv-skeleton__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.nstfv-skeleton__card {
  height: 160px;
}

.nstfv-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--nstfv-panel);
  border: 1px solid var(--nstfv-line);
  border-radius: var(--nstfv-radius);
  box-shadow: var(--nstfv-shadow);
  padding: var(--nstfv-pad);
  backdrop-filter: blur(10px);
}

.nstfv-content.is-hidden {
  display: none;
}

.nstfv-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.18);
  color: var(--nstfv-muted);
  font-size: 0.88rem;
}

.nstfv-notice i {
  color: var(--nstfv-cool);
  margin-top: 2px;
}

.nstfv-content:not(.is-placeholder) .nstfv-notice {
  display: none;
}

.nstfv-profile {
  display: grid;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--nstfv-line);
}

.nstfv-profile__avatar-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.nstfv-profile__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 122, 24, 0.5);
  background: #2a1a12;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.nstfv-profile__zoom {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nstfv-accent), var(--nstfv-accent-deep));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(255, 79, 31, 0.22);
}

.nstfv-content.is-placeholder .nstfv-profile__zoom {
  pointer-events: none;
  opacity: 0.4;
}

.nstfv-profile__name {
  font-size: clamp(1.05rem, 3.5cqi, 1.35rem);
  font-weight: 800;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nstfv-profile__verified {
  color: var(--nstfv-cool);
}

.nstfv-profile__verified.is-hidden {
  display: none !important;
}

.nstfv-profile__handle {
  color: var(--nstfv-muted);
  margin-top: 2px;
  text-align: center;
  overflow-wrap: anywhere;
}

.nstfv-profile__bio {
  margin-top: 8px;
  color: var(--nstfv-dim);
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
}

.nstfv-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.nstfv-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--nstfv-panel-soft);
  border: 1px solid var(--nstfv-line);
  text-align: center;
}

.nstfv-stat__value {
  font-weight: 800;
  font-size: clamp(0.95rem, 2.8cqi, 1.08rem);
  overflow-wrap: anywhere;
}

.nstfv-stat__label {
  color: var(--nstfv-dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nstfv-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}

.nstfv-find,
.nstfv-sort {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--nstfv-line);
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.06);
  color: var(--nstfv-ink);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  min-height: 46px;
}

.nstfv-sort {
  font-size: 0.88rem;
  font-weight: 700;
  appearance: none;
}

.nstfv-meta {
  color: var(--nstfv-dim);
  font-size: 0.82rem;
  font-weight: 600;
  width: 100%;
}

.nstfv-more {
  appearance: none;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.12);
  color: var(--nstfv-ink);
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 46px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nstfv-more:hover {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.4);
  transform: translateY(-1px);
}

.nstfv-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nstfv-more.is-hidden {
  display: none !important;
}

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

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

.nstfv-card {
  border: 1px solid var(--nstfv-line);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.025);
  min-width: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.nstfv-card--ghost {
  pointer-events: none;
}

.nstfv-card__avatar {
  width: clamp(56px, 18cqi, 74px);
  height: clamp(56px, 18cqi, 74px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid rgba(255, 209, 102, 0.32);
  background: #2a1a12;
}

.nstfv-card__avatar--ghost {
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.34), rgba(255, 209, 102, 0.22)),
    #2a1a12;
  border-color: transparent;
}

.nstfv-card__nick {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.nstfv-card__user {
  color: var(--nstfv-dim);
  font-size: 0.78rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nstfv-card__badges {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nstfv-chip {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 248, 240, 0.06);
  border: 1px solid var(--nstfv-line);
  color: var(--nstfv-muted);
}

.nstfv-chip--ok {
  border-color: rgba(125, 211, 167, 0.4);
  color: var(--nstfv-success);
}

.nstfv-chip--lock {
  border-color: rgba(255, 107, 107, 0.38);
  color: #ffd4d4;
}

.nstfv-card__stats {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--nstfv-dim);
  font-size: 0.75rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.nstfv-card__stats i {
  color: var(--nstfv-accent);
}

.nstfv-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 14px;
  color: var(--nstfv-dim);
  border: 1px dashed var(--nstfv-line);
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.03);
}

.nstfv-empty i {
  font-size: 1.6rem;
  color: var(--nstfv-accent);
  display: block;
  margin-bottom: 8px;
}

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

.nstfv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(10, 5, 3, 0.82);
  backdrop-filter: blur(8px);
}

.nstfv-modal.is-open {
  display: grid;
}

.nstfv-modal__dialog {
  width: min(480px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #1d120d;
  border: 1px solid var(--nstfv-line);
  border-radius: 18px;
  padding: 14px;
  position: relative;
  max-height: min(92vh, 900px);
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.nstfv-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 214, 170, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  cursor: pointer;
}

.nstfv-modal__media {
  width: 100%;
  border-radius: 12px;
}

.nstfv-modal__caption {
  margin-top: 10px;
  color: var(--nstfv-muted);
  text-align: center;
  font-size: 0.9rem;
  word-break: break-word;
}

/* ------------------------------------------------------------------
 Responsive — same pattern as Facebook Friends / YouTube Channel
 JS classes (ResizeObserver on tool width):
   --narrow  < 480
   --compact < 768
   --desktop >= 768
 Grid columns set inline via JS (beats WP theme CSS).
------------------------------------------------------------------- */
.nstfv-search__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.nstfv-search__field {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  font-size: 16px !important;
}

.nstfv-search__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.nstfv-btn {
  flex: 1 1 calc(50% - 5px);
  justify-content: center;
  min-height: 46px;
}

.nstfv-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.nstfv.nstfv--desktop .nstfv-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nstfv.nstfv--desktop .nstfv-profile {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.nstfv.nstfv--desktop .nstfv-profile__avatar-wrap {
  margin: 0;
}

.nstfv.nstfv--desktop .nstfv-profile__name {
  justify-content: flex-start;
}

.nstfv.nstfv--desktop .nstfv-profile__handle,
.nstfv.nstfv--desktop .nstfv-profile__bio {
  text-align: left;
}

.nstfv.nstfv--desktop .nstfv-tools {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.nstfv.nstfv--desktop .nstfv-find {
  flex: 1 1 180px;
  width: auto;
}

.nstfv.nstfv--desktop .nstfv-sort {
  width: auto;
  flex: 0 1 auto;
}

.nstfv.nstfv--compact .nstfv-tools {
  flex-direction: column !important;
  align-items: stretch !important;
}

.nstfv.nstfv--compact .nstfv-find,
.nstfv.nstfv--compact .nstfv-sort {
  width: 100% !important;
}

@media (min-width: 768px) {
  .nstfv:not(.nstfv--compact) .nstfv-search__row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .nstfv:not(.nstfv--compact) .nstfv-search__field {
    flex: 1 1 220px !important;
    width: auto !important;
  }

  .nstfv:not(.nstfv--compact) .nstfv-search__actions {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .nstfv:not(.nstfv--compact) .nstfv-btn {
    flex: 0 0 auto;
  }
}

/* WordPress / Live Server narrow container (set by ResizeObserver) */
.nstfv.nstfv--compact .nstfv-search__row {
  flex-direction: column !important;
}

.nstfv.nstfv--compact .nstfv-search__actions {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.nstfv.nstfv--compact .nstfv-btn {
  flex: 1 1 calc(50% - 5px) !important;
}

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

.nstfv.nstfv--narrow .nstfv-btn {
  flex: 1 1 100% !important;
}

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

.nstfv.nstfv--narrow .nstfv-hero__title {
  font-size: 1.2rem;
}

@media (max-width: 767px) {
  .nstfv {
    min-height: auto;
    padding-top: 14px;
  }

  .nstfv-hero {
    padding: 22px 16px;
  }

  .nstfv-search,
  .nstfv-panel,
  .nstfv-skeleton__panel {
    padding: 14px;
  }

  .nstfv-card {
    padding: 12px 10px;
  }

  .nstfv-profile__avatar {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 540px) {
  .nstfv-hero__heading {
    gap: 10px;
  }

  .nstfv-hero__brand {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .nstfv-stats {
    grid-template-columns: 1fr;
  }

  .nstfv-modal__dialog {
    padding: 12px;
  }
}

@media (hover: none) {
  .nstfv-btn:hover,
  .nstfv-more:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nstfv-sk {
    animation: none;
  }

  .nstfv-btn,
  .nstfv-more,
  .nstfv-profile__zoom {
    transition: none;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Missing fixed HTML classes */
.nstfv .fa-solid,
.nstfv .fa-brands,
.nstfv .fa-tiktok,
.nstfv .fa-paste,
.nstfv .fa-rotate-left,
.nstfv .fa-expand,
.nstfv .fa-circle-info,
.nstfv .fa-users,
.nstfv .fa-certificate,
.nstfv .fa-angles-down,
.nstfv .fa-xmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nstfv .fa-circle-info,
.nstfv .fa-certificate,
.nstfv .fa-users,
.nstfv .fa-angles-down {
  color: inherit;
}

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

.xrespond-ts-label {
  display: block;
  margin-bottom: 8px;
  color: var(--nstfv-dim);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.xrespond-ts-error {
  display: block;
  margin-top: 8px;
  color: #ffd4d4;
  font-size: 0.82rem;
}