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

.st-qrbar [hidden] {
  display: none !important;
}

.qb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 18px;
  align-items: start;
}

.qb-inputs {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.qb-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 14px;
  align-items: end;
}

.qb-cols .st-field {
  margin: 0;
}

.qb-cols input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 2px;
}

.qb-style {
  padding: 12px 14px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  background: #fbfcfd;
}

.qb-style summary {
  margin-bottom: 10px;
  color: #1e2733;
  font-weight: 800;
  cursor: pointer;
}

.qb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 8px;
}

.qb-file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.qb-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.qb-out {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 8px;
}

.qb-preview {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 14px;
  border: 1px solid #e1e6eb;
  border-radius: 14px;
  background: #f4f7f9;
}

.qb-canvas {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(30, 39, 51, .12);
}

.qb-empty,
.qb-chars {
  margin: 0;
  color: #66778a;
  font-size: 13px;
  text-align: center;
}

.qb-barbox {
  min-height: 160px;
  overflow-x: auto;
}

.qb-barbox svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .qb-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .qb-out {
    position: static;
    order: -1;
  }
}

@media (max-width: 767px) {
  .st-qrbar .st-chip {
    width: auto;
  }
}
