.sc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.sc-card h3 {
  margin: 12px 0 6px;
}
.sc-card-top,
.sc-card-foot,
.sc-issues {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sc-card-foot {
  margin-top: 18px;
}
.sc-draft {
  background: #edf2f5;
  color: #466;
}
.sc-review {
  background: #fff3cf;
  color: #745600;
}
.sc-published {
  background: #dff6e9;
  color: #17663c;
}
.sc-archived {
  background: #eee;
  color: #777;
}
.sc-builder {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sc-palette {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.sc-palette > button {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: start;
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  color: var(--ink);
  cursor: pointer;
}
.sc-palette > button.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px #148bd322;
}
.sc-palette small,
.sc-palette span {
  color: var(--muted);
}
.sc-issues {
  background: #e9f8f4;
  border: 1px solid #bce6d7;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.sc-issues.danger {
  background: #fff0ef;
  border-color: #f0c4c0;
}
.sc-grid-wrap {
  overflow: auto;
}
.sc-grid {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}
.sc-grid th,
.sc-grid td {
  border: 1px solid var(--line);
  padding: 6px;
  text-align: center;
  vertical-align: top;
}
.sc-grid th {
  background: #edf5f8;
}
.sc-grid td {
  height: 112px;
}
.sc-add {
  width: 100%;
  height: 96px;
  border: 1px dashed #aac5d2;
  background: #f8fcfd;
  color: var(--primary);
  font-size: 24px;
  border-radius: 8px;
  cursor: pointer;
}
.sc-entry {
  width: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  text-align: start;
  border: 1px solid #b9d9e8;
  background: #edf8fd;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.sc-entry.lab {
  background: #fff4dc;
  border-color: #edcf8f;
}
.sc-entry.online {
  background: #eef1ff;
  border-color: #c7cef5;
}
.sc-entry:disabled {
  cursor: default;
  opacity: 1;
}
.sc-entry span,
.sc-entry small {
  font-size: 11px;
}
.sc-mobile {
  display: none;
}
.sc-multi {
  min-height: 145px;
}
.sc-room-list {
  max-height: 280px;
  overflow: auto;
}

@media (max-width: 850px) {
  .sc-builder {
    display: block;
  }
  .sc-palette {
    position: static;
    max-height: 360px;
    margin-bottom: 14px;
  }
  .sc-grid-wrap {
    display: none;
  }
  .sc-mobile {
    display: grid;
    gap: 14px;
  }
  .sc-mobile section {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
  }
  .sc-mobile section > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: start;
    gap: 8px;
    margin-top: 8px;
  }
  .sc-entry {
    min-height: auto;
  }
  .sc-list {
    grid-template-columns: 1fr;
  }
}
