.bwebs-stl-tool {
  --bwebs-blue: #1D2142;
  --bwebs-green: #2EB67D;
  --bwebs-orange: #F4A933;
  --bwebs-light: #f7f8fb;
  --bwebs-border: rgba(29, 33, 66, 0.12);
  font-family: inherit;
  color: var(--bwebs-blue);
}

.bwebs-stl-tool * {
  box-sizing: border-box;
}

.bwebs-stl-card {
  background: #fff;
  border: 1px solid var(--bwebs-border);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 22px 70px rgba(29, 33, 66, 0.08);
}

.bwebs-stl-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.bwebs-stl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(46, 182, 125, 0.12);
  color: var(--bwebs-green);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.bwebs-stl-header h2 {
  margin: 0 0 12px;
  color: var(--bwebs-blue);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.bwebs-stl-header p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(29, 33, 66, 0.74);
}

.bwebs-stl-grid {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.bwebs-stl-panel,
.bwebs-stl-preview-wrap {
  border-radius: 24px;
  background: var(--bwebs-light);
  border: 1px solid var(--bwebs-border);
  padding: 22px;
}

.bwebs-stl-upload {
  position: relative;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border: 2px dashed rgba(29, 33, 66, 0.22);
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 22px;
}

.bwebs-stl-upload:hover {
  border-color: var(--bwebs-green);
  transform: translateY(-2px);
}

.bwebs-stl-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.bwebs-stl-upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bwebs-green);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}

.bwebs-stl-upload strong {
  font-size: 18px;
}

.bwebs-stl-upload small {
  color: rgba(29, 33, 66, 0.62);
  line-height: 1.4;
}

.bwebs-stl-controls {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.bwebs-stl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bwebs-stl-field {
  display: grid;
  gap: 8px;
}

.bwebs-stl-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--bwebs-blue);
}

.bwebs-stl-field input,
.bwebs-stl-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--bwebs-border);
  border-radius: 14px;
  background: #fff;
  color: var(--bwebs-blue);
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.bwebs-stl-field input:focus,
.bwebs-stl-field select:focus {
  border-color: var(--bwebs-green);
  box-shadow: 0 0 0 4px rgba(46, 182, 125, 0.12);
}

.bwebs-stl-field input[type="range"] {
  padding: 0;
  accent-color: var(--bwebs-green);
}

.bwebs-stl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.bwebs-stl-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  font: inherit;
}

.bwebs-stl-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bwebs-stl-btn-primary {
  background: var(--bwebs-green);
  color: #fff;
  box-shadow: 0 12px 25px rgba(46, 182, 125, 0.22);
}

.bwebs-stl-btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(46, 182, 125, 0.28);
}

.bwebs-stl-btn-secondary {
  background: var(--bwebs-blue);
  color: #fff;
}

.bwebs-stl-note {
  margin: 16px 0 0;
  line-height: 1.5;
  color: rgba(29, 33, 66, 0.68);
  font-size: 14px;
}

.bwebs-stl-preview-wrap {
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.bwebs-stl-preview-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.bwebs-stl-preview-title span {
  font-size: 13px;
  color: rgba(29, 33, 66, 0.62);
}

.bwebs-stl-preview {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--bwebs-border);
}

@media (max-width: 900px) {
  .bwebs-stl-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bwebs-stl-card,
  .bwebs-stl-panel,
  .bwebs-stl-preview-wrap {
    border-radius: 20px;
    padding: 18px;
  }

  .bwebs-stl-row {
    grid-template-columns: 1fr;
  }

  .bwebs-stl-actions {
    flex-direction: column;
  }

  .bwebs-stl-btn {
    width: 100%;
  }
}
