.nh-ad-slot {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--nh-line, #dce5e2);
  border-radius: 6px;
  background: var(--nh-surface, #ffffff);
  box-shadow: var(--nh-shadow, 0 10px 28px rgba(21, 35, 33, 0.08));
  color: var(--nh-muted, #62706d);
  font-size: 12px;
  line-height: 1;
}

.nh-ad-slot[hidden] {
  display: none;
}

.nh-ad-label {
  flex: 0 0 auto;
  padding-right: 8px;
  border-right: 1px solid var(--nh-line, #dce5e2);
  color: var(--nh-muted, #62706d);
  font-size: 10px;
  font-weight: 700;
}

.nh-ad-link {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--nh-primary-dark, #00655f);
  font-weight: 650;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-ad-link:hover,
.nh-ad-link:focus {
  color: var(--nh-primary, #007f78);
  outline: 0;
  text-decoration: underline;
}

.nh-ad-dial {
  width: min(100%, 382px);
  min-height: 32px;
  margin: 12px auto 2px;
  padding: 0 11px;
}

.nh-ad-fixed {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 18px;
  width: min(360px, calc(100vw - 40px));
  min-height: 32px;
  padding: 0 11px;
  opacity: 0.96;
}

html[data-nh-color-mode="dark"] .nh-ad-slot {
  background: var(--nh-surface, #20302d);
}

@media (max-width: 959px) {
  .nh-ad-fixed {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .nh-ad-slot {
    font-size: 11px;
  }

  .nh-ad-dial {
    width: min(100%, 346px);
    margin-top: 10px;
  }
}
