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

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

.ly-start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.ly-start .st-drop em {
  min-height: 150px;
}

.ly-newdoc {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  background: #fbfcfd;
}

.ly-label {
  font-weight: 700;
  color: #1e2733;
}

.ly-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
}

.ly-presets .st-chip {
  padding: 5px 10px;
  font-size: 12.5px;
}

.ly-num,
.ly-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #3d4d5c;
}

.ly-field {
  margin-bottom: 8px;
}

.ly-field span {
  display: flex;
  justify-content: space-between;
}

.ly-num input[type="number"] {
  width: 90px;
}

.ly-num input,
.ly-num select,
.ly-field input[type="text"],
.ly-field select,
.ly-field textarea {
  padding: 7px 9px;
  border: 1px solid #c9d5de;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.ly-field textarea {
  resize: vertical;
}

.ly-num input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 0;
}

.ly-num input[type="range"],
.ly-field input[type="range"] {
  padding: 0;
  border: 0;
  accent-color: #52b5b2;
}

.ly-range {
  min-width: 140px;
}

.ly-check {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.ly-check input {
  accent-color: #52b5b2;
}

.ly-hide {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ly-openbtn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ly-openbtn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ly-work {
  display: grid;
  gap: 12px;
}

.ly-work > * {
  min-width: 0;
}

.ly-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  background: #fff;
}

.ly-toolbar .st-chip[aria-pressed="true"] {
  border-color: #52b5b2;
  background: #e9f7f6;
  color: #1f6f6c;
  box-shadow: 0 0 0 1px #52b5b2 inset;
}

.ly-sep {
  width: 1px;
  height: 26px;
  margin: 0 4px;
  background: #e1e6eb;
}

.ly-brush {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbfcfd;
}

.ly-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ly-stage {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background-color: #e9eef2;
  background-image: linear-gradient(45deg, #dde4ea 25%, transparent 25%), linear-gradient(-45deg, #dde4ea 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dde4ea 75%), linear-gradient(-45deg, transparent 75%, #dde4ea 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.ly-canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 620px;
  box-shadow: 0 2px 12px rgba(30, 39, 51, .18);
  touch-action: none;
  user-select: none;
}

.ly-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  align-items: start;
}

.ly-box {
  padding: 12px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  background: #fff;
}

.ly-box h3 {
  margin: 0 0 8px;
  color: #1e2733;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
}

.ly-box h3 small {
  color: #66778a;
  font-weight: 600;
}

.ly-list {
  display: grid;
  gap: 4px;
  max-height: 260px;
  margin: 0 0 8px;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.ly-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.ly-item.is-sel {
  border-color: #52b5b2;
  background: #f1faf9;
}

.ly-item button {
  width: auto;
  padding: 5px 6px;
  border: 0;
  background: none;
  color: #3d4d5c;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.ly-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.ly-name i {
  width: 16px;
  color: #2f8f8c;
}

.ly-empty {
  color: #66778a;
  font-size: 13px;
}

.ly-icons .st-chip {
  padding: 5px 9px;
  font-size: 13px;
}

.ly-save {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  padding-top: 10px;
  border-top: 1px dashed #d3dce4;
}

@media (max-width: 767px) {
  .st-layers .st-chip,
  .ly-item button {
    width: auto;
  }

  .ly-canvas {
    max-height: 440px;
  }

  .ly-sep {
    display: none;
  }
}
