body.roc-release-notes-open {
  overflow: hidden;
}

.roc-release-notes-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.roc-release-notes-dialog {
  width: min(540px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid #b8dfe5;
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  color: #172033;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.roc-release-notes-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roc-release-notes-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.roc-release-notes-version {
  border: 1px solid #99d7df;
  border-radius: 999px;
  padding: 4px 9px;
  background: #ecfeff;
  color: #155e75;
  font-size: 12px;
  font-weight: 800;
}

.roc-release-notes-dialog h2 {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.roc-release-notes-summary {
  margin: 0;
  color: #526170;
  font-size: 14px;
  line-height: 1.7;
}

.roc-release-notes-dialog ul {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 16px 18px 16px 36px;
  border: 1px solid #d9e8eb;
  border-radius: 6px;
  background: #f8fcfc;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.roc-release-notes-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #334155;
  font-size: 14px;
  cursor: pointer;
}

.roc-release-notes-choice input {
  width: 18px;
  height: 18px;
  accent-color: #0891b2;
}

.roc-release-notes-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.roc-release-notes-actions button {
  min-width: 104px;
  min-height: 42px;
  border: 1px solid #0e7490;
  border-radius: 6px;
  padding: 9px 18px;
  background: #0e7490;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.roc-release-notes-actions button:hover {
  background: #155e75;
}

.roc-release-notes-actions button:focus-visible,
.roc-release-notes-choice input:focus-visible {
  outline: 3px solid rgba(8, 145, 178, 0.3);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .roc-release-notes-overlay {
    align-items: end;
    padding: 0;
  }

  .roc-release-notes-dialog {
    width: 100%;
    max-height: 88vh;
    border-width: 1px 0 0;
    border-radius: 8px 8px 0 0;
    padding: 22px 18px max(20px, env(safe-area-inset-bottom));
  }

  .roc-release-notes-dialog h2 {
    font-size: 21px;
  }

  .roc-release-notes-actions button {
    width: 100%;
  }
}
