.zone-manager-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.zone-manager {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: #162234;
  background: #f8fbff;
  border: 1px solid #c6d3e0;
  border-radius: 6px;
  overflow: hidden;
}

.zone-manager-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 15px 0 15px 14px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.zone-manager:hover {
  background: #f0f6ff;
  border-color: #2168c5;
}

.zone-manager.dragging {
  opacity: .5;
}

.zone-manager.drop-target {
  border-color: #2168c5;
  box-shadow: 0 0 0 2px rgba(33, 104, 197, .18);
}

.zone-manager span {
  min-width: 0;
}

.zone-manager strong {
  display: block;
  font-size: 17px;
}

.zone-manager small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #697586;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-manager b {
  color: #2168c5;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.zone-order-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
}

.zone-order-button.icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
}

.zone-order-button:disabled {
  cursor: default;
  opacity: .35;
}

.zone-drag-handle {
  display: grid;
  width: 18px;
  color: #697586;
  font-size: 17px;
  line-height: .65;
  letter-spacing: 1px;
  text-align: center;
  user-select: none;
}

.back-to-zones {
  position: sticky;
  top: 10px;
  z-index: 4;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(20, 45, 75, 0.12);
}

.zone-settings-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 12px;
  padding: 4px;
  background: #e9eef4;
  border: 1px solid #c6d3e0;
  border-radius: 6px;
}

.zone-settings-tabs button {
  min-height: 40px;
  padding: 8px 10px;
  color: #526579;
  font-weight: 750;
  background: transparent;
  border-radius: 4px;
}

.zone-settings-tabs button.active {
  color: #fff;
  background: #2168c5;
  box-shadow: 0 1px 3px rgba(20, 45, 75, .18);
}

.reference-editor {
  margin-top: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 6px;
}

.reference-editor .field {
  margin: 10px 0;
}

.reference-upload-field small {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #526579;
  font-size: 13px;
}

.checklist-settings {
  margin: 0 0 20px;
}

.checklist-settings-item {
  padding: 14px 0;
  border-top: 1px solid #d7dde5;
}

.checklist-settings-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.checklist-settings-item > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-danger {
  padding: 8px 10px;
  font-size: 13px;
}

.checklist-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.checklist-number-settings .checklist-settings-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.checklist-required {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: #26344e;
  font-size: 14px;
  font-weight: 750;
}

.checklist-required input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2168c5;
}

@media (max-width: 430px) {
  .checklist-settings-grid,
  .checklist-number-settings .checklist-settings-grid {
    grid-template-columns: 1fr;
  }
}

.shelf-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shelf-order-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shelf-order-button.icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
}

.shelf-order-button:disabled {
  cursor: default;
  opacity: .35;
}

.shelf-drag-handle {
  display: grid;
  width: 18px;
  color: #697586;
  font-size: 17px;
  line-height: .65;
  letter-spacing: 1px;
  text-align: center;
  user-select: none;
}

.zone-shelf.dragging {
  opacity: .5;
}

.zone-shelf.drop-target {
  border-color: #2168c5;
  box-shadow: 0 0 0 2px rgba(33, 104, 197, .18);
}

.zone-shelf.is-inactive {
  opacity: .62;
  background: #f2f4f6;
}

.shelf-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #26344e;
  font-size: 14px;
  font-weight: 750;
}

.shelf-active input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2168c5;
}

.reference-gallery figure {
  position: relative;
}

.reference-gallery figure.reference-unavailable {
  outline: 2px solid #c67a18;
}

.reference-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(147, 37, 37, .9);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.reference-delete:hover {
  background: #a72c2c;
}
