.overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(var(--dialog-safe-margin, 16px) + var(--app-safe-top, 0px))
    calc(var(--dialog-safe-margin, 16px) + var(--app-safe-right, 0px))
    calc(var(--dialog-safe-margin, 16px) + var(--app-safe-bottom, 0px))
    calc(var(--dialog-safe-margin, 16px) + var(--app-safe-left, 0px));
  background: rgba(0, 0, 0, 0.52);
}

.dialog {
  width: 100%;
  max-width: var(--pwa-install-dialog-max-width, 360px);
  padding:
    var(--responsive-card-padding-lg, 24px)
    var(--responsive-card-padding, 18px)
    var(--responsive-card-padding, 18px);
  text-align: center;
  background: var(--color-page-background, #ffffff);
  border: 1px solid rgba(246, 87, 160, 0.16);
  border-radius: var(--responsive-card-radius, 36px);
  box-shadow: 0 18px 46px rgba(38, 18, 31, 0.18);
}

.title {
  margin: 0 0 10px;
  color: var(--color-text-foreground, #171717);
  font-size: var(--responsive-page-title, var(--font-size-22, 22px));
  font-weight: 700;
  line-height: 1.2;
}

.content {
  margin: 0 var(--spacing-md, 12px) var(--page-section-gap, 18px);
  color: #393939;
  font-size: var(--responsive-body, var(--font-size-lg, 16px));
  line-height: 1.5;
}

.creditList {
  display: grid;
  gap: var(--spacing-sm, 8px);
  margin: 0 0 var(--page-section-gap, 18px);
  padding: var(--spacing-md, 12px);
  background: #fff4f9;
  border-radius: var(--responsive-card-radius-sm, 22px);
}

.creditItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md, 12px);
  color: #4a3b43;
  font-size: var(--responsive-caption, var(--font-size-md, 14px));
  line-height: 1.3;
}

.creditItem dt {
  margin: 0;
  font-weight: 500;
}

.creditItem dd {
  margin: 0;
  color: #f657a0;
  font-size: var(--responsive-body, var(--font-size-lg, 16px));
  font-weight: 800;
}

.actions {
  display: flex;
  gap: var(--spacing-md, 12px);
  width: 100%;
}

.button {
  flex: 1 1 auto;
  min-height: var(--pwa-button-height, 44px);
  border: 0;
  border-radius: var(--radius-bottom-sheet, 28px);
  font-size: var(--responsive-body, var(--font-size-lg, 16px));
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary {
  color: var(--color-page-background, #ffffff);
  background: var(--color-text-secondary, #9e9e9e);
}

.primary {
  color: var(--color-page-background, #ffffff);
  background: linear-gradient(90deg, #ff67e0 0%, #ff52a2 100%);
  box-shadow: 0 6px 14px rgba(246, 87, 160, 0.28);
}

.button:focus-visible {
  outline: 2px solid #f657a0;
  outline-offset: 3px;
}
