/* pages in the layers list */
.phead {
  background: var(--p);
  color: #fff;
  border-radius: 10px;
  padding: 6px 8px 8px 12px;
  margin: 0 0 8px;
}
.phead .pt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.phead .pt b {
  font: 700 16px Ubuntu;
}
.phead .pt small {
  opacity: 0.75;
  font-size: 12.5px;
}
.phead .ib {
  color: #fff;
}
.phead .grow {
  flex: 1;
}
.phead .pf {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.phead .pf .dd {
  flex: 1 1 140px;
  background: #ffffff26;
  font-size: 14px;
  min-height: 36px;
  padding: 3px 6px 3px 8px;
}
.phead .pf .dd .th {
  height: 26px;
  width: auto;
}
.empty.pe {
  color: #fff;
  opacity: 0.85;
  padding: 0 4px 12px;
}
.pbreak {
  margin: 22px 0 18px;
  position: relative;
  display: flex;
  justify-content: center;
}
.pbreak::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 3px dashed #fff;
  opacity: 0.9;
}
.pbl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pd);
  color: #fff;
  border-radius: 20px;
  padding: 2px 4px 2px 6px;
  font-size: 14px;
}
.pbl .ib {
  color: #fff;
}
.pbl span {
  padding: 0 4px;
}
/* panel */
.phd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.phd h2 {
  margin: 0;
  color: #fff;
  font: 700 16px Ubuntu;
  flex: 1;
}
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #ffffff33;
  color: #fff;
  border-radius: 16px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  font-size: 14px;
}
.ghost .ms {
  font-size: 20px;
}
.ghost:hover {
  background: #ffffff55;
}
.node {
  margin-bottom: 8px;
  position: relative;
}
.card {
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px 10px;
}
.hd {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}
.hd b {
  flex: 1;
  font: 700 17px Ubuntu;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.handle,
.ib {
  border: 0;
  background: none;
  color: inherit;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 4px;
  flex: none;
}
.handle {
  cursor: grab;
  margin-left: -4px;
}
.handle .ms {
  font-size: 26px;
}
.ib {
  cursor: pointer;
  opacity: 0.8;
}
.ib:hover {
  opacity: 1;
  background: var(--tint);
}
.ib .ms {
  font-size: 22px;
}
.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.fields .dd {
  flex: 1 1 130px;
  font-size: 14px;
  min-height: 36px;
  padding: 3px 6px 3px 8px;
}
.fields .dd > .ms:last-child {
  font-size: 22px;
}
.fields .dd .ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
}
.fields .dd .ico svg {
  max-width: 22px;
  max-height: 22px;
}
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--p);
  background: #fff;
  border: 2px solid var(--p);
  border-radius: 2px;
  padding: 6px 8px;
  resize: vertical;
  min-height: 44px;
  display: block;
  overflow: hidden;
}
.tip {
  flex: 1 1 100%;
  font-size: 12.5px;
  opacity: 0.75;
  margin-top: -2px;
}
.tip code {
  font: inherit;
  background: var(--tint);
  border-radius: 3px;
  padding: 0 3px;
}
.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 10px 2px 2px;
  flex: 1 1 100%;
  border-radius: 4px;
}
.pick:hover {
  background: var(--tint);
}
.pick .th {
  width: 40px;
  height: 40px;
  background: var(--pl) center/cover;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 3px;
}
.pick .th .ms {
  font-size: 26px;
}
/* row/column blocks */
.sec > .shd {
  background: var(--pd);
  color: #fff;
  border-radius: 10px 10px 10px 0;
  padding: 3px 6px;
  gap: 8px;
}
.sec > .shd .handle {
  margin-left: 0;
}
.sec > .shd .ib {
  color: #fff;
}
.sec > .shd .dd {
  background: #ffffff26;
  font-size: 13px;
  min-height: 30px;
  padding: 2px 4px 2px 10px;
  border-radius: 15px;
  flex: none;
}
.sec > .shd .dd > .ms:last-child {
  font-size: 20px;
}
.sec > .shd .grow {
  flex: 1;
}
.sec > .kids {
  position: relative;
  padding: 8px 0 0 18px;
  min-height: 44px;
}
.sec > .kids::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--pd);
  border-radius: 0 0 5px 5px;
}
.sec > .kids::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 100% 100%, transparent 7.5px, var(--pd) 8px);
}
.sec > .kids > .node:last-child {
  margin-bottom: 0;
}
.dirs {
  display: flex;
  background: #ffffff26;
  border-radius: 16px;
  padding: 2px;
}
.dirs button {
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
}
.dirs button.on {
  background: #fff;
  color: var(--pd);
  font-weight: 700;
}
.fixgap {
  font-size: 13px;
  opacity: 0.75;
  white-space: nowrap;
}
.empty {
  font-size: 13px;
  color: var(--pd);
  padding: 10px 4px;
}
.start {
  background: #fff;
  border-radius: 6px;
  padding: 14px;
}
.start b {
  font: 700 17px Ubuntu;
  display: block;
  margin-bottom: 10px;
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  align-items: start;
}
.tcard {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tcard canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  outline: 1px solid #29123d1a;
}
.tcard:hover canvas {
  outline: 3px solid var(--pl);
}
.tcard span {
  display: block;
  line-height: 1.25;
}
.tcard small {
  opacity: 0.7;
  font-size: 12px;
}
.start p {
  font-size: 13px;
  margin: 12px 0 0;
  opacity: 0.8;
}
.node.dragging {
  opacity: 0.4;
}
.drop-before::before,
.drop-after::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pd);
  border-radius: 2px;
  z-index: 2;
}
.drop-before::before {
  top: -6px;
}
.drop-after::after {
  bottom: -6px;
}
.drop-in > .kids {
  background: #29123d1f;
}
.addbtn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #fff;
  color: var(--p);
  font: 700 17px Ubuntu;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  margin-top: 8px;
}
.addbtn .ms {
  font-size: 26px;
}
.addbtn[aria-expanded='true'] {
  outline: 3px solid var(--pd);
}
