
.gd-reference .gd-actions #gd-backup {
  background: #eaf1ff;
  color: #174c93;
  border-color: #c0d5f4;
}
.gb-dialog {
  border: 1px solid #d4e2f3;
  border-radius: 18px;
  padding: 25px;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  color: #193a5e;
  background: #fff;
  box-shadow: 0 24px 90px #0c284045;
  margin: auto;
}
.gb-dialog::backdrop {
  background: #0c203b99;
}
.gb-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.gb-dialog-head small {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #6080a6;
}
.gb-dialog h2 {
  font-size: 20px;
  margin: 8px 0 15px;
  line-height: 1.4;
}
.gb-dialog p {
  font-size: 13px;
  color: #617b97;
  line-height: 1.7;
  margin: 8px 0 18px;
}
.gb-dialog button,
.gb-dialog a {
  font: inherit;
  font-size: 12px;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 42px;
  border: 1px solid #ccdcee;
  background: #f7faff;
  color: #234b7c;
  cursor: pointer;
}
.gb-dialog-head > button {
  padding: 3px 13px;
  font-size: 23px;
  flex: none;
}
.gb-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.gb-modules span {
  border: 1px solid #dee8f5;
  background: #f8faff;
  border-radius: 12px;
  padding: 15px 13px;
  font-size: 12px;
  line-height: 1.7;
  color: #7086a0;
}
.gb-modules b {
  display: block;
  color: #173e6c;
  margin-bottom: 7px;
  font-size: 13px;
}
.gb-dialog .gb-note {
  font-size: 11px;
  color: #7a8da4;
}
.gb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.gb-actions #gb-generate {
  background: #174c88;
  border-color: #174c88;
  color: white;
}
.gb-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#gb-progress {
  border: 1px solid #dce8f5;
  background: #f6faff;
  border-radius: 9px;
  padding: 13px;
  font-size: 12px;
  color: #315f8e;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#gb-download {
  display: inline-block;
  background: #e8f7ef;
  border-color: #a1d8b8;
  color: #127544;
  text-decoration: none;
  margin-top: 16px;
}
#gb-share {
  margin-top: 10px;
}
#gb-download[hidden],
#gb-share[hidden] {
  display: none;
}
@media (max-width: 550px) {
  .gb-dialog {
    padding: 18px;
  }
  .gb-dialog h2 {
    font-size: 18px;
  }
  .gb-modules {
    grid-template-columns: 1fr;
  }
  .gb-actions {
    flex-direction: column-reverse;
  }
  .gb-actions button {
    width: 100%;
  }
  .gb-dialog p {
    font-size: 12px;
  }
  .gd-reference-top .gd-actions {
    justify-content: flex-end;
  }
  .gd-reference-top {
    gap: 8px;
  }
}
