.st-devplus {
  display: grid;
  gap: 12px;
}

.dp-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.dp-big {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
}

.dp-builder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  padding: 14px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  background: #fbfcfd;
}

.dp-builder .st-field {
  margin: 0;
}

.dp-builder input[type="number"] {
  width: 90px;
}

.dp-builder [hidden] {
  display: none;
}

.dp-days div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-top: 6px;
}

.dp-days label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 600;
}

.dp-days input,
.st-devplus .st-check input {
  accent-color: #52b5b2;
}

.dp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
}

.dp-narrow {
  min-width: 180px;
}

.dp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dp-out {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  background: #fff;
}

.dp-out[hidden],
.dp-notes[hidden] {
  display: none;
}

.dp-words {
  margin: 0;
  color: #1e2733;
  font-size: 18px;
  font-weight: 800;
}

.dp-h {
  margin: 6px 0 0;
  font-family: inherit;
  color: #1e2733;
  font-size: 15px;
  font-weight: 800;
}

.dp-list {
  margin: 0;
  padding-left: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
}

.dp-note {
  margin: 0;
  color: #66778a;
  font-size: 13px;
}

.dp-scroll {
  overflow-x: auto;
}

.dp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dp-table th,
.dp-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f5;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.dp-table th {
  color: #3d4d5c;
  font-weight: 700;
  white-space: nowrap;
}

.dp-cpanel td,
.dp-cpanel th {
  text-align: center;
}

.dp-cpanel code {
  font-size: 16px;
  font-weight: 800;
}

.dp-codebox {
  position: relative;
}

.dp-codebox pre {
  min-height: 60px;
  max-height: 520px;
  margin: 0;
  padding: 14px 16px;
  padding-right: 90px;
  border-radius: 12px;
  background: #1e2733;
  color: #e8f1f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
  tab-size: 4;
}

.dp-codebox > .st-chip,
.dp-codebox .dp-btns {
  position: absolute;
  top: 8px;
  right: 8px;
}

.dp-btns {
  display: flex;
  gap: 6px;
}

.dp-codebox .st-chip {
  padding: 5px 10px;
  border-color: #3d4d5c;
  background: #2c3846;
  color: #e8f1f5;
  font-size: 12px;
}

.dp-colors {
  align-items: flex-end;
}

.dp-color {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dp-color input[type="color"] {
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid #c9d5de;
  border-radius: 9px;
  background: none;
}

.dp-color input[type="text"] {
  width: 150px;
}

.dp-swap {
  margin-bottom: 4px;
}

.dp-preview {
  padding: 18px 20px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
}

.dp-preview p {
  margin: 0 0 6px;
}

.dp-pbig {
  font-size: 24px;
  font-weight: 800;
}

.dp-ratio {
  margin: 0;
  color: #3d4d5c;
  font-weight: 600;
}

.dp-ratio span {
  margin-right: 6px;
  color: #1e2733;
  font-size: 30px;
  font-weight: 800;
}

.dp-pass {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 13px;
}

.dp-pass.is-ok {
  background: #e3f7ec;
  color: #1b7a43;
}

.dp-pass.is-bad {
  background: #fde8e8;
  color: #b42318;
}

.dp-tip {
  margin: 0;
  font-size: 14px;
}

.dp-swatch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #c9d5de;
  border-radius: 99px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  cursor: pointer;
}

.dp-swatch i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.dp-notes {
  margin: 0;
  padding: 10px 14px 10px 30px;
  border-radius: 10px;
  background: #fff8e6;
  color: #7a5a00;
  font-size: 14px;
}

@media (max-width: 767px) {
  .st-devplus .st-chip,
  .dp-swatch {
    width: auto;
  }

  .dp-codebox pre {
    padding-right: 16px;
    padding-top: 44px;
  }
}

.st-devplus > *,
.dp-out,
.dp-out > *,
.dp-codebox {
  min-width: 0;
  max-width: 100%;
}

.dp-table code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .dp-table th {
    white-space: normal;
  }

  .dp-table th,
  .dp-table td {
    padding: 6px;
  }

  .dp-builder input[type="number"],
  .dp-color input[type="text"] {
    width: 100%;
  }

  .dp-narrow {
    min-width: 0;
    flex: 1 1 140px;
  }
}

.cr-sec h3 {
  margin: 18px 0 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
}

.cr-expr {
  margin: 6px 0;
}

.cr-expr code {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: #1e2733;
  color: #e8f1f5;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.cr-mean {
  font-size: 18px;
  font-weight: 700;
  color: #1e2733;
}

.cr-scroll {
  overflow-x: auto;
}

.cr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cr-table th,
.cr-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f5;
  text-align: center;
}

.cr-table tr > th:first-child {
  text-align: left;
}

.cr-cpanel code {
  font-size: 17px;
  font-weight: 800;
}

.cr-next {
  margin: 0;
  padding-left: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.8;
}

.cr-note {
  color: #66778a;
  font-size: 13px;
}

.cr-code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1e2733;
  color: #e8f1f5;
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cr-vars {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.cr-vars code {
  font-weight: 700;
}

.cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-grid a {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  background: #fff;
  color: #1e2733;
  text-decoration: none;
}

.cr-grid a:hover {
  border-color: #52b5b2;
  background: #f1faf9;
}

.cr-grid code {
  color: #2f8f8c;
  font-size: 13px;
}
