.integration-code {
  width: 100%;
  min-height: 145px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  background: #071d36;
  color: #f4f7fb;
  font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  resize: vertical;
}

.result-values {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.quick-entry-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 17px 19px;
  border: 1px solid #cfe0f4;
  border-radius: 15px;
  background: linear-gradient(135deg, #f6faff, #eef8f3);
}

.quick-entry-callout-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
}

.quick-entry-callout strong,
.quick-entry-callout p {
  display: block;
  margin: 0;
}

.quick-entry-callout p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.quick-entry-callout-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.quick-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 16px;
  align-items: start;
}

.quick-entry-form .panel-body {
  display: grid;
  gap: 20px;
}

.quick-source > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.quick-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-source-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.quick-source-option:hover,
.quick-source-option.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #f1f7ff;
}

.quick-source-option svg {
  width: 16px;
  height: 16px;
}

.quick-form-fields {
  margin: 0;
}

.quick-entry-details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quick-entry-details summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.quick-entry-details summary::-webkit-details-marker {
  display: none;
}

.quick-entry-details summary svg {
  width: 15px;
  height: 15px;
}

.quick-entry-details[open] .form-grid {
  margin-top: 14px;
}

.quick-entry-submit {
  width: 100%;
  min-height: 46px;
}

.quick-entry-hint {
  margin-top: -12px;
  color: var(--muted);
  text-align: center;
}

.quick-entry-success {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #bde5cb;
  border-radius: 12px;
  color: #08783e;
  background: #f0fbf4;
}

.quick-entry-success > svg {
  flex: 0 0 auto;
}

.quick-entry-success div {
  display: grid;
  gap: 2px;
}

.quick-entry-success span {
  font-size: 12px;
}

.quick-entry-success .mini-link {
  margin-left: auto;
}

.quick-recent-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.quick-recent-item:last-child {
  border-bottom: 0;
}

.quick-recent-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.quick-recent-item strong,
.quick-recent-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-recent-item small {
  color: var(--muted);
}

.quick-recent-item b {
  margin-left: auto;
  color: var(--muted);
}

.widget-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid #cfe0f4;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6faff, #edf6ff);
}

.widget-intro h2 {
  margin: 10px 0 5px;
  color: #102a4d;
}

.widget-intro p,
.widget-template p,
.widget-site-row small {
  margin: 0;
  color: var(--muted);
}

.widget-intro-count {
  min-width: 82px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 800;
  text-align: center;
}

.widget-intro-count small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.widget-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.widget-template {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.widget-template h3 {
  margin: 0 0 7px;
}

.widget-template .btn {
  width: 100%;
  margin-top: auto;
}

.widget-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: var(--widget-color);
  background: color-mix(in srgb, var(--widget-color) 12%, white);
}

.widget-icon.small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  margin: 28px 0 13px;
}

.section-title h2,
.section-title p {
  margin: 0;
}

.section-title p {
  margin-top: 4px;
  color: var(--muted);
}

.widget-install {
  margin-top: 22px;
}

.widget-site-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.widget-site-row:last-child {
  border-bottom: 0;
}

.widget-site-row small {
  display: block;
  margin-top: 3px;
}

@media (max-width: 800px) {
  .result-values {
    grid-template-columns: 1fr;
  }

  .widget-intro {
    align-items: flex-start;
  }

  .widget-site-row {
    grid-template-columns: 1fr;
  }

  .quick-entry-callout {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .quick-entry-callout-actions {
    width: 100%;
    margin-left: 0;
  }

  .quick-entry-callout-actions .btn {
    flex: 1;
  }

  .quick-entry-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .quick-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-entry-callout-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
