.builder {
  margin: 0;
  background: #f5f6f8;
  color: #142c42;
  font:
    15px/1.5 Arial,
    Helvetica,
    sans-serif;
}
.builder * {
  box-sizing: border-box;
}
.builder [hidden] {
  display: none !important;
}
.builder a {
  color: inherit;
  text-underline-offset: 4px;
}
:where(.builder) button,
:where(.builder) input,
:where(.builder) select,
:where(.builder) textarea {
  font: inherit;
}
.builder button,
.builder summary {
  cursor: pointer;
}
:where(.builder) :focus-visible {
  outline: 3px solid #bd8100;
  outline-offset: 4px;
}
.builder main {
  max-width: 1800px;
  margin: auto;
  padding: 0 clamp(16px, 2vw, 32px);
}
.builder-intro {
  padding: 38px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.builder h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
}
.builder-intro p:last-child {
  margin: 12px 0 0;
  color: #506778;
}
.builder-jump {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.builder-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: white;
  border: 1px solid #dce2e8;
  border-radius: 12px;
  overflow: hidden;
}
.builder-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid #dce2e8;
}
.builder-settings section {
  min-width: 0;
}
.builder-settings h2,
.builder-preview-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.builder-settings h2 {
  margin-bottom: 20px;
}
.builder-settings section + section {
  padding-top: 24px;
  border-top: 1px solid #e5e9ee;
}
.builder-settings label {
  display: block;
  margin: 18px 0 7px;
  font-size: 13px;
  font-weight: 600;
}
.builder-settings h2 + label {
  margin-top: 0;
}
.builder-settings input,
.builder-settings select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c6d1;
  border-radius: 5px;
  padding: 10px;
  color: #142c42;
  background: white;
  font-size: 13px;
}
.builder-settings input[aria-invalid='true'] {
  border-color: #a32b26;
}
.builder-optional {
  margin-left: 5px;
  color: #647483;
  font-weight: 400;
}
.builder-help,
.builder-preview-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #586c7d;
}
.builder-cip {
  margin: 10px 0 0;
  color: #506778;
  font-size: 11px;
}
.builder-error {
  margin: 8px 0 0;
  color: #a32b26;
  font-size: 13px;
}
.builder-error:empty {
  display: none;
}
.builder-hosting {
  padding-bottom: 14px;
}
.builder-hosting summary {
  font-size: 13px;
  font-weight: 600;
}
.builder-hosting input {
  font-size: 13px;
}
.builder-code-label {
  display: flex !important;
  justify-content: space-between;
  gap: 8px;
}
.builder-code-label span {
  color: #647483;
  font-weight: 400;
  font-size: 11px;
}
.builder-code {
  display: block;
  width: 100%;
  resize: none;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #102b45;
  color: #e1eaf2;
  padding: 14px;
  font:
    11px/1.7 ui-monospace,
    Consolas,
    monospace !important;
  overflow-wrap: anywhere;
}
.builder-primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  border: 1px solid #004b7e;
  border-radius: 5px;
  padding: 12px 16px;
  background: #004b7e;
  color: white;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition:
    background 0.15s,
    transform 0.15s;
}
.builder-primary:hover:not(:disabled) {
  background: #002855;
  transform: translateY(-1px);
}
.builder-primary:disabled {
  background: #e5e9ee;
  border-color: #e5e9ee;
  color: #637586;
  cursor: not-allowed;
}
.builder-copy-status {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #005e4b;
}
.builder-reset {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #506778;
  font-size: 12px !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.builder-preview {
  min-width: 0;
  padding: 24px;
}
.builder-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.builder-live-label {
  color: #536b7c;
  font-size: 11px;
}
.builder-preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
}
#preview-size-note {
  margin: 0 0 14px;
}
.builder-sizes {
  display: flex;
  gap: 3px;
  border: 1px solid #cbd5de;
  border-radius: 6px;
  padding: 3px;
}
.builder-sizes button {
  background: none;
  color: #506778;
  border: 0;
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.builder-sizes button[aria-pressed='true'] {
  background: #002855;
  color: white;
}
.builder-sizes button:hover:not([aria-pressed='true']) {
  background: #edf1f5;
}
.builder-width {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #536b7c;
}
.builder-width input {
  width: 100px;
  accent-color: #004b7e;
}
.builder-width output {
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.builder-canvas {
  min-width: 0;
  background: #edf1f5;
  border: 1px solid #e0e6ec;
  padding: 16px;
  border-radius: 6px;
}
.builder-stage {
  width: 100%;
  max-width: min(100%, 1197px);
  margin: 0 auto;
}
.builder-empty {
  padding: 90px 24px;
  text-align: center;
  color: #536b7c;
}
.builder-preview-note {
  margin-top: 14px;
}
.builder-footer {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  color: #647483;
}
.builder-footer p {
  margin: 0;
  max-width: 580px;
}
.builder-notice {
  padding: 20px;
  background: #fff3d8;
}
@media (max-width: 900px) {
  .builder-workspace {
    display: block;
  }
  .builder-settings {
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid #dce2e8;
  }
}
@media (max-width: 780px) {
  .builder main {
    padding-inline: 12px;
  }
  .builder-preview {
    width: 100%;
    padding: 20px 6px;
  }
  .builder-canvas {
    padding: 0;
    border: 0;
  }
  .builder-preview-heading,
  .builder-preview-tools,
  .builder-preview-note {
    margin-inline: 10px;
  }
  .builder-intro {
    display: block;
    padding: 28px 0;
  }
  .builder-jump {
    display: inline-block;
    margin-top: 16px;
  }
  .builder-footer {
    flex-direction: column;
    gap: 10px;
  }
  .builder-sizes button {
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .builder *,
  .builder *::before,
  .builder *::after {
    transition: none !important;
  }
}
