html body #root#root#root #main-content .cert-r17-page {
  container: certificate-designer / inline-size;
  color: var(--ios-ink, #1d1d1f);
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-heading {
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 0;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-heading > div:first-child {
  flex: 1 1 360px;
  min-width: 0;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-heading > .cert-r17-actions {
  flex: 0 0 auto;
  margin: 0;
}
html body #root#root#root #main-content .cert-r17-page :is(.cert-r17-library, .cert-r17-preview-column, .cert-r17-settings-section) {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--ios-panel, #fff);
  border: 1px solid var(--ios-line, rgba(0, 0, 0, .06));
  border-radius: var(--ios-radius-lg, 20px);
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-library {
  display: block;
}
html body #root#root#root #main-content .cert-r17-page :is(.cert-r17-library > header, .cert-r17-preview-caption, .cert-r17-settings-section > header) {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ios-line, rgba(0, 0, 0, .06));
}
html body #root#root#root #main-content .cert-r17-page :is(.cert-r17-library, .cert-r17-preview-column, .cert-r17-settings-section) > header h2 {
  min-width: 0;
  margin: 0;
  font-size: 20px;
  color: var(--ui-emphasis-blue, #002fa7);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-save-state {
  max-width: 100%;
  padding: 5px 10px;
  background: var(--ios-canvas, #f5f5f7);
  border: 1px solid var(--ios-line, rgba(0, 0, 0, .06));
  border-radius: 20px;
  color: var(--ios-secondary, #6e6e73);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-library-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 20px;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-library-controls > .cert-r17-label {
  min-width: 0;
  margin: 0;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-actions {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
html body #root#root#root #main-content .cert-r17-page .btn {
  min-width: 0;
  min-height: 44px;
  height: auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 20px;
  min-width: 0;
  margin-top: 20px;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-preview-column {
  overflow: hidden;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-preview-caption > span {
  min-width: 0;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-preview {
  min-height: 0;
  margin: 20px;
  padding: 20px 16px;
  background: var(--ios-canvas, #f5f5f7);
  border-color: var(--ios-line, rgba(0, 0, 0, .06));
  border-radius: 12px;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-preview-column > :is(.cert-r17-help, .cert-r17-error) {
  margin: 0 20px 20px;
  overflow-wrap: anywhere;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-settings-section > fieldset {
  container: certificate-settings-form / inline-size;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 18px 20px 20px;
  border: 0;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-label {
  display: grid;
  gap: 8px;
  min-width: 0;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-label > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
}
html body #root#root#root #main-content .cert-r17-page :is(.cert-r17-library-controls, .cert-r17-settings) :is(input:not([type=checkbox]):not([type=file]), select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-check {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
html body #root#root#root #main-content .cert-r17-page .cert-r17-check > input[type=checkbox] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}
@container certificate-designer (max-width: 1000px) {
  html body #root#root#root #main-content .cert-r17-page .cert-r17-library-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-library-controls > .cert-r17-actions {
    grid-column: 1 / -1;
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container certificate-designer (max-width: 640px) {
  html body #root#root#root #main-content .cert-r17-page .cert-r17-heading > .cert-r17-actions {
    flex-basis: 100%;
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-heading > .cert-r17-actions > button {
    flex: 1 1 120px;
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-library-controls,
  html body #root#root#root #main-content .cert-r17-page .cert-r17-settings {
    grid-template-columns: minmax(0, 1fr);
  }
  html body #root#root#root #main-content .cert-r17-page :is(.cert-r17-library > header, .cert-r17-preview-caption, .cert-r17-settings-section > header, .cert-r17-library-controls) {
    padding: 16px;
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-settings-section > fieldset {
    padding: 16px;
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-preview {
    margin: 16px;
  }
  html body #root#root#root #main-content .cert-r17-page .cert-r17-preview-column > :is(.cert-r17-help, .cert-r17-error) {
    margin: 0 16px 16px;
  }
}
@container certificate-settings-form (max-width: 260px) {
  html body #root#root#root #main-content .cert-r17-page .cert-r17-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-height: 900px) {
  @container certificate-designer (min-width: 1001px) {
    html body #root#root#root #main-content .cert-r17-page .cert-r17-preview-column {
      position: sticky;
      top: 84px;
    }
  }
}
