/* NeonDream — light gray surfaces + black accent (primary / CTAs / outgoing chat) */

/* Site-wide: readable wrapping, no horizontal page scroll */
html {
  -webkit-text-size-adjust: 100%;
}

body.nd-body {
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  /* Bootstrap 5 theme tokens (forms, .btn-primary, links) */
  --bs-primary: #000000;
  --bs-primary-rgb: 0, 0, 0;
  --bs-link-color: #000000;
  --bs-link-hover-color: #1a1a1a;
  --bs-body-bg: #f0f2f5;
  --bs-body-color: #050505;
  --bs-border-color: #e4e6eb;
  --bs-secondary: #65676b;
  --bs-secondary-rgb: 101, 103, 107;
  --bs-secondary-color: #65676b;
  /* App tokens */
  --nd-page-bg: #f0f2f5;
  --nd-surface: #ffffff;
  --nd-text: #050505;
  --nd-text-muted: #65676b;
  --nd-border: #e4e6eb;
  --nd-primary: #000000;
  --nd-primary-hover: #1a1a1a;
  --nd-tap-muted: #f2f3f5;
}

.nd-main {
  min-width: 0;
  max-width: 100%;
  min-height: 50vh;
  overflow-x: clip;
  overflow-y: visible; /* do not create a y scrollport; keeps child position:sticky tied to viewport */
  overflow-wrap: break-word;
}

/* WebView / narrow viewports: content images never exceed main width */
.nd-main img {
  max-width: 100%;
}

.nd-main .table-responsive {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .nd-main .table-sm th.text-nowrap,
  .nd-main .table-sm td.text-nowrap {
    white-space: normal;
  }
}

/* Shared width helpers (replace inline max-width in templates) */
.nd-narrow-form-shell {
  width: 100%;
  max-width: min(100%, 24rem);
  margin-left: auto;
  margin-right: auto;
}

.nd-prose-measure {
  max-width: min(100%, 42rem);
}

.nd-messages-stack {
  width: 100%;
  max-width: min(100%, 40rem);
  margin-left: auto;
  margin-right: auto;
}

.nd-page-not-found {
  max-width: min(100%, 28rem);
}

.nd-tag-category-hero {
  max-height: min(14rem, 42vw);
}

.nd-body {
  /* Default Bootstrap Icon (`.bi`) size — see unified `.nd-body .bi` rules below. */
  --nd-icon-size: 1rem;
  /* Default tap target token (mobile block bumps + uses this). */
  --nd-touch-min: 2.75rem;
  /* Expo home (/) — shared with product grids for the same corner language */
  --nd-expo-hero-radius: 6px;
  --nd-expo-min-card-radius: 4px;
  /* Top/bottom chrome uses the same radius as the expo hero panels */
  --nd-chrome-radius: var(--nd-expo-hero-radius);
  /* Buttons + pill utilities: same corner as expo hero (not Bootstrap pills) */
  --nd-btn-radius: var(--nd-chrome-radius);
  --bs-btn-border-radius: var(--nd-btn-radius);
  --bs-btn-border-radius-sm: var(--nd-btn-radius);
  --bs-btn-border-radius-lg: var(--nd-btn-radius);
  /* Fixed bottom nav horizontal inset (viewport-relative; mirrors main px-3 / px-md-4) */
  --nd-shell-inset: 1rem;
  min-height: 100vh;
  background-color: var(--nd-page-bg);
  color: var(--nd-text);
  padding-bottom: 7.5rem;
}

@media (min-width: 768px) {
  .nd-body {
    --nd-shell-inset: 1.5rem;
  }
}

/* Override Bootstrap pill caps on controls site-wide (Expo / hero radius) */
body.nd-body .btn.rounded-pill,
body.nd-body a.btn.rounded-pill,
body.nd-body .btn-check + label.btn.rounded-pill {
  border-radius: var(--nd-btn-radius) !important;
}

body.nd-body .badge.rounded-pill {
  border-radius: var(--nd-btn-radius) !important;
}

/* Site-wide glass (body.nd-body--glass): mesh page bg + frosted chrome and common panels */
body.nd-body.nd-body--glass {
  background-color: #d4deeb;
  background-image:
    radial-gradient(125% 90% at 50% -18%, rgba(255, 255, 255, 0.58) 0%, transparent 52%),
    linear-gradient(168deg, #eef3fb 0%, #e6edf6 38%, #dde5f0 72%, #d4deeb 100%);
}

body.nd-body.nd-body--glass .nd-profile-page--glass.nd-profile-page--landing {
  background: none;
}

body.nd-body.nd-body--glass .nd-header {
  background: rgba(255, 255, 255, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 2px 18px rgba(15, 23, 42, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}

body.nd-body.nd-body--glass .nd-header-toolstrip {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-pill {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 2px 16px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.nd-body.nd-body--glass .nd-nav-unread-dot {
  border-color: rgba(255, 255, 255, 0.88);
}

body.nd-body.nd-body--glass .nd-page-topbar,
body.nd-body.nd-body--glass .nd-account-settings-sticky-top {
  background-color: rgba(255, 255, 255, 0.42);
  border-bottom-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-page-topbar .nd-back-btn,
body.nd-body.nd-body--glass .nd-account-settings-sticky-top .nd-back-btn {
  background-color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.nd-body.nd-body--glass .nd-product-actions {
  background: rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

body.nd-body.nd-body--glass .nd-expo-panel,
body.nd-body.nd-body--glass .nd-expo-tier {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.nd-body.nd-body--glass .nd-expo-card-footer {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.nd-body.nd-body--glass .nd-expo-min__hero-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-expo-min-card {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 2px 12px rgba(15, 23, 42, 0.06);
}

body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 22px rgba(15, 23, 42, 0.07);
}

body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.nd-body.nd-body--glass .nd-tag-card {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-tag-card-visual {
  background-color: rgba(255, 255, 255, 0.75);
}

body.nd-body.nd-body--glass .nd-tag-page .nd-tag-admin-card.card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-tag-page__lead {
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

body.nd-body.nd-body--glass .nd-main .card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow:
    0 2px 14px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.nd-body.nd-body--glass .nd-account-panel--session .card-body {
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%);
}

body.nd-body.nd-body--glass .nd-account-toc__link {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.nd-body.nd-body--glass .nd-chat-topbar {
  background: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-chat-stream-wrap {
  background: rgba(240, 242, 245, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.nd-body.nd-body--glass .nd-chat-bar {
  background: rgba(240, 242, 245, 0.55);
  border-top-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-chat-composer-inner {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

@media (prefers-reduced-transparency: reduce) {
  body.nd-body.nd-body--glass .nd-header,
  body.nd-body.nd-body--glass .nd-header-toolstrip,
  body.nd-body.nd-body--glass .nd-pill,
  body.nd-body.nd-body--glass .nd-page-topbar,
  body.nd-body.nd-body--glass .nd-account-settings-sticky-top,
  body.nd-body.nd-body--glass .nd-product-actions,
  body.nd-body.nd-body--glass .nd-expo-panel,
  body.nd-body.nd-body--glass .nd-expo-tier,
  body.nd-body.nd-body--glass .nd-expo-card-footer,
  body.nd-body.nd-body--glass .nd-expo-min__hero-panel,
  body.nd-body.nd-body--glass .nd-expo-min-card,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body,
  body.nd-body.nd-body--glass .nd-tag-card,
  body.nd-body.nd-body--glass .nd-tag-page .nd-tag-admin-card.card,
  body.nd-body.nd-body--glass .nd-main .card,
  body.nd-body.nd-body--glass .nd-account-toc__link,
  body.nd-body.nd-body--glass .nd-page-topbar .nd-back-btn,
  body.nd-body.nd-body--glass .nd-account-settings-sticky-top .nd-back-btn,
  body.nd-body.nd-body--glass .nd-chat-topbar,
  body.nd-body.nd-body--glass .nd-chat-stream-wrap,
  body.nd-body.nd-body--glass .nd-chat-bar,
  body.nd-body.nd-body--glass .nd-chat-composer-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nd-body.nd-body--glass .nd-header,
  body.nd-body.nd-body--glass .nd-pill,
  body.nd-body.nd-body--glass .nd-page-topbar,
  body.nd-body.nd-body--glass .nd-account-settings-sticky-top,
  body.nd-body.nd-body--glass .nd-product-actions,
  body.nd-body.nd-body--glass .nd-chat-topbar,
  body.nd-body.nd-body--glass .nd-chat-composer-inner {
    background: rgba(255, 255, 255, 0.96);
  }

  body.nd-body.nd-body--glass .nd-header-toolstrip {
    background: #f0f2f5;
    border-color: var(--nd-border);
  }

  body.nd-body.nd-body--glass .nd-expo-panel,
  body.nd-body.nd-body--glass .nd-expo-tier,
  body.nd-body.nd-body--glass .nd-expo-card-footer,
  body.nd-body.nd-body--glass .nd-expo-min__hero-panel,
  body.nd-body.nd-body--glass .nd-expo-min-card,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body,
  body.nd-body.nd-body--glass .nd-tag-card,
  body.nd-body.nd-body--glass .nd-tag-page .nd-tag-admin-card.card,
  body.nd-body.nd-body--glass .nd-main .card {
    background: #fff;
    border-color: var(--nd-border);
  }

  body.nd-body.nd-body--glass .nd-chat-stream-wrap,
  body.nd-body.nd-body--glass .nd-chat-bar {
    background: #f0f2f5;
    border-color: var(--nd-border);
  }
}

/* Bootstrap Icons — one size + alignment everywhere on .nd-body */
.nd-body .bi {
  font-size: var(--nd-icon-size);
  line-height: 1;
  vertical-align: -0.125em;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nd-body .form-control {
  border-color: var(--nd-border);
  background-color: var(--nd-surface);
}

.nd-body .form-control:focus {
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08);
}

.nd-body .btn-dark {
  --bs-btn-bg: var(--nd-primary);
  --bs-btn-border-color: var(--nd-primary);
  --bs-btn-hover-bg: var(--nd-primary-hover);
  --bs-btn-hover-border-color: var(--nd-primary-hover);
  --bs-btn-active-bg: var(--nd-primary-hover);
  --bs-btn-active-border-color: var(--nd-primary-hover);
  --bs-btn-disabled-bg: var(--nd-primary);
  --bs-btn-disabled-border-color: var(--nd-primary);
}

.nd-body .link-dark {
  color: var(--nd-primary) !important;
}

.nd-body .link-dark:hover,
.nd-body .link-dark:focus {
  color: var(--nd-primary-hover) !important;
}

.nd-body .btn-outline-dark {
  --bs-btn-color: var(--nd-text);
  --bs-btn-border-color: var(--nd-border);
  --bs-btn-hover-color: var(--nd-text);
  --bs-btn-hover-bg: var(--nd-tap-muted);
  --bs-btn-hover-border-color: #d0d3d9;
  --bs-btn-active-color: var(--nd-text);
  --bs-btn-active-bg: #e4e6eb;
  --bs-btn-active-border-color: #d0d3d9;
  --bs-btn-disabled-color: var(--nd-text-muted);
  --bs-btn-disabled-border-color: var(--nd-border);
}

.nd-body .btn-outline-secondary {
  --bs-btn-color: var(--nd-text-muted);
  --bs-btn-border-color: var(--nd-border);
  --bs-btn-hover-color: var(--nd-text);
  --bs-btn-hover-bg: var(--nd-tap-muted);
  --bs-btn-hover-border-color: #d0d3d9;
  --bs-btn-active-color: var(--nd-text);
  --bs-btn-active-bg: #e4e6eb;
  --bs-btn-active-border-color: #d0d3d9;
}

.nd-body .text-dark {
  color: var(--nd-text) !important;
}

/* e.g. /chat/<slug>/ — no top/bottom chrome */
.nd-body--no-chrome {
  padding-bottom: 1rem;
}

/* Public profile (other user): fixed message CTA above safe area */
.nd-body--no-chrome.nd-body--profile-message {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
}

.nd-profile-public-message-btn {
  min-height: 2.75rem;
}

/* Account settings: fixed “Save profile” bar (replaces bottom nav padding) */
.nd-body--no-chrome.nd-body--account-settings-sticky {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
}

.nd-body--account-settings-sticky:not(.nd-body--no-chrome) {
  padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0));
}

.nd-body--no-chrome .nd-chat-detail {
  min-height: 100dvh;
  min-height: 100svh;
}

/* Chat thread: lock page scroll; only .nd-chat-stream scrolls; composer stays usable */
html:has(body.nd-body--chat-thread) {
  height: 100%;
}

body.nd-body--no-chrome.nd-body--chat-thread {
  height: 100%;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nd-body--chat-thread .nd-main.container-fluid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat thread: strip outer page padding + full-viewport message area */
.nd-body--chat-thread .nd-chat-detail {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  --nd-chat-keyboard-gap: 0px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

.nd-body--no-chrome.nd-body--chat-thread .nd-chat-detail {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  height: auto;
}

.nd-body--chat-thread .nd-chat-topbar {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0));
}

.nd-body--chat-thread .nd-chat-bar {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0));
}

@media (max-width: 767.98px) {
  .nd-body--chat-thread .nd-chat-bar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--nd-chat-keyboard-gap, 0px));
    z-index: 1040;
    margin-top: 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  }

  .nd-body--chat-thread .nd-chat-stream-wrap {
    padding-bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px) + var(--nd-chat-keyboard-gap, 0px));
  }
}

.nd-body--chat-thread .nd-chat-stream-wrap {
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
}

/* Tag product detail: bottom pill nav replaced by Add to cart / heart / contact */
.nd-body--product-actions {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
}

.nd-product-actions {
  z-index: 1030;
  background-color: var(--nd-surface);
  border-top: 1px solid var(--nd-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.nd-product-actions-inner {
  width: 100%;
  max-width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}

/* One row: primary cart + two matching icon controls */
.nd-product-actions-cart {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nd-btn-radius);
}

.nd-product-actions-icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nd-btn-radius);
}

.nd-product-actions-ico {
  font-size: 1.1rem;
  line-height: 1;
}

.nd-product-actions-icon.nd-product-card-heart--active {
  background-color: var(--nd-primary);
  border-color: var(--nd-primary);
  color: #fff;
}

.nd-product-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}

.nd-product-seller-card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a:hover .nd-product-seller-card {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12) !important;
}

.nd-product-seller-avatar {
  width: 3.5rem;
  height: 3.5rem;
}

.nd-product-seller-avatar-fallback {
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  padding: 0.2rem;
}

.nd-logo--image {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.nd-logo-img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
}

.nd-site-logo-preview {
  display: block;
  max-height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
}

.nd-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-width: 0;
  /* True full-bleed width inside padded body (works with overflow-x: clip on body) */
  width: 100vw;
  max-width: none;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  box-sizing: border-box;
  background-color: var(--nd-surface);
  border-bottom: 1px solid var(--nd-border);
  border-radius: 0 0 var(--nd-chrome-radius) var(--nd-chrome-radius);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.nd-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100vw;
  max-width: none;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  padding-top: max(0.65rem, env(safe-area-inset-top, 0));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0));
  min-height: 3.25rem;
}

@media (min-width: 768px) {
  .nd-header-inner {
    gap: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0));
    padding-right: max(1rem, env(safe-area-inset-right, 0));
    padding-top: max(0.75rem, env(safe-area-inset-top, 0));
    padding-bottom: 0.75rem;
    min-height: 3.5rem;
  }
}

.nd-header-start {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.nd-header-brand.nd-logo--image {
  min-width: 0;
}

.nd-header-end {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.nd-header-toolstrip {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem 0.35rem;
  background-color: #f0f2f5;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-chrome-radius);
}

.nd-header-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--nd-chrome-radius);
  color: var(--nd-text);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.nd-header-tool:hover {
  background-color: #e4e6eb;
  color: var(--nd-text);
}

.nd-header-tool.is-active {
  background-color: var(--nd-primary);
  color: #fff;
}

.nd-header-tool.is-active:hover {
  background-color: var(--nd-primary-hover);
  color: #fff;
}

.nd-header-tool--cart .nd-header-cart-badge {
  position: absolute;
  top: 0.08rem;
  right: 0.08rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1rem;
  border-radius: var(--nd-btn-radius);
  background: #dc2626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
}

.nd-header-tool--cart.is-active .nd-header-cart-badge {
  background: #fecaca;
  color: #7f1d1d;
}

/* Shopper added your listing — extra pulse cue (count is in nd_nav_cart_badge) */
.nd-header-tool--cart.nd-header-tool--cart-seller-signal .nd-header-cart-seller-dot {
  position: absolute;
  bottom: 0.06rem;
  left: 0.06rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
  box-sizing: content-box;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
  animation: nd-cart-seller-pulse 1.6s ease-in-out infinite;
}

@keyframes nd-cart-seller-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.nd-header-text-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nd-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--nd-chrome-radius);
}

.nd-header-text-link:hover {
  color: var(--nd-text);
  background-color: var(--nd-tap-muted);
}

.nd-header-register {
  font-weight: 600;
}

.nd-logo {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--nd-text);
  text-decoration: none;
  border-radius: var(--nd-chrome-radius);
}

@media (min-width: 768px) {
  .nd-logo {
    font-size: 2rem;
  }
}

.nd-logo:hover {
  color: var(--nd-text);
  opacity: 0.85;
}

/* Bottom bar: matches expo hero corner radius (not full pill) */
.nd-bottom-nav {
  --nd-pill-pad-y: 0.45rem;
  --nd-pill-pad-x: 0.65rem;
  --nd-disk: 3.35rem;
  --nd-pill-gap: 0.35rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .nd-bottom-nav {
    --nd-pill-pad-y: 0.4rem;
    --nd-pill-pad-x: 0.55rem;
    --nd-disk: 2.95rem;
    --nd-pill-gap: 0.3rem;
  }
}

.nd-bottom-nav .nd-bottom-inner {
  pointer-events: auto;
  padding: 0 var(--nd-shell-inset, 1rem) calc(1.1rem + env(safe-area-inset-bottom, 0));
}

.nd-pill {
  display: flex;
  align-items: center;
  gap: var(--nd-pill-gap);
  padding: var(--nd-pill-pad-y) var(--nd-pill-pad-x);
  background-color: var(--nd-surface) !important;
  border: 1px solid var(--nd-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-radius: var(--nd-chrome-radius);
  overflow: hidden;
}

.nd-pill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--nd-disk);
  height: var(--nd-disk);
  padding: 0.2rem 0.35rem;
  border-radius: var(--nd-chrome-radius);
  text-decoration: none;
  color: var(--nd-text-muted);
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nd-pill-item-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
  text-align: center;
}

/* Unread DM indicator on bottom-nav chat icon */
.nd-nav-unread-dot {
  position: absolute;
  top: 0;
  right: 0.1rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background-color: #dc2626;
  border: 2px solid var(--nd-surface);
  box-sizing: content-box;
  z-index: 2;
  pointer-events: none;
}

.nd-pill-item.is-active .nd-nav-unread-dot {
  border-color: #000;
}

.nd-pill-lbl {
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .nd-pill-lbl {
    font-size: 0.48rem;
  }
}

.nd-pill-item:hover {
  color: var(--nd-text);
  background-color: var(--nd-tap-muted);
}

.nd-pill-item.is-active {
  background-color: var(--nd-primary);
  color: #fff;
  box-shadow: none;
}

.nd-pill-item.is-active:hover {
  color: #fff;
  background-color: var(--nd-primary-hover);
}

/* One-handed use: larger tap targets + bottom thumb zone (mobile; ~44px min) */
@media (max-width: 767.98px) {
  body.nd-body {
    --nd-icon-size: 1.08rem;
  }

  body.nd-body:not(.nd-body--no-chrome) {
    padding-bottom: 8.35rem;
  }

  .nd-header-tool {
    width: var(--nd-touch-min);
    height: var(--nd-touch-min);
  }

  .nd-header-toolstrip {
    gap: 0.2rem;
    padding: 0.32rem 0.42rem;
  }

  .nd-header-brand.nd-logo {
    min-height: var(--nd-touch-min);
    min-width: var(--nd-touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    box-sizing: border-box;
  }

  .nd-header-brand.nd-logo--image {
    min-height: var(--nd-touch-min);
    padding: 0.15rem 0;
    display: inline-flex;
    align-items: center;
  }

  .nd-chat-topbar-back,
  .nd-back-btn {
    min-height: var(--nd-touch-min);
    min-width: auto;
    padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  }

  .nd-back-btn__text {
    font-size: 0.875rem;
  }

  .nd-bottom-nav {
    --nd-pill-pad-y: 0.55rem;
    --nd-pill-pad-x: 0.72rem;
    --nd-disk: 3.58rem;
    --nd-pill-gap: 0.42rem;
  }

  .nd-bottom-nav .nd-bottom-inner {
    padding: 0 var(--nd-shell-inset, 1rem) calc(1.28rem + env(safe-area-inset-bottom, 0));
  }

  .nd-pill-lbl {
    font-size: 0.56rem;
  }

  .nd-main .form-control:not(textarea) {
    min-height: 2.65rem;
  }

  .nd-main select.form-select {
    min-height: 2.65rem;
  }

  .nd-main .btn-sm {
    min-height: 2.55rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .nd-product-card-heart {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nd-tag-admin-toolbar .nd-tag-icon-btn {
    width: var(--nd-touch-min);
    height: var(--nd-touch-min);
  }

  .nd-tag-drag-handle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .nd-page-topbar {
    gap: 0.75rem;
  }

  .nd-account-toc__link {
    padding: 0.38rem 0.85rem;
  }

  .nd-main .btn,
  .nd-main .btn-close,
  .nd-pill-item {
    touch-action: manipulation;
  }
}

/* —— Expo home (/) — responsive layout + tier cards —— */
.nd-expo-page {
  width: 100%;
  max-width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.25rem;
}

.nd-expo-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nd-expo-stack {
    gap: 1.35rem;
  }
}

.nd-expo-panel {
  background-color: var(--nd-surface);
}

.nd-expo-hero-card {
  border-radius: 1rem;
}

.nd-expo-hero-row {
  min-height: 0;
}

.nd-expo-hero-card .nd-expo-carousel {
  box-shadow: none;
  border-radius: 0;
  position: relative;
  min-height: 10.5rem;
}

@media (min-width: 576px) {
  .nd-expo-hero-card .nd-expo-carousel {
    min-height: 0;
  }
}

/* Taller on narrow phones (2:1), wide strip from sm (3:1) */
.nd-expo-ratio-hero {
  --bs-aspect-ratio: 50%;
}

@media (min-width: 576px) {
  .nd-expo-ratio-hero {
    --bs-aspect-ratio: calc(100% / 3);
  }
}

.nd-expo-ratio-3x1 {
  --bs-aspect-ratio: calc(100% / 3);
}

.nd-expo-hero-col--slides .nd-expo-carousel {
  border-radius: 1rem 1rem 0 0;
}

.nd-expo-hero-col--video .nd-expo-video-frame {
  border-radius: 0 0 1rem 1rem;
}

@media (min-width: 992px) {
  .nd-expo-hero-col--slides .nd-expo-carousel {
    border-radius: 1rem 0 0 1rem;
  }

  .nd-expo-hero-col--video .nd-expo-video-frame {
    border-radius: 0 1rem 1rem 0;
  }
}

.nd-expo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #4a4a4a 0%, #353535 100%);
}

.nd-expo-slide--alt {
  background: linear-gradient(145deg, #5a5a5a 0%, #404040 100%);
}

.nd-expo-slide-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.nd-expo-carousel-ctrl {
  width: 3rem;
  min-width: 3rem;
  opacity: 1;
}

.nd-expo-carousel-ico {
  font-size: 1.1rem;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.nd-expo-video-wrap {
  background-color: #0d0d0d;
  padding: 0.75rem;
  border-radius: 1rem;
}

.nd-expo-video-caption {
  margin: 0 0 0.5rem;
}

.nd-expo-video-frame iframe {
  border: 0;
}

.nd-expo-tier {
  background-color: var(--nd-surface);
}

.nd-expo-tier-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.95rem 1rem 0.75rem;
  border-bottom: 1px solid var(--nd-border);
}

@media (min-width: 576px) {
  .nd-expo-tier-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 1.1rem 1.15rem 0.85rem;
  }
}

.nd-expo-tier-title {
  letter-spacing: 0.04em;
}

.nd-expo-tier--diamond .nd-expo-tier-head {
  border-top: 3px solid #c5a059;
}

.nd-expo-tier--vvip .nd-expo-tier-head {
  border-top: 3px solid #5c3d9e;
}

.nd-expo-tier--gold .nd-expo-tier-head {
  border-top: 3px solid #d4af37;
}

.nd-expo-tier--silver .nd-expo-tier-head {
  border-top: 3px solid #9ca3af;
}

.nd-expo-tier-body {
  padding: 0.65rem 0.4rem 0.95rem;
}

@media (min-width: 768px) {
  .nd-expo-tier-body {
    padding: 0.85rem 0.65rem 1.1rem;
  }
}

.nd-expo-exhibitor-row {
  margin-left: 0;
  margin-right: 0;
}

.nd-expo-exhibitor-cell {
  padding: 0.2rem;
}

@media (min-width: 768px) {
  .nd-expo-exhibitor-cell {
    padding: 0.35rem;
  }
}

.nd-expo-card {
  border-radius: 0.875rem !important;
}

@media (min-width: 768px) {
  .nd-expo-card {
    border-radius: 1rem !important;
  }
}

.nd-expo-card-visual {
  border-radius: 0.875rem 0.875rem 0 0;
  overflow: hidden;
}

/* Exhibitor card media: width : height = 2 : 1 */
.nd-expo-exhibitor-image-2x1.ratio {
  --bs-aspect-ratio: 50%;
}

@media (min-width: 768px) {
  .nd-expo-card-visual {
    border-radius: 1rem 1rem 0 0;
  }
}

/* Profile (and similar) hero: cover photo intended aspect width:height = 2:1 */
.nd-cover-photo-2x1.ratio {
  --bs-aspect-ratio: 50%;
}

.nd-expo-card-footer {
  background-color: var(--nd-surface);
  border-top: 1px solid var(--nd-border);
  border-radius: 0 0 0.875rem 0.875rem;
  padding: 0.55rem 0.65rem;
}

@media (min-width: 768px) {
  .nd-expo-card-footer {
    border-radius: 0 0 1rem 1rem;
    padding: 0.75rem 0.9rem;
  }
}

.nd-expo-card-name {
  color: var(--nd-text);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 576px) {
  .nd-expo-card-name {
    font-size: 0.875rem;
  }
}

.nd-expo-fav-btn {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border: 1px solid var(--nd-border);
  background-color: #f0f2f5;
  color: var(--nd-text);
}

@media (min-width: 576px) {
  .nd-expo-fav-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.nd-expo-fav-btn:hover {
  background-color: #e4e6eb;
  color: var(--nd-text);
}

.nd-expo-fav-btn--active {
  background-color: var(--nd-primary);
  border-color: var(--nd-primary);
  color: #fff;
}

.nd-expo-fav-btn--active:hover {
  background-color: var(--nd-primary-hover);
  border-color: var(--nd-primary-hover);
  color: #fff;
}

/* —— Expo minimal (/) —— */
.nd-expo-min {
  width: 100%;
  max-width: min(100%, 68rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.25rem 3rem;
}

.nd-expo-min__intro {
  margin-bottom: 2rem;
  padding-top: 0.25rem;
}

.nd-expo-min__deck-note {
  margin-top: 0.65rem;
  max-width: 38rem;
  line-height: 1.45;
}

.nd-expo-min__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
  margin: 0 0 0.35rem;
}

.nd-expo-min__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nd-text, #111);
  margin: 0;
  line-height: 1.2;
}

.nd-expo-min__hero {
  margin-bottom: 2.75rem;
}

.nd-expo-min__hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--nd-border, #e5e7eb);
  border: 1px solid var(--nd-border, #e5e7eb);
  border-radius: var(--nd-expo-hero-radius, 6px);
  overflow: hidden;
}

@media (min-width: 992px) {
  .nd-expo-min__hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nd-expo-min__hero-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: #fff;
}

.nd-expo-min__hero-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
}

.nd-expo-min__ctrl--on-dark {
  opacity: 0.75;
}

.nd-expo-min__carousel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.nd-expo-min__ratio {
  --bs-aspect-ratio: 56.25%;
}

@media (min-width: 576px) {
  .nd-expo-min__ratio {
    --bs-aspect-ratio: calc(100% / 2.2);
  }
}

.nd-expo-min__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #9ca3af;
}

.nd-expo-min__ph--muted {
  background-color: #eceef2;
}

.nd-expo-min__ctrl {
  width: 2.25rem;
  height: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.nd-expo-min__ctrl:hover {
  opacity: 0.95;
}

.nd-expo-min__ctrl .bi {
  color: #fff;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.4));
}

.nd-expo-min__video-inner iframe {
  border: 0;
}

.nd-expo-min__tier {
  margin-bottom: 2.75rem;
}

.nd-expo-min__tier:last-child {
  margin-bottom: 0;
}

.nd-expo-min__tier-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nd-border, #e5e7eb);
}

/* Bootstrap .row + g-* adds margin-top: -gutter-y, which pulls the grid over the tier
   label above — reset top margin so headings and cards never overlap. */
.nd-expo-min__row.row {
  margin-top: 0;
}

.nd-expo-min__empty {
  padding: 0.5rem 0;
}

.nd-expo-min-card-wrap:focus-visible .nd-expo-min-card,
.nd-expo-min-card-wrap:hover .nd-expo-min-card {
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-expo-min-card {
  border: 1px solid var(--nd-border, #e5e7eb);
  border-radius: var(--nd-expo-min-card-radius, 4px);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nd-expo-min-card__ratio {
  --bs-aspect-ratio: 62.5%;
}

.nd-expo-min-card__ratio--cover {
  --bs-aspect-ratio: 50%;
}

.nd-expo-min-card__cover-img {
  object-fit: cover;
}

.nd-expo-min-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.nd-expo-min-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--nd-border, #e5e7eb);
  min-height: 2.75rem;
}

.nd-expo-min-card__name-row {
  flex: 1 1 auto;
  min-width: 0;
}

.nd-expo-min-card__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nd-text, #111);
  min-width: 0;
}

/* Verified-style marks next to display names (VVIP plan = blue, admin role = black) */
.nd-name-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  flex-shrink: 0;
}

.nd-name-badge {
  display: inline-flex;
  font-size: 0.92em;
  line-height: 1;
}

.nd-name-badge--vvip {
  color: #2563eb;
}

.nd-name-badge--admin {
  color: #0f172a;
}

.nd-tag-home-highlight__title {
  letter-spacing: 0.08em;
}

.nd-expo-min-card__mark {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
}

/* —— Tag / Categories page (page bg transparent; cards stay dark) —— */
.nd-tag-page {
  width: 100%;
  max-width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 0.5rem;
  /* Bootstrap .rounded-4 → expo hero shell (matches /) */
  --bs-border-radius-xl: var(--nd-expo-hero-radius, 6px);
}

/* Match Expo (/) page titles — clamp size, tight tracking */
.nd-tag-heading {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--nd-text, #111);
}

.nd-tag-page__hero {
  margin-bottom: 1.25rem;
  padding-top: 0.25rem;
}

.nd-tag-page__hero-row {
  align-items: flex-start;
}

/* Subtitle + bottom rule like .nd-expo-min__tier-label on home */
.nd-tag-page__lead {
  margin: 0.35rem 0 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nd-border, #e5e7eb);
  max-width: 38rem;
  line-height: 1.45;
}

.nd-tag-admin-toolbar .nd-tag-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nd-tag-admin-card {
  background-color: #fff;
}

.nd-tag-page .nd-tag-admin-card.card {
  border-radius: var(--nd-expo-hero-radius, 6px);
  overflow: hidden;
  border-color: var(--nd-border, #e5e7eb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nd-tag-sort-wrap {
  min-height: 0;
}

.nd-tag-drag-handle {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 3;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: grab;
  opacity: 0.92;
}

.nd-tag-drag-handle:active {
  cursor: grabbing;
}

.nd-tag-sort-ghost {
  opacity: 0.45;
}

.nd-tag-sort-chosen .nd-tag-card {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.22);
}

.nd-tag-card {
  background-color: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-expo-min-card-radius, 4px);
  padding: 0.65rem 0.65rem 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.nd-tag-card:hover {
  background-color: var(--nd-tap-muted);
  color: var(--nd-text);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-tag-card-visual {
  aspect-ratio: 1 / 1;
  width: 100%;
  background-color: #fff;
  margin-bottom: 0.65rem;
  border-radius: var(--nd-expo-min-card-radius, 4px);
  overflow: hidden;
}

.nd-tag-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--nd-text);
}

@media (min-width: 768px) {
  .nd-tag-card-label {
    font-size: 0.85rem;
  }
}

/* Product cards: favorite (client toggle; top-right on grids) — same radius as Expo CTAs */
.nd-product-card-heart {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border-radius: var(--nd-btn-radius, var(--nd-chrome-radius)) !important;
  border: 1px solid var(--nd-border);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--nd-text);
  line-height: 1;
}

.nd-product-card-heart:hover {
  background-color: #fff;
  color: var(--nd-text);
}

.nd-product-card-heart--active {
  background-color: var(--nd-primary);
  border-color: var(--nd-primary);
  color: #fff;
}

.nd-product-card-heart--active:hover {
  background-color: var(--nd-primary-hover);
  border-color: var(--nd-primary-hover);
  color: #fff;
}

.nd-tag-item-wrap .nd-product-card-heart,
.nd-profile-showcase-wrap .nd-product-card-heart {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 4;
}

/* Search page — comfortable query field + submit (top nav hidden on this route) */
.nd-search-page-form__input {
  min-height: 2.75rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.95rem;
}

.nd-search-page-form__submit {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* /listings/<user>/ — wider shell for 2-up mobile + 3-up desktop grids */
.nd-exhibitor-listings-page {
  max-width: min(100%, 52rem);
  padding: 0 0 0.5rem;
}

.nd-product-card-heart--table {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tag / search product grids — tighter row gap (mobile); column gap keeps thumb space; stretch = equal card height per row */
.nd-tag-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  align-items: stretch;
}

.nd-tag-product-grid__cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nd-tag-product-grid__cell .nd-tag-item-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Fill stretched grid cell: link + article + body flex chain */
.nd-tag-product-grid .nd-tag-item-wrap > a.stretched-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-items: stretch;
}

.nd-tag-product-grid .nd-tag-item-wrap > a.stretched-link > .nd-tag-item-card {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid .nd-tag-item-visual {
  flex-shrink: 0;
  background-color: #e8eaef;
}

.nd-tag-product-grid .nd-tag-item-visual img {
  transition: transform 0.22s ease;
}

.nd-tag-product-grid .nd-tag-item-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem 0.75rem;
}

.nd-tag-product-grid .nd-tag-item-body .nd-tag-item-meta {
  margin-top: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--nd-text-muted);
  line-height: 1.35;
}

.nd-tag-product-grid .nd-profile-showcase .ratio {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .nd-tag-product-grid {
    gap: 0.75rem 1rem;
  }

  .nd-tag-product-grid--lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nd-tag-product-grid--lg-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nd-tag-product-grid--profile-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nd-tag-product-grid--profile-sections {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .nd-tag-product-grid--profile-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .nd-tag-product-grid--profile-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nd-tag-product-grid--stack {
  grid-template-columns: 1fr;
}

.nd-tag-product-grid__cell > a.text-decoration-none {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.nd-tag-product-grid__cell > a.text-decoration-none > article {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid__cell .nd-profile-showcase-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid__cell .nd-profile-showcase-wrap > a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.nd-tag-product-grid__cell .nd-profile-showcase-wrap > a > article {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Profile section cards: wrap > article (no outer link) */
.nd-tag-product-grid__cell .nd-profile-showcase-wrap > article {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid .nd-profile-showcase .card-body {
  flex: 1 1 auto;
  min-height: 0;
}

/* Product grid tiles (tag category, search, favorites) */
.nd-tag-item-card.nd-tag-item-card--grid {
  border-radius: var(--nd-expo-min-card-radius, 4px);
  background-color: var(--nd-surface);
  color: var(--nd-text);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body {
  background-color: var(--nd-surface);
}

.nd-tag-item-title--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nd-text);
}

.nd-tag-item-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.nd-tag-item-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.42rem;
  border-radius: var(--nd-btn-radius);
  line-height: 1;
}

.nd-tag-item-pill--vvip {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #292524;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.nd-tag-item-pill--featured {
  background: linear-gradient(180deg, #2d2d2d 0%, #0a0a0a 100%);
  color: #fafafa;
}

.nd-tag-item-pill--verified {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .nd-tag-page a.stretched-link:hover .nd-tag-item-card.nd-tag-item-card--grid,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-card.nd-tag-item-card--grid {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 2px 6px rgba(0, 0, 0, 0.06),
      0 14px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }

  .nd-tag-page a.stretched-link:hover .nd-tag-item-visual img,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-visual img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-tag-item-card.nd-tag-item-card--grid,
  .nd-tag-product-grid .nd-tag-item-visual img {
    transition: none;
  }

  .nd-tag-page a.stretched-link:hover .nd-tag-item-card.nd-tag-item-card--grid,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-card.nd-tag-item-card--grid {
    transform: none;
  }

  .nd-tag-page a.stretched-link:hover .nd-tag-item-visual img,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-visual img {
    transform: none;
  }
}

/* —— Chat: inbox (Messenger-style list) —— */
.nd-chat-page--hub {
  width: 100%;
  max-width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0.5rem 2rem;
  color: #050505;
  --bs-border-radius-xl: var(--nd-expo-hero-radius, 6px);
}

@media (min-width: 768px) {
  .nd-chat-page--hub {
    padding: 1.25rem 0.75rem 2.5rem;
  }
}

.nd-chat-hub-head {
  margin-bottom: 1.25rem;
}

.nd-chat-hub-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #050505;
}

/* /chat/ hub — unread badge next to title (updated by chat-nav-unread.js) */
.nd-chat-hub-unread-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 0 2px #fff;
  flex-shrink: 0;
  vertical-align: middle;
}

.nd-chat-hub-block + .nd-chat-hub-block {
  margin-top: 1.5rem;
}

.nd-chat-hub-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #65676b;
  margin-bottom: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
}

.nd-chat-role-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--nd-expo-min-card-radius, 4px);
  background: #fff;
  color: #050505;
  border: 1px solid #e4e6eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.nd-chat-role-card:hover {
  color: #050505;
  background-color: #f2f3f5;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-chat-role-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f0f2f5;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.nd-chat-role-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}

.nd-chat-role-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.nd-chat-role-card-desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #65676b;
  line-height: 1.35;
}

.nd-chat-role-card-chevron {
  opacity: 0.35;
  font-size: 1rem;
  color: #65676b;
}

.nd-chat-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nd-chat-thread-card {
  background-color: #fff;
  border: 1px solid #e4e6eb;
  border-radius: var(--nd-expo-min-card-radius, 4px);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.nd-chat-thread-card--unread {
  border-color: #fecaca;
  background-color: #fff5f5;
}

.nd-chat-thread-row-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 0 2px #fff5f5;
}

.nd-chat-thread-card--unread .nd-chat-preview {
  color: #374151;
  font-weight: 500;
}

.nd-chat-thread {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nd-chat-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #e4e6eb;
  color: #050505;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.nd-chat-thread-body {
  flex: 1;
  min-width: 0;
}

.nd-chat-thread-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #050505;
}

.nd-chat-thread-chevron {
  font-size: 0.9rem;
  color: #bcc0c4;
}

.nd-chat-preview {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #65676b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-chat-thread-link {
  display: block;
  color: inherit;
}

.nd-chat-thread-link:hover .nd-chat-thread-card {
  border-color: #e4e6eb;
  background-color: #f2f3f5;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-chat-thread-link:hover .nd-chat-thread-card--unread {
  border-color: #fca5a5;
  background-color: #ffe4e6;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.12);
}

.nd-chat-empty {
  background-color: #f2f3f5;
  border-color: #e4e6eb !important;
  color: #65676b;
}

/* —— Chat thread (Messenger-style: flat gray, blue sends) —— */
.nd-chat-detail {
  display: flex;
  flex-direction: column;
  max-width: min(100%, 36rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-width: 0;
  min-height: calc(100dvh - 2rem);
  padding: 0.25rem 0.65rem 0;
  background: #fff;
  --bs-border-radius-xl: var(--nd-expo-hero-radius, 6px);
}

@media (min-width: 576px) {
  .nd-chat-detail {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

.nd-body--no-chrome .nd-chat-detail {
  max-width: 100%;
  padding-left: max(0.65rem, env(safe-area-inset-left, 0));
  padding-right: max(0.65rem, env(safe-area-inset-right, 0));
}

.nd-chat-topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: max(0.65rem, env(safe-area-inset-top, 0)) 0 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1025;
  background: #fff;
  border-bottom: 1px solid #e4e6eb;
  margin-bottom: 0;
}

.nd-chat-topbar-back,
.nd-back-btn {
  flex-shrink: 0;
  min-height: 2.5rem;
  height: auto;
  width: auto;
  min-width: 2.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  gap: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #f0f2f5;
  color: #050505;
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.2;
  transition: background 0.12s ease, transform 0.1s ease;
}

.nd-chat-topbar-back .bi,
.nd-back-btn .bi {
  flex-shrink: 0;
}

.nd-back-btn__text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 576px) {
  .nd-back-btn__text {
    max-width: 10rem;
  }
}

.nd-chat-topbar-back:hover,
.nd-back-btn:hover {
  background: #e4e6eb;
  color: #050505;
}

.nd-chat-topbar-back:active,
.nd-back-btn:active {
  transform: scale(0.96);
}

/* When site header is visible, in-page sticky bars sit below it (matches .nd-header-inner stack) */
.nd-body:not(.nd-body--no-chrome) {
  --nd-sticky-subnav-top: calc(
    max(0.65rem, env(safe-area-inset-top, 0px)) + 3.25rem + 0.65rem + 1px
  );
}

@media (min-width: 768px) {
  .nd-body:not(.nd-body--no-chrome) {
    --nd-sticky-subnav-top: calc(
      max(0.75rem, env(safe-area-inset-top, 0px)) + 0.75rem + 3.5rem + 0.75rem + 1px
    );
  }
}

/* Tag / search headers: sticky bar so back (and title row) stay visible while scrolling */
.nd-page-topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  position: sticky;
  top: var(--nd-sticky-subnav-top, 0px);
  z-index: 1018;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0));
  padding-bottom: 0.65rem;
  margin: 0 -0.125rem 0.75rem;
  background-color: rgba(240, 242, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nd-border);
}

.nd-body:not(.nd-body--no-chrome) .nd-page-topbar {
  padding-top: 0.45rem;
}

/* Search (etc.): no site header — sticky in-page bars anchor to safe area only */
.nd-body.nd-body--hide-top-nav:not(.nd-body--no-chrome) {
  --nd-sticky-subnav-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

.nd-body.nd-body--hide-top-nav:not(.nd-body--no-chrome) .nd-page-topbar {
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

/* Same #f0f2f5 as body — white back control so it stays visible */
.nd-page-topbar .nd-back-btn,
.nd-account-settings-sticky-top .nd-back-btn {
  background-color: var(--nd-surface);
  border: 1px solid var(--nd-border);
}

.nd-page-topbar .nd-back-btn:hover,
.nd-account-settings-sticky-top .nd-back-btn:hover {
  background-color: var(--nd-tap-muted);
  border-color: #d0d3d9;
}

.nd-chat-topbar-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nd-chat-topbar-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #e4e6eb;
  color: #050505;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  padding: 0.2rem;
  overflow-wrap: anywhere;
}

.nd-chat-topbar-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #050505;
}

.nd-chat-topbar-name--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.nd-chat-stream-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem 0.5rem 0.85rem;
  margin-top: 0;
  border-radius: 0;
  background: #f0f2f5;
  border: none;
  border-bottom: none;
}

@media (min-width: 576px) {
  .nd-chat-stream-wrap {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

.nd-chat-stream-label {
  letter-spacing: 0;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 0.75rem 0.85rem;
  color: #65676b !important;
  font-size: 0.75rem !important;
}

.nd-chat-stream {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 576px) {
  .nd-chat-stream {
    gap: 0.55rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

.nd-chat-row {
  display: flex;
}

.nd-chat-row--in {
  justify-content: flex-start;
}

.nd-chat-row--out {
  justify-content: flex-end;
}

.nd-chat-bubble {
  max-width: min(92%, 23rem);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.65rem 0.9rem;
  word-wrap: break-word;
}

.nd-chat-bubble--in {
  background-color: #e4e6eb;
  color: #050505;
  border: none;
  border-radius: 1.125rem 1.125rem 1.125rem 0.25rem;
  box-shadow: none;
}

.nd-chat-bubble--out {
  background: #000000;
  color: #fff;
  border-radius: 1.125rem 1.125rem 0.25rem 1.125rem;
  box-shadow: none;
}

.nd-chat-bubble--typing {
  border: none;
  background: #e4e6eb;
  padding: 0.65rem 0.95rem;
  border-radius: 1.125rem 1.125rem 1.125rem 0.25rem;
}

.nd-chat-typing {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  height: 0.5rem;
}

.nd-chat-typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #65676b;
  opacity: 0.45;
  animation: nd-chat-dot 1.2s ease-in-out infinite;
}

.nd-chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.nd-chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.nd-chat-empty-hint {
  padding: 2.5rem 1.25rem;
  line-height: 1.5;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  color: #65676b;
  font-size: 0.9375rem;
}

@keyframes nd-chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.nd-chat-bar {
  flex-shrink: 0;
  padding: 0.65rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0));
  margin-top: auto;
  background: #f0f2f5;
  border-top: 1px solid #e4e6eb;
}

@media (min-width: 768px) {
  .nd-body--chat-thread .nd-chat-bar {
    position: sticky;
    bottom: 0;
    z-index: 1030;
  }
}

.nd-body--no-chrome .nd-chat-bar {
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0));
}

.nd-chat-composer {
  margin: 0;
}

.nd-chat-composer-inner {
  border-color: transparent !important;
  background: #fff !important;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px)) !important;
  min-width: 0;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  touch-action: manipulation;
}

.nd-chat-readonly-note {
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
}

.nd-chat-composer-inner .form-control {
  font-size: 0.9375rem;
  min-height: 2.4rem;
  min-width: 0;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nd-chat-composer-inner .form-control:focus {
  box-shadow: none !important;
}

.nd-chat-composer-inner .form-control::placeholder {
  color: #8a8d91;
}

.nd-chat-composer-icon {
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px)) !important;
}

.nd-chat-send {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px)) !important;
  transition: background 0.12s ease, transform 0.1s ease;
}

.nd-chat-send:hover {
  background: #1a1a1a !important;
  color: #fff !important;
}

.nd-chat-send:active {
  transform: scale(0.95);
}

.nd-chat-send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.nd-chat-send .bi {
  margin-left: 2px;
  margin-top: 0;
}

@media (max-width: 767.98px) {
  .nd-chat-send {
    min-width: 2.75rem;
    min-height: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .nd-chat-composer-icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Profile page — responsive layout + hero */
.nd-profile-page {
  width: 100%;
  max-width: min(100%, 26rem);
}

@media (min-width: 576px) {
  .nd-profile-page {
    max-width: min(100%, 34rem);
  }
}

@media (min-width: 768px) {
  .nd-profile-page {
    max-width: min(100%, 44rem);
  }
}

@media (min-width: 992px) {
  .nd-profile-page {
    max-width: min(100%, 52rem);
  }
}

@media (min-width: 1200px) {
  .nd-profile-page {
    max-width: min(100%, 58rem);
  }
}

/* Profile — luxury landing treatment (shell radius = expo home hero) */
.nd-profile-page--landing {
  --nd-profile-shell-radius: var(--nd-expo-hero-radius, 6px);
  --bs-border-radius-xl: var(--nd-expo-hero-radius, 6px);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f4f8 42%, #e8ecf2 100%);
}

@media (min-width: 576px) {
  .nd-profile-page--landing {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

/* Landing profile article — full viewport width on small screens (escape main px-3) */
@media (max-width: 767.98px) {
  main.nd-main.container-fluid > article.nd-profile-page.nd-profile-page--landing {
    width: 100vw;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  main.nd-main.container-fluid > article.nd-profile-page.nd-profile-page--landing {
    width: auto;
    max-width: unset;
    margin-left: unset !important;
    margin-right: unset !important;
  }
}

.nd-profile-hero-lux {
  position: relative;
}

.nd-profile-hero--lux {
  box-shadow: 0 24px 55px -22px rgba(15, 23, 42, 0.22);
}

/* Hero + identity: tighter, matched radius; hero flat bottom so overlap reads clean */
.nd-profile-page--landing .nd-profile-hero--lux {
  border-radius: var(--nd-profile-shell-radius) var(--nd-profile-shell-radius) 0 0 !important;
}

.nd-profile-identity--lux {
  border-radius: var(--nd-profile-shell-radius, 0.8125rem) !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 22px 50px -28px rgba(15, 23, 42, 0.35), 0 1px 0 rgba(255, 255, 255, 0.85) inset !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.nd-profile-name--lux {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a !important;
}

.nd-profile-tagline--lux {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #64748b !important;
}

.nd-profile-section-title--lux {
  font-weight: 800;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem !important;
}

.nd-profile-surface {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 6px 28px -14px rgba(15, 23, 42, 0.14);
}

.nd-profile-prose--lux {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #475569 !important;
}

.nd-profile-lead-muted {
  max-width: 38rem;
  line-height: 1.5;
}

.nd-profile-showcase--lux {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 32px -14px rgba(15, 23, 42, 0.22);
}

a:hover .nd-profile-showcase--lux,
.nd-profile-showcase--lux:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -16px rgba(15, 23, 42, 0.3);
}

.nd-profile-shop-banner {
  box-shadow: 0 14px 36px -16px rgba(15, 23, 42, 0.2);
}

.nd-profile-settings-cta {
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.28);
}

/* Profile — glassmorphism (frosted panels; use with .nd-profile-page--landing) */
.nd-profile-page--glass.nd-profile-page--landing {
  background:
    radial-gradient(125% 90% at 50% -18%, rgba(255, 255, 255, 0.58) 0%, transparent 52%),
    linear-gradient(168deg, #eef3fb 0%, #e6edf6 38%, #dde5f0 72%, #d4deeb 100%);
}

.nd-profile-page--glass .nd-profile-hero--lux {
  box-shadow:
    0 28px 60px -28px rgba(15, 23, 42, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.nd-profile-page--glass .nd-profile-identity--lux {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 2px 18px rgba(15, 23, 42, 0.07),
    0 26px 52px -30px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.38) !important;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

.nd-profile-page--glass .nd-profile-avatar {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7),
    0 10px 28px -10px rgba(15, 23, 42, 0.28);
}

.nd-profile-page--glass .nd-profile-surface,
.nd-profile-page--glass .nd-profile-about-card {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  box-shadow:
    0 2px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nd-profile-page--glass .nd-profile-shop-banner {
  box-shadow:
    0 14px 36px -14px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.nd-profile-page--glass .nd-profile-showcase--lux {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 32px -14px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nd-profile-page--glass a:hover .nd-profile-showcase--lux,
.nd-profile-page--glass .nd-profile-showcase--lux:hover {
  box-shadow:
    0 18px 44px -14px rgba(15, 23, 42, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.nd-profile-page--glass .nd-profile-plan-card {
  background: rgba(255, 255, 255, 0.66) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 4px 22px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.nd-profile-page--glass .nd-profile-footer {
  background: linear-gradient(
    168deg,
    rgba(46, 46, 50, 0.78) 0%,
    rgba(30, 30, 34, 0.85) 48%,
    rgba(18, 18, 22, 0.9) 100%
  );
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nd-profile-page--glass .nd-profile-section-title--lux {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.nd-profile-page--glass .nd-tag-page__lead {
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

.nd-profile-page--glass .nd-profile-settings-cta {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-transparency: reduce) {
  .nd-profile-page--glass .nd-profile-identity--lux,
  .nd-profile-page--glass .nd-profile-surface,
  .nd-profile-page--glass .nd-profile-about-card,
  .nd-profile-page--glass .nd-profile-plan-card,
  .nd-profile-page--glass .nd-profile-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nd-profile-page--glass .nd-profile-identity--lux {
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .nd-profile-page--glass .nd-profile-surface,
  .nd-profile-page--glass .nd-profile-about-card {
    background: #fff !important;
  }

  .nd-profile-page--glass .nd-profile-plan-card {
    background: #fff !important;
  }

  .nd-profile-page--glass .nd-profile-footer {
    background: linear-gradient(165deg, #3a3a3c 0%, #2a2a2c 45%, #1a1a1c 100%);
  }
}

/* Pricing block — full viewport width on small screens (break out of article / body padding) */
@media (max-width: 767.98px) {
  .nd-profile-pricing--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .nd-profile-pricing--bleed {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.nd-profile-hero {
  margin-bottom: 0;
}

.nd-profile-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nd-profile-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.08) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.nd-profile-visitor-cover-baseline {
  background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 48%, #f8fafc 100%);
}

.nd-profile-identity-wrap {
  position: relative;
  z-index: 2;
  /* Light overlap only — large negative margin hid too much of the cover */
  margin-top: clamp(-0.65rem, -1.75vw, -1.1rem);
  margin-bottom: 0.25rem;
}

.nd-profile-identity {
  background-color: #fff;
}

.nd-profile-avatar {
  width: clamp(3.5rem, 12vw, 5.25rem);
  height: clamp(3.5rem, 12vw, 5.25rem);
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.nd-profile-avatar-fallback {
  line-height: 1;
}

.nd-profile-name {
  font-size: clamp(1.15rem, 3.2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.nd-profile-tagline {
  max-width: 36rem;
}

.nd-profile-body {
  max-width: 100%;
}

.nd-profile-section-title {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}

.nd-profile-prose {
  max-width: 42rem;
}

.nd-profile-about-card {
  border-color: var(--nd-border) !important;
}

.nd-profile-showcase-media {
  --bs-aspect-ratio: 75%;
  background-color: #e4e6eb;
}

.nd-profile-showcase .card-body {
  min-height: 4.5rem;
}

.nd-profile-price-tile {
  border-color: var(--nd-border) !important;
}

/* Profile — plan pricing cards (admin roster): one plan per full-width card */
.nd-profile-plan-card {
  border-color: var(--nd-border) !important;
}

.nd-profile-plan-card__list li::marker {
  color: var(--nd-text-muted);
}

.nd-profile-social {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nd-profile-social:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nd-profile-footer-text,
.nd-profile-contact-block {
  max-width: 22rem;
}

.nd-profile-contact-block {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .nd-profile-contact-block {
    max-width: 28rem;
  }
}

.nd-profile-card-dark {
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
}

.nd-profile-footer {
  background: linear-gradient(165deg, #3a3a3c 0%, #2a2a2c 45%, #1a1a1c 100%);
}

.nd-profile-footer-bleed {
  margin-top: 0.5rem;
}

/* Account settings — page shell + grouped panels */
.nd-account-page {
  width: 100%;
  max-width: min(100%, 26rem);
  --bs-border-radius-xl: var(--nd-expo-hero-radius, 6px);
}

@media (min-width: 576px) {
  .nd-account-page {
    max-width: min(100%, 34rem);
  }
}

@media (min-width: 768px) {
  .nd-account-page {
    max-width: min(100%, 44rem);
  }
}

@media (min-width: 992px) {
  .nd-account-page {
    max-width: min(100%, 52rem);
  }
}

@media (min-width: 1200px) {
  .nd-account-page {
    max-width: min(100%, 58rem);
  }
}

.nd-account-page-title {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--nd-text);
}

/* Same radius as Expo home (/) — profile preview, uploads, save bar, TOC pills */
.nd-account-page .btn.rounded-pill,
.nd-account-settings-save-bar .btn.rounded-pill,
.nd-account-page .badge.rounded-pill.nd-account-role-badge {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .form-control.rounded-3,
.nd-account-page .form-select.rounded-3,
.nd-account-page .form-control.rounded-2,
.nd-account-page textarea.form-control.rounded-3 {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-local-file-preview__img.rounded-3,
.nd-account-page .nd-account-preview-img--square-ad.rounded-2 {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-preview-img--avatar.rounded-circle {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-preview-x {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-toc__link {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-profile-page .nd-profile-avatar.rounded-circle {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-profile-page .btn.rounded-pill {
  border-radius: var(--nd-chrome-radius) !important;
}

#nd-profile-crop-modal .btn.rounded-pill,
#nd-profile-crop-modal .nd-profile-crop-stage.rounded-3 {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-lead {
  max-width: min(100%, 40rem);
}

.nd-account-toc__link {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: var(--nd-btn-radius);
  border: 1px solid var(--nd-border);
  background-color: var(--nd-surface);
  color: var(--nd-text-muted);
  line-height: 1.35;
}

.nd-account-toc__link:hover {
  color: var(--nd-text);
  border-color: #cbd0d9;
  background-color: #fafbfc;
}

.nd-account-group-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.nd-account-step-badge {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #0f172a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 0.1rem;
}

.nd-account-fieldset--group {
  scroll-margin-top: 5.75rem;
}

.nd-account-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}

.nd-account-panel-title {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: 0.02em;
  color: var(--nd-text);
}

.nd-account-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--nd-text);
}

.nd-account-subpanel {
  border-color: var(--nd-border) !important;
}

.nd-account-fieldset {
  border-color: var(--nd-border) !important;
}

/* Visitor account settings: edge-to-edge form on small viewports */
@media (max-width: 767.98px) {
  .nd-account-page .nd-account-panel--visitor-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  .nd-account-page .nd-account-panel--visitor-fullbleed__body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.nd-account-panel--session .card-body {
  background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
}

.nd-account-section-block {
  border: 1px solid var(--nd-border) !important;
}

.nd-account-settings-sticky-top {
  position: sticky;
  top: var(--nd-sticky-subnav-top, 0px);
  z-index: 1018;
  padding: max(0.35rem, env(safe-area-inset-top, 0)) 0 0.65rem;
  margin: 0 -0.125rem 0.75rem;
  background-color: rgba(240, 242, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nd-border);
}

.nd-account-settings-save-bar {
  pointer-events: auto;
}

.nd-account-settings-save-bar .nd-product-actions-inner {
  padding-top: 0.65rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
}

/* Account settings — expo media preview grid */
.nd-account-settings {
  max-width: none;
}

.nd-admin-accounts-table-wrap {
  max-height: min(70vh, 36rem);
  overflow: auto;
}

.nd-admin-accounts-table .nd-admin-accounts-msg {
  min-width: 10rem;
  max-width: 18rem;
}

.nd-account-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.5rem;
}

.nd-account-media-tile {
  margin: 0;
}

/* Account settings — Expo video tiles: 2 / 4 / 6 per row (mobile / tablet / desktop) */
.nd-account-video-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .nd-account-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .nd-account-video-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.nd-account-video-tile {
  min-width: 0;
}

/* Account settings — image tiles with top-right remove */
.nd-account-preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.nd-account-preview-wrap--favicon,
.nd-account-preview-wrap--navlogo,
.nd-account-preview-wrap--square-ad {
  line-height: 0;
}

.nd-account-preview-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.nd-account-preview-img--avatar {
  width: 7.5rem;
  height: 7.5rem;
}

.nd-account-preview-img--cover {
  max-height: 10rem;
  width: auto;
  max-width: min(100%, 28rem);
  object-fit: contain;
  object-position: left center;
}

.nd-account-preview-img--banner {
  max-height: 8rem;
  width: auto;
  max-width: min(100%, 36rem);
  object-fit: contain;
}

.nd-account-preview-img--card {
  max-height: 9rem;
  width: auto;
  max-width: min(100%, 20rem);
}

.nd-account-preview-img--expo-slide {
  min-height: 5rem;
  max-height: 6rem;
}

.nd-account-preview-img--favicon,
.nd-account-preview-img--navlogo {
  object-fit: contain;
}

.nd-account-preview-x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nd-account-preview-wrap--favicon .nd-account-preview-x {
  width: 1.45rem;
  height: 1.45rem;
  top: 0.2rem;
  right: 0.2rem;
}

.nd-account-preview-x:hover {
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
}

.nd-account-preview-x:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.nd-account-local-file-preview__img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Full-screen entrance ads (site admin uploads in account settings) */
body.nd-entrance-ad-open {
  overflow: hidden;
}

.nd-entrance-ad {
  position: fixed;
  inset: 0;
  /* Below Bootstrap modal (1055) so image crop / dialogs stay usable on the same page */
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0))
    max(1rem, env(safe-area-inset-right, 0))
    max(1rem, env(safe-area-inset-bottom, 0))
    max(1rem, env(safe-area-inset-left, 0));
  background: rgba(5, 5, 5, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nd-entrance-ad.is-visible {
  opacity: 1;
}

.nd-entrance-ad__panel {
  width: min(92vw, 22rem);
  max-height: min(88dvh, 36rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.nd-entrance-ad__figure {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--nd-chrome-radius, 6px);
  overflow: hidden;
  background: var(--nd-surface, #fff);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--nd-border, #e4e6eb);
}

.nd-entrance-ad__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nd-entrance-ad__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nd-entrance-ad__close {
  min-width: 3rem;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
