:root {
  --ncs-ice-fire-gradient: linear-gradient(112deg, #176fe2 0%, #18bff5 34%, #67def5 45%, #f7af39 64%, #fb7821 80%, #f04432 100%);
  --ncs-cta-gradient: linear-gradient(112deg, #155dca 0%, #0da7fa 31%, #42d8f5 43%, #f4a62f 61%, #fb6a20 78%, #e93a34 100%);
  --ncs-scroll-track: rgba(19, 65, 94, .07);
}

/* Shared No Cold Start primary CTA, extracted from the approved landing page. */
.ncs-gradient-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 750;
  background: var(--ncs-cta-gradient);
  background-size: 160% 100%;
  background-position: 0 50%;
  box-shadow: 0 12px 32px rgba(13, 132, 215, .18), 0 6px 18px rgba(247, 112, 33, .14);
  transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease, border-color .2s ease;
  cursor: pointer;
}
.ncs-gradient-cta:hover {
  transform: translateY(-2px);
  color: #fff;
  background-position: 100% 50%;
  box-shadow: 0 16px 38px rgba(13, 132, 215, .22), 0 8px 22px rgba(247, 112, 33, .18);
}
.ncs-gradient-cta:disabled, .ncs-gradient-cta[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* Product/app CTAs match the approved Founder Entry button geometry. */
html.app-product-shell .ncs-gradient-cta:not(.product-nav-add) {
  box-sizing: border-box;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
html.app-product-shell .ncs-gradient-cta:not(.product-nav-add):focus-visible {
  outline: 3px solid rgba(31, 153, 209, .42);
  outline-offset: 3px;
}
html.app-product-shell .ncs-gradient-cta:not(.product-nav-add):hover {
  background: var(--ncs-cta-gradient);
  background-size: 160% 100%;
}
html.app-product-shell .ncs-gradient-cta:not(.product-nav-add):active {
  background: var(--ncs-cta-gradient);
  background-size: 160% 100%;
  background-position: 100% 50%;
  transform: translateY(0);
}

/* Landing-page scroll progress, reused in the authenticated app shell. */
.scroll-thread {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  right: 14px;
  top: 92px;
  bottom: 24px;
  width: 3px;
  background: var(--ncs-scroll-track);
  border-radius: 99px;
}
.scroll-thread span {
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: var(--ncs-ice-fire-gradient);
  border-radius: inherit;
}

/* Native scrolling stays intact; every first-party app page shares the brand thumb. */
html.app-product-shell {
  scrollbar-width: thin;
  scrollbar-color: #22a7d5 var(--ncs-scroll-track);
}
html.app-product-shell::-webkit-scrollbar { width: 8px; height: 8px; }
html.app-product-shell::-webkit-scrollbar-track { background: var(--ncs-scroll-track); border-radius: 99px; }
html.app-product-shell::-webkit-scrollbar-thumb {
  min-height: 30px;
  border: 2px solid transparent;
  border-radius: 99px;
  background: var(--ncs-ice-fire-gradient);
  background-clip: padding-box;
}
html.app-product-shell::-webkit-scrollbar-corner { background: transparent; }
html.app-product-shell :is(.table-scroll, .analytics-table-section, .wallet-table-wrap, .audience-choice-list, .choice-list, .ncs-filter-panel, .ncs-select-popup) {
  scrollbar-width: thin;
  scrollbar-color: #22a7d5 transparent;
}
html.app-product-shell :is(.table-scroll, .analytics-table-section, .wallet-table-wrap, .audience-choice-list, .choice-list, .ncs-filter-panel, .ncs-select-popup)::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html.app-product-shell :is(.table-scroll, .analytics-table-section, .wallet-table-wrap, .audience-choice-list, .choice-list, .ncs-filter-panel, .ncs-select-popup)::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: var(--ncs-ice-fire-gradient);
  background-clip: padding-box;
}

/* A select is replaced only after enhancement succeeds; the source remains in the form. */
.ncs-select-host { position: relative; display: block; min-width: 0; }
.ncs-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ncs-select-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #d9e3e8;
  border-radius: 9px;
  background: #fff;
  color: #10283d;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ncs-select-trigger:hover:not(:disabled), .ncs-select-trigger[aria-expanded="true"] {
  border-color: #adcbd9;
  background: #fbfdfe;
}
.ncs-select-trigger:focus-visible { outline: 3px solid #12618d; outline-offset: 3px; }
.ncs-select-trigger[aria-invalid="true"] { border-color: #b23b38; box-shadow: 0 0 0 2px rgba(178, 59, 56, .12); }
.ncs-select-trigger:disabled { background: #f1f3f1; color: #5f7180; cursor: not-allowed; }
.ncs-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncs-select-caret { width: 16px; height: 16px; flex: 0 0 16px; color: #718695; transition: transform .15s ease; }
.ncs-select-trigger[aria-expanded="true"] .ncs-select-caret { transform: rotate(180deg); }
.ncs-select-caret path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ncs-select-popup {
  position: fixed;
  z-index: 10000;
  display: grid;
  gap: 2px;
  max-height: min(280px, calc(100dvh - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #dce6eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 40, 61, .16);
}
.ncs-select-popup[hidden] { display: none; }
.ncs-select-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #365064;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.ncs-select-option:hover, .ncs-select-option[data-active="true"] { background: #f1f8fb; color: #10283d; }
.ncs-select-option[aria-selected="true"] { color: #0d5b82; font-weight: 700; }
.ncs-select-option[aria-selected="true"]::after { content: "✓"; flex: 0 0 auto; color: #0d739d; font-size: 14px; font-weight: 800; }
.ncs-select-option[aria-disabled="true"] { color: #9aa8b1; cursor: not-allowed; }
.ncs-select-option[aria-disabled="true"]:hover { background: transparent; }

.social-provider-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.social-provider-icon-github { color: #24292f; }
.social-provider-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; }
.social-provider-button .social-provider-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.social-provider-button .social-provider-icon { width: 20px; height: 20px; }

@media (max-width: 760px) { .scroll-thread { display: none; } }
@media (max-width: 540px) {
  html.app-product-shell .ncs-gradient-cta:not(.product-nav-add) { min-height: 50px; padding-inline: 18px; }
}
@media (max-width: 760px) {
  html.app-product-shell .ncs-gradient-cta:not(.product-nav-add) { scroll-margin-block-end: calc(82px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ncs-gradient-cta, .ncs-select-trigger, .ncs-select-caret { transition: none; }
  .ncs-gradient-cta:hover { transform: none; }
}
@media (forced-colors: active) {
  html.app-product-shell { scrollbar-color: auto; }
  html.app-product-shell::-webkit-scrollbar-track { background: Canvas; }
  html.app-product-shell::-webkit-scrollbar-thumb { border-color: Canvas; background: Highlight; }
  html.app-product-shell :is(.table-scroll, .analytics-table-section, .wallet-table-wrap, .audience-choice-list, .choice-list, .ncs-filter-panel, .ncs-select-popup) { scrollbar-color: auto; }
  html.app-product-shell :is(.table-scroll, .analytics-table-section, .wallet-table-wrap, .audience-choice-list, .choice-list, .ncs-filter-panel, .ncs-select-popup)::-webkit-scrollbar-track { background: Canvas; }
  html.app-product-shell :is(.table-scroll, .analytics-table-section, .wallet-table-wrap, .audience-choice-list, .choice-list, .ncs-filter-panel, .ncs-select-popup)::-webkit-scrollbar-thumb { border-color: Canvas; background: Highlight; }
  .scroll-thread { background: CanvasText; }
  .scroll-thread span { background: Highlight; }
  .ncs-select-trigger, .ncs-select-popup { border-color: ButtonText; background: Canvas; color: CanvasText; }
  .ncs-select-option { color: CanvasText; }
  .ncs-select-option:hover, .ncs-select-option[data-active="true"], .ncs-select-option[aria-selected="true"] {
    outline: 1px solid Highlight;
    background: Canvas;
    color: CanvasText;
  }
  .ncs-select-option[aria-selected="true"]::after { color: Highlight; }
}
