.serp-public {
  padding-bottom: 90px;
}
.serp-public > #serp-import {
  max-width: 620px;
  margin-bottom: 32px;
}
.serp-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
}
.serp-fields,
.serp-pane,
.serp-code {
  min-width: 0;
  padding: 28px;
  border-radius: 22px;
  background: #f5f5f7;
}
.serp-pane {
  background: #f0f6ff;
}
.serp-code {
  grid-column: 1/-1;
  background: white;
  border: 1px solid #e4e4e9;
}
.serp-workbench label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.serp-workbench label:first-child {
  margin-top: 0;
}
.serp-workbench input,
.serp-workbench textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #c8cdd6;
  border-radius: 10px;
  background: white;
  color: #1d1d1f;
  font: 14px/1.6 system-ui;
}
.serp-workbench textarea {
  resize: vertical;
}
.serp-workbench button {
  font: 13px/1.4 system-ui;
  cursor: pointer;
  min-height: 44px;
}
.serp-workbench button:disabled {
  opacity: 0.45;
  cursor: default;
}
.serp-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.serp-options {
  display: flex;
  border: 1px solid #d3ddec;
  border-radius: 24px;
  padding: 3px;
  background: white;
}
.serp-options button {
  border: 0;
  border-radius: 20px;
  padding: 10px 13px;
  background: none;
  color: #64646b;
}
.serp-options button[aria-pressed="true"] {
  background: #1d1d1f;
  color: white;
}
.serp-result {
  box-sizing: border-box;
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px;
  font:
    14px/1.55 Arial,
    sans-serif;
}
.serp-result[data-device="mobile"] {
  width: 360px;
}
.serp-site {
  display: flex;
  align-items: center;
  gap: 12px;
}
.serp-site-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f3f7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  color: #637086;
}
.serp-site > div {
  min-width: 0;
}
.serp-site strong,
.serp-site small {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  font-weight: 400;
}
.serp-site strong {
  font-size: 13px;
  color: #1d1d1f;
}
.serp-site small {
  font-size: 11px;
  color: #64646b;
}
.serp-result h3 {
  font:
    20px/1.4 Arial,
    sans-serif;
  color: #1a0dab;
  letter-spacing: normal;
  margin: 18px 0 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.serp-result p {
  font:
    14px/1.65 Arial,
    sans-serif;
  margin: 0;
  color: #4d5156;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.serp-result[data-device="mobile"] h3 {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.serp-result[data-device="mobile"] p {
  -webkit-line-clamp: 3;
}
.serp-workbench .fine {
  font: 12px/1.7 system-ui;
  color: #64646b;
}
.serp-workbench .output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.serp-workbench .button {
  padding: 12px 18px;
  border: 1px solid #c8cdd6;
  border-radius: 24px;
  background: white;
  color: #0069d9;
}
.serp-code textarea {
  font:
    12px/1.8 ui-monospace,
    monospace;
}
.serp-workbench button:focus-visible,
.serp-workbench input:focus-visible,
.serp-workbench textarea:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .serp-workbench {
    grid-template-columns: 1fr;
  }
  .serp-code {
    grid-column: auto;
  }
}
@media (max-width: 480px) {
  .serp-fields,
  .serp-pane,
  .serp-code {
    padding: 20px;
  }
  .serp-result {
    padding: 18px;
  }
  .serp-workbench input,
  .serp-workbench textarea {
    font-size: 16px;
  }
  .serp-controls {
    gap: 10px;
  }
  .serp-options button {
    padding: 10px 11px;
  }
  .serp-site strong,
  .serp-site small {
    max-width: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .serp-workbench * {
    transition: none !important;
  }
}
