.neytom-cookie-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateY(calc(100% + 24px));
  z-index: 99990;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #c9c9ce;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1024px) {
  .neytom-cookie-banner {
    bottom: calc(var(--app-bottom-chrome, 56px) + 12px);
  }
}

@media (max-width: 640px) {
  .neytom-cookie-banner {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    bottom: calc(var(--app-bottom-chrome, 56px) + 12px);
    padding: 12px 14px;
  }
  .neytom-cookie-banner__title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .neytom-cookie-banner__text {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .neytom-cookie-banner__actions {
    flex-direction: row;
  }
  .neytom-cookie-btn {
    flex: 1 1 auto;
    width: auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body.hp--live .neytom-cookie-banner {
    padding: 10px 12px;
  }
}

.neytom-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.neytom-cookie-banner__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
}

.neytom-cookie-banner__text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #515154;
}

.neytom-cookie-banner__text a {
  color: #0071e3;
  text-decoration: none;
}

.neytom-cookie-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #424245;
  cursor: pointer;
  user-select: none;
}

.neytom-cookie-opt input {
  margin-top: 2px;
  accent-color: #0071e3;
  flex-shrink: 0;
}

.neytom-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.neytom-cookie-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.neytom-cookie-btn--primary {
  background: #0071e3;
  color: #fff;
}

.neytom-cookie-btn--ghost {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
}

body.hg-page .neytom-cookie-banner,
body.hg-join-page .neytom-cookie-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
}
body.hg-page .neytom-cookie-banner__text,
body.hg-join-page .neytom-cookie-banner__text {
  display: none;
}
body.hg-page .neytom-cookie-banner__title,
body.hg-join-page .neytom-cookie-banner__title {
  margin: 0;
  flex: 1;
  font-size: 12px;
}
body.hg-page .neytom-cookie-banner__actions,
body.hg-join-page .neytom-cookie-banner__actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
body.hg-page .neytom-cookie-btn,
body.hg-join-page .neytom-cookie-btn {
  flex: initial;
  padding: 7px 11px;
}

body.auth-modal-open .neytom-cookie-banner {
  display: none !important;
}

/* Connection trust strip — only after optional consent */
.neytom-edge-strip {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(calc(100% + 20px));
  z-index: 99980;
  width: min(720px, calc(100vw - 20px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.neytom-edge-strip.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.neytom-edge-strip__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.neytom-edge-strip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.2);
  flex-shrink: 0;
}

.neytom-edge-strip__body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #1d1d1f;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.neytom-edge-strip__body strong { font-weight: 700; }
.neytom-edge-strip__body .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.neytom-edge-strip__body em { font-style: normal; color: #6e6e73; font-weight: 600; }
.neytom-edge-strip__sep { margin: 0 6px; color: #d2d2d7; }
.neytom-edge-strip__muted { color: #6e6e73; }

.neytom-edge-strip__close {
  appearance: none;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

body.neytom-cookie-open .hp-sticky-cta {
  display: flex !important;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 99980;
}
body.neytom-cookie-open .neytom-edge-strip {
  display: none !important;
}
@media (max-width: 480px) {
  body.neytom-cookie-open .hp-sticky-cta {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* Marketing landings: compact cookie bar so pricing stays readable */
body.hp.ml-page .neytom-cookie-banner {
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
}
body.hp.ml-page .neytom-cookie-banner__title {
  font-size: 13px;
  margin-bottom: 4px;
}
body.hp.ml-page .neytom-cookie-banner__text {
  margin-bottom: 8px;
  font-size: 11px;
}
body.hp.ml-page .neytom-cookie-opt {
  margin-bottom: 10px;
  font-size: 11px;
}

@media (max-width: 480px) {
  .neytom-edge-strip__sep { margin: 0 4px; }
}

/* humans.neytom.com — slim bar; below splash/coach during onboarding */
body.hg-page.hg-onboarding .neytom-cookie-banner {
  z-index: 35;
}
body.hg-page .splash {
  z-index: 45;
}
body.hg-page .coach {
  z-index: 50;
}
body.hg-page .neytom-cookie-banner__title {
  font-size: 12px;
  margin: 0;
}
body.hg-page .neytom-cookie-opt {
  display: none;
}
body.hg-page .neytom-cookie-btn {
  min-height: 0;
  padding: 7px 11px;
  font-size: 12px;
}
@media (max-width: 640px) {
  body.hg-page .neytom-cookie-banner__actions {
    flex-direction: row;
    gap: 6px;
  }
  body.hg-page .neytom-cookie-btn {
    flex: 0 0 auto;
    width: auto;
  }
}
body.hg-join-page .wrap {
  padding-bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
}

/* Panel app: keep cookie/edge above mobile bottom nav (do not block taps) */
@media (max-width: 900px) {
  body.neytom-app-body .neytom-cookie-banner,
  body.neytom-app-body .neytom-edge-strip,
  html[data-display-fit="mobile"] .neytom-cookie-banner,
  html[data-display-fit="mobile"] .neytom-edge-strip,
  html[data-display-fit="tablet"] .neytom-cookie-banner,
  html[data-display-fit="tablet"] .neytom-edge-strip {
    bottom: calc(var(--app-bottom-chrome, 56px) + 12px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: translateY(calc(100% + 24px));
  }
  body.neytom-app-body .neytom-cookie-banner.is-visible,
  body.neytom-app-body .neytom-edge-strip.is-visible,
  html[data-display-fit="mobile"] .neytom-cookie-banner.is-visible,
  html[data-display-fit="mobile"] .neytom-edge-strip.is-visible,
  html[data-display-fit="tablet"] .neytom-cookie-banner.is-visible,
  html[data-display-fit="tablet"] .neytom-edge-strip.is-visible {
    transform: translateY(0);
  }
  body.neytom-app-body.neytom-cookie-open .neytom-edge-strip,
  html[data-display-fit="mobile"].neytom-cookie-open .neytom-edge-strip,
  html[data-display-fit="tablet"].neytom-cookie-open .neytom-edge-strip {
    bottom: calc(var(--app-bottom-chrome, 56px) + 12px + min(42vh, 220px));
  }
}


/* Keep cookie/edge clear of mobile bottom nav (real dashboard + tablet) */
@media (max-width: 900px) {
  body.neytom-app-body .neytom-cookie-banner,
  body.neytom-app-body .neytom-edge-strip {
    /* ney-tom-cookie-above-mbn */
    bottom: calc(var(--app-bottom-chrome, 56px) + 12px) !important;
    z-index: 9990 !important; /* below .mobile-bottom-nav (9999+) */
  }
  body.neytom-app-body.neytom-cookie-open .neytom-edge-strip {
    bottom: calc(var(--app-bottom-chrome, 56px) + 12px + min(42vh, 220px)) !important;
  }
}
