body.nh-update-dialog-open {
  overflow: hidden;
}

.nh-update-dialog {
  position: fixed;
  z-index: 30000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 20, 18, 0.64);
}

.nh-update-dialog[hidden] {
  display: none;
}

.nh-update-surface {
  width: min(100%, 476px);
  border: 1px solid var(--nh-line, #dce5e2);
  border-radius: 8px;
  background: var(--nh-surface, #ffffff);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.34);
  color: var(--nh-ink, #152321);
}

.nh-update-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 14px;
}

.nh-update-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--nh-primary, #007f78);
  border-radius: 7px;
  background: var(--nh-primary-soft, #e4f3f0);
  color: var(--nh-primary-dark, #00655f);
  font-size: 17px;
}

.nh-update-title-group {
  min-width: 0;
  flex: 1 1 auto;
}

.nh-update-eyebrow {
  display: block;
  color: var(--nh-primary, #007f78);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.nh-update-title-group h2 {
  margin: 3px 0 0;
  color: var(--nh-ink, #152321);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.25;
}

.nh-update-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--nh-muted, #62706d);
  cursor: pointer;
}

.nh-update-close:hover,
.nh-update-close:focus {
  background: var(--nh-surface-subtle, #f7faf9);
  color: var(--nh-ink, #152321);
  outline: 0;
}

.nh-update-copy {
  margin: 0;
  padding: 0 20px;
  color: var(--nh-muted, #62706d);
  font-size: 14px;
  line-height: 1.6;
}

.nh-update-version-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 20px 0;
  padding: 0 12px;
  border: 1px solid var(--nh-line, #dce5e2);
  border-radius: 6px;
  background: var(--nh-surface-subtle, #f7faf9);
  color: var(--nh-muted, #62706d);
  font-size: 12px;
}

.nh-update-version-row strong {
  color: var(--nh-primary-dark, #00655f);
  font-size: 13px;
  font-weight: 700;
}

.nh-update-details {
  display: grid;
  gap: 8px;
  margin: 16px 20px 0;
  padding: 0;
  list-style: none;
  color: var(--nh-muted, #62706d);
  font-size: 12px;
  line-height: 1.5;
}

.nh-update-details li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.nh-update-details i {
  width: 14px;
  margin-top: 2px;
  color: var(--nh-primary, #007f78);
  text-align: center;
}

.nh-update-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 20px 0;
  padding: 11px 12px;
  border: 1px solid var(--nh-primary, #007f78);
  border-radius: 6px;
  background: var(--nh-primary-soft, #e4f3f0);
  color: var(--nh-primary-dark, #00655f);
  font-size: 13px;
  font-weight: 650;
}

.nh-update-progress[hidden] {
  display: none;
}

.nh-update-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--nh-line, #dce5e2);
}

.nh-update-later,
.nh-update-confirm {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
}

.nh-update-later {
  border: 1px solid transparent;
  background: transparent;
  color: var(--nh-muted, #62706d);
}

.nh-update-later:hover,
.nh-update-later:focus {
  border-color: var(--nh-line, #dce5e2);
  background: var(--nh-surface-subtle, #f7faf9);
  color: var(--nh-ink, #152321);
  outline: 0;
}

.nh-update-confirm {
  border: 1px solid var(--nh-primary, #007f78);
  background: var(--nh-primary, #007f78);
  color: #ffffff;
}

.nh-update-confirm:hover,
.nh-update-confirm:focus {
  border-color: var(--nh-primary-dark, #00655f);
  background: var(--nh-primary-dark, #00655f);
  color: #ffffff;
  outline: 0;
}

.nh-update-dialog button:disabled {
  cursor: wait;
  opacity: 0.58;
}

html[data-nh-color-mode="dark"] .nh-update-dialog {
  background: rgba(0, 0, 0, 0.72);
}

@media (max-width: 600px) {
  .nh-update-dialog {
    align-items: end;
    padding: 0;
  }

  .nh-update-surface {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .nh-update-heading {
    padding: 18px 18px 14px;
  }

  .nh-update-copy {
    padding: 0 18px;
    font-size: 13px;
  }

  .nh-update-version-row,
  .nh-update-details,
  .nh-update-progress {
    margin-right: 18px;
    margin-left: 18px;
  }

  .nh-update-actions {
    justify-content: stretch;
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .nh-update-later,
  .nh-update-confirm {
    flex: 1 1 0;
    padding: 0 10px;
  }
}
